/* =========================
   FONTS
========================= */
@font-face {
  font-family: 'Azo Sans';
  src: url('fonts/AzoSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Azo Sans';
  src: url('fonts/AzoSans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Azo Sans';
  src: url('fonts/AzoSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Excon';
  src: url('fonts/Excon-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Excon';
  src: url('fonts/Excon-Semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Excon';
  src: url('fonts/Excon-Bold.otf') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* =========================
   ROOT
========================= */
:root {
  --primary: #183157;
  --primary-strong: #112746;
  --secondary: #2270AA;
  --accent: #3BABD4;

  --bg-1: #bcc7d3;
  --bg-2: #d6dee7;
  --bg-3: #edf2f7;

  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.72);

  --text: #182944;
  --muted: #69798f;
  --line: rgba(24, 49, 87, 0.10);
  --line-strong: rgba(24, 49, 87, 0.16);
  --success: #15803d;
  --danger: #b42318;
  --white: #ffffff;

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --shadow-soft: 0 12px 28px rgba(17, 39, 70, 0.08);
  --shadow-main: 0 26px 60px rgba(17, 39, 70, 0.16);
}

/* =========================
   RESET
========================= */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--text);
  font-family: 'Azo Sans', Arial, sans-serif;
  background:
    radial-gradient(circle at 18% 20%, rgba(59, 171, 212, 0.18), transparent 18%),
    radial-gradient(circle at 82% 78%, rgba(34, 112, 170, 0.16), transparent 20%),
    linear-gradient(135deg, #10233d 0%, #173257 42%, #1d3f6d 100%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
.brand {
  margin: 0;
  font-family: 'Excon', 'Azo Sans', sans-serif;
  letter-spacing: -0.03em;
}

p {
  margin-top: 0;
}

/* =========================
   APP INTERNA
========================= */
.app {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: linear-gradient(180deg, #172c50 0%, #1f3865 100%);
  color: var(--white);
  padding: 28px 22px;
  border-right: 1px solid rgba(255,255,255,0.06);
  box-shadow: 8px 0 30px rgba(18, 35, 63, 0.08);
}

.brand {
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 28px;
  color: var(--white);
}

.menu {
  display: grid;
  gap: 10px;
}

.menu a {
  color: var(--white);
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 500;
  transition: transform .18s ease, background .18s ease, opacity .18s ease;
  opacity: 0.96;
}

.menu a:hover {
  background: rgba(255,255,255,.10);
  transform: translateX(2px);
  opacity: 1;
}

.content {
  padding: 28px;
}

.topbar,
.hero,
.stats,
.grid {
  margin-bottom: 22px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.topbar h1 {
  font-size: 2rem;
  color: var(--primary);
}

.hero,
.grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.card {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(27, 45, 78, 0.05);
}

.stats .card {
  background: linear-gradient(135deg, #ffffff 0%, #f7f9fc 100%);
}

.stats .card h2 {
  margin-top: 10px;
  font-size: 2rem;
  color: var(--primary);
}

.hero .card:first-child {
  background: linear-gradient(135deg, var(--primary), #243b67);
  color: var(--white);
}

.hero .card:first-child h2,
.hero .card:first-child .muted {
  color: var(--white);
}

.muted {
  color: var(--muted);
}

.badge-status {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: var(--white);
  padding: 10px 14px;
  border-radius: 999px;
  display: inline-block;
  font-size: .92rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(34, 112, 170, 0.20);
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list li {
  padding: 14px 0;
  border-bottom: 1px solid #eceef2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.list li:last-child {
  border-bottom: none;
}

.card h3 {
  margin-bottom: 14px;
  font-size: 1.1rem;
  color: var(--primary);
}

.card strong {
  color: var(--primary);
}

/* =========================
   LOGIN
========================= */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(24,49,87,0.035) 1px, transparent 1px),
    linear-gradient(rgba(24,49,87,0.035) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.45), transparent 88%);
  pointer-events: none;
}

.login-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
}

.login-brand {
  padding: 18px 8px;
  animation: fadeSlideUp .7s ease;
}

.login-logo {
  width: 220px;
  max-width: 100%;
  margin-bottom: 24px;
  filter: drop-shadow(0 10px 24px rgba(27, 45, 78, 0.10));
}

.login-brand-text {
  max-width: 560px;
}

.login-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
  color: var(--secondary);
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 18px;
  backdrop-filter: blur(10px);
}

.login-brand h1 {
  font-size: clamp(2.5rem, 5vw, 4.3rem);
  line-height: 0.98;
  margin-bottom: 14px;
  color: #ffffff;
}

.login-brand p {
  font-size: 1.08rem;
  line-height: 1.7;
  color: #607089;
  max-width: 500px;
}

.login-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-xl);
  padding: 34px;
  box-shadow: var(--shadow-main);
  animation: fadeSlideUp .8s ease;
}

.login-card-head {
  margin-bottom: 24px;
}

.login-badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--secondary);
  background: rgba(34, 112, 170, 0.10);
  border: 1px solid rgba(34, 112, 170, 0.12);
  border-radius: 999px;
  padding: 8px 12px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.login-card h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--primary);
}
.login-card h2,
.auth-card-head h1,
.form-field label {
  color: #183157;
}

.login-card p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.login-alert {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.10);
  color: var(--danger);
  font-size: 0.94rem;
  font-weight: 500;
}

.login-alert--success {
  background: rgba(21, 128, 61, 0.08);
  border: 1px solid rgba(21, 128, 61, 0.12);
  color: var(--success);
}

.reset-password-email-hint {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 6px;
}

.reset-password-email-hint strong {
  color: var(--primary);
  font-weight: 700;
}

.reset-password-page .login-link-card--ghost.reset-password-back {
  margin-top: 8px;
  text-align: center;
}

.form-field .field-hint {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 2px;
}

.login-form {
  display: grid;
  gap: 18px;
}

.form-field {
  display: grid;
  gap: 9px;
}

.form-field label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font-family: 'Azo Sans', Arial, sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.form-field textarea {
  min-height: 120px;
  padding: 16px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #98a4b6;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(34, 112, 170, 0.46);
  box-shadow: 0 0 0 4px rgba(34, 112, 170, 0.10);
  background: #fff;
  transform: translateY(-1px);
}

.login-button {
  height: 56px;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #1b2d4e, #27457a);
  color: var(--white);
  font-family: 'Excon', 'Azo Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  box-shadow: 0 14px 28px rgba(27, 45, 78, 0.20);
}

.login-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.login-button:active {
  transform: translateY(0);
}

.secondary-button {
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.72);
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.secondary-button:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow-soft);
}

.login-divider {
  position: relative;
  margin: 22px 0 18px;
  text-align: center;
}

.login-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 1px solid var(--line);
}

.login-divider span {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.90);
  color: #7b8799;
  padding: 0 12px;
  font-size: 0.88rem;
  font-weight: 600;
}

.login-actions {
  display: grid;
  gap: 12px;
}

.login-link-card {
  display: block;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  text-decoration: none;
  background: rgba(34, 112, 170, 0.08);
  border: 1px solid rgba(34, 112, 170, 0.10);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.login-link-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  background: rgba(34, 112, 170, 0.11);
}

.login-link-card strong {
  display: block;
  font-family: 'Excon', 'Azo Sans', sans-serif;
  color: #1b2d4e;
  font-size: 1rem;
  margin-bottom: 4px;
}

.login-link-card span {
  display: block;
  color: #69788d;
  font-size: 0.92rem;
  line-height: 1.5;
}

.login-link-card--ghost {
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--line);
}

.login-link-card--ghost:hover {
  background: rgba(255, 255, 255, 0.90);
}

.login-page .form-field label {
  color: #183157;
  font-weight: 700;
}

.login-page::after {
  content: "";
  position: absolute;
  width: min(480px, 55vw);
  height: min(480px, 55vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 171, 212, 0.2), transparent 68%);
  top: 8%;
  right: 4%;
  pointer-events: none;
  z-index: 0;
  animation: loginOrbFloat 14s ease-in-out infinite;
}

.login-brand {
  animation: loginBrandEnter 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-card {
  animation: loginCardEnter 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.login-card-head {
  animation: loginFadeUp 0.7s ease 0.18s both;
}

.login-form .form-field:nth-child(1) {
  animation: loginFadeUp 0.65s ease 0.28s both;
}

.login-form .form-field:nth-child(2) {
  animation: loginFadeUp 0.65s ease 0.36s both;
}

.login-form > .login-button[type="submit"] {
  animation: loginFadeUp 0.65s ease 0.44s both;
}

.login-microsoft-block {
  display: grid;
  gap: 12px;
  animation: loginFadeUp 0.65s ease 0.52s both;
}

.login-divider {
  animation: loginFadeUp 0.6s ease 0.6s both;
}

.login-actions {
  animation: loginFadeUp 0.6s ease 0.68s both;
}

.login-ai-tip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(34, 112, 170, 0.12), rgba(59, 171, 212, 0.08));
  border: 1px solid rgba(34, 112, 170, 0.2);
  box-shadow: 0 10px 28px rgba(24, 49, 87, 0.1);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.login-ai-tip::after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: -8px;
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, rgba(34, 112, 170, 0.1), rgba(59, 171, 212, 0.06));
  border-right: 1px solid rgba(34, 112, 170, 0.18);
  border-bottom: 1px solid rgba(34, 112, 170, 0.18);
  transform: rotate(45deg);
}

.login-ai-tip.is-highlight {
  transform: translateY(-2px);
  border-color: rgba(34, 112, 170, 0.42);
  box-shadow: 0 14px 32px rgba(34, 112, 170, 0.18);
}

.login-ai-tip__robot {
  position: relative;
  flex-shrink: 0;
  width: 42px;
  height: 48px;
  animation: loginRobotFloat 2.6s ease-in-out infinite;
}

.login-ai-tip__robot-antenna {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 8px;
  margin-left: -1px;
  background: #94a3b8;
  border-radius: 2px;
}

.login-ai-tip__robot-antenna::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: #3babd4;
  box-shadow: 0 0 10px rgba(59, 171, 212, 0.65);
  animation: loginRobotPulse 1.8s ease-in-out infinite;
}

.login-ai-tip__robot-head {
  position: absolute;
  top: 8px;
  left: 6px;
  width: 30px;
  height: 24px;
  border-radius: 8px;
  background: linear-gradient(165deg, #e8eef5, #94a3b8);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.login-ai-tip__robot-eye {
  position: absolute;
  top: 17px;
  width: 5px;
  height: 6px;
  border-radius: 50%;
  background: #0f172a;
  animation: loginRobotBlink 4.2s ease-in-out infinite;
}

.login-ai-tip__robot-eye--l { left: 13px; }
.login-ai-tip__robot-eye--r { right: 13px; }

.login-ai-tip__robot-mouth {
  position: absolute;
  top: 24px;
  left: 50%;
  width: 10px;
  height: 4px;
  margin-left: -5px;
  border-bottom: 2px solid #334155;
  border-radius: 0 0 8px 8px;
}

.login-ai-tip__robot.is-talking .login-ai-tip__robot-mouth {
  animation: loginRobotTalk 0.35s ease-in-out infinite;
}

.login-ai-tip__body {
  flex: 1;
  min-width: 0;
}

.login-ai-tip__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34, 112, 170, 0.14);
  color: #1a5f8f;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.login-ai-tip__text {
  margin: 0;
  color: #1b2d4e;
  font-size: 0.92rem;
  line-height: 1.5;
  font-weight: 600;
  transition: opacity 0.28s ease;
}

.login-button--microsoft {
  position: relative;
  text-decoration: none;
  animation: loginMicrosoftGlow 3s ease-in-out infinite;
}

.login-button--microsoft.is-pulse {
  animation: loginMicrosoftPulse 0.85s ease;
}

@keyframes loginBrandEnter {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes loginCardEnter {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes loginFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loginOrbFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.85;
  }
  50% {
    transform: translate(-24px, 18px) scale(1.06);
    opacity: 1;
  }
}

@keyframes loginRobotFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes loginRobotBlink {
  0%, 46%, 50%, 100% { transform: scaleY(1); }
  48% { transform: scaleY(0.15); }
}

@keyframes loginRobotTalk {
  0%, 100% { height: 4px; }
  50% { height: 7px; }
}

@keyframes loginRobotPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

@keyframes loginMicrosoftGlow {
  0%, 100% {
    box-shadow: 0 14px 28px rgba(27, 45, 78, 0.2);
  }
  50% {
    box-shadow: 0 16px 34px rgba(34, 112, 170, 0.28);
  }
}

@keyframes loginMicrosoftPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

@media (max-width: 600px) {
  .login-ai-tip {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .login-ai-tip::after {
    display: none;
  }
}

/* =========================
   AUTH / ACESSO
========================= */
.auth-page {
  min-height: 100vh;
  padding: 34px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-page,
.auth-page--dark {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 18%, rgba(59, 171, 212, 0.20), transparent 16%),
    radial-gradient(circle at 85% 82%, rgba(34, 112, 170, 0.18), transparent 18%),
    linear-gradient(135deg, #10233d 0%, #173257 45%, #1d3f6d 100%);
}

.auth-page--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 38px 38px;
  pointer-events: none;
  z-index: 0;
}

.auth-wrapper--single {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.login-card,
.auth-card {
  background: rgba(255, 255, 255, 0.93);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 30px 70px rgba(5, 15, 30, 0.35);
  backdrop-filter: blur(16px);
}

.auth-card--wide {
  max-width: 980px;
  margin: 0 auto;
}

.auth-card--medium {
  max-width: 760px;
  margin: 0 auto;
}

.auth-card-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.auth-mini-logo {
  width: 66px;
  min-width: 66px;
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(24, 49, 87, 0.08));
}

.auth-card-head h1 {
  font-size: 2.1rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.auth-card-head p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.access-form {
  display: grid;
  gap: 24px;
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.access-grid--single {
  grid-template-columns: 1fr;
}

.auth-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.auth-actions .login-button,
.auth-actions .secondary-button {
  min-width: 170px;
}

.form-note {
  margin-top: -10px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* =========================
   ANIMAÇÃO
========================= */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   RESPONSIVO
========================= */
@media (max-width: 1100px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero,
  .grid,
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-brand {
    text-align: center;
    padding-bottom: 0;
  }

  .login-logo {
    margin: 0 auto 22px;
  }

  .login-brand p {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 900px) {
  .app {
    grid-template-columns: 1fr;
  }

  /* Sidebar: drawer fixo — ver assets/responsive.css e bloco @media 900px no fim deste arquivo */

  .content,
  .login-page,
  .auth-page {
    padding: 20px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .login-card,
  .auth-card {
    padding: 24px;
    border-radius: 22px;
  }

  .access-grid {
    grid-template-columns: 1fr;
  }

  .auth-card-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .topbar h1 {
    font-size: 1.6rem;
  }

  .login-brand h1 {
    font-size: 2.3rem;
  }

  .login-card h2,
  .auth-card-head h1 {
    font-size: 1.7rem;
  }

  .form-field input,
  .form-field select,
  .login-button,
  .secondary-button {
    height: 52px;
  }

  .auth-actions {
    flex-direction: column;
  }

  .auth-actions .login-button,
  .auth-actions .secondary-button {
    width: 100%;
  }
}

.access-shell {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 24px;
}

.access-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(8, 19, 48, 0.28);
}

.access-card--wide {
    max-width: 980px;
    margin: 0 auto;
}

.access-card--medium {
    max-width: 760px;
    margin: 0 auto;
}

.access-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 28px 32px;
    background: linear-gradient(135deg, #163567, #254f92);
    color: #ffffff;
}

.access-hero-brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

.auth-mini-logo {
    width: 68px;
    height: 68px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 18px;
    padding: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.access-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #ffffff;
}

.access-badge--ghost {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.access-hero h1 {
    margin: 0 0 6px;
    font-size: 38px;
    line-height: 1.05;
    color: #ffffff;
}

.access-hero p {
    margin: 0;
    max-width: 560px;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
}

.access-hero-info {
    flex-shrink: 0;
}

.access-info-card {
    min-width: 240px;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.access-info-card strong {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.access-info-card span {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.82);
}

.access-form--clean {
    padding: 30px 32px 32px;
    background: #ffffff;
}

.form-section + .form-section {
    margin-top: 30px;
    padding-top: 28px;
    border-top: 1px solid #e7ecf4;
}

.form-section-head {
    margin-bottom: 18px;
}

.form-section-head h2 {
    margin: 0 0 6px;
    font-size: 20px;
    color: #172b4d;
}

.form-section-head p {
    margin: 0;
    color: #6b7a90;
    font-size: 14px;
}

.access-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.access-grid--single {
    grid-template-columns: 1fr;
}

.form-field--full {
    grid-column: 1 / -1;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #1e3155;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    height: 54px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid #d8e1ef;
    background: #f8fafc;
    color: #1c2740;
    font-size: 15px;
    transition: all 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #98a4b8;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: #2d6fbd;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(45, 111, 189, 0.12);
}

.access-footer {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #e7ecf4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.access-footer-note {
    color: #6c7a90;
    font-size: 14px;
    line-height: 1.5;
}

.auth-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.login-button,
.secondary-button {
    min-width: 190px;
    height: 52px;
    border-radius: 16px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.login-button {
    background: linear-gradient(135deg, #183c78, #2b63b7);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(34, 77, 146, 0.24);
}

.login-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.secondary-button {
    background: #f4f7fb;
    color: #22385f;
    border: 1px solid #dce5f1;
}

.secondary-button:hover {
    background: #edf3fb;
}

@media (max-width: 900px) {
    .access-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .access-grid {
        grid-template-columns: 1fr;
    }

    .form-field--full {
        grid-column: auto;
    }

    .access-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-actions {
        width: 100%;
    }

    .login-button,
    .secondary-button {
        width: 100%;
    }

    .access-hero h1 {
        font-size: 30px;
    }
}

@media (max-width: 640px) {
    .access-shell {
        padding: 20px 14px;
    }

    .access-hero,
    .access-form--clean {
        padding-left: 20px;
        padding-right: 20px;
    }

    .auth-mini-logo {
        width: 56px;
        height: 56px;
    }

    .access-hero h1 {
        font-size: 26px;
    }
}
.access-shell {
  position: relative;
  z-index: 1;
}

.access-card {
  position: relative;
  z-index: 2;
}

.access-form--clean,
.form-section,
.form-section-head,
.form-field,
.access-footer {
  position: relative;
  z-index: 2;
}

.access-shell {
  position: relative;
  z-index: 1;
}

.access-card {
  position: relative;
  z-index: 2;
  background: #ffffff;
}

.access-form--clean,
.form-section,
.form-section-head,
.form-field,
.access-footer {
  position: relative;
  z-index: 2;
}

.auth-page--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 38px 38px;
  pointer-events: none;
  z-index: 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

.profile-card {
    text-align: center;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.quick-item {
    background: #1e2a44;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    color: #fff;
    transition: 0.2s;
}

.quick-item:hover {
    background: #2d3b5f;
}

.news-item {
    padding: 10px 0;
    border-bottom: 1px solid #2c3a5c;
}

/* ===== HOME 2.0 ===== */

.hero--home {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.hero-card-main,
.hero-card-side {
    min-height: 180px;
}

.hero-kicker {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #73bdf2;
}

.home-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 280px;
    gap: 20px;
    align-items: start;
}

.home-col {
    min-width: 0;
}

.stat-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.mini-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(34, 112, 170, 0.10);
    color: #2270aa;
    font-weight: 700;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(34, 112, 170, 0.10);
}

.news-item-content {
    min-width: 0;
}

.news-item h4 {
    margin: 8px 0;
}

.news-tag {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(34, 112, 170, 0.12);
    color: #2270aa;
    font-size: 0.75rem;
    font-weight: 700;
}

.mini-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 10px;
    background: #2270aa;
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
}

.profile-btn {
    margin-top: 16px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.agenda-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.agenda-item {
    display: flex;
    flex-direction: column;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(34, 112, 170, 0.10);
}

.agenda-item strong {
    margin-bottom: 4px;
}

@media (max-width: 1200px) {
    .home-layout {
        grid-template-columns: 1fr;
    }

    .hero--home {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-head {
        flex-direction: column;
    }
}

/* ===== HOME DASHBOARD V2 ===== */

.dashboard-shell {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.dashboard-caption {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
}

.dashboard-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2596dc 0%, #52c1f5 100%);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(37, 150, 220, 0.24);
}

.dashboard-pill-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d9fff1;
    box-shadow: 0 0 0 6px rgba(255,255,255,0.14);
}

.dashboard-hero-v2 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.dashboard-card {
    background: linear-gradient(180deg, rgba(25, 56, 108, 0.88) 0%, rgba(20, 45, 90, 0.92) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 18px 40px rgba(7, 20, 44, 0.20);
    backdrop-filter: blur(10px);
}

.dashboard-card--hero {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dashboard-card--hero h1 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 2.15rem;
    line-height: 1.1;
}

.dashboard-card--hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 1.05rem;
}

.dashboard-card--env {
    background: #f5f7fb;
    color: #18305a;
}

.dashboard-card--env h3 {
    margin-top: 0;
    margin-bottom: 18px;
    color: #18305a;
    font-size: 1.6rem;
}

.dashboard-env-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dashboard-env-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #2d466f;
    font-weight: 600;
}

.dashboard-env-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #e9f1fb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.dashboard-stats-v2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.metric-card {
    background: #f7f8fc;
    border-radius: 22px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 12px 30px rgba(9, 24, 53, 0.12);
}

.metric-card-icon {
    width: 74px;
    height: 74px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.metric-card-icon--blue {
    background: #e6f2ff;
}

.metric-card-icon--purple {
    background: #f0e7ff;
}

.metric-card-icon--green {
    background: #e2f8ea;
}

.metric-card-icon--orange {
    background: #ffeedc;
}

.metric-card span {
    display: block;
    color: #74839a;
    font-weight: 600;
    margin-bottom: 4px;
}

.metric-card h2 {
    margin: 0;
    color: #1b3661;
    font-size: 2rem;
    line-height: 1;
}

.metric-card small {
    display: block;
    margin-top: 8px;
    color: #7b8aa1;
    font-weight: 600;
}

.dashboard-main-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 18px;
    align-items: stretch;
}

.dashboard-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.dashboard-card-head h3 {
    margin: 0;
    color: #fff;
    font-size: 1.8rem;
}

.dashboard-filter {
    border: 0;
    border-radius: 12px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.dashboard-feed-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feed-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.05);
}

.feed-row-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #f8efe8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
}

.feed-row-content h4 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 1.2rem;
}

.feed-row-content p {
    margin: 0;
    color: rgba(255,255,255,0.70);
    font-size: 0.95rem;
}

.feed-row-time {
    color: rgba(255,255,255,0.72);
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
}

.feed-empty {
    color: rgba(255,255,255,0.70);
    padding: 16px 0;
}

.dashboard-card--status .dashboard-card-head h3 {
    font-size: 1.9rem;
}

.status-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    margin-bottom: 16px;
}

.status-check {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #bff4c8;
    color: #1f7a38;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.status-list-v2 {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.status-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
}

.status-row strong {
    display: block;
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.status-row p {
    margin: 0;
    color: rgba(255,255,255,0.70);
}

.dashboard-footer-link {
    display: inline-block;
    margin-top: 18px;
    color: rgba(255,255,255,0.90);
    font-weight: 700;
}

.dashboard-shortcuts {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.shortcut-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(24, 52, 103, 0.92) 0%, rgba(20, 44, 87, 0.96) 100%);
    border: 1px solid rgba(255,255,255,0.06);
    color: #fff;
    transition: transform .18s ease, box-shadow .18s ease;
}

.shortcut-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(8, 22, 49, 0.22);
}

.shortcut-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.shortcut-card strong {
    display: block;
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.shortcut-card span {
    display: block;
    color: rgba(255,255,255,0.70);
    font-size: 0.92rem;
}

@media (max-width: 1280px) {
    .dashboard-stats-v2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-shortcuts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 980px) {
    .dashboard-hero-v2,
    .dashboard-main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-stats-v2,
    .dashboard-shortcuts {
        grid-template-columns: 1fr;
    }

    .feed-row {
        grid-template-columns: 1fr;
    }

    .feed-row-time {
        white-space: normal;
    }
}

.menu a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-icon {
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.menu-icon--img img,
.submenu-icon--img img {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.submenu-icon--img img {
    width: 18px;
    height: 18px;
}

.menu a.is-active {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

/* ===== SIDEBAR COLAPSÁVEL ===== */

.app {
    display: flex;
    min-height: 100vh;
    transition: all 0.25s ease;
}

.sidebar {
    width: 260px;
    min-width: 260px;
    height: 100vh;
    position: sticky;
    top: 0;
    align-self: flex-start;
    transition: width 0.25s ease, min-width 0.25s ease, padding 0.25s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.content {
    flex: 1;
    min-width: 0;
    transition: margin 0.25s ease;
}

.sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    flex-shrink: 0;
}

/* Área rolável dos itens do menu — scrollbar oculta; rolagem por roda / toque mantida */
.sidebar-nav-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overscroll-behavior: contain;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE / Edge legacy */
}

.sidebar-nav-scroll::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none; /* Chrome, Safari, Edge */
}

/* Desktop: só o bloco do menu rola; menu recolhido mantém overflow visível pelos flyouts */
@media (min-width: 901px) {
    .app:not(.app--sidebar-collapsed) .sidebar-nav-scroll {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .app.app--sidebar-collapsed .sidebar-nav-scroll {
        overflow: visible;
    }
}

@media (max-width: 900px) {
    .sidebar-nav-scroll {
        flex: 1 1 auto;
        min-height: 0;
        overflow: visible;
    }
}

.sidebar-toggle {
    border: 0;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: scale(1.03);
}

.menu a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-icon {
    width: 20px;
    min-width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.menu-label {
    white-space: nowrap;
}

.menu a.is-active {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

/* ESTADO FECHADO */
.app--sidebar-collapsed .sidebar {
    width: 88px;
    min-width: 88px;
    padding-left: 14px;
    padding-right: 14px;
}

.app--sidebar-collapsed .brand {
    display: none;
}

.app--sidebar-collapsed .sidebar-top {
    justify-content: center;
}

.app--sidebar-collapsed .menu a {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.app--sidebar-collapsed .menu-label {
    display: none;
}

.app--sidebar-collapsed .menu-icon {
    width: auto;
    min-width: auto;
    font-size: 1.2rem;
}

/* Desktop: menu recolhido — submenus em painel ao lado (evita texto cortado na barra 88px) */
@media (min-width: 901px) {
    .app--sidebar-collapsed .sidebar {
        overflow: visible;
        z-index: 160;
    }

    .app--sidebar-collapsed .menu {
        overflow: visible;
    }

    .app--sidebar-collapsed .menu-group {
        position: relative;
    }

    .app--sidebar-collapsed .menu-caret {
        display: none;
    }

    .app--sidebar-collapsed .menu-group-trigger {
        justify-content: center;
        gap: 0;
    }

    .app--sidebar-collapsed .menu-group-main {
        flex: 0 0 auto;
        justify-content: center;
        min-width: 0;
    }

    .app--sidebar-collapsed .menu-group.is-open .submenu,
    .app--sidebar-collapsed .submenu.is-open {
        display: flex !important;
        position: absolute;
        left: calc(100% + 8px);
        top: 0;
        margin: 0;
        padding: 10px 12px;
        min-width: 248px;
        max-width: min(92vw, 320px);
        max-height: min(72vh, 480px);
        overflow-y: auto;
        background: linear-gradient(180deg, #172c50 0%, #1f3865 100%);
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 16px;
        box-shadow: 12px 22px 48px rgba(0, 0, 0, 0.38);
        z-index: 170;
        border-left: none;
    }
}

html[data-theme="light"] .app--sidebar-collapsed .menu-group.is-open .submenu,
html[data-theme="light"] .app--sidebar-collapsed .submenu.is-open {
    background: #ffffff !important;
    border: 1px solid rgba(27, 45, 78, 0.14) !important;
    box-shadow: 12px 22px 48px rgba(27, 45, 78, 0.18) !important;
}

html[data-theme="light"] .app--sidebar-collapsed .submenu-link {
    color: #1b2d4e !important;
}

.dashboard-card--hero-compact {
    min-height: 130px;
    padding: 22px 24px;
    justify-content: center;
}

.dashboard-card--hero-compact h1 {
    margin: 0 0 6px;
    font-size: 1.9rem;
    line-height: 1.1;
}

.dashboard-card--hero-compact p {
    margin: 0;
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.76);
}

.dashboard-card--hero.dashboard-card--hero-with-pendencias {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(200px, min(34vw, 300px));
    gap: 18px 22px;
    align-items: stretch;
    min-height: 128px;
    flex-direction: unset;
    justify-content: unset;
}

.dashboard-card--hero.dashboard-card--hero-with-pendencias.dashboard-card--hero-compact {
    min-height: 118px;
}

.dashboard-hero-welcome {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dashboard-hero-pendencias,
.dashboard-hero-tips {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dashboard-pendencias-head,
.dashboard-tips-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.52);
    margin: 0 0 6px;
}

.dashboard-pendencias-head-note,
.dashboard-tips-head-note {
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: none;
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.38);
}

.dashboard-hero-tips__robot {
    position: relative;
    display: inline-block;
    width: 22px;
    height: 26px;
    flex-shrink: 0;
    animation: dashboard-hero-robot-float 2.8s ease-in-out infinite;
}

.dashboard-hero-tips__robot-head {
    position: absolute;
    top: 4px;
    left: 3px;
    width: 16px;
    height: 13px;
    border-radius: 5px;
    background: linear-gradient(165deg, #e2e8f0, #94a3b8);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.dashboard-hero-tips__robot-eye {
    position: absolute;
    top: 9px;
    width: 3px;
    height: 4px;
    border-radius: 50%;
    background: #0f172a;
    animation: dashboard-hero-robot-blink 4s ease-in-out infinite;
}

.dashboard-hero-tips__robot-eye--l { left: 7px; }
.dashboard-hero-tips__robot-eye--r { right: 7px; }

@keyframes dashboard-hero-robot-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

@keyframes dashboard-hero-robot-blink {
    0%, 48%, 52%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.2); }
}

.recent-carousel--hero-tips {
    width: 100%;
    margin-top: 0;
}

.recent-carousel--hero-tips .recent-carousel__viewport {
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.09);
    min-height: 0;
}

.recent-carousel--hero-tips .recent-carousel__slide {
    background: transparent;
    border: none;
    border-radius: 0;
}

.recent-carousel--hero-tips .recent-carousel__slide:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.06);
    border: none;
}

.recent-carousel--hero-tips .recent-carousel__slide--hero-tip {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: default;
}

.recent-carousel__hero-tip-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(56, 189, 248, 0.22);
    color: #bae6fd;
    font-size: 0.85rem;
}

.recent-carousel__hero-tip-title-wrap {
    flex: 1;
    min-width: 0;
}

.recent-carousel--hero-tips .recent-carousel__slide-title.recent-carousel__hero-tip-title {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgba(255, 255, 255, 0.92);
}

.recent-carousel--hero-tips .recent-carousel__slide--placeholder {
    opacity: 0.75;
}

.recent-carousel--hero-pendencias {
    width: 100%;
    margin-top: 0;
}

.recent-carousel--hero-pendencias .recent-carousel__viewport {
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.09);
    min-height: 0;
}

.recent-carousel--hero-pendencias .recent-carousel__slide {
    background: transparent;
    border: none;
    border-radius: 0;
}

.recent-carousel--hero-pendencias .recent-carousel__slide:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.06);
    border: none;
}

.recent-carousel--hero-pendencias .recent-carousel__slide.recent-carousel__slide--pendencia-compact {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
}

.recent-carousel__pendencia-title-wrap {
    flex: 1;
    min-width: 0;
}

.recent-carousel__pendencia-go {
    flex-shrink: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(186, 230, 253, 0.92);
    line-height: 1;
}

.recent-carousel__slide--pendencia {
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
}

.recent-carousel__slide--pendencia.recent-carousel__slide--placeholder {
    cursor: default;
}

.recent-carousel__pendencia-badge {
    display: inline-flex;
    flex-shrink: 0;
    width: fit-content;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(251, 112, 64, 0.22);
    color: #fec8b0;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.recent-carousel--hero-pendencias .recent-carousel__slide-title.recent-carousel__pendencia-title {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-carousel__dots--compact {
    margin-top: 6px;
}

@media (max-width: 960px) {
    .dashboard-card--hero.dashboard-card--hero-with-pendencias {
        grid-template-columns: 1fr;
    }
}

.hero-welcome-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #cfe3ff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}


/* ===== TOPO GLOBAL ===== */

.content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.content-body {
    padding: 20px;
}
.app-topbar {
    height: 72px;
    background: linear-gradient(180deg, #1e3a5f 0%, #1b3556 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 18px;
    position: sticky;
    top: 0;
    z-index: 30;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.topbar-search {
    width: 100%;
    max-width: 560px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    transition: all 0.2s ease;
}

.topbar-search:hover,
.topbar-search:focus-within {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
}

.topbar-search-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(186, 230, 253, 0.95);
    font-size: 1.05rem;
    line-height: 1;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.topbar-search-icon i {
    display: block;
    line-height: 1;
}

.topbar-search:hover .topbar-search-icon,
.topbar-search:focus-within .topbar-search-icon {
    background: rgba(255, 255, 255, 0.14);
    color: #f0f9ff;
    transform: scale(1.04);
}

.topbar-search input {
    border: 0;
    outline: none;
    width: 100%;
    background: transparent;
    font-size: 0.95rem;
    color: #ffffff;
}

.topbar-search input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.topbar-icon-btn,
.topbar-menu-mobile {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.topbar-icon-btn:hover,
.topbar-menu-mobile:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.03);
}

.topbar-user {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-menu-mobile {
    display: none;
}

@media (max-width: 900px) {
    .topbar-menu-mobile {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .topbar-search {
        max-width: 100%;
    }

    .topbar-left {
        min-width: 0;
        flex-shrink: 1;
    }

    .content-body {
        padding: 14px 12px;
    }

    .app-topbar {
        flex-wrap: wrap;
        row-gap: 10px;
        height: auto;
        min-height: 72px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .topbar-center {
        order: 3;
        flex: 1 1 100%;
        width: 100%;
    }
}

.brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 48px;
}

/* Logo do menu lateral — entrada + destaque em "Conecta" */
.brand--motion {
    gap: 0.28em;
    margin-bottom: 0;
    flex-wrap: nowrap;
    user-select: none;
}

.brand__word {
    display: inline-block;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(10px);
    animation: brandWordIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.brand__word--bloko {
    animation-delay: 0.06s;
}

.brand__word--conecta {
    animation-delay: 0.2s;
    background: linear-gradient(
        105deg,
        rgba(255, 255, 255, 0.92) 0%,
        #7dd3fc 38%,
        #3babd4 52%,
        rgba(255, 255, 255, 0.95) 100%
    );
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation:
        brandWordIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) forwards,
        brandConectaShine 5s ease-in-out 0.85s infinite;
}

.brand--motion.brand--replay .brand__word {
    opacity: 0;
    transform: translateY(10px);
    animation: none;
}

.brand--motion.brand--replay .brand__word--bloko {
    animation: brandWordIn 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.04s forwards;
}

.brand--motion.brand--replay .brand__word--conecta {
    animation:
        brandWordIn 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.16s forwards,
        brandConectaShine 5s ease-in-out 0.75s infinite;
}

@keyframes brandWordIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes brandConectaShine {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .brand__word,
    .brand__word--conecta {
        opacity: 1;
        transform: none;
        animation: none !important;
        color: inherit;
        background: none;
        -webkit-background-clip: border-box;
        background-clip: border-box;
    }
}

.brand-logo {
    max-height: 32px;
    width: auto;
    object-fit: contain;
}
.app--sidebar-collapsed .brand-logo {
    max-height: 28px;
}
.app--sidebar-collapsed .brand {
    justify-content: center;
}

.topbar-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.topbar-logo img {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.topbar-left {
    min-width: 180px;
}

.dashboard-card--bi,
.dashboard-card--bi-full {
    height: 510px;
    overflow: hidden;
}

.bi-frame-link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    flex: 1;
}

.bi-frame-wrap {
    height: 100%;
}

.bi-frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

@media (max-width: 980px) {
    .dashboard-card--bi-full {
        min-height: 380px;
    }

    .bi-frame-wrap,
    .bi-frame {
        min-height: 360px;
    }
}



.dashboard-card--recent {
    padding: 20px;
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.recent-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.recent-item:hover {
    background: rgba(255,255,255,0.08);
    transform: translateX(3px);
}

.recent-icon {
    opacity: 0.7;
}

.recent-empty {
    color: rgba(255,255,255,0.6);
}



.dashboard-card--recent {
    padding: 20px;
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.recent-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.recent-item:hover {
    background: rgba(255,255,255,0.08);
    transform: translateX(3px);
}

.recent-icon {
    opacity: 0.7;
}

.recent-empty {
    color: rgba(255,255,255,0.6);
}



.dashboard-card--recent {
    padding: 20px;
    min-height: 220px;
}





.side-tool-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    line-height: 1;
}

.side-tool-content h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 1.3rem;
}

.side-tool-content p {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.45;
}

.side-tool-link {
    color: #fff;
    font-weight: 700;
}





.side-tool-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    line-height: 1;
}

.side-tool-content h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 1.3rem;
}

.side-tool-content p {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.45;
}

.side-tool-link {
    color: #fff;
    font-weight: 700;
}

.side-tool-icon img {
    width: 32px;
    height: 32px;
}

body.modal-open {
    overflow: hidden;
}

.external-app-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.external-app-modal.is-open {
    display: block;
}

.external-app-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 18, 40, 0.55);
    backdrop-filter: blur(4px);
}

.external-app-modal__dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(520px, calc(100vw - 32px));
    transform: translate(-50%, -50%);
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(180deg, #203f6e 0%, #18345d 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.external-app-modal__header,
.external-app-modal__footer {
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.external-app-modal__header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.external-app-modal__body {
    padding: 22px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.5;
}

.external-app-modal__header h3 {
    margin: 0;
    color: #fff;
    font-size: 1.25rem;
}

.external-app-modal__close {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
}

.external-app-modal__footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    justify-content: flex-end;
}

.external-app-modal__button {
    border: 0;
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: 700;
    cursor: pointer;
}

.external-app-modal__button--secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.external-app-modal__button--primary {
    background: linear-gradient(180deg, #4d7cff 0%, #3461dc 100%);
    color: #fff;
}
.dashboard-bottom-tools {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-card--recent {
    padding: 20px;
    min-height: 180px;
}

.dashboard-bottom-tools {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.side-tool-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    min-height: 180px;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.side-tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(6, 18, 40, 0.22);
}

.side-tool-card--outlook {
    background: linear-gradient(180deg, #0f6cbd 0%, #0b4f8a 100%);
}

.side-tool-card--teams {
    background: linear-gradient(180deg, #3347b0 0%, #25378f 100%);
}

.side-tool-card--copilot {
    background: linear-gradient(180deg, #1f4f8f 0%, #163d70 100%);
}

.side-tool-icon {
    margin-bottom: 14px;
    line-height: 1;
}

.side-tool-icon img {
    width: 30px;
    height: 30px;
}

.side-tool-content h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 1.15rem;
    line-height: 1.2;
}

.side-tool-content p {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.45;
    font-size: 0.95rem;
}

.side-tool-link {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
}

@media (max-width: 1400px) {
    .dashboard-bottom {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .dashboard-bottom-tools {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .dashboard-bottom-tools {
        grid-template-columns: 1fr;
    }

    .dashboard-card--recent,
    .side-tool-card {
        min-height: auto;
    }
}


.dashboard-bottom-tools {
    display: grid;
    grid-template-columns: 1.7fr repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
    margin-top: 20px;
}

.side-tool-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    min-height: 180px;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.side-tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(6, 18, 40, 0.22);
}

.side-tool-card--recent {
    justify-content: flex-start;
}

.side-tool-card--planner {
    background: linear-gradient(180deg, #31752f 0%, #1f4f1e 100%);
}

.side-tool-card--outlook {
    background: linear-gradient(180deg, #0f6cbd 0%, #0b4f8a 100%);
}

.side-tool-card--teams {
    background: linear-gradient(180deg, #3347b0 0%, #25378f 100%);
}

.side-tool-card--copilot {
    background: linear-gradient(180deg, #1f4f8f 0%, #163d70 100%);
}

.side-tool-icon {
    margin-bottom: 14px;
    line-height: 1;
}

.side-tool-icon img {
    width: 30px;
    height: 30px;
}

.side-tool-content h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 1.15rem;
    line-height: 1.2;
}

.side-tool-content p {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.45;
    font-size: 0.95rem;
}

.side-tool-card--m365-heavy {
    min-height: 220px;
}

.side-tool-card--outlook-carousel {
    min-height: 188px;
}

.recent-carousel--outlook-ms {
    margin: 0 0 10px;
    width: 100%;
}

.recent-carousel--outlook-ms .recent-carousel__viewport {
    min-height: 96px;
    height: 96px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.recent-carousel--outlook-ms .recent-carousel__slide--outlook-mail {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 10px 12px;
    gap: 4px;
    justify-content: flex-start;
    max-height: 96px;
    overflow: hidden;
}

.recent-carousel--outlook-ms .recent-carousel__slide--outlook-mail:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.07);
}

.recent-carousel--outlook-ms .side-tool-ms-msg__subj {
    font-size: 0.78rem;
    line-height: 1.28;
}

.recent-carousel--outlook-ms .side-tool-ms-msg__meta {
    font-size: 0.68rem;
}

.recent-carousel--outlook-ms .side-tool-ms-msg__body {
    font-size: 0.71rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-carousel--outlook-ms .recent-carousel__slide-hint {
    margin-top: 2px;
    font-size: 0.7rem;
}

.recent-carousel--outlook-ms .recent-carousel__dots {
    margin-top: 8px;
}

.side-tool-ms-previews {
    margin: 2px 0 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.side-tool-ms-previews__empty {
    margin: 0;
    font-size: 0.87rem;
    line-height: 1.42;
    color: rgba(255, 255, 255, 0.74);
}

.side-tool-ms-previews--solo {
    gap: 8px;
}

.side-tool-ms-msg {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.side-tool-ms-msg__subj {
    font-weight: 800;
    font-size: 0.82rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.94);
}

.side-tool-ms-msg__meta {
    font-size: 0.71rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
}

.side-tool-ms-msg__body {
    font-size: 0.74rem;
    line-height: 1.42;
    color: rgba(255, 255, 255, 0.74);
}

.side-tool-ms-msg--teams .side-tool-ms-msg__body {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.side-tool-link {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.recent-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.recent-item:hover {
    background: rgba(255,255,255,0.08);
    transform: translateX(3px);
}

.recent-empty {
    color: rgba(255,255,255,0.6);
}

/* Carrossel — últimos acessos (home) */
.recent-carousel {
    margin-top: 8px;
}

.recent-carousel__viewport {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-radius: 14px;
    min-height: 118px;
    outline: none;
}

.recent-carousel__viewport::-webkit-scrollbar {
    display: none;
}

.recent-carousel__slide {
    flex: 0 0 100%;
    min-width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.recent-carousel__slide:hover {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(143, 227, 255, 0.35);
    transform: translateY(-1px);
}

.recent-carousel__slide-title {
    font-weight: 800;
    font-size: 1.02rem;
    line-height: 1.3;
    color: #fff;
}

.recent-carousel__slide-meta {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 600;
}

.recent-carousel__slide-hint {
    margin-top: auto;
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(186, 230, 253, 0.95);
}

.recent-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.recent-carousel__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.recent-carousel__dot:hover,
.recent-carousel__dot.is-active {
    background: #7dd3fc;
    transform: scale(1.15);
}

.side-tool-card--recent .recent-carousel__dot.is-active {
    background: #bae6fd;
}

@media (prefers-reduced-motion: reduce) {
    .recent-carousel__viewport {
        scroll-behavior: auto;
    }

    .recent-carousel__slide {
        transition: none;
    }

    .recent-carousel__slide:hover {
        transform: none;
    }
}

@media (max-width: 1500px) {
    .dashboard-bottom-tools {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .side-tool-card--recent {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1100px) {
    .dashboard-bottom-tools {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .dashboard-bottom-tools {
        grid-template-columns: 1fr;
    }

    .side-tool-card {
        min-height: auto;
    }
}
.side-tool-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

.side-tool-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agenda-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-top: 10px;
}

.agenda-item {
    min-width: 180px;
    background: rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 12px;
    flex-shrink: 0;
    transition: 0.2s;
}

.agenda-item:hover {
    transform: translateY(-3px);
}

.dashboard-card--agenda {
    overflow: hidden;
}

#miniCalendar {
    min-height: 360px;
}

#miniCalCard .fc {
    --fc-border-color: rgba(255, 255, 255, 0.08);
    --fc-page-bg-color: transparent;
}

#miniCalCard .fc-scrollgrid {
    border-radius: 12px;
    overflow: hidden;
}

#miniCalCard .fc-toolbar.fc-header-toolbar {
    margin: 0 0 12px;
}

#miniCalCard .fc-toolbar-title {
    font-size: 1.05rem;
    font-weight: 900;
    color: #ffffff;
}

#miniCalCard .fc-button {
    padding: .2rem .5rem;
    font-size: .82rem;
    border-radius: .55rem;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.06);
    color: #fff;
}

#miniCalCard .fc-col-header-cell-cushion {
    padding: .25rem 0;
    font-size: .75rem;
    color: rgba(255,255,255,0.75);
    font-weight: 700;
    text-transform: lowercase;
}

#miniCalCard .fc-daygrid-day-number {
    color: rgba(255,255,255,0.86);
    font-weight: 700;
    font-size: .78rem;
    text-decoration: none;
}

#miniCalCard .fc-daygrid-day {
    height: 58px;
}

#miniCalCard .fc-daygrid-event {
    font-size: .72rem;
    line-height: 1.1;
    padding: 2px 6px;
    border-radius: 8px;
    border: 0;
    box-shadow: 0 6px 14px rgba(13,26,48,.06);
}

#miniCalCard .fc-daygrid-day.fc-day-today {
    background: rgba(255, 248, 230, 0.12);
}

.dashboard-card--agenda {
    height: 260px; /* mesmo tamanho do ambiente antigo */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
#miniCalendar {
    flex: 1;
    min-height: 0;
}

#miniCalCard .fc-daygrid-day {
    height: 42px;
}

#miniCalCard .fc-daygrid-event {
    font-size: 0.65rem;
    padding: 1px 4px;
}

#miniCalCard .fc-toolbar-title {
    font-size: 0.9rem;
}

.dashboard-card--agenda {
    height: 260px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.agenda-mini-wrap {
    flex: 1;
    overflow: hidden;
}

.agenda-mini-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
    overflow-y: auto;
    max-height: 170px;
    padding-right: 4px;
}

.agenda-mini-item {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.05);
}

.agenda-mini-item strong {
    display: block;
    color: #fff;
    margin-top: 4px;
    font-size: 0.95rem;
    line-height: 1.3;
}

.agenda-mini-date {
    display: block;
    color: rgba(255,255,255,0.72);
    font-size: 0.82rem;
    font-weight: 600;
}

.agenda-mini-empty {
    color: rgba(255,255,255,0.70);
    padding: 12px 0;
}

.external-app-modal__dialog--wide {
    width: min(1100px, calc(100vw - 40px));
}

#agendaCalendar {
    min-height: 520px;
}
/* Container da agenda */


.agenda-mini-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
    overflow-y: auto;
    max-height: 170px;
    padding-right: 2px;

    /* Firefox */
    scrollbar-width: none;

    /* IE / Edge legado */
    -ms-overflow-style: none;
}

.agenda-mini-list::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.agenda-mini-list::-webkit-scrollbar-track {
    display: none;
}

.agenda-mini-list::-webkit-scrollbar-thumb {
    display: none;
}

.agenda-mini-wrap {
    position: relative;
    overflow: hidden;
}

.agenda-mini-wrap::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 28px;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent, rgba(20, 45, 90, 0.96));
}


.agenda-list {
    max-height: 220px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.agenda-list::-webkit-scrollbar {
    display: none;
}

.agenda-list {
    position: relative;
}

.agenda-list::after {
    content: "";
    position: sticky;
    bottom: 0;
    display: block;
    height: 30px;
    background: linear-gradient(to bottom, transparent, #1e3a5f);
}

/* ===== AGENDA COMPLETA - EVENTOS DENTRO DO QUADRADO ===== */
#agendaCalendar .fc-daygrid-day-frame {
    overflow: hidden;
}

#agendaCalendar .fc-daygrid-event-harness {
    max-width: 100%;
}

#agendaCalendar .fc-daygrid-event {
    max-width: 100%;
    overflow: hidden;
    border-radius: 6px;
    box-sizing: border-box;
}

#agendaCalendar .fc-event-main {
    overflow: hidden;
}

#agendaCalendar .fc-event-title {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: keep-all;
}

#agendaCalendar .fc-daygrid-block-event .fc-event-time,
#agendaCalendar .fc-daygrid-block-event .fc-event-title {
    padding: 0 4px;
}

#agendaCalendar .fc-h-event {
    margin: 0;
}

:root:not([data-theme="light"]) #agendaCalendar .fc-daygrid-more-link {
    color: #7dd3fc;
    font-weight: 700;
}

html[data-theme="light"] #agendaCalendar .fc-daygrid-more-link {
    font-weight: 700;
}

#agendaCalendar .fc-event-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
    line-height: 1.1;
}

/* Agenda completa — base */
#agendaCalendar .fc-toolbar.fc-header-toolbar {
    margin-bottom: 14px;
}

#agendaCalendar .fc-button {
    border-radius: 10px;
    font-weight: 700;
    box-shadow: none;
}

#agendaCalendar .fc-col-header-cell-cushion {
    padding: 0.35rem 0;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: lowercase;
}

#agendaCalendar .fc-daygrid-day-number {
    font-weight: 700;
    text-decoration: none;
}

#agendaCalendar .fc-scrollgrid {
    border-radius: 14px;
    overflow: hidden;
}

/* Agenda completa — tema escuro */
:root:not([data-theme="light"]) #agendaModal .external-app-modal__body {
    color-scheme: dark;
}

:root:not([data-theme="light"]) #agendaCalendar .fc {
    --fc-border-color: rgba(255, 255, 255, 0.12);
    --fc-page-bg-color: rgba(8, 22, 44, 0.45);
    --fc-neutral-bg-color: rgba(255, 255, 255, 0.06);
    --fc-neutral-text-color: rgba(255, 255, 255, 0.9);
    --fc-button-bg-color: rgba(255, 255, 255, 0.08);
    --fc-button-border-color: rgba(255, 255, 255, 0.14);
    --fc-button-text-color: #ffffff;
    --fc-button-hover-bg-color: rgba(255, 255, 255, 0.14);
    --fc-button-hover-border-color: rgba(255, 255, 255, 0.2);
    --fc-button-active-bg-color: rgba(59, 171, 212, 0.28);
    --fc-button-active-border-color: rgba(59, 171, 212, 0.45);
    --fc-today-bg-color: rgba(59, 171, 212, 0.2);
    --fc-now-indicator-color: #3babd4;
    --fc-more-link-text-color: #7dd3fc;
}

:root:not([data-theme="light"]) #agendaCalendar .fc-toolbar-title {
    font-size: 1.2rem;
    font-weight: 900;
    color: #ffffff;
}

:root:not([data-theme="light"]) #agendaCalendar .fc-col-header-cell-cushion {
    color: rgba(255, 255, 255, 0.78);
}

:root:not([data-theme="light"]) #agendaCalendar .fc-daygrid-day-number {
    color: rgba(255, 255, 255, 0.9);
}

:root:not([data-theme="light"]) #agendaCalendar .fc-day-other .fc-daygrid-day-number {
    color: rgba(255, 255, 255, 0.45);
}

:root:not([data-theme="light"]) #agendaCalendar .fc-daygrid-day.fc-day-today {
    background: rgba(59, 171, 212, 0.14);
}

:root:not([data-theme="light"]) #agendaCalendar .fc-list-day-cushion,
:root:not([data-theme="light"]) #agendaCalendar .fc-list-event-title,
:root:not([data-theme="light"]) #agendaCalendar .fc-list-event-time {
    color: rgba(255, 255, 255, 0.9);
}

.feed-scroll {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 6px;
}

/* esconder scrollbar */
.feed-scroll::-webkit-scrollbar {
    width: 0;
}

.feed-card {
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: 0.2s;
    overflow: hidden;
}

.feed-card:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.06);
}

.feed-card-image img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.feed-card-body {
    padding: 12px;
}

.feed-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    opacity: 0.7;
}
.dashboard-card--feed {
    height: 470px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dashboard-feed-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.dashboard-feed-list::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.feed-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.feed-scroll::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.dashboard-card--feed {
    overflow: hidden;
}

.feed-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: 0.2s ease;
}

.feed-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.feed-img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.feed-content {
    flex: 1;
    min-width: 0;
}

.feed-content h4 {
    margin: 0 0 6px;
    font-size: 16px;
}

.feed-content p {
    margin: 0 0 8px;
    font-size: 13px;
    opacity: .85;
}

.feed-meta,
.feed-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
}

.feed-news-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.feed-news-modal.is-open {
    display: block;
}

.feed-news-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
}

.feed-news-modal__dialog {
    position: absolute;
    inset: 20px;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feed-news-modal__header {
    height: 56px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1B2D4E;
    color: #fff;
}

.feed-news-modal__close {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

.feed-news-modal__body {
    flex: 1;
}

.feed-news-modal__frame {
    width: 100%;
    height: 100%;
    border: 0;
}
.feed-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: 0.2s ease;
    align-items: flex-start;
    min-height: 96px;
}

.feed-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.feed-img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.08);
}

.feed-content {
    flex: 1;
    min-width: 0;
}

.feed-content h4 {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.3;
    color: #ffffff;
    font-weight: 700;
}

.feed-content p {
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255,255,255,0.78);
}

.feed-meta,
.feed-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
}

.feed-meta {
    color: rgba(255,255,255,0.62);
}

.feed-stats {
    color: rgba(255,255,255,0.9);
    font-weight: 700;
}

.feed-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.feed-scroll::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.dashboard-card--feed {
    height: 530px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.feed-news-modal__dialog {
    position: absolute;
    inset: 12px;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feed-news-modal__body {
    flex: 1;
    overflow: auto;
    min-height: 0;
}

.feed-modal-image-wrap {
    width: 100%;
    height: 320px;
    border-radius: 16px;
    overflow: hidden;
    background: #e5e7eb;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feed-modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
background: #f8fafc;
    display: block;
}

.feed-news-modal__body {
    flex: 1;
    overflow: auto;
    min-height: 0;
    background: #ffffff;
}
.feed-news-modal__dialog {
    position: absolute;
    inset: 12px;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feed-news-modal__body {
    flex: 1;
    overflow: auto;
    min-height: 0;
    background: #f8fafc;
}

.feed-modal-post {
    padding: 18px;
}

.feed-modal-main {
    display: grid;
    grid-template-columns: minmax(320px, 520px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.feed-modal-media {
    background: #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feed-modal-image {
    width: 100%;
    height: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
    background: #eef2f7;
}

.feed-modal-content {
    min-width: 0;
}

.feed-modal-post-title {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.15;
    color: #183157;
    font-weight: 800;
}

.feed-modal-post-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    font-size: 13px;
    color: #64748b;
}

.feed-modal-post-body {
    color: #1f2937;
    line-height: 1.7;
    font-size: 15px;
}

.feed-modal-reactions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.feed-modal-chip {
    padding: 8px 12px;
    border-radius: 999px;
    background: #eef2ff;
    color: #1e3a5f;
    font-size: 13px;
    font-weight: 700;
}

.feed-modal-files {
    margin-top: 22px;
}

.feed-modal-files h3,
.feed-modal-comments h3 {
    margin: 0 0 12px;
    font-size: 18px;
    color: #183157;
    font-weight: 800;
}

.feed-modal-file-list,
.feed-modal-comment-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feed-modal-file-item,
.feed-modal-comment {
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.feed-modal-comment {
    background: #fff;
}

.feed-modal-comment-text {
    color: #334155;
    line-height: 1.5;
    font-size: 14px;
}

.feed-modal-comments {
    margin-top: 24px;
}

.feed-modal-empty {
    color: #64748b;
    font-size: 14px;
}

@media (max-width: 980px) {
    .feed-modal-main {
        grid-template-columns: 1fr;
    }

    .feed-modal-media {
        min-height: 260px;
    }

    .feed-modal-post-title {
        font-size: 26px;
    }
}

/* Modal de publicação — tema escuro (padrão do portal) */
html[data-theme="dark"] .feed-news-modal__body,
:root:not([data-theme="light"]) .feed-news-modal__body {
    flex: 1;
    overflow: auto;
    min-height: 0;
    background: linear-gradient(180deg, #0f2a44 0%, #1e3a5f 100%);
}

html[data-theme="dark"] .feed-news-modal__dialog,
:root:not([data-theme="light"]) .feed-news-modal__dialog {
    background: linear-gradient(180deg, #152b47 0%, #1a3558 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .feed-modal-post-title,
:root:not([data-theme="light"]) .feed-modal-post-title {
    color: #ffffff;
}

html[data-theme="dark"] .feed-modal-post-meta,
:root:not([data-theme="light"]) .feed-modal-post-meta {
    color: #cbd5f5;
}

html[data-theme="dark"] .feed-modal-post-body,
:root:not([data-theme="light"]) .feed-modal-post-body {
    color: #e2e8f0;
}

html[data-theme="dark"] .feed-modal-comments h3,
html[data-theme="dark"] .feed-modal-files h3,
:root:not([data-theme="light"]) .feed-modal-comments h3,
:root:not([data-theme="light"]) .feed-modal-files h3 {
    color: #ffffff;
}

html[data-theme="dark"] .feed-modal-comment,
html[data-theme="dark"] .feed-modal-file-item,
:root:not([data-theme="light"]) .feed-modal-comment,
:root:not([data-theme="light"]) .feed-modal-file-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #f8fbff;
}

html[data-theme="dark"] .feed-modal-comment-text,
html[data-theme="dark"] .feed-modal-empty,
:root:not([data-theme="light"]) .feed-modal-comment-text,
:root:not([data-theme="light"]) .feed-modal-empty {
    color: #dbe7f5;
}

.feed-modal-loading {
    padding: 24px;
    color: #e2e8f0;
    font-size: 16px;
}

.feed-modal-loading p {
    margin: 0;
}

.feed-modal-main--center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.feed-modal-media {
    background: transparent;
    border-radius: 20px;
    overflow: hidden;
    max-width: 420px;
    width: 100%;
    margin-bottom: 20px;
}

.feed-modal-image {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.feed-modal-post-title {
    color: #ffffff;
}

.feed-modal-post-meta {
    color: #cbd5f5;
}

.feed-modal-post-body {
    color: #e2e8f0;
}
.feed-modal-comment,
.feed-modal-file-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: #e2e8f0;
}

.feed-modal-comments h3 {
    color: #ffffff;
}

.feed-modal-empty {
    color: #dbe7f5;
}

.feed-modal-comment {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 14px;
    padding: 12px 14px;
}

.feed-modal-comment-text {
    color: #f8fbff;
    line-height: 1.5;
    font-size: 14px;
}

.feed-modal-media {
    position: relative;
    background: transparent;
    border-radius: 20px;
    overflow: hidden;
    max-width: 420px;
    width: 100%;
    margin-bottom: 20px;
}

.feed-modal-zoom-btn {
    position: absolute;
    right: 12px;
    bottom: 12px;
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(6px);
}

.feed-modal-zoom-btn:hover {
    background: rgba(15, 23, 42, 0.92);
}

.feed-image-zoom-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
}

.feed-image-zoom-modal.is-open {
    display: block;
}

.feed-image-zoom-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.82);
}

.feed-image-zoom-content {
    position: absolute;
    inset: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feed-image-zoom-img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.45);
    background: #fff;
}

.feed-image-zoom-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

.feed-modal-content {
    max-width: 900px;
    width: 100%;
}

.feed-modal-post-title {
    color: #ffffff;
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.15;
    font-weight: 800;
}

.feed-modal-post-meta {
    color: #cbd5f5;
    margin-bottom: 16px;
    font-size: 13px;
}

.feed-modal-post-body {
    color: #e2e8f0;
    line-height: 1.7;
    font-size: 15px;
    text-align: left;
}

.feed-modal-reactions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.feed-modal-chip {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.feed-modal-files {
    margin-top: 22px;
    text-align: left;
}

.feed-modal-files h3,
.feed-modal-comments h3 {
    margin: 0 0 12px;
    font-size: 18px;
    color: #ffffff;
    font-weight: 800;
}

.feed-modal-file-list,
.feed-modal-comment-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feed-modal-file-item,
.feed-modal-comment {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 14px;
    padding: 12px 14px;
    color: #f8fbff;
}

.feed-modal-comment-text {
    color: #f8fbff;
    line-height: 1.5;
    font-size: 14px;
}

.feed-modal-comments {
    margin-top: 24px;
    text-align: left;
}

.feed-modal-empty {
    color: #dbe7f5;
    font-size: 14px;
}

.feed-image-zoom-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
}

.feed-image-zoom-modal.is-open {
    display: block;
}

.feed-image-zoom-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.82);
}

.feed-image-zoom-content {
    position: absolute;
    inset: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feed-image-zoom-img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.45);
    background: #fff;
}

.feed-image-zoom-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .feed-modal-post-title {
        font-size: 26px;
    }

    .feed-modal-media {
        max-width: 100%;
    }

    .feed-image-zoom-content {
        inset: 10px;
    }
}

.feed-card--hero {
    position: relative;
    min-height: 110px;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 14px;
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.05);
}

.feed-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.feed-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8,20,40,0.82) 0%, rgba(8,20,40,0.52) 45%, rgba(8,20,40,0.20) 100%);
}

.feed-card-hero-content {
    position: relative;
    z-index: 2;
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 110px;
}

.feed-card-hero-content h4 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1.05rem;
    line-height: 1.2;
    font-weight: 800;
    max-width: 78%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.feed-card-hero-content .feed-meta {
    color: rgba(255,255,255,0.78);
    font-size: 0.82rem;
    margin-bottom: 8px;
}

.feed-card-hero-content .feed-stats {
    display: flex;
    gap: 12px;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
}

.feed-card--hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.18);
}




/*********************/

/* Comunicados — card imagem + painel (dashboard home) */
.feed-card--hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
    align-items: stretch;
    min-height: 156px;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 14px;
    background: #0c1c36;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feed-card-media {
    position: relative;
    min-height: 156px;
    overflow: hidden;
}

.feed-card--hero .feed-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.feed-card--hero .feed-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(8, 20, 40, 0.12) 0%,
        rgba(8, 20, 40, 0.35) 100%
    );
}

.feed-card-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    min-width: 0;
    padding: 14px 16px;
    background: linear-gradient(180deg, rgba(14, 32, 58, 0.98), rgba(8, 20, 40, 0.99));
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.feed-card-panel h4,
.feed-card-hero-right h4 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 800;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feed-card-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 12px;
}

.feed-card-panel .feed-meta,
.feed-card-hero-right .feed-meta {
    margin: 0;
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.8rem;
}

.feed-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 0;
    flex: 1 1 auto;
}

.feed-comment-carousel--home {
    display: none !important;
}

/* legado: layout antigo hero-content */
.feed-card-hero-content {
    position: relative;
    z-index: 2;
    min-height: 126px;
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    padding: 0;
}

.feed-card-hero-right {
    width: min(430px, 48%);
    min-width: 320px;
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    background: linear-gradient(90deg, rgba(8,20,40,0.05), rgba(8,20,40,0.22));
    backdrop-filter: blur(2px);
}

.feed-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: rgba(255,255,255,0.10);
    color: #fff;
    border-radius: 999px;
    padding: 8px 13px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: .18s ease;
    position: relative;
    z-index: 3;
}

.feed-action-btn i {
    font-size: 0.95em;
    line-height: 1;
}

.feed-action-btn:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-1px);
}

.feed-action-btn.is-active {
    background: rgba(59,171,212,0.28);
    box-shadow: 0 0 0 1px rgba(59,171,212,0.35) inset;
}

.feed-action-btn--accent {
    background: rgba(45, 212, 191, 0.22);
    color: #ecfdf5;
    box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.4) inset;
}

.feed-action-btn--accent:hover {
    background: rgba(45, 212, 191, 0.34);
    transform: translateY(-1px);
}

.feed-action-btn--danger {
    background: rgba(248, 113, 113, 0.18);
    color: #fecaca;
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.35) inset;
}

.feed-action-btn--danger:hover {
    background: rgba(248, 113, 113, 0.28);
}

.feed-comment-carousel {
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    color: #e8f1fb;
    font-size: 0.82rem;
    line-height: 1.35;
}

.feed-comment-carousel__item {
    animation: fadeSlideComment .35s ease;
}

.feed-comment-carousel__author {
    font-weight: 800;
    color: #fff;
    margin-right: 6px;
}

.feed-comment-carousel__empty {
    color: rgba(255,255,255,0.72);
}

@keyframes fadeSlideComment {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 860px) {
    .feed-card--hero {
        grid-template-columns: 1fr;
        grid-template-rows: 108px auto;
        min-height: 0;
    }

    .feed-card-media {
        min-height: 108px;
    }

    .feed-card-panel {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .feed-card-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .feed-stats {
        justify-content: flex-start;
    }

    .feed-card-hero-right {
        width: 100%;
        min-width: 0;
    }

    .feed-card--hero .feed-card-overlay {
        background: linear-gradient(
            180deg,
            rgba(8, 20, 40, 0.15) 0%,
            rgba(8, 20, 40, 0.45) 100%
        );
    }
}

.feed-card--social {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
    padding: 14px;
    margin-bottom: 14px;
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
}

.feed-card-media {
    position: relative;
    min-height: 120px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255,255,255,0.06);
}

.feed-card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.feed-card-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-width: 0;
}

.feed-card-side h4 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.2;
    font-weight: 800;
}

.feed-card-side .feed-meta {
    color: rgba(255,255,255,0.72);
    font-size: 0.84rem;
    margin-bottom: 12px;
}

.feed-actions-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.feed-action-btn {
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.10);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: .18s ease;
}

.feed-action-btn:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-1px);
}

.feed-action-btn.is-active {
    background: rgba(255,255,255,0.22);
    box-shadow: 0 0 0 2px rgba(255,255,255,0.12) inset;
}

.feed-action-btn--accent {
    background: rgba(45, 212, 191, 0.22);
    color: #ecfdf5;
    box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.4) inset;
}

.feed-action-btn--accent:hover {
    background: rgba(45, 212, 191, 0.34);
    transform: translateY(-1px);
}

.feed-comment-carousel {
    width: 100%;
    min-height: 52px;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.06);
}

.feed-comment-carousel-track {
    position: relative;
    min-height: 52px;
}

.feed-comment-carousel .feed-comment-item {
    padding: 12px 14px;
    color: #eef6ff;
    font-size: 0.88rem;
    line-height: 1.35;
}

.feed-comment-carousel .feed-comment-author {
    font-weight: 800;
    color: #ffffff;
}

.feed-comment-carousel .feed-comment-text {
    color: rgba(255,255,255,0.86);
}

/* Modal de comentário (feed / comunicados) — alinhado ao publish-modal */
.feed-comment-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
}

.feed-comment-modal.is-open {
    display: block;
}

.feed-comment-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 18, 40, 0.68);
    backdrop-filter: blur(5px);
    animation: fadeIn .18s ease;
}

.feed-comment-modal__dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(560px, calc(100vw - 24px));
    transform: translate(-50%, -50%) scale(.96);
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(180deg, #203f6e 0%, #18345d 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
    color: #f1f5f9;
    color-scheme: dark;
    animation: popIn .2s ease forwards;
}

.feed-comment-modal__header {
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.feed-comment-modal__header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
}

.feed-comment-modal__close {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.feed-comment-modal__close:hover {
    background: rgba(255, 255, 255, 0.14);
}

.feed-comment-modal__body {
    padding: 18px;
}

.feed-comment-modal__textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 14px;
    font: inherit;
    outline: none;
}

.feed-comment-modal__textarea::placeholder {
    color: rgba(255, 255, 255, 0.56);
}

.feed-comment-modal__textarea:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(59, 171, 212, 0.55);
    box-shadow: 0 0 0 4px rgba(59, 171, 212, 0.15);
}

.feed-comment-modal__footer {
    padding: 0 18px 18px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 2px;
    padding-top: 14px;
}

.feed-comment-modal__btn {
    border: 0;
    border-radius: 12px;
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer;
}

.feed-comment-modal__btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.feed-comment-modal__btn--ghost:hover {
    background: rgba(255, 255, 255, 0.14);
}

.feed-comment-modal__btn--primary {
    background: linear-gradient(135deg, #2270aa, #3babd4);
    color: #fff;
}

.feed-comment-modal__hint {
    margin: 0 0 10px;
    font-size: 12px;
    color: rgba(148, 163, 184, 0.95);
}

.feed-comment-modal__body--mentions {
    position: relative;
}

.feed-mention-wrap {
    position: relative;
}

.feed-mention-dropdown {
    position: fixed;
    z-index: 1000002;
    max-height: 220px;
    overflow-y: auto;
    border-radius: 12px;
    background: #0f172a;
    border: 1px solid rgba(56, 189, 248, 0.45);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(56, 189, 248, 0.15);
    animation: feedMentionDropdownIn 0.16s ease-out;
}

.feed-mention-dropdown.is-open {
    display: block;
}

@keyframes feedMentionDropdownIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feed-mention-dropdown__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    background: transparent;
    color: #e2e8f0;
    text-align: left;
    cursor: pointer;
    font-size: 13px;
}

.feed-mention-dropdown__item:hover {
    background: rgba(56, 189, 248, 0.15);
}

.feed-mention-dropdown__item span {
    font-size: 11px;
    color: rgba(148, 163, 184, 0.9);
}

.feed-comments-thread {
    margin-top: 12px;
    max-height: 220px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 12px 10px 10px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(148, 163, 184, 0.12);
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 171, 212, 0.42) transparent;
}

/* Scrollbars — modal de publicação, comentários e menções */
.feed-news-modal__body,
.feed-mention-dropdown {
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 171, 212, 0.42) transparent;
}

.feed-news-modal__body::-webkit-scrollbar,
.feed-comments-thread::-webkit-scrollbar,
.feed-mention-dropdown::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

.feed-news-modal__body::-webkit-scrollbar-track,
.feed-comments-thread::-webkit-scrollbar-track,
.feed-mention-dropdown::-webkit-scrollbar-track {
    background: transparent;
    margin: 6px 0;
}

.feed-news-modal__body::-webkit-scrollbar-thumb,
.feed-comments-thread::-webkit-scrollbar-thumb,
.feed-mention-dropdown::-webkit-scrollbar-thumb {
    background: rgba(59, 171, 212, 0.38);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.feed-news-modal__body::-webkit-scrollbar-thumb:hover,
.feed-comments-thread::-webkit-scrollbar-thumb:hover,
.feed-mention-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(96, 196, 235, 0.62);
    background-clip: padding-box;
}

.feed-news-modal__body::-webkit-scrollbar-corner,
.feed-comments-thread::-webkit-scrollbar-corner {
    background: transparent;
}

html[data-theme="dark"] .feed-news-modal__body::-webkit-scrollbar-track,
html[data-theme="dark"] .feed-comments-thread::-webkit-scrollbar-track,
:root:not([data-theme="light"]) .feed-news-modal__body::-webkit-scrollbar-track,
:root:not([data-theme="light"]) .feed-comments-thread::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
}

.feed-comments-thread--home {
    margin-top: 10px;
}

.feed-comments-thread__empty {
    font-size: 12px;
    color: rgba(148, 163, 184, 0.75);
}

.feed-comment-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.feed-comment-item:last-child {
    border-bottom: 0;
}

.feed-comment-item__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 4px;
}

.feed-comment-item__author {
    font-size: 12px;
    color: #f8fafc;
}

.feed-comment-item__date {
    font-size: 11px;
    color: rgba(148, 163, 184, 0.8);
}

.feed-comment-item__text {
    font-size: 13px;
    line-height: 1.45;
    color: rgba(226, 232, 240, 0.95);
    word-break: break-word;
}

.feed-mention {
    color: #38bdf8;
    font-weight: 700;
}

.feed-comment-item__actions {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.feed-comment-delete-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(248, 113, 113, 0.12);
    color: #fca5a5;
    font-size: 12px;
    cursor: pointer;
}

.feed-comment-delete-btn:hover {
    background: rgba(248, 113, 113, 0.22);
    color: #fecaca;
}

.feed-comment-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(203, 213, 225, 0.9);
    font-size: 12px;
    cursor: pointer;
}

.feed-comment-like-btn.is-active {
    color: #f87171;
    background: rgba(248, 113, 113, 0.12);
}

.feed-comment-like-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

html[data-theme="light"] .feed-mention-dropdown {
    background: #fff;
    border-color: rgba(27, 45, 78, 0.15);
}

html[data-theme="light"] .feed-mention-dropdown__item {
    color: #1e293b;
}

html[data-theme="light"] .feed-comments-thread {
    background: #f0f4f8;
    border-color: rgba(27, 45, 78, 0.12);
    scrollbar-color: rgba(34, 112, 170, 0.38) rgba(27, 45, 78, 0.05);
}

html[data-theme="light"] .feed-news-modal__body,
html[data-theme="light"] .feed-mention-dropdown {
    scrollbar-color: rgba(34, 112, 170, 0.38) rgba(27, 45, 78, 0.05);
}

html[data-theme="light"] .feed-news-modal__body::-webkit-scrollbar-thumb,
html[data-theme="light"] .feed-comments-thread::-webkit-scrollbar-thumb,
html[data-theme="light"] .feed-mention-dropdown::-webkit-scrollbar-thumb {
    background: rgba(34, 112, 170, 0.28);
    background-clip: padding-box;
}

html[data-theme="light"] .feed-news-modal__body::-webkit-scrollbar-thumb:hover,
html[data-theme="light"] .feed-comments-thread::-webkit-scrollbar-thumb:hover,
html[data-theme="light"] .feed-mention-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(34, 112, 170, 0.48);
    background-clip: padding-box;
}

html[data-theme="light"] .feed-news-modal__body::-webkit-scrollbar-track,
html[data-theme="light"] .feed-comments-thread::-webkit-scrollbar-track,
html[data-theme="light"] .feed-mention-dropdown::-webkit-scrollbar-track {
    background: rgba(27, 45, 78, 0.04);
    border-radius: 999px;
}

html[data-theme="light"] .feed-comments-thread__empty {
    color: rgba(27, 45, 78, 0.62);
}

html[data-theme="light"] .feed-comments-thread .feed-comment-item {
    border-bottom-color: rgba(27, 45, 78, 0.1);
}

html[data-theme="light"] .feed-comment-item__author {
    color: #0f172a;
}

html[data-theme="light"] .feed-comment-item__date {
    color: rgba(27, 45, 78, 0.58);
}

html[data-theme="light"] .feed-comment-item__text {
    color: #1e293b;
}

html[data-theme="light"] .feed-mention {
    color: #0369a1;
}

html[data-theme="light"] .feed-comment-like-btn {
    background: rgba(27, 45, 78, 0.08);
    color: #475569;
}

html[data-theme="light"] .feed-comment-like-btn.is-active {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.12);
}

html[data-theme="light"] .feed-comment-like-btn:hover {
    background: rgba(27, 45, 78, 0.14);
}

html[data-theme="light"] .feed-comment-delete-btn {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
}

html[data-theme="light"] .feed-comment-delete-btn:hover {
    background: rgba(220, 38, 38, 0.16);
    color: #991b1b;
}

.feed-comment-modal__btn--primary:hover {
    filter: brightness(1.06);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popIn {
    from { transform: translate(-50%, -50%) scale(.96); opacity: 0; }
    to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

@media (max-width: 760px) {
    .feed-card--social {
        grid-template-columns: 1fr;
    }

    .feed-card-media {
        min-height: 160px;
    }
}

.dashboard-main-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 18px;
    align-items: stretch;
}

.dashboard-card--feed {
    height: 510px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dashboard-card--bi,
.dashboard-card--bi-full {
    height: 510px;
    overflow: hidden;
}

.feed-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.feed-scroll::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.bi-frame-wrap {
    height: 100%;
}

.bi-frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ===== PÁGINA: TODAS AS PUBLICAÇÕES ===== */

.news-feed-page {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.news-feed-page__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.news-feed-page__title h1 {
    margin: 0;
    color: #ffffff;
    font-size: 2.2rem;
    line-height: 1.08;
}

.news-feed-page__title p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.98rem;
    line-height: 1.5;
}

.news-feed-page__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.jornal-publish-hint {
    margin-top: 10px;
    max-width: 560px;
    font-size: 0.82rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.58);
}

.dashboard-card--feed .jornal-publish-hint {
    color: rgba(148, 163, 184, 0.95);
}

.news-feed-page__list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.news-feed-page__more-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    padding-bottom: 8px;
}

.news-feed-page__more-btn {
    border: 0;
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(135deg, #2270aa 0%, #3babd4 100%);
    box-shadow: 0 10px 24px rgba(34, 112, 170, 0.28);
    transition: filter 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.news-feed-page__more-btn:hover:not(:disabled) {
    filter: brightness(1.06);
    box-shadow: 0 12px 28px rgba(34, 112, 170, 0.34);
}

.news-feed-page__more-btn:disabled,
.news-feed-page__more-btn.is-loading {
    opacity: 0.72;
    cursor: wait;
}

.news-feed-page__more-meta {
    margin: 0;
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.62);
}

.news-feed-page__empty {
    padding: 28px 22px;
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.78);
}

.news-feed-card {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 0;
    min-height: 260px;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(21, 47, 92, 0.92) 0%, rgba(14, 34, 70, 0.96) 100%);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 18px 40px rgba(7, 20, 44, 0.20);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.news-feed-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(6, 18, 40, 0.24);
}

.news-feed-card__media {
    position: relative;
    min-height: 260px;
    background:
        radial-gradient(circle at top left, rgba(59,171,212,0.16), transparent 28%),
        linear-gradient(135deg, #17345f 0%, #102544 100%);
}

.news-feed-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-feed-card__media--empty::after {
    content: "Bloko Conecta";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.30);
    font-family: 'Excon', 'Azo Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.news-feed-card__body {
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    min-width: 0;
}

.news-feed-card__top {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.news-feed-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: rgba(255,255,255,0.70);
    font-size: 0.85rem;
    font-weight: 600;
}

.news-feed-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.news-feed-card--scheduled {
    box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.35), 0 12px 40px rgba(0, 0, 0, 0.2);
}

.news-feed-card__badge--scheduled {
    background: rgba(250, 204, 21, 0.2);
    color: #fef9c3;
}

.news-feed-card__title {
    margin: 0;
    color: #ffffff;
    font-size: 1.55rem;
    line-height: 1.18;
    font-weight: 800;
    word-break: break-word;
}

.news-feed-card__excerpt {
    margin: 0;
    color: rgba(255,255,255,0.86);
    font-size: 0.98rem;
    line-height: 1.65;
    white-space: pre-line;
}

.news-feed-card__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.news-feed-card__stats {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.news-feed-card__stat {
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.news-feed-card__stat:hover {
    background: rgba(255,255,255,0.14);
    transform: translateY(-1px);
}

.news-feed-card__buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.news-feed-card__button {
    border: 0;
    border-radius: 12px;
    padding: 11px 16px;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    transition: transform 0.18s ease, filter 0.18s ease, background 0.18s ease;
}

.news-feed-card__button:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.news-feed-card__button--ghost {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
}

.news-feed-card__button--primary {
    background: linear-gradient(135deg, #2270AA, #3BABD4);
    color: #ffffff;
}

@media (max-width: 1100px) {
    .news-feed-card {
        grid-template-columns: 1fr;
    }

    .news-feed-card__media {
        min-height: 220px;
    }
}

@media (max-width: 700px) {
    .news-feed-page__title h1 {
        font-size: 1.8rem;
    }

    .news-feed-card__body {
        padding: 20px;
    }

    .news-feed-card__title {
        font-size: 1.28rem;
    }

    .news-feed-card__bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .news-feed-card__stats,
    .news-feed-card__buttons {
        width: 100%;
    }
}

/* ===== MODAL DE PUBLICAÇÃO ===== */

.publish-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
}

.publish-modal.is-open {
    display: block;
}

.publish-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 18, 40, 0.68);
    backdrop-filter: blur(5px);
}

.publish-modal__dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(760px, calc(100vw - 24px));
    transform: translate(-50%, -50%);
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(180deg, #203f6e 0%, #18345d 100%);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 30px 70px rgba(0,0,0,0.34);
}

.publish-modal__header,
.publish-modal__footer {
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.publish-modal__header {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.publish-modal__header h3 {
    margin: 0;
    color: #fff;
    font-size: 1.25rem;
}

.publish-modal__close {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.publish-modal__form {
    display: flex;
    flex-direction: column;
}

.publish-modal__body {
    padding: 22px;
    display: grid;
    gap: 18px;
}

.publish-modal__body .form-field label {
    color: #fff;
}

.publish-modal__body .form-field input:not([type="checkbox"]),
.publish-modal__body .form-field textarea {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
}

.publish-modal__body .form-field input:not([type="checkbox"])::placeholder,
.publish-modal__body .form-field textarea::placeholder {
    color: rgba(255,255,255,0.56);
}

.publish-modal__body .form-field input:not([type="checkbox"]):focus,
.publish-modal__body .form-field textarea:focus {
    background: rgba(255,255,255,0.12);
    border-color: rgba(59,171,212,0.55);
    box-shadow: 0 0 0 4px rgba(59,171,212,0.15);
}

.publish-modal__check {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin: 0;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(59, 171, 212, 0.38);
    background: linear-gradient(135deg, rgba(34, 112, 170, 0.16) 0%, rgba(59, 171, 212, 0.1) 100%);
    color: #e8f4fc;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.35;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.publish-modal__check:hover {
    border-color: rgba(96, 196, 235, 0.62);
    background: linear-gradient(135deg, rgba(34, 112, 170, 0.22) 0%, rgba(59, 171, 212, 0.14) 100%);
}

.publish-modal__check:has(input:checked) {
    border-color: rgba(96, 196, 235, 0.75);
    background: linear-gradient(135deg, rgba(34, 112, 170, 0.28) 0%, rgba(59, 171, 212, 0.2) 100%);
    box-shadow: 0 0 0 4px rgba(59, 171, 212, 0.16);
    color: #ffffff;
}

.publish-modal__body .form-field--inline {
    margin: 0;
}

.publish-modal__check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px !important;
    height: 22px !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0;
    flex-shrink: 0;
    border: 2px solid rgba(96, 196, 235, 0.85);
    border-radius: 7px;
    background: rgba(15, 42, 68, 0.35);
    cursor: pointer;
    position: relative;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.publish-modal__check input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #2270aa 0%, #3babd4 100%);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(34, 112, 170, 0.35);
}

.publish-modal__check input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.publish-modal__check-copy {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.publish-modal__check-icon {
    font-size: 1.15rem;
    color: #7dd3fc;
}

.publish-modal__footer {
    border-top: 1px solid rgba(255,255,255,0.08);
    justify-content: flex-end;
}

.publish-modal__btn {
    border: 0;
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: 700;
    cursor: pointer;
}

.publish-modal__btn--ghost {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.publish-modal__btn--ghost:hover {
    background: rgba(255,255,255,0.14);
}

.publish-modal__btn--primary {
    background: linear-gradient(135deg, #2270AA, #3BABD4);
    color: #fff;
    box-shadow: 0 8px 22px rgba(34, 112, 170, 0.32);
}

.publish-modal__btn--primary:hover {
    filter: brightness(1.06);
    box-shadow: 0 10px 26px rgba(34, 112, 170, 0.4);
}

.publish-modal__status {
    min-height: 22px;
    font-size: 0.92rem;
    color: rgba(255,255,255,0.82);
    white-space: pre-line;
}

.publish-modal__status.is-error {
    color: #ffb4b4;
}

.publish-modal__status.is-success {
    color: #b9f7c7;
}

/* SweetAlert2 — alinhado ao tema Bloko Conecta (ex.: exclusão de publicação) */
.swal2-bloko {
    border-radius: 16px !important;
    border: 1px solid rgba(59, 171, 212, 0.35);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.45) !important;
    padding: 1.35rem 1.25rem 1.5rem !important;
}

.swal2-bloko .swal2-title {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.swal2-bloko .swal2-html-container {
    font-size: 0.98rem;
    line-height: 1.5;
}

.swal2-bloko .swal2-loader {
    border-color: #3BABD4 transparent #3BABD4 transparent;
}

.swal2-bloko-container--feed {
    z-index: 10050 !important;
}

.swal2-bloko--confirm {
    max-width: 420px !important;
}

.swal2-bloko__btn {
    border-radius: 999px !important;
    font-weight: 600 !important;
    padding: 0.55rem 1.15rem !important;
    font-size: 0.92rem !important;
}

.swal2-bloko__btn--danger {
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.28) !important;
}

.swal2-bloko__btn--ghost {
    color: rgba(241, 245, 249, 0.92) !important;
}

.feed-comment-delete-dialog {
    text-align: center;
    margin-top: 0.15rem;
}

.feed-comment-delete-dialog__icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(248, 113, 113, 0.14);
    color: #fca5a5;
    font-size: 1.35rem;
    border: 1px solid rgba(248, 113, 113, 0.28);
}

.feed-comment-delete-dialog__lead {
    margin: 0 0 0.95rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(226, 232, 240, 0.88);
}

.feed-comment-delete-dialog__preview {
    text-align: left;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.feed-comment-delete-dialog__preview-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.9);
    margin-bottom: 0.35rem;
}

.feed-comment-delete-dialog__preview-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: rgba(241, 245, 249, 0.95);
    word-break: break-word;
}

.feed-comment-delete-dialog__loading {
    margin: 0.35rem 0 0;
    font-size: 0.95rem;
    opacity: 0.92;
}

html[data-theme="light"] .swal2-bloko--confirm {
    border-color: rgba(34, 112, 170, 0.22) !important;
    box-shadow: 0 20px 48px rgba(27, 45, 78, 0.14) !important;
}

html[data-theme="light"] .swal2-bloko__btn--ghost {
    color: #475569 !important;
}

html[data-theme="light"] .feed-comment-delete-dialog__icon {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.2);
}

html[data-theme="light"] .feed-comment-delete-dialog__lead {
    color: rgba(27, 45, 78, 0.78);
}

html[data-theme="light"] .feed-comment-delete-dialog__preview {
    background: #f1f5f9;
    border-color: rgba(27, 45, 78, 0.1);
}

html[data-theme="light"] .feed-comment-delete-dialog__preview-label {
    color: rgba(27, 45, 78, 0.55);
}

html[data-theme="light"] .feed-comment-delete-dialog__preview-text {
    color: #1e293b;
}

.topbar-profile-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.topbar-profile-trigger {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar-profile-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 290px;
    max-width: 290px;
    background: linear-gradient(180deg, #173765 0%, #102b52 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    padding: 16px;
    z-index: 1200;
    display: none;
    overflow: hidden;
}

.topbar-profile-menu.is-open .topbar-profile-dropdown {
    display: block;
}

.topbar-profile-dropdown__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    min-width: 0;
}

.topbar-profile-dropdown__avatar {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    overflow: hidden;
}

.topbar-profile-dropdown__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.topbar-profile-dropdown__info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.topbar-profile-dropdown__info strong {
    display: block;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    margin-bottom: 4px;
}

.topbar-profile-dropdown__info p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.topbar-profile-link {
    display: block;
    width: 100%;
    padding: 11px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: #dbe8ff;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.topbar-profile-link + .topbar-profile-link {
    margin-top: 6px;
}

.topbar-profile-link:hover {
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    transform: translateX(2px);
}

.topbar-profile-link--danger {
    color: #ffb4b4;
}

.topbar-profile-link--danger:hover {
    background: rgba(255, 77, 77, 0.12);
    color: #ffd6d6;
}

.topbar-user__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
.profile-page {
    padding: 28px;
}

.profile-card {
    max-width: 980px;
    margin: 0 auto;
    background: rgba(18, 43, 82, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.profile-avatar,
.profile-avatar-image {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin-bottom: 14px;
}

.profile-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 800;
    font-size: 30px;
}

.profile-avatar-image {
    object-fit: cover;
    display: block;
    border: 3px solid rgba(255, 255, 255, 0.18);
}

.profile-header h1 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 26px;
    font-weight: 800;
}

.profile-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    word-break: break-word;
}

.profile-page .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.profile-page .form-field {
    display: flex;
    flex-direction: column;
}

.profile-page .form-field--full {
    grid-column: 1 / -1;
}

.profile-page .form-field label {
    margin-bottom: 8px;
    color: #d9e6ff;
    font-size: 13px;
    font-weight: 700;
}

.profile-page .form-field input,
.profile-page .form-field textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.92);
    color: #1c2a40;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 14px;
    outline: none;
}

.profile-page .form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.profile-actions {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
}

.profile-save-btn {
    border: none;
    border-radius: 14px;
    padding: 14px 22px;
    background: linear-gradient(180deg, #2d7ff9 0%, #1d5fd1 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(29, 95, 209, 0.28);
}

.profile-save-btn:hover {
    filter: brightness(1.05);
}

.profile-alert {
    padding: 12px 16px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 600;
}

.profile-alert--sucesso {
    background: rgba(16, 185, 129, 0.18);
    color: #b7ffd8;
}

.profile-alert--erro {
    background: rgba(239, 68, 68, 0.18);
    color: #ffd0d0;
}

@media (max-width: 900px) {
    .profile-page .form-grid {
        grid-template-columns: 1fr;
    }

    .profile-page {
        padding: 18px;
    }

    .profile-card {
        padding: 20px;
    }
}

.solicitacoes-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.solicitacoes-hero {
    background: linear-gradient(135deg, rgba(24, 47, 94, 0.98), rgba(34, 84, 162, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 24px 60px rgba(12, 23, 46, 0.24);
    color: #fff;
}

.solicitacoes-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 14px;
}

.solicitacoes-hero h1 {
    margin: 0 0 8px;
    font-size: 32px;
    line-height: 1.1;
}

.solicitacoes-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
}

.solicitacoes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.solicitacao-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(27, 45, 78, 0.08);
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 18px 40px rgba(17, 27, 47, 0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.solicitacao-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 52px rgba(17, 27, 47, 0.16);
    border-color: rgba(34, 84, 162, 0.18);
}

.solicitacao-card__icon {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 26px;
    background: linear-gradient(180deg, #eef5ff 0%, #ddeafb 100%);
    color: #214d92;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.solicitacao-card__body {
    flex: 1;
    min-width: 0;
}

.solicitacao-card__body h3 {
    margin: 0 0 8px;
    font-size: 22px;
    color: #1c2d4f;
}

.solicitacao-card__body p {
    margin: 0 0 18px;
    color: #64748b;
    line-height: 1.6;
    font-size: 15px;
}

.solicitacao-card__footer {
    display: flex;
    align-items: center;
}

.solicitacao-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 14px;
    border: none;
    text-decoration: none;
    background: linear-gradient(180deg, #2e7ac4 0%, #215da8 100%);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(33, 93, 168, 0.24);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.solicitacao-card__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(33, 93, 168, 0.30);
}

.solicitacao-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
}

.solicitacao-modal.is-open {
    display: block;
}

.solicitacao-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 18, 35, 0.56);
    backdrop-filter: blur(4px);
}

.solicitacao-modal__dialog {
    position: relative;
    width: min(920px, calc(100vw - 32px));
    margin: 60px auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
    overflow: hidden;
}

.solicitacao-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(135deg, #1c2d4f, #24467d);
    color: #fff;
}

.solicitacao-modal__header h3 {
    margin: 0;
    font-size: 20px;
}

.solicitacao-modal__close {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

.solicitacao-modal__body {
    padding: 24px;
    color: #334155;
}

.solicitacao-modal__placeholder {
    margin-top: 16px;
    min-height: 320px;
    border: 2px dashed rgba(33, 93, 168, 0.24);
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #215da8;
    background: #f8fbff;
}

@media (max-width: 1100px) {
    .solicitacoes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .solicitacoes-grid {
        grid-template-columns: 1fr;
    }

    .solicitacao-card {
        padding: 18px;
        border-radius: 20px;
    }

    .solicitacoes-hero {
        padding: 22px;
        border-radius: 22px;
    }

    .solicitacoes-hero h1 {
        font-size: 26px;
    }
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-link,
.menu-group-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #f4f7ff;
    text-decoration: none;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
    box-sizing: border-box;
}

.menu-link:hover,
.menu-group-trigger:hover {
    background: rgba(255, 255, 255, 0.08);
}

.menu-link.is-active,
.menu-group.is-active > .menu-group-trigger {
    background: rgba(255, 255, 255, 0.14);
}

.menu-group {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.menu-group-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.menu-icon,
.submenu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    min-width: 18px;
    flex: 0 0 18px;
    font-size: 16px;
    line-height: 1;
}

.menu-icon--glyph i.bi,
.submenu-icon--glyph i.bi {
    font-size: 1.05rem;
    line-height: 1;
    color: inherit;
    display: block;
}

/* Capacete de engenharia (SVG próprio — não existe em Bootstrap Icons) */
.menu-icon--glyph i.portal-icon-hard-hat,
.submenu-icon--glyph i.portal-icon-hard-hat {
    display: block;
    width: 1.05rem;
    height: 1.05rem;
    font-size: 0;
    line-height: 0;
    background-color: currentColor;
    -webkit-mask: url('icons/engenharia-capacete.svg') center / contain no-repeat;
    mask: url('icons/engenharia-capacete.svg') center / contain no-repeat;
}

.menu-link.is-active .menu-icon--glyph i.bi,
.menu-group.is-active > .menu-group-trigger .menu-icon--glyph i.bi,
.submenu-link.is-active .submenu-icon--glyph i.bi {
    color: inherit;
}

.menu-label,
.submenu-label {
    text-align: left;
    line-height: 1.2;
}

.menu-label {
    flex: 1;
}

.menu-caret {
    margin-left: auto;
    font-size: 12px;
    line-height: 1;
    transition: transform .2s ease;
    opacity: .9;
    flex: 0 0 auto;
}

.menu-group.is-open .menu-caret {
    transform: rotate(180deg);
}

.submenu {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 6px 0 4px 14px;
    margin: 4px 0 0 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.10);
}

.submenu.is-open {
    display: flex;
}

.submenu-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: rgba(244, 247, 255, 0.88);
    text-decoration: none;
    font-weight: 600;
    transition: background .2s ease, color .2s ease;
    box-sizing: border-box;
}

.submenu-link:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.submenu-link.is-active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.menu-caret {
    display: none;
}

.travel-shell {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.travel-header-card {
    background:
        radial-gradient(circle at top left, rgba(69, 123, 255, 0.22), transparent 30%),
        linear-gradient(135deg, rgba(16, 38, 77, 0.96), rgba(28, 64, 122, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 30px 34px;
    box-shadow: 0 28px 60px rgba(9, 19, 38, 0.24);
    color: #fff;
    overflow: hidden;
    position: relative;
}

.travel-header-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.travel-header-card h1 {
    margin: 0 0 10px;
    font-size: 32px;
    line-height: 1.05;
    font-weight: 800;
}

.travel-header-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
}

.travel-feedback {
    border-radius: 16px;
    padding: 15px 18px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.08);
}

.travel-feedback--sucesso {
    background: #ecfdf3;
    border: 1px solid #86efac;
    color: #166534;
}

.travel-feedback--erro {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.travel-form-card {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.14);
}

.travel-block {
    margin-bottom: 24px;
    padding: 22px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(248, 250, 255, 0.96), rgba(242, 246, 255, 0.90));
    border: 1px solid rgba(38, 63, 122, 0.08);
}

.travel-block:last-child {
    margin-bottom: 0;
}

.travel-block__title {
    font-size: 18px;
    font-weight: 800;
    color: #1d3560;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.travel-grid {
    display: grid;
    gap: 18px;
}

.travel-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.travel-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.travel-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.travel-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.travel-field--span-2 {
    grid-column: span 2;
}

.travel-field--span-3 {
    grid-column: span 3;
}

.travel-field label {
    font-size: 13px;
    font-weight: 800;
    color: #233a66;
}

.travel-field input,
.travel-field select,
.travel-field textarea {
    width: 100%;
    border: 1px solid #d7deeb;
    border-radius: 14px;
    padding: 13px 14px;
    font: inherit;
    background: #fff;
    box-sizing: border-box;
    color: #1f2d3d;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.travel-field input:focus,
.travel-field select:focus,
.travel-field textarea:focus {
    outline: none;
    border-color: #4d83ff;
    box-shadow: 0 0 0 4px rgba(77, 131, 255, 0.14);
}

.travel-field input[readonly] {
    background: #f3f6fb;
    color: #59667a;
}

.travel-choice-row,
.travel-check-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.travel-choice,
.travel-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(38, 63, 122, 0.10);
    border-radius: 14px;
    color: #243b68;
    font-weight: 700;
}

.travel-trip-card {
    border: 1px solid rgba(38, 63, 122, 0.10);
    background: #fff;
    border-radius: 20px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.travel-trip-card:last-child {
    margin-bottom: 0;
}

.travel-trip-card__header {
    font-size: 15px;
    font-weight: 800;
    color: #1e3a6d;
    margin-bottom: 14px;
}

.travel-submit {
    display: flex;
    justify-content: flex-end;
    margin-top: 28px;
}

.travel-submit__btn {
    border: none;
    border-radius: 16px;
    padding: 14px 22px;
    font: inherit;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(180deg, #2f80d1 0%, #225fae 100%);
    box-shadow: 0 16px 32px rgba(34, 95, 174, 0.26);
    transition: transform .18s ease, box-shadow .18s ease;
}

.travel-submit__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px rgba(34, 95, 174, 0.32);
}

.travel-submit__btn:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.travel-submit-overlay {
    position: fixed;
    inset: 0;
    z-index: 100050;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 35, 65, 0.55);
    backdrop-filter: blur(4px);
}

.travel-submit-overlay__panel {
    background: #fff;
    border-radius: 20px;
    padding: 28px 32px;
    max-width: 360px;
    text-align: center;
    box-shadow: 0 24px 48px rgba(15, 35, 65, 0.25);
}

.travel-submit-overlay__spinner {
    width: 44px;
    height: 44px;
    margin: 0 auto 16px;
    border: 4px solid #e5eaf2;
    border-top-color: #225fae;
    border-radius: 50%;
    animation: travel-submit-spin 0.75s linear infinite;
}

.travel-submit-overlay__text {
    margin: 0 0 6px;
    font-weight: 700;
    font-size: 1.05rem;
    color: #1e3a6d;
}

.travel-submit-overlay__hint {
    margin: 0;
    font-size: 0.9rem;
    color: #5b6578;
}

@keyframes travel-submit-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1100px) {
    .travel-grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .travel-grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .travel-header-card,
    .travel-form-card,
    .travel-block {
        padding: 20px;
        border-radius: 22px;
    }

    .travel-grid--2,
    .travel-grid--3,
    .travel-grid--4 {
        grid-template-columns: 1fr;
    }

    .travel-field--span-2,
    .travel-field--span-3 {
        grid-column: span 1;
    }

    .travel-submit {
        justify-content: stretch;
    }

    .travel-submit__btn {
        width: 100%;
    }
}

.travel-field input[readonly] {
    background: #eef2f7;
    color: #5b6578;
    cursor: not-allowed;
}


.travel-modalidade-box {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.travel-modalidade-option {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(38, 63, 122, 0.10);
    border-radius: 14px;
    background: #fff;
    font-weight: 700;
    color: #243b68;
}

.travel-grid--5 {
    grid-template-columns: 1.2fr 1.5fr .9fr .9fr 1fr;
}

.travel-divider {
    height: 1px;
    background: rgba(38, 63, 122, 0.12);
    margin: 16px 0;
}

.travel-inline-actions {
    display: flex;
    justify-content: center;
    margin: 16px 0 8px;
}

.travel-submit__btn--secondary {
    background: #eef3ff;
    color: #1d3560;
    box-shadow: none;
}

.travel-submit__btn--secondary:hover {
    background: #dde7ff;
    transform: none;
    box-shadow: none;
}

.select2-container {
    width: 100% !important;
}

.select2-container .select2-selection--single {
    height: 50px;
    padding: 10px 14px;
    border: 1px solid #d7deeb;
    border-radius: 14px;
    display: flex;
    align-items: center;
    background: #fff;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 28px;
    color: #1f2d3d;
    padding-left: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: 10px;
}

.awesomplete {
    width: 100%;
}

.awesomplete > input {
    width: 100%;
}

.btn-remove {
    border: none;
    border-radius: 12px;
    padding: 10px 14px;
    background: #fee2e2;
    color: #991b1b;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 1200px) {
    .travel-grid--5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .travel-grid--5 {
        grid-template-columns: 1fr;
    }
}

.select2-container {
    width: 100% !important;
}

.select2-container .select2-selection--single {
    height: 48px !important;
    min-height: 48px !important;
    border: 1px solid #d7deeb !important;
    border-radius: 14px !important;
    background: #fff !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
    padding: 0 40px 0 14px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #1f2d3d !important;
    line-height: 46px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    font-size: 14px !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #8a94a6 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
    right: 12px !important;
    top: 0 !important;
}

.select2-dropdown {
    border: 1px solid #d7deeb !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid #d7deeb !important;
    border-radius: 10px !important;
    padding: 8px 10px !important;
    box-sizing: border-box !important;
}

.select2-results__option {
    padding: 10px 12px !important;
    font-size: 14px !important;
}

.travel-field .select2-container {
    margin: 0 !important;
}

.travel-field .select2-selection--single:focus,
.travel-field .select2-container--focus .select2-selection--single {
    outline: none !important;
    border-color: #4d83ff !important;
    box-shadow: 0 0 0 4px rgba(77, 131, 255, 0.14) !important;
}

.travel-field input[readonly] {
    background: #eef2f7;
    color: #5b6578;
    cursor: not-allowed;
}

.approval-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    background: linear-gradient(135deg, #10274d 0%, #1f4d8f 100%);
}

.approval-card {
    width: 100%;
    max-width: 760px;
    background: rgba(255,255,255,0.98);
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.approval-card__header h1 {
    margin: 8px 0 10px;
    color: #16335f;
    font-size: 30px;
}

.approval-card__header p {
    margin: 0;
    color: #5d6b82;
}

.approval-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e8f0ff;
    color: #1f4d8f;
    font-weight: 800;
    font-size: 12px;
}

.approval-badge--danger {
    background: #fee2e2;
    color: #991b1b;
}

.approval-status-board {
    margin-top: 24px;
    padding: 20px;
    border: 1px solid #e5ebf5;
    border-radius: 18px;
    background: #f8fbff;
}

.approval-status-board h3 {
    margin: 0 0 14px;
    color: #16335f;
}

.approval-status-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.approval-status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e6edf8;
}

.approval-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.approval-pill--pendente {
    background: #fff7ed;
    color: #9a3412;
}

.approval-pill--aprovada {
    background: #ecfdf5;
    color: #166534;
}

.approval-pill--negada {
    background: #fef2f2;
    color: #991b1b;
}

.approval-form {
    margin-top: 24px;
}

.approval-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

.login-button--microsoft {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #1b2d4e, #27457a);
}

.ms-icon {
  width: 18px;
  height: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
}

.ms-icon span:nth-child(1) { background: #f25022; }
.ms-icon span:nth-child(2) { background: #7fba00; }
.ms-icon span:nth-child(3) { background: #00a4ef; }
.ms-icon span:nth-child(4) { background: #ffb900; }

.reembolso-shell {
    padding: 24px 28px 40px;
}

.reembolso-form-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(197, 213, 232, 0.7);
    border-radius: 26px;
    box-shadow: 0 20px 50px rgba(10, 38, 81, 0.12);
    padding: 28px;
}

.reembolso-page-head {
    margin-bottom: 24px;
}

.reembolso-page-head h1 {
    margin: 8px 0 8px;
    font-size: 34px;
    line-height: 1.1;
    color: #173662;
}

.reembolso-page-head p {
    margin: 0;
    color: #5e7089;
    max-width: 760px;
}

.reembolso-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eaf2ff;
    color: #2456a7;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
}

.reembolso-block {
    margin-top: 22px;
    padding: 22px;
    border-radius: 20px;
    border: 1px solid #dbe5f2;
    background: #f8fbff;
}

.ti-material-required {
    color: #dc2626;
    font-weight: 700;
}

.ti-material-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: rgba(100, 116, 139, 0.95);
    line-height: 1.4;
}

.ti-material-feedback-dialog {
    max-width: 460px;
}

.ti-material-feedback-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #163a70, #2270aa);
    box-shadow: 0 12px 28px rgba(22, 58, 112, 0.35);
}

.ti-material-feedback-icon--error {
    background: linear-gradient(135deg, #b91c1c, #dc2626);
    box-shadow: 0 12px 28px rgba(185, 28, 28, 0.3);
}

.ti-material-feedback-dialog h3 {
    color: #0f2744;
    font-size: 1.65rem;
}

.ti-material-feedback-dialog p {
    color: #334155;
    font-size: 1rem;
    line-height: 1.55;
    margin: 0 0 8px;
}

.ti-material-swal.swal2-popup {
    border-radius: 20px;
    padding: 28px 24px 22px;
    border: 1px solid rgba(22, 58, 112, 0.12);
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.22);
}

.ti-material-swal__title {
    color: #0f2744 !important;
    font-weight: 800 !important;
    font-size: 1.5rem !important;
}

.ti-material-swal__text {
    color: #334155 !important;
    font-size: 1rem !important;
    line-height: 1.55 !important;
}

.ti-material-swal__btn {
    border-radius: 10px !important;
    font-weight: 800 !important;
    padding: 11px 28px !important;
}

.ti-emprestimos-shell .reembolso-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.ti-emprestimos-stats .history-stat-card--warn strong {
    color: #b45309;
}

.ti-emprestimos-filters {
    display: grid;
    grid-template-columns: 1fr 220px auto;
    gap: 14px;
    align-items: end;
}

.ti-emprestimos-table-wrap {
    margin-top: 20px;
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid #dbe5f2;
    background: #fff;
}

.ti-emprestimos-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ti-emprestimos-table th,
.ti-emprestimos-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e8eef5;
    vertical-align: top;
}

.ti-emprestimos-table th {
    background: #f1f5f9;
    color: #0f2744;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ti-emprestimos-table tr.is-atrasado {
    background: #fffbeb;
}

.ti-emprestimos-table tr.is-devolvido {
    background: #f0fdf4;
}

.ti-emprestimos-nome {
    display: block;
    font-weight: 700;
    color: #0f2744;
}

.ti-emprestimos-email {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.ti-emprestimos-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.ti-emprestimos-tag--open {
    background: #dbeafe;
    color: #1e40af;
}

.ti-emprestimos-tag--ok {
    background: #dcfce7;
    color: #166534;
}

.ti-emprestimos-tag--late {
    background: #fee2e2;
    color: #991b1b;
    margin-left: 6px;
}

.ti-emprestimos-meta {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #64748b;
}

.ti-emprestimos-toggle {
    white-space: nowrap;
    font-size: 13px;
    padding: 8px 14px;
}

@media (max-width: 900px) {
    .ti-emprestimos-filters {
        grid-template-columns: 1fr;
    }

    .ti-emprestimos-table thead {
        display: none;
    }

    .ti-emprestimos-table tr {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid #e8eef5;
    }

    .ti-emprestimos-table td {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        border: 0;
        padding: 8px 16px;
    }

    .ti-emprestimos-table td::before {
        content: attr(data-label);
        font-weight: 800;
        color: #64748b;
        font-size: 11px;
        text-transform: uppercase;
    }
}

.reembolso-block--hidden {
    display: none;
}

.reembolso-block__title {
    font-size: 20px;
    font-weight: 800;
    color: #16335f;
    margin-bottom: 18px;
}

.reembolso-grid {
    display: grid;
    gap: 16px;
}

.reembolso-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reembolso-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reembolso-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.reembolso-grid--5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.reembolso-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reembolso-field--span-2 {
    grid-column: span 2;
}

.reembolso-field--span-3 {
    grid-column: span 3;
}

.reembolso-field--span-4 {
    grid-column: span 4;
}

.reembolso-field--span-5 {
    grid-column: span 5;
}

.reembolso-field label {
    font-size: 13px;
    font-weight: 800;
    color: #1f3e6a;
}

.reembolso-field input,
.reembolso-field select,
.reembolso-field textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #cfdbee;
    background: #fff;
    color: #223650;
    font: inherit;
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.reembolso-field textarea {
    min-height: 110px;
    resize: vertical;
}

.reembolso-field input:focus,
.reembolso-field select:focus,
.reembolso-field textarea:focus {
    outline: none;
    border-color: #4a85ea;
    box-shadow: 0 0 0 4px rgba(74, 133, 234, 0.12);
}

.reembolso-field input[readonly] {
    background: #eef3f9;
    color: #5f6f84;
}

.reembolso-item-card {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid #dbe6f4;
    background: #fff;
    box-shadow: 0 8px 20px rgba(18, 51, 95, 0.05);
}

.reembolso-inline-actions,
.reembolso-submit {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
}

.reembolso-feedback {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 700;
}

.reembolso-feedback--sucesso,
.reembolso-feedback--success {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.reembolso-feedback--erro,
.reembolso-feedback--error,
.reembolso-feedback--danger {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.reembolso-remove-btn {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    border: 0;
    background: #fee2e2;
    color: #991b1b;
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 1200px) {
    .reembolso-grid--5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reembolso-field--span-5 {
        grid-column: span 2;
    }
}

@media (max-width: 980px) {
    .reembolso-grid--4,
    .reembolso-grid--3,
    .reembolso-grid--2 {
        grid-template-columns: 1fr;
    }

    .reembolso-field--span-4,
    .reembolso-field--span-3,
    .reembolso-field--span-2 {
        grid-column: span 1;
    }
}

@media (max-width: 720px) {
    .reembolso-shell {
        padding: 18px 16px 32px;
    }

    .reembolso-form-card {
        padding: 20px;
        border-radius: 20px;
    }

    .reembolso-page-head h1 {
        font-size: 28px;
    }
}

.reembolso-legacy-shell {
    padding: 24px 28px 40px;
}

.reembolso-legacy-head {
    margin-bottom: 20px;
}

.reembolso-legacy-head h1 {
    margin: 8px 0 8px;
    font-size: 34px;
    line-height: 1.08;
    color: #173662;
}

.reembolso-legacy-head p {
    margin: 0;
    color: #61728a;
    max-width: 760px;
}

.reembolso-legacy-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eaf2ff;
    color: #2456a7;
    font-size: 12px;
    font-weight: 800;
}

.reembolso-legacy-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(205, 218, 238, 0.8);
    border-radius: 26px;
    box-shadow: 0 20px 50px rgba(14, 42, 86, 0.12);
    padding: 28px;
}

/* títulos e textos antigos */
.reembolso-legacy-card h2,
.reembolso-legacy-card h3,
.reembolso-legacy-card h4 {
    color: #16335f !important;
}

/* form geral */
.reembolso-legacy-card form {
    width: 100%;
}

/* labels */
.reembolso-legacy-card label {
    color: #1f3e6a !important;
    font-weight: 800 !important;
    font-size: 13px !important;
}

/* campos padrões */
.reembolso-legacy-card input[type="text"],
.reembolso-legacy-card input[type="email"],
.reembolso-legacy-card input[type="date"],
.reembolso-legacy-card input[type="number"],
.reembolso-legacy-card input[type="file"],
.reembolso-legacy-card select,
.reembolso-legacy-card textarea {
    width: 100% !important;
    min-height: 48px;
    padding: 12px 14px !important;
    border-radius: 14px !important;
    border: 1px solid #cfdbef !important;
    background: #fff !important;
    color: #223650 !important;
    box-sizing: border-box !important;
    font: inherit !important;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.reembolso-legacy-card textarea {
    min-height: 110px;
    resize: vertical;
}

.reembolso-legacy-card input:focus,
.reembolso-legacy-card select:focus,
.reembolso-legacy-card textarea:focus {
    outline: none !important;
    border-color: #4a85ea !important;
    box-shadow: 0 0 0 4px rgba(74, 133, 234, 0.12) !important;
}

/* readonly/bloqueado */
.reembolso-legacy-card input[readonly] {
    background: #eef3f9 !important;
    color: #617188 !important;
}

/* tabelas antigas */
.reembolso-legacy-card table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    overflow: hidden;
    border-radius: 18px !important;
    box-shadow: 0 8px 22px rgba(18, 51, 95, 0.06);
    background: #fff !important;
}

.reembolso-legacy-card table th {
    background: #173662 !important;
    color: #fff !important;
    font-weight: 800 !important;
    padding: 12px 10px !important;
    border: 0 !important;
    font-size: 13px !important;
}

.reembolso-legacy-card table td {
    background: #fff !important;
    color: #223650 !important;
    padding: 10px !important;
    border-color: #e4ebf5 !important;
    vertical-align: middle !important;
    font-size: 14px !important;
}

/* botões antigos */
.reembolso-legacy-card button,
.reembolso-legacy-card input[type="submit"],
.reembolso-legacy-card input[type="button"] {
    min-height: 46px;
    padding: 0 18px !important;
    border-radius: 14px !important;
    border: 0 !important;
    background: linear-gradient(135deg, #17407a 0%, #245fb3 100%) !important;
    color: #fff !important;
    font-weight: 800 !important;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(28, 82, 159, 0.18);
}

.reembolso-legacy-card button:hover,
.reembolso-legacy-card input[type="submit"]:hover,
.reembolso-legacy-card input[type="button"]:hover {
    transform: translateY(-1px);
}

/* seções antigas com fieldset/divs */
.reembolso-legacy-card fieldset {
    border: 1px solid #dbe5f2 !important;
    border-radius: 18px !important;
    padding: 18px !important;
    margin-bottom: 18px !important;
    background: #f8fbff !important;
}

.reembolso-legacy-card legend {
    color: #16335f !important;
    font-weight: 800 !important;
    padding: 0 8px !important;
}

/* alertas */
.reembolso-legacy-card .alert,
.reembolso-legacy-card .success,
.reembolso-legacy-card .erro,
.reembolso-legacy-card .error {
    border-radius: 14px !important;
    padding: 14px 16px !important;
}

/* responsivo */
@media (max-width: 900px) {
    .reembolso-legacy-shell {
        padding: 18px 16px 32px;
    }

    .reembolso-legacy-card {
        padding: 20px;
        border-radius: 20px;
    }

    .reembolso-legacy-head h1 {
        font-size: 28px;
    }

    .reembolso-legacy-card table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* =========================
   REEMBOLSO 2.0
========================= */

.reembolso-shell {
    padding: 24px 28px 40px;
}

.reembolso-form-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(203, 216, 235, 0.85);
    border-radius: 28px;
    box-shadow: 0 22px 54px rgba(15, 45, 88, 0.12);
    padding: 28px;
}

.reembolso-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.reembolso-page-head h1 {
    margin: 8px 0 8px;
    font-size: 34px;
    line-height: 1.08;
    color: #173662;
}

.reembolso-page-head p {
    margin: 0;
    color: #60728b;
    max-width: 760px;
}

.reembolso-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eaf2ff;
    color: #2456a7;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
}

.reembolso-block {
    margin-top: 22px;
    padding: 22px;
    border-radius: 22px;
    border: 1px solid #d9e4f2;
    background: #f8fbff;
}

.reembolso-block__title {
    margin: 0 0 18px;
    font-size: 20px;
    font-weight: 800;
    color: #173662;
}

.reembolso-grid {
    display: grid;
    gap: 16px;
}

.reembolso-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reembolso-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reembolso-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.reembolso-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reembolso-field label {
    font-size: 13px;
    font-weight: 800;
    color: #1d3e6b;
}

.reembolso-field input,
.reembolso-field select,
.reembolso-field textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #cfdbef;
    background: #fff;
    color: #223650;
    font: inherit;
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.reembolso-field textarea {
    min-height: 110px;
    resize: vertical;
}

.reembolso-field input:focus,
.reembolso-field select:focus,
.reembolso-field textarea:focus {
    outline: none;
    border-color: #4a85ea;
    box-shadow: 0 0 0 4px rgba(74, 133, 234, 0.12);
}

.reembolso-field input[readonly] {
    background: #edf3fa;
    color: #617188;
}

.reembolso-inline-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reembolso-inline-group input {
    flex: 1 1 auto;
}

.reembolso-small-btn {
    min-width: 96px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 12px;
    white-space: nowrap;
}

.reembolso-field--checkbox {
    justify-content: flex-end;
}

.reembolso-checkline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    font-weight: 700;
    color: #1f385c;
}

.reembolso-checkline input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-height: auto;
    padding: 0;
}

.reembolso-field--hidden {
    display: none;
}

.reembolso-table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 18px;
    border: 1px solid #dbe5f3;
    background: #fff;
    box-shadow: 0 8px 20px rgba(17, 51, 95, 0.06);
}

.reembolso-table {
    width: 100%;
    min-width: 980px;
    border-collapse: separate;
    border-spacing: 0;
}

.reembolso-table thead th {
    background: #173662;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    padding: 13px 10px;
    text-align: left;
    border: 0;
    white-space: nowrap;
}

.reembolso-table thead th:first-child {
    border-top-left-radius: 16px;
}

.reembolso-table thead th:last-child {
    border-top-right-radius: 16px;
}

.reembolso-table tbody td {
    padding: 10px;
    border-bottom: 1px solid #e6edf7;
    vertical-align: middle;
    background: #fff;
}

.reembolso-table tbody tr:last-child td {
    border-bottom: 0;
}

.reembolso-table tbody input,
.reembolso-table tbody select {
    min-height: 44px;
    border-radius: 12px;
    padding: 10px 12px;
}

.reembolso-actions-cell {
    width: 110px;
    text-align: center;
}

.reembolso-remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    border: 0;
    background: #fee2e2;
    color: #991b1b;
    font-weight: 800;
    cursor: pointer;
    transition: transform .15s ease, filter .15s ease;
}

.reembolso-remove-btn:hover {
    transform: translateY(-1px);
    filter: brightness(0.98);
}

.reembolso-inline-actions,
.reembolso-submit {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
}

.reembolso-totals-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.reembolso-total-box {
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
    border: 1px solid #dbe6f5;
    box-shadow: 0 8px 18px rgba(18, 51, 95, 0.05);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reembolso-total-box span {
    font-size: 13px;
    font-weight: 700;
    color: #5f718b;
}

.reembolso-total-box strong {
    font-size: 24px;
    line-height: 1;
    color: #173662;
}

.reembolso-feedback {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 800;
    border: 1px solid transparent;
}

.reembolso-feedback--sucesso,
.reembolso-feedback--success {
    background: #ecfdf3;
    color: #166534;
    border-color: #bbf7d0;
}

.reembolso-feedback--erro,
.reembolso-feedback--error,
.reembolso-feedback--danger {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

/* campos totais */
#valor_final_receber,
#valor_adiantamento,
#preco_km {
    font-weight: 700;
}

#km_total_receber {
    display: inline-block;
}

/* integra melhor com botões já existentes */
.reembolso-submit .travel-submit__btn,
.reembolso-inline-actions .travel-submit__btn,
.reembolso-page-head .travel-submit__btn {
    min-height: 48px;
    border-radius: 14px;
}

/* responsivo */
@media (max-width: 1200px) {
    .reembolso-grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reembolso-grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .reembolso-shell {
        padding: 18px 16px 32px;
    }

    .reembolso-form-card {
        padding: 20px;
        border-radius: 22px;
    }

    .reembolso-page-head {
        flex-direction: column;
        align-items: stretch;
    }

    .reembolso-page-head h1 {
        font-size: 28px;
    }

    .reembolso-grid--4,
    .reembolso-grid--3,
    .reembolso-grid--2 {
        grid-template-columns: 1fr;
    }

    .reembolso-totals-grid {
        grid-template-columns: 1fr;
    }

    .reembolso-inline-group {
        flex-direction: column;
        align-items: stretch;
    }

    .reembolso-small-btn {
        width: 100%;
    }
}
/* =========================
   REEMBOLSO 2.0
========================= */

.reembolso-shell {
    padding: 24px 28px 40px;
}

.reembolso-form-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(203, 216, 235, 0.85);
    border-radius: 28px;
    box-shadow: 0 22px 54px rgba(15, 45, 88, 0.12);
    padding: 28px;
}

.reembolso-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.reembolso-page-head h1 {
    margin: 8px 0 8px;
    font-size: 34px;
    line-height: 1.08;
    color: #173662;
}

.reembolso-page-head p {
    margin: 0;
    color: #60728b;
    max-width: 760px;
}

.reembolso-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eaf2ff;
    color: #2456a7;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
}

.reembolso-block {
    margin-top: 22px;
    padding: 22px;
    border-radius: 22px;
    border: 1px solid #d9e4f2;
    background: #f8fbff;
}

.reembolso-block__title {
    margin: 0 0 18px;
    font-size: 20px;
    font-weight: 800;
    color: #173662;
}

.reembolso-grid {
    display: grid;
    gap: 16px;
}

.reembolso-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reembolso-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reembolso-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.reembolso-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reembolso-field label {
    font-size: 13px;
    font-weight: 800;
    color: #1d3e6b;
}

.reembolso-field input,
.reembolso-field select,
.reembolso-field textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #cfdbef;
    background: #fff;
    color: #223650;
    font: inherit;
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.reembolso-field textarea {
    min-height: 110px;
    resize: vertical;
}

.reembolso-field input:focus,
.reembolso-field select:focus,
.reembolso-field textarea:focus {
    outline: none;
    border-color: #4a85ea;
    box-shadow: 0 0 0 4px rgba(74, 133, 234, 0.12);
}

.reembolso-field input[readonly] {
    background: #edf3fa;
    color: #617188;
}

.reembolso-inline-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reembolso-inline-group input {
    flex: 1 1 auto;
}

.reembolso-small-btn {
    min-width: 96px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 12px;
    white-space: nowrap;
}

.reembolso-field--checkbox {
    justify-content: flex-end;
}

.reembolso-checkline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    font-weight: 700;
    color: #1f385c;
}

.reembolso-checkline input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-height: auto;
    padding: 0;
}

.reembolso-field--hidden {
    display: none;
}

.reembolso-table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 18px;
    border: 1px solid #dbe5f3;
    background: #fff;
    box-shadow: 0 8px 20px rgba(17, 51, 95, 0.06);
}

.reembolso-table {
    width: 100%;
    min-width: 980px;
    border-collapse: separate;
    border-spacing: 0;
}

.reembolso-table thead th {
    background: #173662;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    padding: 13px 10px;
    text-align: left;
    border: 0;
    white-space: nowrap;
}

.reembolso-table thead th:first-child {
    border-top-left-radius: 16px;
}

.reembolso-table thead th:last-child {
    border-top-right-radius: 16px;
}

.reembolso-table tbody td {
    padding: 10px;
    border-bottom: 1px solid #e6edf7;
    vertical-align: middle;
    background: #fff;
}

.reembolso-table tbody tr:last-child td {
    border-bottom: 0;
}

.reembolso-table tbody input,
.reembolso-table tbody select {
    min-height: 44px;
    border-radius: 12px;
    padding: 10px 12px;
}

.reembolso-actions-cell {
    width: 110px;
    text-align: center;
}

.reembolso-remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    border: 0;
    background: #fee2e2;
    color: #991b1b;
    font-weight: 800;
    cursor: pointer;
    transition: transform .15s ease, filter .15s ease;
}

.reembolso-remove-btn:hover {
    transform: translateY(-1px);
    filter: brightness(0.98);
}

.reembolso-inline-actions,
.reembolso-submit {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
}

.reembolso-totals-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.reembolso-total-box {
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
    border: 1px solid #dbe6f5;
    box-shadow: 0 8px 18px rgba(18, 51, 95, 0.05);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reembolso-total-box span {
    font-size: 13px;
    font-weight: 700;
    color: #5f718b;
}

.reembolso-total-box strong {
    font-size: 24px;
    line-height: 1;
    color: #173662;
}

.reembolso-feedback {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 800;
    border: 1px solid transparent;
}

.reembolso-feedback--sucesso,
.reembolso-feedback--success {
    background: #ecfdf3;
    color: #166534;
    border-color: #bbf7d0;
}

.reembolso-feedback--erro,
.reembolso-feedback--error,
.reembolso-feedback--danger {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

/* campos totais */
#valor_final_receber,
#valor_adiantamento,
#preco_km {
    font-weight: 700;
}

#km_total_receber {
    display: inline-block;
}

/* integra melhor com botões já existentes */
.reembolso-submit .travel-submit__btn,
.reembolso-inline-actions .travel-submit__btn,
.reembolso-page-head .travel-submit__btn {
    min-height: 48px;
    border-radius: 14px;
}

/* responsivo */
@media (max-width: 1200px) {
    .reembolso-grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reembolso-grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .reembolso-shell {
        padding: 18px 16px 32px;
    }

    .reembolso-form-card {
        padding: 20px;
        border-radius: 22px;
    }

    .reembolso-page-head {
        flex-direction: column;
        align-items: stretch;
    }

    .reembolso-page-head h1 {
        font-size: 28px;
    }

    .reembolso-grid--4,
    .reembolso-grid--3,
    .reembolso-grid--2 {
        grid-template-columns: 1fr;
    }

    .reembolso-totals-grid {
        grid-template-columns: 1fr;
    }

    .reembolso-inline-group {
        flex-direction: column;
        align-items: stretch;
    }

    .reembolso-small-btn {
        width: 100%;
    }
}

.reembolso-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    backdrop-filter: blur(2px);
}

.reembolso-loading-box {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 20px;
    padding: 32px 28px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.20);
}

.reembolso-spinner {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    border: 5px solid #dbeafe;
    border-top: 5px solid #2270AA;
    border-radius: 50%;
    animation: reembolsoSpin 0.9s linear infinite;
}

.reembolso-loading-title {
    font-size: 22px;
    font-weight: 700;
    color: #1B2D4E;
    margin-bottom: 8px;
}

.reembolso-loading-text {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

@keyframes reembolsoSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/*Normas Administrativas*/
.normas-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px;
}

.normas-pages {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 8px 0 12px;
}

.normas-page-img {
    display: block;
    width: 100%;
    max-width: 900px;
    height: auto;
    margin: 0 auto;
    border: 1px solid #d9e5f2;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(13, 26, 48, 0.10);
}
.normas-pages-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
}

/*Historico*/

.history-shell {
    width: 100%;
    min-width: 0;
}

.history-card {
    width: 100%;
    min-width: 0;
}

.history-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.history-stat-card {
    background: #f8fbff;
    border: 1px solid #d8e5f3;
    border-radius: 20px;
    padding: 18px 20px;
    box-shadow: 0 10px 24px rgba(13, 26, 48, 0.06);
}

.history-stat-card span {
    display: block;
    font-size: 12px;
    color: #62748c;
    margin-bottom: 6px;
}

.history-stat-card strong {
    font-size: 24px;
    color: #16396a;
    font-weight: 800;
}

.history-filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 16px;
    align-items: end;
}

.history-filter-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.travel-submit__btn--ghost {
    background: #eef4fb;
    color: #1b3f73;
    border: 1px solid #d4e0ee;
    text-decoration: none;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.history-item {
    background: #fff;
    border: 1px solid #d9e5f2;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(13, 26, 48, 0.08);
}

.history-item[open] {
    border-color: #bfd4ec;
}

.history-item__summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 22px;
}

.history-item__summary::-webkit-details-marker {
    display: none;
}

.history-item__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    gap: 12px;
}

.history-item__main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.history-item__main h3 {
    margin: 0 0 6px;
    font-size: 22px;
    color: #16396a;
}

.history-item__main p {
    margin: 0;
    color: #62748c;
    line-height: 1.5;
}

.history-item__meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.history-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
}

.history-badge--travel {
    background: rgba(34, 112, 170, 0.12);
    color: #1f5f95;
}

.history-badge--ti {
    background: rgba(56, 189, 248, 0.18);
    color: #0c4a6e;
}

.history-badge--refund {
    background: rgba(46, 125, 50, 0.12);
    color: #2e7d32;
}

.history-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    background: #eef4fb;
    color: #16396a;
}

.history-chip--warn {
    background: rgba(255, 193, 7, 0.16);
    color: #8a6200;
}

.history-date {
    font-size: 13px;
    color: #62748c;
    font-weight: 600;
}

.history-item__details {
    padding: 0 22px 22px;
}

.history-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.history-detail-box {
    background: #f8fbff;
    border: 1px solid #d8e5f3;
    border-radius: 18px;
    padding: 16px;
}

.history-detail-box h4 {
    margin: 0 0 12px;
    color: #16396a;
    font-size: 16px;
}

.history-detail-box p {
    margin: 0 0 8px;
    color: #43556d;
    line-height: 1.5;
}

.history-detail-list {
    margin: 0;
    padding-left: 18px;
    color: #43556d;
}

.history-detail-list li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.history-pre {
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
    font-size: 12px;
    color: #43556d;
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    border: 1px solid #d9e5f2;
}

.history-empty {
    padding: 36px 20px;
    text-align: center;
    background: #fff;
    border-radius: 22px;
    border: 1px solid #d9e5f2;
}

.history-empty strong {
    display: block;
    color: #16396a;
    margin-bottom: 6px;
    font-size: 18px;
}

.history-empty span {
    color: #62748c;
}

@media (max-width: 1100px) {
    .history-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .history-filters {
        grid-template-columns: 1fr 1fr;
    }

    .history-filter-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .history-detail-grid {
        grid-template-columns: 1fr;
    }

    .history-item__main {
        flex-direction: column;
    }

    .history-item__meta {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .history-stats {
        grid-template-columns: 1fr;
    }

    .history-filters {
        grid-template-columns: 1fr;
    }
}

/*Reserva de Sala de Reunião */
.room-page{
    display:grid;
    gap:24px;
}

.room-page-hero,
.room-page-panel{
    background:#fff;
    border:1px solid #dbe7f3;
    border-radius:24px;
    box-shadow:0 16px 34px rgba(16,35,66,.08);
}

.room-page-hero{
    padding:28px;
    background:linear-gradient(135deg,#f8fbff 0%,#edf4fb 100%);
}

.room-page-hero h1{
    margin:0 0 10px;
    color:#183153;
    font-size:2rem;
}

.room-page-hero p{
    margin:0;
    color:#62748d;
    line-height:1.7;
}

.room-page-grid{
    display:grid;
    gap:24px;
    grid-template-columns:340px minmax(0,1fr);
}

.room-page-panel{
    padding:22px;
}

.room-page-panel h2{
    margin:0 0 14px;
    color:#183153;
    font-size:1.15rem;
}

.room-day-list{
    display:grid;
    gap:10px;
    max-height:540px;
    overflow:auto;
}

.room-day-item{
    border:1px solid #dbe7f3;
    border-radius:16px;
    padding:14px;
    background:#f8fbff;
}

.room-day-item strong{
    display:block;
    color:#16304f;
    margin-bottom:4px;
}

.room-day-item span{
    color:#60738d;
    font-size:.95rem;
}

.room-day-empty{
    color:#71829b;
    font-size:.95rem;
}

.room-toolbar{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin-top:18px;
}

.room-btn{
    border:none;
    border-radius:14px;
    padding:12px 16px;
    font-weight:800;
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    transition:all .2s ease;
}

.room-btn-primary{
    background:#2270aa;
    color:#fff;
}

.room-btn-primary:hover{
    filter:brightness(.96);
}

.room-btn-secondary{
    background:#eef4fa;
    color:#183153;
}

.room-btn-secondary:hover{
    background:#e2edf7;
}

.room-btn-link{
    text-decoration:none;
}

.room-btn-danger{
    background:#fff;
    color:#dc3545;
    border:1px solid #dc3545;
}

.room-btn-danger:hover{
    background:#fff5f5;
}

.room-btn:disabled{
    opacity:.75;
    cursor:not-allowed;
}

.room-modal{
    position:fixed;
    inset:0;
    display:none;
    align-items:center;
    justify-content:center;
    z-index:9999;
}

/* Sobre o modal de detalhes ao confirmar cancelamento */
.room-modal--stack{
    z-index:10050;
}

.room-modal.is-busy .room-modal-backdrop{
    cursor:wait;
}

.room-modal.is-open{
    display:flex;
}

.room-modal-backdrop{
    position:absolute;
    inset:0;
    background:rgba(10,20,34,.45);
}

.room-modal-dialog{
    position:relative;
    z-index:2;
    width:min(720px, calc(100vw - 32px));
    max-height:calc(100vh - 40px);
    overflow:auto;
    background:#fff;
    border-radius:22px;
    box-shadow:0 24px 50px rgba(0,0,0,.22);
    padding:22px;
}

.room-modal-dialog--success{
    max-width:440px;
    text-align:center;
    padding:32px 24px;
}

.room-modal-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin-bottom:18px;
}

.room-modal-head h3{
    margin:0;
    color:#183153;
}

.room-close{
    border:none;
    width:40px;
    height:40px;
    border-radius:12px;
    background:#edf4fa;
    cursor:pointer;
    font-size:1.2rem;
    color:#183153;
}

.room-close:hover{
    background:#e3edf7;
}

.room-form{
    display:grid;
    gap:16px;
}

.room-form-grid{
    display:grid;
    gap:14px;
    grid-template-columns:repeat(2,minmax(0,1fr));
}

.room-field{
    display:grid;
    gap:8px;
}

.room-field-full{
    grid-column:1 / -1;
}

.room-field label{
    font-weight:700;
    color:#183153;
}

.room-field input,
.room-field select,
.room-field textarea{
    width:100%;
    border:1px solid #d5e2ee;
    border-radius:14px;
    padding:12px 14px;
    font:inherit;
    background:#fff;
    color:#183153;
    box-sizing:border-box;
}

.room-field input:focus,
.room-field select:focus,
.room-field textarea:focus{
    outline:none;
    border-color:#2270aa;
    box-shadow:0 0 0 3px rgba(34,112,170,.12);
}

.room-field textarea{
    min-height:110px;
    resize:vertical;
}

.room-recurring{
    display:grid;
    gap:12px;
    padding:14px;
    border:1px dashed #d4e1ed;
    border-radius:16px;
    background:#f8fbff;
}

.room-checkbox-inline{
    display:flex;
    align-items:center;
    gap:10px;
}

.room-modal-actions{
    display:flex;
    justify-content:flex-end;
    gap:12px;
    flex-wrap:wrap;
    margin-top:8px;
}

.room-modal-actions-center{
    justify-content:center;
    margin-top:24px;
}

.room-modal-actions-between{
    justify-content:space-between;
    align-items:center;
}

.room-detail-body{
    display:grid;
    gap:10px;
    color:#5e728c;
    line-height:1.7;
}

.room-feedback{
    position:fixed;
    right:18px;
    bottom:18px;
    z-index:10000;
    min-width:280px;
    max-width:420px;
    padding:14px 16px;
    border-radius:16px;
    color:#fff;
    box-shadow:0 16px 30px rgba(0,0,0,.2);
    display:none;
}

.room-feedback.is-show{
    display:block;
}

.room-feedback.success{
    background:#198754;
}

.room-feedback.error{
    background:#c0392b;
}

.room-btn-loading{
    width:18px;
    height:18px;
    border:2px solid rgba(255,255,255,.35);
    border-top-color:#ffffff;
    border-right-color:#ffffff;
    border-radius:50%;
    display:none;
    animation:roomSpin .7s linear infinite;
    flex-shrink:0;
}

.room-btn.is-loading{
    gap:10px;
    opacity:.95;
    pointer-events:none;
}

.room-btn.is-loading .room-btn-text{
    opacity:.82;
}

.room-btn.is-loading .room-btn-loading{
    display:inline-block;
}

.room-success-icon{
    width:64px;
    height:64px;
    margin:0 auto 16px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#e7f7ee;
    color:#28a745;
    font-size:2rem;
    font-weight:800;
}

.room-modal-dialog--success h3{
    margin:0 0 10px;
    color:#183153;
    font-size:2rem;
}

.room-modal-dialog--success p{
    margin:0;
    color:#6b7c93;
    font-size:1.05rem;
}

@keyframes roomSpin{
    to{
        transform:rotate(360deg);
    }
}

@media (max-width: 980px){
    .room-page-grid{
        grid-template-columns:1fr;
    }
}

@media (max-width: 768px){
    .room-modal-actions-between{
        justify-content:flex-end;
    }
}

@media (max-width: 640px){
    .room-form-grid{
        grid-template-columns:1fr;
    }

    .room-modal-dialog{
        width:min(100vw - 20px, 720px);
        padding:18px;
    }

    .room-page-hero{
        padding:22px;
    }
}
.room-btn-loading{
    width:18px;
    height:18px;
    border:2px solid rgba(255,255,255,.35);
    border-top-color:#ffffff;
    border-right-color:#ffffff;
    border-radius:50%;
    display:none;
    animation:roomSpin .7s linear infinite;
    flex-shrink:0;
}

.room-btn.is-loading{
    gap:10px;
    opacity:.95;
    pointer-events:none;
}


/* =========================================================
   Jurídico - Bloko Conecta 2.0
   Versão limpa, premium e sem hero/preview redundante
   ========================================================= */

.jur-page {
    width: min(1420px, calc(100vw - 36px));
    margin: 0 auto;
    padding: 30px 0 56px;
    color: #0a2748;
}

/* Cabeçalho simples da página */
.jur-page-head {
    position: relative;
    margin-bottom: 26px;
    padding: 26px 30px;
    border: 1px solid rgba(216, 230, 244, .96);
    border-radius: 28px;
    background:
        radial-gradient(circle at 8% 20%, rgba(59, 186, 235, .12), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(247, 251, 255, .96));
    box-shadow: 0 18px 44px rgba(8, 31, 59, .08);
    overflow: hidden;
}

.jur-page-head::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -100px;
    width: 240px;
    height: 240px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(52, 184, 234, .18), transparent 68%);
    pointer-events: none;
}

.jur-page-head > div {
    position: relative;
    z-index: 1;
}

.jur-page-head h1 {
    margin: 4px 0 8px;
    color: #082542;
    font-size: clamp(1.9rem, 3vw, 3rem);
    font-weight: 950;
    letter-spacing: -.055em;
    line-height: 1;
}

.jur-page-head p {
    max-width: 760px;
    margin: 0;
    color: #617894;
    font-size: 1rem;
    line-height: 1.6;
}

/* Kicker / etiqueta */
.jur-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #1685c4;
    font-size: .74rem;
    font-weight: 950;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.jur-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #39bdea;
    box-shadow: 0 0 0 5px rgba(57, 189, 234, .14);
}

/* Cabeçalho de seção */
.jur-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 22px;
    margin: 28px 0 18px;
}

.jur-section-head h2,
.jur-panel__head h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 2rem);
    font-weight: 950;
    letter-spacing: -.045em;
    line-height: 1.08;
}

.jur-page--clean .jur-section-head h2,
.jur-page--clean .jur-panel__head h2 {
    color: #082542;
}

.jur-page--clean .jur-section-head p {
    max-width: 440px;
    margin: 0;
    color: #58718f;
    font-size: .96rem;
    line-height: 1.55;
    text-align: right;
}

/* Modo escuro: títulos no fundo escuro do portal */
html[data-theme="dark"] .jur-page--clean > .jur-section-head h2 {
    color: #e8f4fc;
}

html[data-theme="dark"] .jur-page--clean > .jur-section-head p {
    color: #a8bdd2;
}

/* Painéis e cards continuam claros — texto escuro dentro deles */
html[data-theme="dark"] .jur-page--clean .jur-panel__head h2 {
    color: #082542;
}

/* Cards principais */
.jur-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.jur-quick-card {
    position: relative;
    overflow: hidden;
    min-height: 238px;
    padding: 24px;
    border: 1px solid rgba(213, 228, 242, .95);
    border-radius: 28px;
    background:
        radial-gradient(circle at 92% 0%, rgba(56, 184, 234, .12), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, .99), rgba(247, 251, 255, .96));
    box-shadow: 0 18px 44px rgba(8, 31, 59, .09);
    transition:
        transform .28s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow .28s ease,
        border-color .28s ease;
}

.jur-quick-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, #4bd1ff, #126fa8);
    opacity: .95;
}

.jur-quick-card::after {
    content: "";
    position: absolute;
    right: -52px;
    bottom: -58px;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(23, 112, 170, .12), transparent 68%);
    pointer-events: none;
}

.jur-quick-card:hover {
    transform: translateY(-6px);
    border-color: rgba(57, 189, 234, .52);
    box-shadow: 0 28px 68px rgba(8, 31, 59, .14);
}

.jur-quick-card:hover .jur-quick-card__icon--glyph {
    transform: scale(1.06) translateY(-2px);
    border-color: rgba(23, 112, 170, 0.28);
    background: rgba(23, 112, 170, 0.12);
}

.jur-quick-card__icon,
.jur-process-card__icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 14px;
    flex-shrink: 0;
}

.jur-quick-card__icon--glyph,
.jur-process-card__icon--glyph {
    background: rgba(23, 112, 170, 0.08);
    border: 1px solid rgba(23, 112, 170, 0.14);
    color: #1770aa;
    box-shadow: none;
    transition:
        transform .28s cubic-bezier(0.22, 1, 0.36, 1),
        background .28s ease,
        border-color .28s ease;
}

.jur-quick-card__icon--glyph i.bi,
.jur-process-card__icon--glyph i.bi {
    font-size: 1.2rem;
    line-height: 1;
    display: block;
}

html[data-theme="dark"] .jur-quick-card__icon--glyph,
html[data-theme="dark"] .jur-process-card__icon--glyph {
    background: rgba(23, 112, 170, 0.08);
    border-color: rgba(23, 112, 170, 0.14);
    color: #1770aa;
}

.jur-quick-card h3,
.jur-team-card h3,
.jur-process-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 9px;
    color: #082542;
    font-size: 1.08rem;
    font-weight: 950;
    letter-spacing: -.025em;
    line-height: 1.18;
}

.jur-quick-card p,
.jur-process-card p {
    position: relative;
    z-index: 1;
    margin: 0 0 22px;
    color: #58718f;
    font-size: .96rem;
    line-height: 1.55;
}

/* Botões */
.jur-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 11px 17px;
    border: none;
    border-radius: 14px;
    background:
        linear-gradient(180deg, #38b8ea 0%, #1770aa 100%);
    color: #ffffff;
    font-size: .9rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .22),
        0 12px 24px rgba(23, 112, 170, .22);
    transition:
        transform .16s ease,
        box-shadow .16s ease,
        filter .16s ease;
}

.jur-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .26),
        0 16px 30px rgba(23, 112, 170, .28);
}

.jur-btn--secondary {
    background: #eef6fc;
    color: #0f4e7e;
    box-shadow: none;
}

.jur-btn--secondary:hover {
    background: #e5f2fb;
    box-shadow: none;
}

.jur-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
}

/* Painel principal */
.jur-panel {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border: 1px solid rgba(213, 228, 242, .96);
    border-radius: 30px;
    background:
        radial-gradient(circle at 100% 0%, rgba(58, 187, 235, .10), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, .99), rgba(247, 251, 255, .96));
    box-shadow: 0 20px 50px rgba(8, 31, 59, .09);
}

.jur-panel--full {
    margin-top: 24px;
}

.jur-panel__head {
    margin-bottom: 18px;
}

/* Frentes de atuação */
.jur-accordion {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.jur-accordion__item {
    overflow: hidden;
    border: 1px solid #dfeaf5;
    border-radius: 20px;
    background:
        linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow: 0 10px 24px rgba(8, 31, 59, .05);
    transition:
        box-shadow 0.32s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.32s ease,
        transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.jur-accordion--animated .jur-accordion__item:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(8, 31, 59, 0.08);
}

.jur-accordion__item summary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 62px;
    padding: 18px 20px;
    color: #10345a;
    font-size: .98rem;
    font-weight: 950;
    list-style: none;
    cursor: pointer;
    transition: background 0.28s ease, color 0.22s ease;
}

.jur-accordion--hover-open .jur-accordion__item summary {
    cursor: default;
}

.jur-accordion--hover-open .jur-accordion__item:hover summary {
    background: linear-gradient(180deg, #f7fbff, #ffffff);
}

.jur-accordion__item summary::-webkit-details-marker {
    display: none;
}

.jur-accordion__title {
    flex: 1;
    min-width: 0;
}

.jur-accordion__chevron {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 999px;
    background: rgba(23, 112, 170, 0.08);
    border: 1px solid rgba(23, 112, 170, 0.14);
    color: #1770aa;
    transition:
        transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.22s ease,
        border-color 0.22s ease;
}

.jur-accordion__chevron i.bi {
    font-size: 0.95rem;
    line-height: 1;
    display: block;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.jur-accordion__item[open] .jur-accordion__chevron i.bi {
    transform: rotate(180deg);
}

.jur-accordion__item summary:hover .jur-accordion__chevron {
    background: rgba(23, 112, 170, 0.14);
    border-color: rgba(23, 112, 170, 0.22);
}

.jur-accordion__item[open] summary {
    border-bottom: 1px solid #e4edf7;
    background: linear-gradient(180deg, #f7fbff, #ffffff);
}

.jur-accordion__body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.jur-accordion__item[open] .jur-accordion__body {
    grid-template-rows: 1fr;
}

.jur-accordion__body > ul {
    overflow: hidden;
    margin: 0;
    padding: 0 22px 0 38px;
    color: #3d5670;
    font-size: .96rem;
    line-height: 1.55;
}

.jur-accordion__item[open] .jur-accordion__body > ul {
    padding: 16px 22px 20px 38px;
}

.jur-accordion__item li {
    margin-bottom: 8px;
    opacity: 0;
    transform: translateX(-8px);
}

.jur-accordion__item[open] .jur-accordion__body li,
.jur-accordion__item[open] .jur-accordion__body li.is-replaying {
    animation: jur-accordion-li-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.jur-accordion__item[open] .jur-accordion__body li:nth-child(1),
.jur-accordion__item[open] .jur-accordion__body li.is-replaying:nth-child(1) { animation-delay: 0.06s; }
.jur-accordion__item[open] .jur-accordion__body li:nth-child(2),
.jur-accordion__item[open] .jur-accordion__body li.is-replaying:nth-child(2) { animation-delay: 0.12s; }
.jur-accordion__item[open] .jur-accordion__body li:nth-child(3),
.jur-accordion__item[open] .jur-accordion__body li.is-replaying:nth-child(3) { animation-delay: 0.18s; }
.jur-accordion__item[open] .jur-accordion__body li:nth-child(4),
.jur-accordion__item[open] .jur-accordion__body li.is-replaying:nth-child(4) { animation-delay: 0.24s; }
.jur-accordion__item[open] .jur-accordion__body li:nth-child(n+5),
.jur-accordion__item[open] .jur-accordion__body li.is-replaying:nth-child(n+5) { animation-delay: 0.3s; }

.jur-accordion__item li:last-child {
    margin-bottom: 0;
}

@keyframes jur-accordion-li-in {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Jurídico — animações de entrada e interação */
.jur-page--animated .jur-section-head {
    animation: fadeSlideUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.jur-page--animated .jur-quick-card {
    animation: fadeSlideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.jur-page--animated .jur-quick-grid .jur-quick-card:nth-child(1) { animation-delay: 0.05s; }
.jur-page--animated .jur-quick-grid .jur-quick-card:nth-child(2) { animation-delay: 0.11s; }
.jur-page--animated .jur-quick-grid .jur-quick-card:nth-child(3) { animation-delay: 0.17s; }
.jur-page--animated .jur-quick-grid .jur-quick-card:nth-child(4) { animation-delay: 0.23s; }
.jur-page--animated .jur-quick-grid .jur-quick-card:nth-child(5) { animation-delay: 0.29s; }
.jur-page--animated .jur-quick-grid .jur-quick-card:nth-child(n+6) { animation-delay: 0.35s; }

.jur-page--animated .jur-panel {
    animation: fadeSlideUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
}

.jur-accordion--animated .jur-accordion__item {
    animation: jur-accordion-card-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.jur-accordion--animated .jur-accordion__item:nth-child(1) { animation-delay: 0.42s; }
.jur-accordion--animated .jur-accordion__item:nth-child(2) { animation-delay: 0.5s; }
.jur-accordion--animated .jur-accordion__item:nth-child(3) { animation-delay: 0.58s; }
.jur-accordion--animated .jur-accordion__item:nth-child(4) { animation-delay: 0.66s; }
.jur-accordion--animated .jur-accordion__item:nth-child(n+5) { animation-delay: 0.74s; }

.jur-panel--animated .jur-panel__head {
    animation: fadeSlideUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.36s both;
}

.jur-accordion__item[open] {
    border-color: rgba(57, 189, 234, 0.45);
    box-shadow: 0 16px 36px rgba(8, 31, 59, 0.12);
    transform: translateY(-2px);
}

@keyframes jur-accordion-card-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.jur-kicker::before {
    animation: jur-kicker-pulse 2.8s ease-in-out infinite;
}

@keyframes jur-kicker-pulse {
    0%, 100% {
        box-shadow: 0 0 0 5px rgba(57, 189, 234, .14);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(57, 189, 234, .22);
    }
}

@media (prefers-reduced-motion: reduce) {
    .jur-page--animated .jur-section-head,
    .jur-page--animated .jur-quick-card,
    .jur-page--animated .jur-panel,
    .jur-accordion--animated .jur-accordion__item,
    .jur-panel--animated .jur-panel__head,
    .jur-accordion__item[open] .jur-accordion__body li {
        animation: none !important;
    }

    .jur-accordion__body {
        transition: none;
    }

    .jur-accordion__item li {
        opacity: 1;
        transform: none;
    }

    .jur-accordion__item[open] .jur-accordion__body > ul {
        padding: 16px 22px 20px 38px;
    }

    .jur-kicker::before {
        animation: none;
    }

    .jur-quick-card:hover,
    .jur-quick-card:hover .jur-quick-card__icon--glyph,
    .jur-accordion--animated .jur-accordion__item:hover,
    .jur-accordion__item[open] {
        transform: none;
    }
}

/* Jurídico — Arquivos compartilhados (SharePoint / Graph) */
.jur-files-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 4px;
    margin-bottom: 18px;
    font-size: 0.92rem;
    color: #4e6784;
}

.jur-files-crumb--link {
    color: #2270aa;
    font-weight: 700;
    text-decoration: none;
}

.jur-files-crumb--link:hover {
    text-decoration: underline;
}

.jur-files-crumb-sep {
    color: #a8b8cc;
    user-select: none;
}

.jur-files-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.jur-files-alert {
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #7f1d1d;
    margin-bottom: 20px;
    line-height: 1.55;
}

.jur-files-alert code {
    font-size: 0.86em;
}

.jur-files-empty {
    text-align: center;
    padding: 48px 24px;
    border-radius: 22px;
    border: 1px dashed rgba(213, 228, 242, 0.95);
    background: rgba(247, 251, 255, 0.65);
    color: #4e6784;
}

.jur-files-empty__icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.jur-files-empty__hint {
    margin: 8px 0 0;
    font-size: 0.95rem;
    color: #7c94ad;
}

.jur-files-table-wrap {
    overflow-x: auto;
    border-radius: 20px;
    border: 1px solid rgba(213, 228, 242, 0.96);
    background: #fff;
    box-shadow: 0 14px 36px rgba(8, 31, 59, 0.06);
}

.jur-files-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.jur-files-table th,
.jur-files-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e8eef5;
}

.jur-files-table th {
    background: #f4f8fc;
    font-weight: 800;
    color: #1c2d4f;
    white-space: nowrap;
}

.jur-files-table tbody tr:hover {
    background: #f9fcff;
}

.jur-files-col-type {
    width: 48px;
    text-align: center;
}

.jur-files-col-meta {
    white-space: nowrap;
    color: #617894;
    font-size: 0.9rem;
}

.jur-files-col-action {
    width: 88px;
}

.jur-files-name-link {
    color: #2270aa;
    font-weight: 700;
    text-decoration: none;
}

.jur-files-name-link:hover {
    text-decoration: underline;
}

.jur-files-name {
    color: #1c2d4f;
    font-weight: 600;
}

.jur-files-open {
    font-weight: 700;
    color: #2270aa;
    text-decoration: none;
}

.jur-files-open:hover {
    text-decoration: underline;
}

.jur-files-footnote {
    margin-top: 22px;
    font-size: 0.82rem;
    color: #7c94ad;
}

.jur-files-footnote code {
    font-size: 0.88em;
    color: #4e6784;
}

@media (max-width: 720px) {
    .jur-files-table th.jur-files-col-meta:nth-of-type(3),
    .jur-files-table td.jur-files-col-meta:nth-of-type(3) {
        display: none;
    }
}

/* Hero interno das páginas Quem Assina / Nosso Time / Processos */
.jur-inner-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    padding: 28px 32px;
    border: 1px solid rgba(213, 228, 242, .96);
    border-radius: 28px;
    background:
        radial-gradient(circle at 92% 8%, rgba(58, 187, 235, .14), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, .99), rgba(247, 251, 255, .96));
    box-shadow: 0 18px 44px rgba(8, 31, 59, .08);
    color: #0a2748;
}

.jur-inner-hero h1 {
    margin: 4px 0 8px;
    color: #082542;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 950;
    letter-spacing: -.05em;
    line-height: 1.02;
}

.jur-inner-hero p {
    max-width: 760px;
    margin: 0;
    color: #617894;
    font-size: 1rem;
    line-height: 1.6;
}

/* Página Nosso Time */
.jur-team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.jur-team-card {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    padding: 22px;
    border: 1px solid rgba(213, 228, 242, .96);
    border-radius: 26px;
    background:
        radial-gradient(circle at 94% 0%, rgba(58, 187, 235, .12), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, .99), rgba(247, 251, 255, .96));
    box-shadow: 0 18px 44px rgba(8, 31, 59, .08);
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

.jur-team-card:hover {
    transform: translateY(-3px);
    border-color: rgba(57, 189, 234, .50);
    box-shadow: 0 26px 60px rgba(8, 31, 59, .12);
}

.jur-team-card__header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.jur-team-card__avatar {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border-radius: 17px;
    background: linear-gradient(180deg, #43c7f6 0%, #126ba5 100%);
    color: #ffffff;
    font-weight: 950;
    box-shadow:
        inset 0 -12px 22px rgba(0, 0, 0, .12),
        0 14px 28px rgba(18, 107, 165, .20);
}

.jur-team-card__header span {
    display: block;
    margin-top: 4px;
    color: #7c94ad;
    font-size: .76rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.jur-team-card ul,
.jur-list {
    margin: 16px 0 0;
    padding-left: 19px;
    color: #516b87;
    font-size: .96rem;
    line-height: 1.48;
}

.jur-team-card li,
.jur-list li {
    margin-bottom: 8px;
}

/* Página Quem Assina */
.jur-simple-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

/* Página Nossos Processos */
.jur-process-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.jur-process-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    padding: 22px;
    border: 1px solid rgba(213, 228, 242, .96);
    border-radius: 26px;
    background:
        radial-gradient(circle at 94% 0%, rgba(58, 187, 235, .12), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, .99), rgba(247, 251, 255, .96));
    box-shadow: 0 18px 44px rgba(8, 31, 59, .08);
}

/* Classes antigas neutralizadas para não atrapalhar caso ainda existam */
.jur-hero,
.jur-hero__stats,
.jur-stat,
.jur-team-preview,
.jur-mini-card,
.jur-mini-card__avatar,
.jur-content-grid {
    display: none !important;
}

/* Responsivo */
@media (max-width: 1280px) {
    .jur-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .jur-team-grid,
    .jur-process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .jur-accordion {
        grid-template-columns: 1fr;
    }

    .jur-simple-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .jur-page {
        width: min(100% - 22px, 1420px);
        padding: 18px 0 38px;
    }

    .jur-page-head,
    .jur-inner-hero,
    .jur-panel {
        border-radius: 22px;
        padding: 22px;
    }

    .jur-section-head {
        display: block;
        margin-top: 22px;
    }

    .jur-section-head p {
        margin-top: 8px;
        text-align: left;
    }

    .jur-quick-grid,
    .jur-team-grid,
    .jur-process-grid {
        grid-template-columns: 1fr;
    }

    .jur-quick-card,
    .jur-team-card,
    .jur-process-card {
        min-height: auto;
        border-radius: 22px;
        padding: 20px;
    }

    .jur-accordion__item summary {
        padding: 16px;
    }

    .jur-accordion__item ul {
        padding: 14px 18px 18px 32px;
    }
}

/* =========================================================
   Jurídico - Quem Assina
   ========================================================= */

.qa-shell {
    width: min(1420px, 100%);
    margin: 0 auto;
}

.qa-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 22px;
    margin-bottom: 20px;
    padding: 26px 30px;
    border: 1px solid rgba(213, 228, 242, .96);
    border-radius: 30px;
    background:
        radial-gradient(circle at 100% 0%, rgba(58, 187, 235, .12), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, .99), rgba(247, 251, 255, .96));
    box-shadow: 0 20px 50px rgba(8, 31, 59, .09);
}

.qa-head h1 {
    margin: 4px 0 8px;
    color: #082542;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 950;
    letter-spacing: -.055em;
    line-height: 1;
}

.qa-head p {
    max-width: 820px;
    margin: 0;
    color: #617894;
    font-size: 1rem;
    line-height: 1.55;
}

.qa-head__actions {
    flex: 0 0 auto;
}

.qa-status {
    margin-bottom: 16px;
    padding: 13px 16px;
    border: 1px solid rgba(213, 228, 242, .96);
    border-radius: 18px;
    background: rgba(255, 255, 255, .84);
    color: #58718f;
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(8, 31, 59, .06);
}

.qa-status--success {
    border-color: rgba(48, 176, 116, .26);
    background: rgba(236, 253, 245, .94);
    color: #11613d;
}

.qa-status--warning {
    border-color: rgba(245, 166, 35, .28);
    background: rgba(255, 248, 235, .95);
    color: #86520c;
}

.qa-status--error {
    border-color: rgba(224, 85, 85, .30);
    background: rgba(255, 240, 240, .96);
    color: #9a2929;
}

.qa-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.qa-tab {
    min-width: 220px;
    padding: 15px 18px;
    border: 1px solid rgba(213, 228, 242, .96);
    border-radius: 20px;
    background: rgba(255, 255, 255, .84);
    color: #0a2748;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(8, 31, 59, .06);
    transition:
        transform .16s ease,
        border-color .16s ease,
        box-shadow .16s ease;
}

.qa-tab:hover {
    transform: translateY(-2px);
    border-color: rgba(57, 189, 234, .45);
    box-shadow: 0 18px 38px rgba(8, 31, 59, .10);
}

.qa-tab strong {
    display: block;
    font-size: .98rem;
    font-weight: 950;
}

.qa-tab span {
    display: block;
    margin-top: 4px;
    color: #6d8098;
    font-size: .82rem;
    font-weight: 800;
}

.qa-tab.is-active {
    border-color: rgba(57, 189, 234, .62);
    background:
        radial-gradient(circle at 100% 0%, rgba(58, 187, 235, .16), transparent 40%),
        #ffffff;
}

.qa-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid rgba(213, 228, 242, .96);
    border-radius: 22px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 14px 32px rgba(8, 31, 59, .07);
}

.qa-search {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    flex: 1;
    padding: 0 14px;
    border: 1px solid #dfeaf5;
    border-radius: 16px;
    background: #f8fbff;
}

.qa-search input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: #082542;
    font-weight: 700;
}

.qa-search input::placeholder {
    color: #8aa0b8;
}

.qa-counter {
    flex: 0 0 auto;
    color: #607994;
    font-size: .9rem;
    font-weight: 900;
}

.qa-board {
    min-height: 260px;
}

.qa-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.qa-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border: 1px solid rgba(213, 228, 242, .96);
    border-radius: 26px;
    background:
        radial-gradient(circle at 100% 0%, rgba(58, 187, 235, .10), transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, .99), rgba(247, 251, 255, .96));
    box-shadow: 0 18px 44px rgba(8, 31, 59, .08);
}

.qa-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, #4bd1ff, #126fa8);
}

.qa-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.qa-card h3 {
    margin: 0;
    color: #082542;
    font-size: 1.08rem;
    font-weight: 950;
    letter-spacing: -.025em;
    line-height: 1.2;
}

.qa-card small {
    display: block;
    margin-top: 5px;
    color: #6d8098;
    font-weight: 800;
}

.qa-pill {
    flex: 0 0 auto;
    padding: 7px 11px;
    border-radius: 999px;
    background: #eef6fc;
    color: #0f4e7e;
    font-size: .75rem;
    font-weight: 950;
    white-space: nowrap;
}

.qa-card__fields {
    display: grid;
    gap: 12px;
}

.qa-field {
    padding: 13px 14px;
    border: 1px solid #e2edf7;
    border-radius: 16px;
    background: rgba(255, 255, 255, .72);
}

.qa-field span {
    display: block;
    margin-bottom: 5px;
    color: #1685c4;
    font-size: .72rem;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.qa-field p,
.qa-field a {
    margin: 0;
    color: #314d6e;
    font-size: .94rem;
    line-height: 1.48;
    word-break: break-word;
}

.qa-field a {
    color: #126fa8;
    font-weight: 900;
    text-decoration: none;
}

.qa-field a:hover {
    text-decoration: underline;
}

.qa-empty {
    padding: 36px;
    border: 1px dashed #cbddeb;
    border-radius: 24px;
    background: rgba(255, 255, 255, .82);
    text-align: center;
    color: #617894;
}

.qa-empty strong {
    display: block;
    color: #082542;
    font-size: 1.15rem;
    font-weight: 950;
}

.qa-empty p {
    margin: 6px 0 0;
}

@media (max-width: 1080px) {
    .qa-card-grid {
        grid-template-columns: 1fr;
    }

    .qa-head {
        display: block;
    }

    .qa-head__actions {
        margin-top: 16px;
    }
}

@media (max-width: 760px) {
    .qa-head,
    .qa-toolbar {
        border-radius: 22px;
    }

    .qa-toolbar {
        display: block;
    }

    .qa-counter {
        margin-top: 10px;
    }

    .qa-tab {
        width: 100%;
    }

    .qa-card {
        padding: 20px;
        border-radius: 22px;
    }

    .qa-card__top {
        display: block;
    }

    .qa-pill {
        display: inline-flex;
        margin-top: 10px;
    }
}

.qa-sheet-placeholder {
    display: grid;
    place-items: center;
    text-align: center;
    min-height: 420px;
    padding: 42px;
    border: 1px solid rgba(213, 228, 242, .96);
    border-radius: 30px;
    background:
        radial-gradient(circle at 100% 0%, rgba(58, 187, 235, .14), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, .99), rgba(247, 251, 255, .96));
    box-shadow: 0 22px 60px rgba(8, 31, 59, .12);
}

.qa-sheet-placeholder__icon {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    margin-bottom: 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, #43c7f6 0%, #126ba5 100%);
    color: #ffffff;
    font-size: 2rem;
    box-shadow: 0 16px 34px rgba(18, 107, 165, .24);
}

.qa-sheet-placeholder h2 {
    margin: 0 0 8px;
    color: #082542;
    font-size: clamp(1.5rem, 2vw, 2.2rem);
    font-weight: 950;
    letter-spacing: -.04em;
}

.qa-sheet-placeholder p {
    max-width: 620px;
    margin: 0 0 22px;
    color: #617894;
    font-size: 1rem;
    line-height: 1.6;
}

.qa-sheet-placeholder strong {
    color: #0a2748;
}

/* =========================================================
   Jurídico - Quem Assina / Preview Excel grande
   ========================================================= */

.qa-shell--sheet-preview {
    width: min(1480px, calc(100vw - 36px));
    margin: 0 auto;
}

.qa-excel-preview-card {
    overflow: hidden;
    width: 100%;
    margin-top: 22px;
    border: 1px solid rgba(213, 228, 242, .22);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(8, 31, 59, .22);
}

.qa-excel-preview-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    min-height: 66px;
    padding: 15px 20px;
    border-bottom: 1px solid #dfeaf5;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.qa-excel-preview-card__header span {
    display: block;
    color: #1685c4;
    font-size: .72rem;
    font-weight: 950;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.qa-excel-preview-card__header strong {
    display: block;
    margin-top: 3px;
    color: #082542;
    font-size: 1rem;
    font-weight: 950;
}

.qa-excel-preview-card__actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.qa-excel-preview-card__reload {
    min-height: 38px;
    padding: 9px 14px;
    border: 0;
    border-radius: 13px;
    background: #eef6fc;
    color: #0f4e7e;
    font-size: .86rem;
    font-weight: 900;
    cursor: pointer;
}

.qa-excel-preview-card__reload:hover {
    background: #e5f2fb;
}

.qa-excel-preview-frame {
    display: block !important;
    width: 100% !important;
    height: calc(100vh - 250px) !important;
    min-height: 680px !important;
    border: 0 !important;
    background: #ffffff !important;
}

.qa-excel-preview-card--portal {
    border-color: rgba(213, 228, 242, .96);
    box-shadow: 0 18px 44px rgba(8, 31, 59, .09);
}

.qa-spreadsheet-panel {
    display: none;
}

.qa-spreadsheet-panel.is-active {
    display: block;
    animation: fadeSlideUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.jur-page--quem-assina .qa-spreadsheet-panel.is-active {
    animation: none;
}

.qa-spreadsheet-wrap {
    overflow: auto;
    max-height: min(72vh, 820px);
    padding: 12px 14px 18px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #7b93ad #e8f0f8;
}

.qa-spreadsheet-wrap::-webkit-scrollbar {
    width: 11px;
    height: 11px;
}

.qa-spreadsheet-wrap::-webkit-scrollbar-track {
    background: #e8f0f8;
    border-radius: 999px;
}

.qa-spreadsheet-wrap::-webkit-scrollbar-thumb {
    border: 3px solid #e8f0f8;
    border-radius: 999px;
    background: linear-gradient(180deg, #8aa8c4 0%, #5f84a8 100%);
    min-height: 40px;
    min-width: 40px;
}

.qa-spreadsheet-wrap::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #6f8fb8 0%, #4a6f94 100%);
}

.qa-spreadsheet-wrap::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, #6264a7 0%, #4f51a0 100%);
}

.qa-spreadsheet-wrap::-webkit-scrollbar-corner {
    background: #e8f0f8;
    border-bottom-right-radius: 12px;
}

html[data-theme="dark"] .qa-spreadsheet-wrap {
    scrollbar-color: #6264a7 rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .qa-spreadsheet-wrap::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .qa-spreadsheet-wrap::-webkit-scrollbar-thumb {
    border-color: rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, #7a7ca8 0%, #6264a7 100%);
}

html[data-theme="dark"] .qa-spreadsheet-wrap::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #8f91c4 0%, #6d6faf 100%);
}

html[data-theme="dark"] .qa-spreadsheet-wrap::-webkit-scrollbar-corner {
    background: rgba(255, 255, 255, 0.06);
}

.qa-spreadsheet-table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    font-size: .86rem;
    color: #10234a;
}

.qa-spreadsheet-table th,
.qa-spreadsheet-table td {
    border: 1px solid #d7e1f0;
    padding: 8px 11px;
    text-align: left;
    vertical-align: top;
    white-space: nowrap;
    line-height: 1.35;
}

.qa-spreadsheet-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #eef5ff;
    color: #082542;
    font-weight: 900;
}

.qa-spreadsheet-table tbody tr:nth-child(even) {
    background: rgba(247, 251, 255, .65);
}

.qa-spreadsheet-table tbody tr:hover {
    background: rgba(227, 242, 252, .9);
}

/* Quem Assina — largura total + colunas legíveis */
.jur-page--quem-assina {
    width: 100%;
    max-width: none;
}

.jur-page--quem-assina .qa-sheet-shell {
    width: 100%;
    max-width: none;
    margin: 0;
}

.qa-spreadsheet-table .qa-col--empresa {
    min-width: 200px;
    max-width: 260px;
    white-space: normal;
}

.qa-spreadsheet-table .qa-col--cnpj {
    min-width: 128px;
}

.qa-spreadsheet-table .qa-col--long {
    min-width: 150px;
    max-width: 220px;
    white-space: normal;
}

.qa-spreadsheet-table .qa-col--link {
    min-width: 96px;
}

.qa-cell-clamp {
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
    font-size: .82rem;
    line-height: 1.35;
    color: #314d6e;
}

.qa-cell-more {
    display: inline-flex;
    padding: 0;
    border: 0;
    background: none;
    color: #126fa8;
    font-size: .78rem;
    font-weight: 800;
    cursor: pointer;
    text-decoration: underline;
}

.qa-cell-more:hover {
    color: #0a4f7c;
}

.qa-cell-link {
    color: #126fa8;
    font-weight: 800;
    text-decoration: none;
}

.qa-cell-link:hover {
    text-decoration: underline;
}

.qa-cell-empty {
    color: #8aa0b8;
}

body.qa-cell-modal-open {
    overflow: hidden;
}

.qa-cell-modal[hidden] {
    display: none !important;
}

.qa-cell-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.qa-cell-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 31, 59, 0.55);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.qa-cell-modal__box {
    position: relative;
    z-index: 1;
    width: min(640px, 100%);
    max-height: min(80vh, 720px);
    overflow: auto;
    padding: 20px 22px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(213, 228, 242, 0.96);
    box-shadow: 0 24px 60px rgba(8, 31, 59, 0.2);
}

.qa-cell-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #eef6fc;
    color: #0f4e7e;
    cursor: pointer;
}

.qa-cell-modal__title {
    margin: 0 36px 12px 0;
    color: #082542;
    font-size: 1.05rem;
    font-weight: 950;
}

.qa-cell-modal__body {
    color: #314d6e;
    font-size: .92rem;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.jur-agenda-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.jur-agenda-stats article {
    padding: 18px 20px;
    border: 1px solid rgba(213, 228, 242, .96);
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    box-shadow: 0 12px 28px rgba(8, 31, 59, .06);
    text-align: center;
}

.jur-agenda-stats span {
    display: block;
    color: #082542;
    font-size: 1.8rem;
    font-weight: 950;
    line-height: 1;
}

.jur-agenda-stats p {
    margin: 6px 0 0;
    color: #4a6278;
    font-size: .9rem;
    font-weight: 800;
}

.jur-agenda-azure-help {
    margin-bottom: 18px;
    padding: 18px 20px;
    border: 1px solid rgba(245, 166, 35, .35);
    border-radius: 20px;
    background: rgba(255, 248, 235, .95);
    color: #5c4a2e;
    line-height: 1.55;
}

.jur-agenda-azure-help strong {
    display: block;
    margin-bottom: 10px;
    color: #7a4e08;
    font-size: .95rem;
}

.jur-agenda-azure-help ol {
    margin: 0;
    padding-left: 22px;
}

.jur-agenda-azure-help li {
    margin-bottom: 6px;
}

.jur-agenda-azure-help code {
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .7);
    font-size: .88em;
}

.jur-agenda-panel {
    overflow: hidden;
    border: 1px solid rgba(213, 228, 242, .96);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(8, 31, 59, .09);
}

.jur-agenda-panel__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px 22px;
    border-bottom: 1px solid #e4edf7;
    background: linear-gradient(180deg, #f7fbff, #ffffff);
}

.jur-agenda-panel__head h2 {
    margin: 0;
    color: #082542;
    font-size: 1.2rem;
    font-weight: 950;
}

.jur-agenda-search {
    min-width: min(360px, 100%);
    margin: 0;
}

.jur-agenda-table-wrap {
    overflow: auto;
    max-height: min(70vh, 760px);
}

.jur-agenda-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
}

.jur-agenda-table th,
.jur-agenda-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #e8f0f8;
    text-align: left;
    color: #314d6e;
}

.jur-agenda-table th {
    position: sticky;
    top: 0;
    background: #f3f9ff;
    color: #082542;
    font-weight: 900;
    font-size: .78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.jur-agenda-table tr.is-done td {
    color: #6d8098;
}

.jur-agenda-pill {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef6fc;
    color: #0f4e7e;
    font-size: .78rem;
    font-weight: 900;
}

.jur-agenda-progress {
    height: 8px;
    margin-bottom: 4px;
    border-radius: 999px;
    background: #e8f0f8;
    overflow: hidden;
}

.jur-agenda-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #38b8ea, #1770aa);
}

.jur-agenda-table tr.is-done .jur-agenda-progress span {
    background: linear-gradient(90deg, #8fd0a8, #30a068);
}

html[data-theme="dark"] .jur-agenda-panel,
html[data-theme="dark"] .jur-agenda-stats article,
html[data-theme="dark"] .qa-excel-preview-card--portal {
    background: linear-gradient(180deg, rgba(255, 255, 255, .99), rgba(247, 251, 255, .96));
}

html[data-theme="dark"] .jur-agenda-panel__head h2,
html[data-theme="dark"] .jur-agenda-table th {
    color: #082542;
}

/* Microsoft Planner — quadro Kanban (Agenda Jurídico) */
.jur-page--planner {
    width: 100%;
    max-width: none;
}

.jur-page--planner .qa-shell.planner-shell {
    width: 100%;
    max-width: none;
    margin: 0;
}

.planner-shell__sync {
    margin-bottom: 10px;
}

.planner-mini-stats {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(98, 100, 167, 0.14);
    color: rgba(255, 255, 255, 0.78);
    font-size: .76rem;
    font-weight: 700;
}

.planner-mini-stats strong {
    color: #d0d1ff;
    font-weight: 800;
}

.planner-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.planner-toolbar__left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    min-width: 0;
}

.planner-view-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
}

.planner-view-tabs__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: .84rem;
    font-weight: 700;
}

.planner-view-tabs__item.is-active {
    background: #6264a7;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.planner-view-tabs__item.is-disabled {
    opacity: 0.45;
    cursor: default;
}

.planner-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 200px;
    max-width: 320px;
    min-width: 160px;
    padding: 0 12px;
    min-height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.planner-search input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: #f3f2f1;
    font-weight: 600;
}

.planner-search input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.planner-board-scroller {
    overflow: hidden;
    border-radius: 12px;
    background: #1b1a19;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.planner-board {
    display: grid;
    grid-template-columns: repeat(var(--planner-cols, 5), minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    height: calc(100dvh - 248px);
    min-height: 480px;
    max-height: 920px;
    padding: 8px;
    box-sizing: border-box;
}

.planner-column {
    min-width: 0;
    width: auto;
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    background: #252423;
    overflow: hidden;
}

.planner-column__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    flex-shrink: 0;
    padding: 8px 10px 7px;
}

.planner-column__title {
    margin: 0;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #f3f2f1;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.25;
}

.planner-column__count {
    flex: 0 0 auto;
    min-width: 22px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    font-size: .68rem;
    font-weight: 800;
    text-align: center;
}

.planner-column__cards {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.planner-column__cards::-webkit-scrollbar {
    width: 5px;
}

.planner-column__cards::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
}

.planner-card {
    padding: 7px 8px 6px;
    border-radius: 6px;
    background: #292827;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.planner-card.is-selected {
    outline: 2px solid rgba(98, 100, 167, 0.7);
    outline-offset: 1px;
}

.planner-card:hover {
    transform: translateY(-1px);
    border-color: rgba(98, 100, 167, 0.45);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.planner-card.is-complete {
    opacity: 0.88;
}

.planner-card__title {
    margin: 0 0 6px;
    color: #f3f2f1;
    font-size: .74rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.planner-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.planner-card__progress {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: rgba(255, 255, 255, 0.78);
    font-size: .66rem;
    font-weight: 700;
}

.planner-card__progress svg {
    width: 16px;
    height: 16px;
}

.planner-ring__track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.18);
    stroke-width: 2.2;
}

.planner-ring__fill {
    fill: none;
    stroke: #6264a7;
    stroke-width: 2.2;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    stroke-dasharray: 50.265;
    transition: stroke-dashoffset 0.3s ease;
}

.planner-card.is-complete .planner-ring__fill {
    stroke: #92c353;
}

.planner-card__due {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    font-size: .72rem;
    font-weight: 700;
}

.planner-card__due.is-late {
    background: rgba(197, 59, 59, 0.35);
    color: #ffc0c0;
}

.planner-card__due.is-done {
    background: rgba(146, 195, 83, 0.2);
    color: #c8e7a7;
}

.planner-column--done .planner-column__head {
    border-top: 3px solid #92c353;
}

.planner-column--progress .planner-column__head {
    border-top: 3px solid #6264a7;
}

.planner-column--radar .planner-column__head {
    border-top: 3px solid #38b8ea;
}

.planner-column--standby .planner-column__head {
    border-top: 3px solid #eaa300;
}

.planner-column--default .planner-column__head {
    border-top: 3px solid #6bb8c9;
}

html[data-theme="light"] .planner-board-scroller {
    background: #f0f1f4;
    box-shadow: inset 0 0 0 1px #e1e3e8;
}

html[data-theme="light"] .planner-view-tabs {
    background: #e8eaef;
}

html[data-theme="light"] .planner-view-tabs__item {
    color: #5a5c70;
}

html[data-theme="light"] .planner-view-tabs__item.is-active {
    background: #6264a7;
    color: #ffffff;
}

html[data-theme="light"] .planner-search {
    background: #ffffff;
    border-color: #d2d7e0;
}

html[data-theme="light"] .planner-search input {
    color: #252423;
}

html[data-theme="light"] .planner-search input::placeholder {
    color: #8a8886;
}

html[data-theme="light"] .planner-column {
    background: #f0f1f4;
}

html[data-theme="light"] .planner-column__title,
html[data-theme="light"] .planner-card__title {
    color: #252423;
}

html[data-theme="light"] .planner-column__count {
    background: rgba(0, 0, 0, 0.06);
    color: #484644;
}

html[data-theme="light"] .planner-card {
    background: #ffffff;
    border-color: #e1e3e8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .planner-card__progress,
html[data-theme="light"] .planner-card__due {
    color: #605e5c;
}

html[data-theme="light"] .planner-card__due {
    background: #f3f2f1;
}

html[data-theme="light"] .planner-ring__track {
    stroke: #e1e3e8;
}

html[data-theme="light"] .planner-mini-stats {
    background: rgba(98, 100, 167, 0.1);
    color: #484644;
}

html[data-theme="light"] .planner-mini-stats strong {
    color: #6264a7;
}

@media (max-width: 1280px) {
    .planner-board {
        height: calc(100dvh - 260px);
    }
}

@media (max-width: 1024px) {
    .planner-board {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        height: auto;
        max-height: none;
        min-height: 0;
    }

    .planner-column {
        max-height: 380px;
        height: auto;
    }
}

@media (max-width: 720px) {
    .planner-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .planner-toolbar__left {
        width: 100%;
    }

    .planner-search {
        max-width: none;
        flex: 1 1 100%;
    }
}

@media (max-width: 480px) {
    .planner-board {
        grid-template-columns: minmax(0, 1fr);
    }
}

body.planner-drawer-open,
body.planner-pop-open {
    overflow: hidden;
}

.planner-task-pop[hidden] {
    display: none !important;
}

.planner-task-pop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.planner-task-pop__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 14, 13, 0.62);
    backdrop-filter: blur(6px);
    cursor: pointer;
}

.planner-task-pop__box {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(560px, 100%);
    max-height: min(88vh, 760px);
    overflow: hidden;
    border-radius: 16px;
    background: #252423;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(98, 100, 167, 0.15);
    animation: plannerPopIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes plannerPopIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.planner-task-pop__head {
    flex-shrink: 0;
    padding: 20px 52px 16px 20px;
    background: linear-gradient(135deg, #6264a7 0%, #4f51a0 55%, #3d3f8a 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.planner-task-pop__kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.92);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.planner-task-pop__title {
    margin: 0;
    color: #ffffff;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.4;
}

.planner-task-pop__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.planner-task-pop__close:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.04);
}

.planner-task-pop__scroll {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.planner-task-pop__body {
    padding: 18px 20px 8px;
    color: #f3f2f1;
}

.planner-task-pop__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.planner-task-pop__meta-card {
    padding: 12px 12px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.planner-task-pop__meta-label {
    display: block;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.5);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.planner-task-pop__meta-value {
    min-height: 28px;
    display: flex;
    align-items: center;
}

.planner-task-pop__pill {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.3;
}

.planner-task-pop__pill--default {
    background: rgba(107, 184, 201, 0.25);
    color: #b8e8f4;
}

.planner-task-pop__pill--standby {
    background: rgba(234, 163, 0, 0.22);
    color: #ffe08a;
}

.planner-task-pop__pill--progress {
    background: rgba(98, 100, 167, 0.35);
    color: #d0d1ff;
}

.planner-task-pop__pill--done {
    background: rgba(146, 195, 83, 0.25);
    color: #c8e7a7;
}

.planner-task-pop__pill--todo {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
}

.planner-task-pop__prazo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .86rem;
    font-weight: 600;
    color: #f3f2f1;
}

.planner-task-pop__ring {
    position: relative;
    width: 44px;
    height: 44px;
}

.planner-task-pop__ring .planner-ring__track {
    stroke-width: 3;
}

.planner-task-pop__ring .planner-ring__fill {
    stroke-width: 3;
}

.planner-task-pop__ring-val {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .68rem;
    font-weight: 800;
    color: #f3f2f1;
}

.planner-task-pop__extra {
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.planner-task-pop__skeleton {
    height: 12px;
    margin: 10px 0 8px;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.14) 50%, rgba(255, 255, 255, 0.06) 100%);
    background-size: 200% 100%;
    animation: plannerSkeleton 1.2s ease-in-out infinite;
}

.planner-task-pop__skeleton--short {
    width: 65%;
    margin-bottom: 14px;
}

@keyframes plannerSkeleton {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.planner-task-pop__loading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.65);
    font-size: .82rem;
}

.planner-task-pop__loading .bi-arrow-repeat {
    animation: plannerSpin 0.9s linear infinite;
}

@keyframes plannerSpin {
    to { transform: rotate(360deg); }
}

.planner-task-pop__section {
    margin-bottom: 16px;
}

.planner-task-pop__section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.55);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.planner-task-pop__section-title .bi {
    font-size: 1rem;
    color: #6264a7;
}

.planner-task-pop__muted {
    margin: 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: .86rem;
    font-style: italic;
}

.planner-task-pop__body .planner-task-notes {
    padding: 14px 16px;
    border-radius: 10px;
    background: #1b1a19;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #edebe9;
    font-size: .88rem;
    line-height: 1.55;
}

.planner-task-pop__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    padding: 14px 20px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.15);
    color: rgba(255, 255, 255, 0.62);
    font-size: .78rem;
    line-height: 1.45;
}

.planner-task-pop__foot > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.planner-task-pop__planner-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    background: #6264a7;
    color: #ffffff !important;
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
}

.planner-task-pop__planner-link:hover {
    background: #4f51a0;
    transform: translateY(-1px);
}

html[data-theme="light"] .planner-task-pop__box {
    background: #ffffff;
    border-color: #e1e3e8;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16);
}

html[data-theme="light"] .planner-task-pop__head {
    background: linear-gradient(135deg, #6264a7 0%, #5b5dc0 100%);
}

html[data-theme="light"] .planner-task-pop__body {
    color: #252423;
}

html[data-theme="light"] .planner-task-pop__meta-card {
    background: #f8f8f8;
    border-color: #e8eaef;
}

html[data-theme="light"] .planner-task-pop__meta-label {
    color: #8a8886;
}

html[data-theme="light"] .planner-task-pop__prazo,
html[data-theme="light"] .planner-task-pop__ring-val {
    color: #252423;
}

html[data-theme="light"] .planner-task-pop__pill--default {
    background: #e8f6fa;
    color: #0078a8;
}

html[data-theme="light"] .planner-task-pop__pill--standby {
    background: #fff4ce;
    color: #8a6914;
}

html[data-theme="light"] .planner-task-pop__pill--progress {
    background: #e8e9fc;
    color: #4f51a0;
}

html[data-theme="light"] .planner-task-pop__pill--done {
    background: #e7f4df;
    color: #498205;
}

html[data-theme="light"] .planner-task-pop__pill--todo {
    background: #f3f2f1;
    color: #484644;
}

html[data-theme="light"] .planner-task-pop__body .planner-task-notes {
    background: #faf9f8;
    border-color: #edebe9;
    color: #252423;
}

html[data-theme="light"] .planner-task-pop__section-title {
    color: #605e5c;
}

html[data-theme="light"] .planner-task-pop__loading,
html[data-theme="light"] .planner-task-pop__muted {
    color: #605e5c;
}

html[data-theme="light"] .planner-task-pop__skeleton {
    background: linear-gradient(90deg, #f3f2f1 0%, #e1e3e8 50%, #f3f2f1 100%);
    background-size: 200% 100%;
}

html[data-theme="light"] .planner-task-pop__foot {
    background: #faf9f8;
    color: #605e5c;
}

html[data-theme="light"] .planner-task-pop__close {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.planner-task-drawer {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    justify-content: flex-end;
    pointer-events: none;
}

.planner-task-drawer:not([hidden]) {
    pointer-events: auto;
}

.planner-task-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}

.planner-task-drawer__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(440px, 100vw);
    max-height: 100vh;
    background: #252423;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
    animation: plannerDrawerIn 0.22s ease;
}

@keyframes plannerDrawerIn {
    from {
        transform: translateX(100%);
        opacity: 0.6;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.planner-task-drawer__head {
    flex-shrink: 0;
    padding: 16px 18px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.planner-task-drawer__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-bottom: 10px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #f3f2f1;
    cursor: pointer;
}

.planner-task-drawer__close:hover {
    background: rgba(255, 255, 255, 0.14);
}

.planner-task-drawer__title {
    margin: 0;
    color: #f3f2f1;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
}

.planner-task-drawer__coluna {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: .8rem;
}

.planner-task-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 18px 20px;
}

.planner-task-drawer__foot {
    flex-shrink: 0;
    padding: 12px 18px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.planner-task-drawer__hint {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.62);
    font-size: .78rem;
    line-height: 1.45;
}

.planner-task-drawer__loading,
.planner-task-drawer__error,
.planner-task-drawer__empty {
    color: rgba(255, 255, 255, 0.72);
    font-size: .88rem;
}

.planner-task-drawer__error {
    color: #ffc0c0;
}

.planner-task-fields {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.planner-task-field {
    display: grid;
    gap: 2px;
}

.planner-task-field__label {
    color: rgba(255, 255, 255, 0.55);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.planner-task-field__value {
    color: #f3f2f1;
    font-size: .9rem;
    font-weight: 600;
}

.planner-task-section {
    margin-bottom: 18px;
}

.planner-task-section h3 {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.55);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.planner-task-notes {
    padding: 10px 12px;
    border-radius: 6px;
    background: #1b1a19;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #f3f2f1;
    font-size: .86rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.planner-task-checklist {
    margin: 0;
    padding: 0;
    list-style: none;
}

.planner-task-checklist__item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    color: #f3f2f1;
    font-size: .86rem;
}

.planner-task-checklist__box {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 3px;
}

.planner-task-checklist__item.is-checked .planner-task-checklist__box {
    background: #92c353;
    border-color: #92c353;
    box-shadow: inset 0 0 0 2px #252423;
}

.planner-task-checklist__item.is-checked span:last-child {
    text-decoration: line-through;
    opacity: 0.75;
}

html[data-theme="light"] .planner-task-drawer__backdrop {
    background: rgba(0, 0, 0, 0.35);
}

html[data-theme="light"] .planner-task-drawer__panel {
    background: #ffffff;
    border-left-color: #e1e3e8;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .planner-task-drawer__title,
html[data-theme="light"] .planner-task-field__value,
html[data-theme="light"] .planner-task-checklist__item,
html[data-theme="light"] .planner-task-notes,
html[data-theme="light"] .planner-task-drawer__loading,
html[data-theme="light"] .planner-task-drawer__error,
html[data-theme="light"] .planner-task-drawer__empty {
    color: #252423;
}

html[data-theme="light"] .planner-task-drawer__error {
    color: #a4262c;
}

html[data-theme="light"] .planner-task-drawer__coluna,
html[data-theme="light"] .planner-task-drawer__hint,
html[data-theme="light"] .planner-task-field__label,
html[data-theme="light"] .planner-task-section h3 {
    color: #605e5c;
}

html[data-theme="light"] .planner-task-notes {
    background: #f3f2f1;
    border-color: #e1e3e8;
}

html[data-theme="light"] .planner-task-drawer__close {
    background: #f3f2f1;
    color: #252423;
}

.qa-embed-help {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .16);
    color: rgba(235, 246, 255, .84);
    font-size: .88rem;
    line-height: 1.5;
}

.qa-embed-help strong {
    color: #ffffff;
}

.qa-embed-help code {
    color: #d6f4ff;
    font-weight: 800;
}

@media (max-width: 760px) {
    .qa-shell--sheet-preview {
        width: min(100% - 22px, 1480px);
    }

    .qa-excel-preview-card {
        border-radius: 22px;
    }

    .qa-excel-preview-card__header {
        display: block;
    }

    .qa-excel-preview-card__actions {
        margin-top: 12px;
    }

    .qa-excel-preview-frame {
        height: 720px !important;
        min-height: 720px !important;
    }
}

/* =========================================================
   Jurídico - Nosso Time
   ========================================================= */

.jur-time-page {
    position: relative;
    padding: 26px 24px 38px;
}

.jur-time-shell {
    max-width: 1360px;
    margin: 0 auto;
}

.jur-time-hero {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 28px 30px;
    margin-bottom: 22px;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.97) 0%, rgba(245,250,254,0.96) 72%, rgba(230,244,252,0.88) 100%);
    border: 1px solid rgba(167, 214, 243, 0.35);
    box-shadow:
        0 14px 36px rgba(4, 18, 40, 0.18),
        inset 0 1px 0 rgba(255,255,255,0.60);
}

.jur-time-hero::after {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(62, 177, 232, 0.18) 0%, rgba(62, 177, 232, 0) 72%);
    pointer-events: none;
}

.jur-time-hero__content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.jur-time-hero h1 {
    margin: 8px 0 10px;
    font-size: clamp(2.05rem, 3vw, 3.1rem);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #072b57;
}

.jur-time-hero p {
    margin: 0;
    max-width: 760px;
    font-size: 1rem;
    line-height: 1.65;
    color: #5d7394;
}

.jur-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #1496dd;
}

.jur-kicker::before {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: linear-gradient(180deg, #6fd4ff 0%, #2fa7e6 100%);
    box-shadow: 0 0 0 4px rgba(48, 167, 230, 0.14);
}

.jur-time-intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin: 2px 2px 18px;
}

.jur-time-intro__left h2 {
    margin: 8px 0 0;
    font-size: clamp(1.55rem, 2vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #f8fbff;
}

.jur-time-intro__right {
    max-width: 480px;
}

.jur-time-intro__right p {
    margin: 0;
    text-align: right;
    font-size: 0.98rem;
    line-height: 1.65;
    color: rgba(232, 242, 252, 0.78);
}

.jur-time-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.jur-time-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    min-height: 245px;
    padding: 20px 20px 18px;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.97) 0%, rgba(245,250,254,0.96) 72%, rgba(230,244,252,0.88) 100%);
    border: 1px solid rgba(164, 208, 235, 0.28);
    box-shadow:
        0 10px 30px rgba(4, 18, 40, 0.16),
        inset 0 1px 0 rgba(255,255,255,0.56);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.jur-time-card:hover {
    transform: translateY(-4px);
    border-color: rgba(91, 190, 236, 0.46);
    box-shadow:
        0 18px 36px rgba(4, 18, 40, 0.22),
        0 0 0 1px rgba(84, 186, 234, 0.16) inset;
}

.jur-time-card__topbar {
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, #61d6ff 0%, #1798e0 100%);
    box-shadow: 0 0 18px rgba(40, 176, 235, 0.38);
}

.jur-time-card__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.jur-time-card__avatar {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(180deg, #57c9f4 0%, #0a79c9 100%);
    box-shadow:
        0 12px 22px rgba(14, 136, 210, 0.28),
        inset 0 1px 0 rgba(255,255,255,0.28);
}

.jur-time-card__titlebox h3 {
    margin: 0 0 3px;
    font-size: 1.25rem;
    line-height: 1.15;
    font-weight: 800;
    color: #072b57;
    letter-spacing: -0.02em;
}

.jur-time-card__titlebox span {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7f99b9;
}

.jur-time-card__desc {
    margin: 0 0 14px;
    font-size: 0.94rem;
    line-height: 1.6;
    color: #60779a;
}

.jur-time-card__list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
}

.jur-time-card__list li {
    color: #4d688b;
    font-size: 0.96rem;
    line-height: 1.55;
}

.jur-time-card__list li::marker {
    color: #3fb9ef;
}

/* Responsivo */
@media (max-width: 1200px) {
    .jur-time-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .jur-time-page {
        padding: 18px 16px 28px;
    }

    .jur-time-intro {
        flex-direction: column;
        align-items: flex-start;
    }

    .jur-time-intro__right p {
        text-align: left;
    }

    .jur-time-grid {
        grid-template-columns: 1fr;
    }

    .jur-time-card {
        min-height: auto;
    }
}

@media (max-width: 560px) {
    .jur-time-hero {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .jur-time-hero h1 {
        font-size: 2rem;
    }

    .jur-time-card {
        padding: 18px 16px 16px;
        border-radius: 20px;
    }

    .jur-time-card__head {
        align-items: flex-start;
    }

    .jur-time-card__titlebox h3 {
        font-size: 1.1rem;
    }
}


/* =========================================================
   Jurídico - Nossos Processos
   Cards clicáveis
   ========================================================= */

.jur-process-card--clickable {
    cursor: pointer;
    min-height: 245px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

.jur-process-card--clickable:hover {
    transform: translateY(-4px);
    border-color: rgba(57, 189, 234, .55);
    box-shadow: 0 28px 68px rgba(8, 31, 59, .16);
}

.jur-process-card--clickable:focus {
    outline: 3px solid rgba(57, 189, 234, .35);
    outline-offset: 4px;
}

.jur-process-card__content {
    position: relative;
    z-index: 1;
}

.jur-process-card__file {
    display: inline-flex;
    margin-top: 12px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(23, 112, 170, .08);
    color: #126fa8;
    font-size: .78rem;
    font-weight: 900;
}

.jur-process-card__footer {
    position: relative;
    z-index: 1;
    margin-top: 22px;
}

.jur-process-card__footer .jur-btn {
    pointer-events: none;
}





/*Engenharia*/


/* =========================
   ENGENHARIA - BLOKO CONECTA 2.0
   ========================= */
.eng-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.eng-hero {
    display: grid;
    grid-template-columns: 1.6fr .8fr;
    gap: 24px;
    padding: 32px;
    border-radius: 28px;
    background: linear-gradient(135deg, #0f2747 0%, #123d73 45%, #1f69c7 100%);
    color: #fff;
    box-shadow: 0 18px 50px rgba(17, 24, 39, .18);
    position: relative;
    overflow: hidden;
}

.eng-hero::after {
    content: "";
    position: absolute;
    inset: auto -40px -40px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
}

.eng-hero__eyebrow,
.eng-section__eyebrow,
.eng-modal__eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    opacity: .8;
    margin-bottom: 10px;
}

.eng-hero__title {
    margin: 0 0 12px;
    font-size: 38px;
    line-height: 1.05;
}

.eng-hero__text {
    margin: 0;
    max-width: 700px;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255,255,255,.92);
}

.eng-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.eng-hero__icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.eng-hero__icon span {
    display: grid;
    place-items: center;
    width: 170px;
    height: 170px;
    border-radius: 28px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.15);
    font-size: 72px;
    backdrop-filter: blur(8px);
}

.eng-alert {
    border-radius: 18px;
    padding: 16px 18px;
    font-weight: 600;
    border: 1px solid transparent;
}

.eng-alert--sucesso {
    background: #ecfdf3;
    color: #166534;
    border-color: #bbf7d0;
}

.eng-alert--erro {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.eng-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.eng-card,
.eng-section,
.eng-modal__dialog {
    background: #fff;
    border: 1px solid #e6ebf2;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}

.eng-card {
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.eng-card__header {
    display: flex;
    gap: 14px;
    padding: 22px 22px 12px;
}

.eng-card__icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #e9f1ff, #dbeafe);
    font-size: 24px;
}

.eng-card__title {
    margin: 0 0 6px;
    font-size: 18px;
    color: #0f172a;
}

.eng-card__desc {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
    font-size: 14px;
}

.eng-card__body {
    padding: 0 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.eng-mini-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.eng-mini-info__item {
    padding: 14px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
}

.eng-mini-info__item strong {
    display: block;
    margin-bottom: 6px;
    color: #0f172a;
}

.eng-mini-info__item span {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.eng-illustration,
.eng-org-preview,
.eng-map-preview {
    border-radius: 18px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #edf2f7;
}

.eng-illustration {
    min-height: 180px;
    display: grid;
    place-items: center;
}

.eng-illustration__emoji {
    font-size: 64px;
}

.eng-map-preview iframe {
    width: 100%;
    min-height: 180px;
    border: 0;
    display: block;
}

.eng-org-preview {
    min-height: 180px;
    display: grid;
    place-items: center;
    padding: 10px;
}

.eng-org-preview img,
.eng-org-full img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.eng-section {
    border-radius: 26px;
    padding: 26px;
}

.eng-section__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.eng-section__title {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 28px;
}

.eng-section__text {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

.eng-table-wrap {
    overflow: auto;
    border-radius: 18px;
    border: 1px solid #edf2f7;
}

.eng-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1080px;
}

.eng-table thead th {
    background: #f8fafc;
    color: #334155;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.eng-table tbody td {
    padding: 16px;
    vertical-align: top;
    border-bottom: 1px solid #eef2f7;
    color: #0f172a;
    font-size: 14px;
}

.eng-colaborador,
.eng-local {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.eng-colaborador span,
.eng-local span {
    color: #64748b;
    font-size: 13px;
}

.eng-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.eng-badge.is-office { background: #eff6ff; color: #1d4ed8; }
.eng-badge.is-work { background: #ecfdf3; color: #15803d; }
.eng-badge.is-visit { background: #fff7ed; color: #c2410c; }
.eng-badge.is-meeting { background: #faf5ff; color: #7e22ce; }
.eng-badge.is-home { background: #f0fdf4; color: #166534; }
.eng-badge.is-move { background: #eef2ff; color: #4338ca; }
.eng-badge.is-default { background: #f1f5f9; color: #334155; }

.eng-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.eng-btn,
.eng-btn-icon {
    border: 0;
    cursor: pointer;
    transition: .2s ease;
    font-weight: 700;
}

.eng-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 14px;
    text-decoration: none;
}

.eng-btn:hover,
.eng-btn-icon:hover {
    transform: translateY(-1px);
}

.eng-btn--primary {
    background: linear-gradient(135deg, #123d73, #1f69c7);
    color: #fff;
}

.eng-btn--light {
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,.16);
}

.eng-btn--secondary {
    background: #eef4ff;
    color: #123d73;
}

.eng-btn--ghost {
    background: #f8fafc;
    color: #334155;
}

@keyframes eng-contato-spin {
    to {
        transform: rotate(360deg);
    }
}

.eng-btn__spinner {
    display: none;
    box-sizing: border-box;
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.38);
    border-top-color: #fff;
    border-radius: 50%;
    animation: eng-contato-spin 0.7s linear infinite;
}

.eng-btn.is-loading {
    pointer-events: none;
    cursor: progress;
    opacity: 0.92;
}

.eng-btn.is-loading .eng-btn__spinner {
    display: block;
}

.eng-btn-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #f8fafc;
    display: grid;
    place-items: center;
}

.eng-btn-icon.is-danger {
    background: #fef2f2;
    color: #b91c1c;
}

.eng-empty {
    padding: 28px;
    text-align: center;
    color: #64748b;
}

.eng-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.eng-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(4px);
}

.eng-modal__dialog {
    position: relative;
    z-index: 2;
    width: min(720px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    margin: 24px auto;
    border-radius: 24px;
}

.eng-modal__dialog--large {
    width: min(960px, calc(100vw - 32px));
}

.eng-modal__dialog--xlarge {
    width: min(1160px, calc(100vw - 32px));
}

.eng-modal__dialog--narrow {
    width: min(440px, calc(100vw - 32px));
}

.eng-confirm-delete__lead {
    margin: 0;
    color: #334155;
    font-size: 15px;
    line-height: 1.55;
}

.eng-btn--danger {
    background: linear-gradient(135deg, #b91c1c, #ef4444);
    color: #fff;
}

.eng-btn--danger:hover {
    filter: brightness(1.03);
}

/* Fale com a Engenharia — overlay ao enviar (visível até o POST sair da página) */
.eng-contact-submit-mask {
    position: absolute;
    inset: 0;
    z-index: 45;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    text-align: center;
    border-radius: inherit;
    background: rgba(248, 250, 252, .92);
    backdrop-filter: blur(5px);
}

#contato-modal.is-contato-submitting .eng-contact-submit-mask {
    display: flex;
}

.eng-contact-submit-mask__spinner {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 4px solid rgba(31, 105, 199, .2);
    border-top-color: #1f69c7;
    animation: eng-contato-spin 0.72s linear infinite;
}

.eng-contact-submit-mask__text {
    margin: 4px 0 0;
    font-weight: 800;
    font-size: 1.05rem;
    color: #0f3c78;
}

.eng-contact-submit-mask__hint {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
    max-width: 280px;
    line-height: 1.4;
}

#contato-modal.is-contato-submitting .eng-modal__close,
#contato-modal.is-contato-submitting [data-modal-close] {
    pointer-events: none;
    opacity: 0.5;
}

.eng-modal__header,
.eng-modal__footer {
    padding: 20px 22px;
    border-bottom: 1px solid #edf2f7;
}

.eng-modal__footer {
    border-bottom: 0;
    border-top: 1px solid #edf2f7;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.eng-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.eng-modal__header h3 {
    margin: 0;
    color: #0f172a;
}

.eng-modal__body {
    padding: 22px;
}

.eng-modal__close {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 0;
    background: #f8fafc;
    font-size: 24px;
    cursor: pointer;
}

.eng-form-grid,
.eng-view-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.eng-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.eng-field--full,
.eng-view-grid__full {
    grid-column: 1 / -1;
}

.eng-field label {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.eng-field input,
.eng-field select,
.eng-field textarea {
    min-height: 46px;
    border: 1px solid #dbe4ef;
    border-radius: 14px;
    padding: 12px 14px;
    outline: none;
    background: #fff;
    font: inherit;
}

.eng-field textarea {
    resize: vertical;
    min-height: 120px;
}

.eng-field input:focus,
.eng-field select:focus,
.eng-field textarea:focus {
    border-color: #1f69c7;
    box-shadow: 0 0 0 4px rgba(31, 105, 199, .12);
}

.eng-view-grid > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
}

.eng-view-grid strong {
    font-size: 12px;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #64748b;
}

.eng-autocomplete {
    position: relative;
}

.eng-autocomplete__list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #dbe4ef;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .12);
    overflow: hidden;
    z-index: 20;
}

.eng-autocomplete__item {
    width: 100%;
    border: 0;
    background: #fff;
    text-align: left;
    padding: 12px 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.eng-autocomplete__item:hover {
    background: #f8fafc;
}

.eng-autocomplete__item span,
.eng-autocomplete__empty {
    color: #64748b;
    font-size: 13px;
}

.eng-autocomplete__empty {
    padding: 12px 14px;
}

.eng-org-full {
    min-height: 420px;
    display: grid;
    place-items: center;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 18px;
    padding: 20px;
}

.eng-modal-open {
    overflow: hidden;
}

@media (max-width: 1200px) {
    .eng-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .eng-hero {
        grid-template-columns: 1fr;
    }

    .eng-hero__icon {
        justify-content: flex-start;
    }

    .eng-form-grid,
    .eng-view-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .eng-grid {
        grid-template-columns: 1fr;
    }

    .eng-hero {
        padding: 24px;
    }

    .eng-hero__title {
        font-size: 30px;
    }

    .eng-section {
        padding: 18px;
    }
}

/* =========================
   ENGENHARIA - AJUSTE FINAL PROPORCIONAL
   ========================= */

.eng-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.eng-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
    margin-bottom: 22px;
}

.eng-card {
    background: #ffffff;
    border: 1px solid #e6edf7;
    border-radius: 24px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 390px;
    height: 100%;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
    overflow: hidden;
}

.eng-card--contact,
.eng-card--contact-wide {
    grid-column: auto !important;
    padding: 20px !important;
    background: #ffffff !important;
}

.eng-contact-panel,
.eng-contact-box {
    all: unset;
}

.eng-card__header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.eng-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f0ff;
    color: #1f3e78;
    flex-shrink: 0;
    font-size: 18px;
}

.eng-card__title {
    margin: 0 0 5px;
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
}

.eng-card__desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #64748b;
}

.eng-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
    gap: 14px;
}

.eng-card__body--contact {
    justify-content: space-between;
}

.eng-mini-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.eng-mini-info__item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 13px 14px;
}

.eng-mini-info__item strong {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #0f172a;
}

.eng-mini-info__item span {
    font-size: 13px;
    line-height: 1.6;
    color: #64748b;
}

.eng-contact-summary {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.eng-contact-summary p {
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
    color: #334155;
}

.eng-contact-summary__alert {
    padding: 12px 14px;
    border-radius: 14px;
    background: #eef4ff;
    border: 1px solid #dbe7ff;
    font-size: 12.5px;
    line-height: 1.55;
    color: #1d3557;
}

.eng-contact-summary__alert strong {
    color: #0f2d56;
}

.eng-contact-summary__image {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 105px;
}

.eng-contact-summary__image img {
    max-width: 135px;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 8px 16px rgba(15, 23, 42, .18));
}

.eng-map-preview,
.eng-org-preview {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #dde5f0;
    background: #eef3f9;
}

.eng-map-preview iframe {
    display: block;
    width: 100%;
    height: 155px;
    border: 0;
}

.eng-org-preview img {
    display: block;
    width: 100%;
    height: 155px;
    object-fit: cover;
}

.eng-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 14px;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    transition: .2s ease;
}

.eng-btn:hover {
    transform: translateY(-1px);
}

.eng-btn--primary {
    background: linear-gradient(135deg, #123d73, #1f69c7);
    color: #fff;
}

.eng-btn--light {
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,.16);
}

.eng-btn--secondary {
    background: #e8eef8;
    color: #163766;
}

.eng-btn--ghost {
    background: #f8fafc;
    color: #334155;
}

.eng-contact-modal-intro {
    margin-bottom: 18px;
    padding: 16px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.eng-contact-modal-intro p {
    margin: 0;
    font-size: 14px;
    line-height: 1.75;
    color: #334155;
}

.eng-contact-modal-intro__alert {
    padding: 14px 16px;
    border-radius: 14px;
    background: #eef4ff;
    border: 1px solid #dbe7ff;
    color: #1d3557;
    font-size: 13px;
    line-height: 1.7;
}

.eng-contact-modal-intro__alert strong {
    color: #0f2d56;
}

@media (max-width: 1280px) {
    .eng-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .eng-grid {
        grid-template-columns: 1fr;
    }

    .eng-card {
        min-height: auto;
    }
}

/* Street Viewer preenchendo todo o card */
.eng-card--map .eng-card__body--map {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 14px;
    min-height: 0;
}

.eng-card--map .eng-map-preview {
    flex: 1;
    min-height: 0;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #dde5f0;
    background: #eef3f9;
    display: flex;
}

.eng-card--map .eng-map-preview iframe {
    width: 100%;
    height: 100%;
    min-height: 260px;
    border: 0;
    display: block;
}

/* Agenda compacta no card Engenharia */
.eng-card--agenda .eng-card__body--agenda {
    justify-content: space-between;
    gap: 14px;
}

.eng-agenda-compact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef4ff 100%);
    border: 1px solid #dbe7ff;
}

.eng-agenda-compact__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.eng-agenda-compact__label {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
}

.eng-agenda-compact__name {
    font-size: 17px;
    line-height: 1.25;
    color: #0f172a;
}

.eng-agenda-compact__date {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 10px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #123d73;
    font-size: 12.5px;
    font-weight: 800;
}

.eng-agenda-compact__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    line-height: 1.4;
    color: #334155;
}

.eng-agenda-compact__work {
    padding: 9px 10px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 12.5px;
    line-height: 1.45;
}

.eng-agenda-compact__obs {
    margin: 0;
    color: #64748b;
    font-size: 12.5px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.eng-agenda-compact--empty {
    min-height: 180px;
    justify-content: center;
}

.eng-agenda-compact--empty strong {
    color: #0f172a;
    font-size: 16px;
}

.eng-agenda-compact--empty p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

/* Agenda compacta dentro do espaço vazio do card */
.eng-agenda-compact--inside {
    margin-top: auto;
    margin-bottom: 8px;
    padding: 12px;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef4ff 100%);
    border: 1px solid #dbe7ff;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.eng-agenda-compact__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.eng-agenda-compact__label {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
}

.eng-agenda-compact__name {
    font-size: 14px;
    line-height: 1.2;
    color: #0f172a;
}

.eng-agenda-compact__date {
    width: fit-content;
    padding: 5px 8px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #123d73;
    font-size: 11.5px;
    font-weight: 800;
}

.eng-agenda-compact__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 11.5px;
    line-height: 1.35;
    color: #334155;
}

.eng-agenda-compact__empty-title {
    font-size: 13px;
    color: #0f172a;
}

.eng-agenda-compact__empty-text {
    margin: 0;
    font-size: 11.5px;
    line-height: 1.4;
    color: #64748b;
}

/* Agenda Engenharia - layout corrigido dentro do card */
.eng-card--agenda {
    display: flex;
    flex-direction: column;
}

.eng-card--agenda .eng-card__body--agenda {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    justify-content: space-between;
}

.eng-card--agenda .eng-mini-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.eng-card--agenda .eng-mini-info__item {
    padding: 12px 14px;
    border-radius: 15px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.eng-card--agenda .eng-mini-info__item strong {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    color: #0f172a;
}

.eng-card--agenda .eng-mini-info__item span {
    display: block;
    font-size: 12.5px;
    line-height: 1.45;
    color: #64748b;
}

.eng-agenda-compact--inside {
    margin: 0;
    padding: 12px;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef4ff 100%);
    border: 1px solid #dbe7ff;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.eng-agenda-compact__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.eng-agenda-compact__label {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
}

.eng-agenda-compact__name {
    font-size: 14px;
    line-height: 1.2;
    color: #0f172a;
}

.eng-agenda-compact__date {
    width: fit-content;
    padding: 5px 8px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #123d73;
    font-size: 11.5px;
    font-weight: 800;
}

.eng-agenda-compact__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 11.5px;
    line-height: 1.35;
    color: #334155;
}

.eng-agenda-compact__empty-title {
    font-size: 13px;
    color: #0f172a;
}

.eng-agenda-compact__empty-text {
    margin: 0;
    font-size: 11.5px;
    line-height: 1.4;
    color: #64748b;
}





/* Texto no espaço vazio do card Organograma */
.eng-card__body--org {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.eng-org-summary {
    height: 190px; /* controla a altura da caixa de resumo */
    max-height: 190px;
    padding: 12px;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef4ff 100%);
    border: 1px solid #dbe7ff;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}


.eng-org-summary__title {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
}

.eng-org-summary__list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.eng-org-summary__item {
    font-size: 11.5px;
    line-height: 1.45;
    color: #334155;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.eng-org-summary__item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.eng-org-summary__item strong {
    color: #0f172a;
}



/* =========================================================
   CH / Capital Humano - Bloko Conecta 2.0
   CSS consolidado e atualizado
========================================================= */

.ch-page {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 28px 34px 56px;
    box-sizing: border-box;
    color: #193056;
}

.ch-wrapper {
    width: min(100%, 1620px);
    margin: 0 auto;
}

.ch-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 11px 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(129, 166, 211, .22);
    color: #245d96;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(13, 26, 48, .08);
}

/* =========================
   CH / CAPITAL HUMANO
========================= */

.ch-top-grid {
    display: grid;
    grid-template-columns: minmax(420px, .95fr) minmax(620px, 1.35fr);
    gap: 26px;
    align-items: stretch;
    width: 100%;
    margin: 0 auto 26px;
}

.ch-hero,
.ch-organograma-card,
.ch-hub,
.ch-card,
.ch-detail-hero,
.ch-material-card {
    border-radius: 30px;
    box-sizing: border-box;
}

.ch-hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    padding: 34px;
    background:
        radial-gradient(circle at 92% 8%, rgba(89, 201, 235, .34), transparent 30%),
        radial-gradient(circle at 0% 100%, rgba(35, 112, 170, .12), transparent 34%),
        linear-gradient(135deg, #fbfdff 0%, #eef6fc 100%);
    border: 1px solid rgba(138, 172, 214, .28);
    box-shadow: 0 24px 54px rgba(7, 27, 63, .22);
}

.ch-hero::before {
    content: "";
    position: absolute;
    width: 96px;
    height: 96px;
    right: -26px;
    top: -28px;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(66, 194, 232, .30), rgba(36, 98, 171, .10));
    transform: rotate(14deg);
}

.ch-hero-badge,
.ch-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 9px 15px;
    border-radius: 999px;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(84, 135, 194, .22);
    color: #2467a5;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 20px;
}

.ch-hero-title {
    margin: 0;
    color: #18325f;
    font-size: clamp(58px, 5vw, 86px);
    line-height: .90;
    letter-spacing: -2.6px;
    font-weight: 950;
}

.ch-hero-subtitle {
    margin: 12px 0 22px;
    color: #637fa7;
    font-size: 19px;
    font-weight: 700;
}

.ch-hero-highlight {
    padding: 20px;
    border-radius: 20px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(129, 166, 211, .20);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.74);
    margin-bottom: 16px;
}

.ch-hero-highlight p {
    margin: 0;
    color: #263f63;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 800;
}

.ch-pillars {
    display: grid;
    gap: 14px;
}

.ch-pillar {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255,255,255,.80);
    border: 1px solid rgba(129, 166, 211, .18);
}

.ch-pillar-label {
    display: block;
    margin-bottom: 7px;
    color: #246fb5;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 1.2px;
}

.ch-pillar strong {
    display: block;
    color: #243d62;
    font-size: 15.5px;
    line-height: 1.5;
}

/* Organograma */

.ch-organograma-card {
    min-height: 620px;
    padding: 22px;
    background: linear-gradient(180deg, #fbfdff 0%, #f2f7fc 100%);
    border: 1px solid rgba(138, 172, 214, .26);
    box-shadow: 0 24px 54px rgba(7, 27, 63, .22);
}

.ch-card-head,
.ch-hub-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.ch-card-head {
    margin-bottom: 18px;
}

.ch-card-kicker {
    color: #4f7faf;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 7px;
}

.ch-organograma-card h2,
.ch-hub-head h2 {
    margin: 0 0 6px;
    color: #17325f;
    font-weight: 950;
    letter-spacing: -0.5px;
}

.ch-organograma-card h2 {
    font-size: clamp(28px, 2.2vw, 38px);
    line-height: 1.12;
}

.ch-organograma-card p,
.ch-hub-head p {
    margin: 0;
    color: #6983a8;
    font-size: 15.5px;
    line-height: 1.45;
}

.ch-organograma-frame {
    overflow: hidden;
    border-radius: 24px;
    min-height: 510px;
    background:
        radial-gradient(circle at 78% 18%, rgba(63, 182, 226, .15), transparent 30%),
        linear-gradient(180deg, #132c59 0%, #17396e 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.ch-organograma-link {
    display: block;
    position: relative;
    width: 100%;
    min-height: 510px;
    border: 0;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    background: transparent;
}

.ch-organograma-img {
    display: block;
    width: 100%;
    height: 510px;
    object-fit: contain;
    background: #102b58;
    transition: transform .35s ease, opacity .35s ease;
}

.ch-organograma-link:hover .ch-organograma-img {
    transform: scale(1.015);
    opacity: .96;
}

.ch-zoom-chip {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(10, 31, 70, .86);
    border: 1px solid rgba(255,255,255,.14);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.ch-organograma-empty {
    min-height: 510px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 28px;
    color: #edf5ff;
}

.ch-organograma-empty-icon {
    font-size: 38px;
    margin-bottom: 12px;
}

.ch-organograma-empty strong {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
}

.ch-organograma-empty span {
    color: rgba(255,255,255,.78);
}

.ch-organograma-empty code {
    padding: 3px 8px;
    border-radius: 8px;
    background: rgba(255,255,255,.12);
    color: #fff;
}

/* =========================
   CH / BOTÕES
========================= */

.ch-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.ch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    border-radius: 14px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 900;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, filter .18s ease;
}

.ch-btn-primary {
    padding: 12px 18px;
    background: linear-gradient(135deg, #2e8ad8 0%, #216da7 100%);
    color: #fff;
    box-shadow: 0 11px 20px rgba(33, 109, 167, .28);
}

.ch-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 26px rgba(33, 109, 167, .36);
}

.ch-btn-light {
    padding: 11px 16px;
    background: rgba(255,255,255,.92);
    color: #1f4778;
    border-color: rgba(97, 145, 198, .22);
    box-shadow: 0 10px 24px rgba(15, 43, 82, .12);
}

.ch-btn-light:hover {
    background: #fff;
    transform: translateY(-1px);
}

.ch-btn:disabled,
.ch-btn[disabled] {
    opacity: .55 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
}

/* =========================
   CH / HERO DETALHE
========================= */

.ch-detail-hero {
    margin-bottom: 24px;
    padding: 34px;
    background:
        radial-gradient(circle at 90% 10%, rgba(89, 201, 235, .24), transparent 30%),
        linear-gradient(135deg, #fbfdff 0%, #eef6fc 100%);
    border: 1px solid rgba(138, 172, 214, .26);
    box-shadow: 0 22px 46px rgba(7, 27, 63, .18);
}

.ch-detail-hero h1 {
    margin: 0 0 10px;
    color: #17325f;
    font-size: clamp(42px, 4.2vw, 64px);
    line-height: 1;
    letter-spacing: -1.6px;
    font-weight: 950;
}

.ch-detail-hero p {
    max-width: 820px;
    margin: 0;
    color: #637fa7;
    font-size: 17px;
    line-height: 1.5;
    font-weight: 700;
}

/* =========================
   CH / CARDS GERAIS
========================= */

.ch-hub {
    padding: 24px;
    background:
        radial-gradient(circle at 96% 0%, rgba(94, 201, 235, .16), transparent 24%),
        linear-gradient(180deg, #fbfdff 0%, #f2f7fc 100%);
    border: 1px solid rgba(138, 172, 214, .24);
    box-shadow: 0 22px 46px rgba(7, 27, 63, .18);
}

.ch-hub-head {
    align-items: center;
    margin-bottom: 20px;
}

.ch-hub-head h2 {
    font-size: 26px;
}

.ch-hub-badge {
    white-space: nowrap;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(111, 158, 213, .22);
    color: #2367a5;
    font-weight: 900;
    font-size: 14px;
}

.ch-cards-grid,
.ch-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.ch-card-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ch-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 250px;
    padding: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,.99) 0%, rgba(247,251,255,.99) 100%);
    border: 1px solid rgba(129, 166, 211, .20);
    box-shadow: 0 15px 30px rgba(12, 43, 86, .10);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ch-card::after {
    content: "";
    position: absolute;
    width: 110px;
    height: 110px;
    right: -58px;
    top: -58px;
    border-radius: 999px;
    background: rgba(55, 164, 220, .09);
}

.ch-card:hover {
    transform: translateY(-5px);
    border-color: rgba(55, 132, 204, .34);
    box-shadow: 0 20px 36px rgba(12, 43, 86, .16);
}

.ch-card-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.ch-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f2f8ff 0%, #e9f3fc 100%);
    border: 1px solid rgba(97, 145, 198, .22);
    font-size: 20px;
}

.ch-card-label,
.ch-card-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 11px;
    border-radius: 999px;
    background: #edf6ff;
    color: #286db0;
    border: 1px solid rgba(97, 145, 198, .18);
    font-size: 12px;
    font-weight: 900;
}

.ch-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    color: #17325f;
    font-size: 23px;
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: -0.45px;
}

.ch-card p {
    position: relative;
    z-index: 1;
    flex: 1;
    margin: 0;
    color: #6680a5;
    font-size: 15px;
    line-height: 1.5;
}

.ch-card-footer {
    position: relative;
    z-index: 1;
    margin-top: 20px;
}

/* Biblioteca de Gestão — prévia da 1ª página (PDF.js) */
.ch-card--with-pdf-preview {
    min-height: 280px;
    padding: 0;
}

.ch-card--with-pdf-preview::after {
    opacity: 0.35;
}

.ch-card--with-pdf-preview .ch-card__row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex: 1;
    min-height: 0;
}

.ch-card--with-pdf-preview .ch-card__col-main {
    flex: 1;
    min-width: 0;
    padding: 22px;
    display: flex;
    flex-direction: column;
}

.ch-card--with-pdf-preview .ch-card__col-thumb {
    flex: 0 0 38%;
    max-width: 220px;
    min-width: 132px;
    border-left: 1px solid rgba(129, 166, 211, 0.22);
    background: linear-gradient(180deg, #f6faff 0%, #e9f1fb 100%);
}

.ch-card__thumb-wrap {
    position: relative;
    z-index: 2;
    height: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 12px;
}

.ch-card__thumb-loading {
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.02em;
}

.ch-card__thumb-canvas {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(12, 43, 86, 0.14);
    border: 1px solid rgba(129, 166, 211, 0.25);
    background: #fff;
}

.ch-card__thumb-fallback {
    display: none;
    font-size: 42px;
    line-height: 1;
    opacity: 0.4;
}

.ch-card--with-pdf-preview.is-thumb-done .ch-card__thumb-loading {
    display: none;
}

.ch-card--with-pdf-preview.is-thumb-error .ch-card__thumb-loading,
.ch-card--with-pdf-preview.is-thumb-error .ch-card__thumb-canvas {
    display: none !important;
}

.ch-card--with-pdf-preview.is-thumb-error .ch-card__thumb-fallback {
    display: block;
}

@media (max-width: 900px) {
    .ch-card--with-pdf-preview .ch-card__row {
        flex-direction: column;
    }

    .ch-card--with-pdf-preview .ch-card__col-thumb {
        flex: 0 0 auto;
        max-width: none;
        min-width: 0;
        border-left: 0;
        border-top: 1px solid rgba(129, 166, 211, 0.22);
    }

    .ch-card__thumb-wrap {
        min-height: 160px;
        padding: 16px 22px 22px;
    }
}

/* =========================
   CH / MATERIAIS
========================= */

.ch-material-card {
    overflow: hidden;
    background: linear-gradient(180deg, #fff 0%, #f6faff 100%);
    border: 1px solid rgba(129, 166, 211, .22);
    box-shadow: 0 18px 34px rgba(12, 43, 86, .12);
}

.ch-material-card img,
.ch-material-placeholder {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover;
    background: #153461;
}

.ch-material-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.76);
    font-weight: 900;
}

.ch-material-card > div {
    padding: 22px;
}

.ch-material-card h2 {
    margin: 12px 0 8px;
    color: #17325f;
    font-size: 26px;
    font-weight: 950;
}

.ch-material-card p {
    margin: 0 0 18px;
    color: #6680a5;
    line-height: 1.5;
}

/* =========================
   CH / ESTADO VAZIO
========================= */

.ch-empty-state {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 34px;
}

.ch-empty-state__icon {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f2f8ff 0%, #e9f3fc 100%);
    border: 1px solid rgba(97, 145, 198, .22);
    font-size: 32px;
    margin-bottom: 16px;
}

.ch-empty-state h2 {
    margin: 0 0 8px;
    color: #17325f;
    font-size: 28px;
    font-weight: 950;
}

.ch-empty-state p {
    margin: 0;
    max-width: 560px;
    color: #6680a5;
    font-size: 16px;
    line-height: 1.5;
}

/* =========================
   BLOKO INSPIRA
========================= */

.inspira-hero.inspira-hero {
    margin-bottom: 16px;
}

.inspira-hero__lead {
    max-width: 920px !important;
}

.inspira-eyebrow {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(251, 191, 36, 0.12));
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #92400e !important;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.inspira-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px;
    padding: 14px 18px;
    background: rgba(15, 35, 70, 0.45);
    border: 1px solid rgba(120, 160, 220, 0.22);
    border-radius: 16px;
}

.inspira-subnav a {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0 !important;
    font-weight: 800;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.18s ease, transform 0.18s ease;
}

.inspira-subnav a:hover {
    background: rgba(59, 171, 212, 0.35);
    transform: translateY(-1px);
    color: #fff !important;
}

.inspira-curator-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
    padding: 18px 22px;
    border-radius: 18px;
    background: linear-gradient(120deg, rgba(34, 112, 170, 0.38), rgba(59, 171, 212, 0.24));
    border: 1px solid rgba(186, 214, 246, 0.45);
    color: #e2e8f0;
}

.inspira-curator-bar strong {
    display: block;
    color: #f8fafc;
    font-size: 1.06rem;
    font-weight: 850;
    letter-spacing: -0.01em;
}

.inspira-curator-bar__hint {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1;
    line-height: 1.5;
    max-width: 62ch;
}

.inspira-mod-panel {
    margin-bottom: 20px;
    padding: 18px 20px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(248, 250, 252, 0.12);
}

.inspira-mod-panel h3 {
    margin: 0 0 12px;
    color: #f8fafc;
    font-size: 1.05rem;
}

.inspira-mod-panel > .inspira-hint,
.inspira-mod-panel .inspira-hint {
    color: #cbd5e1;
}

.inspira-mod-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.inspira-mod-list li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-size: 14px;
}

.inspira-mod-list li p {
    margin: 8px 0 0;
    white-space: pre-wrap;
}

.inspira-mod-actions {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.inspira-section {
    margin-bottom: 22px !important;
}

.inspira-section__head {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.inspira-section__head h2 {
    margin: 0 0 8px;
    color: #17325f;
    font-size: 26px;
    font-weight: 950;
}

.inspira-section__head p {
    margin: 0;
    color: #5a7194;
    font-weight: 600;
    line-height: 1.5;
}

.inspira-sec-ico {
    font-size: 36px;
    line-height: 1;
    flex-shrink: 0;
}

.inspira-empty-note {
    margin: 0;
    padding: 16px;
    border-radius: 12px;
    background: rgba(100, 116, 139, 0.08);
    color: #64748b;
    font-weight: 600;
}

.inspira-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.inspira-card {
    padding: 20px;
    border-radius: 18px;
    background: linear-gradient(165deg, #ffffff 0%, #f5f9ff 100%);
    border: 1px solid rgba(129, 166, 211, 0.28);
    box-shadow: 0 12px 28px rgba(12, 43, 86, 0.1);
}

.inspira-card__top {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

.inspira-pill {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(34, 112, 170, 0.12);
    color: #1d4e7a;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.inspira-pill--theme {
    background: rgba(245, 158, 11, 0.18);
    color: #92400e;
}

.inspira-badge {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.inspira-badge--sched {
    background: rgba(234, 179, 8, 0.25);
    color: #854d0e;
}

.inspira-card__title {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 900;
}

.inspira-card__resumo,
.inspira-card__corpo {
    margin: 0 0 10px;
    color: #475569;
    font-size: 14px;
    line-height: 1.55;
}

.inspira-card__media {
    margin: 8px 0 0;
}

.inspira-link {
    font-weight: 800;
    color: #2270aa !important;
}

.inspira-when {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}

.inspira-card__admin {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.inspira-form {
    max-width: 640px;
    margin-bottom: 22px;
}

.inspira-form label {
    display: block;
    margin: 10px 0 6px;
    font-weight: 800;
    color: #17325f;
    font-size: 13px;
}

.inspira-form textarea,
.inspira-curator-form input[type="text"],
.inspira-curator-form input[type="url"],
.inspira-curator-form input[type="month"],
.inspira-curator-form input[type="number"],
.inspira-curator-form input[type="datetime-local"],
.inspira-curator-form select,
.inspira-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(129, 166, 211, 0.45);
    font-family: inherit;
    font-size: 14px;
}

.inspira-form__status {
    margin: 10px 0 0;
    font-size: 13px;
    font-weight: 700;
}

.inspira-form__status.is-success {
    color: #15803d;
}

.inspira-form__status.is-error {
    color: #b91c1c;
}

.inspira-hint {
    font-size: 13px;
    color: #94a3b8;
}

.inspira-subtitle {
    margin: 22px 0 12px;
    font-size: 1.05rem;
    color: #17325f;
}

.inspira-quote-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.inspira-quote-list blockquote {
    margin: 0;
    padding: 14px 16px;
    border-left: 4px solid #3babd4;
    background: rgba(248, 250, 252, 0.95);
    border-radius: 0 12px 12px 0;
    color: #334155;
}

.inspira-quote-list cite {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    color: #64748b;
}

.inspira-insight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.inspira-insight-card {
    padding: 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(129, 166, 211, 0.28);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.inspira-insight-card p {
    margin: 0 0 10px;
    color: #334155;
    font-size: 14px;
    line-height: 1.5;
}

.inspira-insight-card footer {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 800;
    color: #94a3b8;
}

.inspira-btn {
    border: 0;
    border-radius: 10px;
    padding: 8px 14px;
    font-weight: 800;
    cursor: pointer;
    font-size: 12px;
}

.inspira-btn--ghost {
    background: rgba(148, 163, 184, 0.2);
    color: #475569;
}

.inspira-btn--ok {
    background: linear-gradient(180deg, #22c55e, #16a34a);
    color: #fff;
}

.inspira-btn--no {
    background: rgba(239, 68, 68, 0.2);
    color: #b91c1c;
}

.inspira-modal {
    position: fixed;
    inset: 0;
    z-index: 100020;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.inspira-modal.is-open {
    display: flex;
}

.inspira-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.inspira-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow: auto;
    border-radius: 22px;
    background: linear-gradient(180deg, #fbfdff 0%, #eef4fc 100%);
    border: 1px solid rgba(138, 172, 214, 0.35);
    box-shadow: 0 28px 60px rgba(7, 27, 63, 0.28);
}

.inspira-modal__hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.inspira-modal__hdr h2 {
    margin: 0;
    font-size: 1.15rem;
    color: #17325f;
}

.inspira-modal__x {
    border: 0;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
}

.inspira-mod-confirm-modal__body {
    padding: 6px 22px 22px;
}

.inspira-mod-confirm-modal__dialog {
    max-width: 460px;
}

.inspira-mod-confirm-modal__msg {
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 600;
    color: #334155;
    line-height: 1.55;
}

.inspira-mod-confirm-modal__msg.is-error {
    color: #b91c1c;
    font-weight: 700;
}

.inspira-mod-confirm-modal__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}

.inspira-mod-confirm-modal__actions[hidden] {
    display: none !important;
}

.inspira-mod-confirm-modal__busy {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 28px 16px 12px;
    min-height: 130px;
}

.inspira-mod-confirm-modal__busy:not([hidden]) {
    display: flex;
}

.inspira-mod-confirm-modal__busy-text {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: #2270aa;
    text-align: center;
}

.inspira-mod-confirm-modal__spinner {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 3px solid rgba(34, 112, 170, 0.18);
    border-top-color: #2270aa;
    animation: inspiraModConfirmSpin 0.72s linear infinite;
}

@keyframes inspiraModConfirmSpin {
    to {
        transform: rotate(360deg);
    }
}

.inspira-mod-confirm-modal--loading .inspira-modal__x {
    pointer-events: none;
    opacity: 0.35;
    cursor: default;
}

.inspira-mod-confirm-modal--loading .inspira-mod-confirm-modal__msg {
    display: none;
}

.inspira-curator-form {
    padding: 18px 22px 22px;
}

.inspira-schedule {
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(241, 245, 249, 0.8);
}

.inspira-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: #334155;
    margin-bottom: 8px;
}

.inspira-modal__ft {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.inspira-carousel-hint {
    margin: 0 0 10px;
}

.inspira-carousel {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px 4px 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: auto;
    scrollbar-color: rgba(34, 112, 170, 0.55) rgba(226, 232, 240, 0.75);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.35) 0%, rgba(241, 245, 249, 0.65) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.inspira-carousel::-webkit-scrollbar {
    height: 11px;
}

.inspira-carousel::-webkit-scrollbar-track {
    margin: 0 8px;
    background: linear-gradient(180deg, rgba(226, 232, 240, 0.35), rgba(241, 245, 249, 0.95));
    border-radius: 999px;
}

.inspira-carousel::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #8ec5eb, #2270aa, #1a5f8a);
    border-radius: 999px;
    border: 2px solid rgba(248, 250, 252, 0.95);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.inspira-carousel::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #6eb6e8, #1c6aa0, #154a72);
}

.inspira-feed-card {
    flex: 0 0 min(320px, 85vw);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(129, 166, 211, 0.35);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    min-height: 120px;
}

.inspira-feed-card__del {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 6;
    width: 30px;
    height: 30px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 10px;
    font-size: 20px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    color: #64748b;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
}

.inspira-feed-card__del:hover {
    color: #b91c1c;
    background: #fef2f2;
}

.inspira-link-preview {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    flex: 1;
    min-height: 0;
}

.inspira-link-preview:hover .inspira-link-preview__title {
    color: #2270aa;
}

.inspira-link-preview__img {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    overflow: hidden;
}

.inspira-link-preview__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.inspira-link-preview__body {
    padding: 12px 14px 4px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.inspira-link-preview__title {
    font-size: 14px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.35;
}

.inspira-link-preview__desc {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.inspira-link-preview__host {
    font-size: 11px;
    font-weight: 800;
    color: #94a3b8;
    margin-top: 2px;
}

.inspira-feed-card__text {
    padding: 14px 14px 6px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    line-height: 1.5;
    flex: 1;
}

.inspira-feed-card__by {
    margin-top: auto;
    padding: 10px 14px 12px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    border-top: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(248, 250, 252, 0.9);
}

.inspira-feed-card__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.inspira-feed-card__meta span {
    font-weight: 800;
    color: #94a3b8;
}

.inspira-feed-like {
    position: relative;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-shrink: 0;
    padding: 5px 10px;
    margin: 0;
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 999px;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.inspira-feed-like:hover {
    border-color: rgba(236, 72, 153, 0.45);
    color: #db2777;
    box-shadow: 0 4px 14px rgba(236, 72, 153, 0.15);
}

.inspira-feed-like.is-liked {
    border-color: rgba(236, 72, 153, 0.55);
    color: #db2777;
    background: linear-gradient(145deg, #fff 0%, #fdf2f8 100%);
}

.inspira-feed-like__fx {
    position: absolute;
    inset: -6px;
    pointer-events: none;
    border-radius: inherit;
    opacity: 0;
}

.inspira-feed-like.is-animating .inspira-feed-like__fx {
    opacity: 1;
}

.inspira-feed-like__fx::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    box-shadow:
        0 -18px 0 0 rgba(236, 72, 153, 0.55),
        16px -8px 0 0 rgba(244, 114, 182, 0.45),
        -16px -8px 0 0 rgba(251, 113, 133, 0.45),
        18px 6px 0 0 rgba(249, 168, 212, 0.4),
        -18px 6px 0 0 rgba(249, 168, 212, 0.4);
    animation: inspiraLikeBurst 0.65s ease-out forwards;
}

.inspira-feed-like__heart {
    display: block;
    flex-shrink: 0;
}

.inspira-feed-like__heart path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.45;
    stroke-linejoin: round;
    transform-origin: 50% 55%;
    transition: fill 0.2s ease, stroke 0.2s ease;
}

.inspira-feed-like.is-liked .inspira-feed-like__heart path {
    fill: #ec4899;
    stroke: #be185d;
}

.inspira-feed-like.is-animating .inspira-feed-like__heart path {
    animation: inspiraHeartPop 0.58s cubic-bezier(0.22, 1.45, 0.36, 1);
}

.inspira-feed-like__count {
    min-width: 1ch;
    font-variant-numeric: tabular-nums;
}

@keyframes inspiraHeartPop {
    0% {
        transform: scale(1);
    }
    35% {
        transform: scale(1.28);
    }
    65% {
        transform: scale(0.94);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes inspiraLikeBurst {
    0% {
        transform: scale(0.35);
        opacity: 1;
    }
    100% {
        transform: scale(1.35) rotate(18deg);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .inspira-feed-like.is-animating .inspira-feed-like__heart path,
    .inspira-feed-like.is-animating .inspira-feed-like__fx,
    .inspira-feed-like.is-animating .inspira-feed-like__fx::after {
        animation: none !important;
    }
}

.inspira-link-preview__img.js-inspira-dbl-like-zone {
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.inspira-feed-card__by strong {
    color: #1e3a5f;
    font-weight: 900;
}

html[data-theme="light"] .inspira-subnav {
    background: rgba(241, 245, 249, 0.95);
    border-color: rgba(27, 45, 78, 0.12);
}

html[data-theme="light"] .inspira-subnav a {
    background: #fff;
    color: #1b2d4e !important;
    border: 1px solid rgba(27, 45, 78, 0.1);
}

html[data-theme="light"] .inspira-curator-bar {
    background: linear-gradient(120deg, rgba(219, 234, 254, 0.98), rgba(224, 242, 254, 0.92));
    border-color: rgba(59, 130, 246, 0.38);
    color: #1e293b;
}

html[data-theme="light"] .inspira-curator-bar strong {
    color: #0f172a;
}

html[data-theme="light"] .inspira-curator-bar__hint {
    color: #334155;
    font-weight: 650;
}

html[data-theme="light"] .inspira-mod-panel {
    background: rgba(248, 250, 252, 0.98);
    border-color: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .inspira-mod-panel h3 {
    color: #0f172a;
}

html[data-theme="light"] .inspira-mod-panel > .inspira-hint {
    color: #475569;
    font-weight: 600;
}

html[data-theme="light"] .inspira-mod-list li {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.1);
    color: #1e293b;
}

html[data-theme="light"] .inspira-mod-list li .inspira-hint {
    color: #64748b;
}

/* ==========================================
   CH / PLATAFORMA DE APOIO
========================================== */

.ch-support-page {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ch-support-hero {
    background: linear-gradient(90deg, #f5f7fb 0%, #eef3f9 58%, #dff1f8 100%);
    border: 1px solid rgba(191, 215, 234, 0.95);
    border-radius: 30px;
    padding: 30px 34px;
    box-shadow: 0 22px 48px rgba(8, 30, 66, 0.18);
    position: relative;
    overflow: hidden;
}

.ch-support-hero::after {
    content: "";
    position: absolute;
    right: -70px;
    top: -70px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(111, 203, 255, 0.20) 0%, rgba(111, 203, 255, 0.02) 65%, transparent 100%);
    pointer-events: none;
}

.ch-support-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(177, 205, 228, 0.9);
    color: #214f9c;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
}

.ch-support-hero-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    z-index: 2;
}

.ch-support-hero-content h1 {
    margin: 0 0 10px;
    font-size: clamp(46px, 5vw, 68px);
    line-height: 1;
    letter-spacing: -1.4px;
    color: #17366f;
    font-weight: 950;
}

.ch-support-hero-content p {
    margin: 0;
    max-width: 780px;
    font-size: 18px;
    line-height: 1.5;
    color: #5374a3;
    font-weight: 700;
}

.ch-support-hero-side {
    flex-shrink: 0;
}

.ch-support-mini-card {
    min-width: 240px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(191, 215, 234, 0.95);
    box-shadow: 0 14px 24px rgba(21, 52, 105, 0.12);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ch-support-mini-card strong {
    color: #17366f;
    font-size: 16px;
    font-weight: 950;
}

.ch-support-mini-card span {
    color: #6881ab;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;
}

.ch-support-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.ch-support-card {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5fa 100%);
    border: 1px solid rgba(191, 215, 234, 0.95);
    border-radius: 30px;
    padding: 26px;
    min-height: 320px;
    box-shadow: 0 18px 38px rgba(10, 28, 62, 0.16);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.ch-support-card::before {
    content: "";
    position: absolute;
    top: -36px;
    right: -36px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(209, 229, 242, 0.55);
}

.ch-support-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.ch-support-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: linear-gradient(180deg, #f2f7fd 0%, #e5eef8 100%);
    border: 1px solid rgba(181, 205, 229, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.ch-support-tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eaf2fb;
    border: 1px solid #c6d9ed;
    color: #2e6eb8;
    font-size: 13px;
    font-weight: 900;
}

.ch-support-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 2;
    flex: 1;
}

.ch-support-card-body h3 {
    margin: 0;
    color: #17366f;
    font-size: clamp(28px, 2vw, 36px);
    line-height: 1.12;
    letter-spacing: -0.6px;
    font-weight: 950;
}

.ch-support-card-body p {
    margin: 0;
    color: #6782aa;
    font-size: 16px;
    line-height: 1.55;
    font-weight: 700;
}

.ch-support-list {
    list-style: none;
    padding: 0;
    margin: 4px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ch-support-list li {
    position: relative;
    padding-left: 18px;
    color: #4d6b97;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 700;
}

.ch-support-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3e8ede;
    box-shadow: 0 0 0 4px rgba(62, 142, 222, 0.14);
}

.ch-support-card-footer {
    margin-top: 22px;
    position: relative;
    z-index: 2;
}

.ch-support-card-footer .ch-btn {
    min-width: 138px;
}

/* =========================
   CH / POLÍTICAS
========================= */

.ch-policy-page {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 0 48px;
}

.ch-policy-hero {
    min-height: 220px;
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    padding: 36px 40px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 92% 5%, rgba(72, 190, 232, .24), transparent 30%),
        linear-gradient(135deg, #f8fbff 0%, #eef6fc 100%);
    border: 1px solid rgba(138, 172, 214, .26);
    box-shadow: 0 22px 46px rgba(7, 27, 63, .20);
}

.ch-policy-hero h1 {
    margin: 0 0 10px;
    color: #17325f;
    font-size: clamp(46px, 4.8vw, 72px);
    line-height: .95;
    letter-spacing: -1.8px;
    font-weight: 950;
}

.ch-policy-hero p {
    max-width: 820px;
    margin: 0;
    color: #637fa7;
    font-size: 17px;
    line-height: 1.5;
    font-weight: 800;
}

.ch-policy-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.ch-policy-card {
    min-height: 286px;
    display: flex;
    flex-direction: column;
    padding: 26px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 100% 0%, rgba(216, 235, 247, .75), transparent 22%),
        linear-gradient(180deg, #fbfdff 0%, #f3f8fc 100%);
    border: 1px solid rgba(138, 172, 214, .24);
    box-shadow: 0 18px 38px rgba(7, 27, 63, .15);
    overflow: hidden;
}

.ch-policy-card__top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.ch-policy-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f2f8ff 0%, #e9f3fc 100%);
    border: 1px solid rgba(97, 145, 198, .22);
    font-size: 20px;
}

.ch-policy-card__tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: #edf6ff;
    color: #286db0;
    border: 1px solid rgba(97, 145, 198, .18);
    font-size: 12px;
    font-weight: 900;
}

.ch-policy-card__body {
    flex: 1;
}

.ch-policy-card__body h3 {
    margin: 0 0 10px;
    color: #17325f;
    font-size: 26px;
    line-height: 1.12;
    font-weight: 950;
    letter-spacing: -.5px;
}

.ch-policy-card__body p {
    margin: 0;
    color: #6680a5;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 700;
}

.ch-policy-card__footer {
    margin-top: 24px;
}

/* =========================
   CH / SÓLIDES
========================= */

.ch-detail-hero--solides {
    position: relative;
    overflow: hidden;
}

.ch-detail-hero--solides::after {
    content: "";
    position: absolute;
    inset: auto -120px -140px auto;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(76, 124, 202, 0.18) 0%, rgba(76, 124, 202, 0) 70%);
    pointer-events: none;
}

.ch-solides-showcase {
    margin-top: 18px;
}

.ch-solides-feature {
    display: grid;
    grid-template-columns: minmax(360px, 540px) 1fr;
    gap: 28px;
    align-items: stretch;
    background: linear-gradient(135deg, rgba(245, 249, 255, 0.98) 0%, rgba(231, 242, 252, 0.98) 100%);
    border: 1px solid rgba(176, 205, 233, 0.35);
    border-radius: 30px;
    padding: 20px;
    box-shadow:
        0 20px 50px rgba(7, 30, 66, 0.18),
        inset 0 1px 0 rgba(255,255,255,0.55);
    position: relative;
    overflow: hidden;
}

.ch-solides-feature::before {
    content: "";
    position: absolute;
    top: -70px;
    right: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(85, 182, 255, 0.16) 0%, rgba(85, 182, 255, 0) 70%);
    pointer-events: none;
}

.ch-solides-feature__media {
    position: relative;
    min-height: 440px;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(180deg, #1d2f5f 0%, #13274f 100%);
    box-shadow: 0 18px 40px rgba(14, 37, 78, 0.22);
}

.ch-solides-feature__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
}

.ch-solides-feature__placeholder {
    height: 100%;
    min-height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dbe8f7;
    font-weight: 900;
    font-size: 18px;
}

.ch-solides-feature__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    color: #1d4f8f;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.ch-solides-feature__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px 10px 12px 2px;
    position: relative;
    z-index: 1;
}

.ch-solides-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eef6ff;
    border: 1px solid #cfe0f4;
    color: #2a6baa;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.ch-solides-feature__content h2 {
    margin: 0 0 12px;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.05;
    color: #15315f;
    font-weight: 950;
}

.ch-solides-feature__content p {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.65;
    color: #5e7ca5;
    max-width: 720px;
}

.ch-solides-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.ch-solides-meta span {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #d7e6f5;
    color: #214a84;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(16, 39, 82, 0.06);
}

.ch-solides-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.ch-solides-info-card {
    background: rgba(255,255,255,0.76);
    border: 1px solid rgba(208, 225, 242, 0.95);
    border-radius: 20px;
    padding: 18px 16px;
    box-shadow: 0 10px 24px rgba(15, 42, 82, 0.08);
}

.ch-solides-info-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 20px;
    line-height: 1;
    color: #15315f;
    font-weight: 950;
}

.ch-solides-info-card span {
    display: block;
    color: #6d89ae;
    font-size: 13px;
    font-weight: 700;
}

/* =========================
   CH / PDF PANEL
========================= */

.ch-pdf-panel {
    padding: 16px;
}

.ch-pdf-panel iframe {
    display: block;
    width: 100%;
    height: 720px;
    border: 0;
    border-radius: 20px;
    background: #fff;
}

/* =========================
   CH / MODAL ORGANOGRAMA
========================= */

.ch-org-modal,
.ch-slide-modal,
.ch-pdf-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 24px !important;
    box-sizing: border-box !important;
}

.ch-org-modal.is-open,
.ch-slide-modal.is-open,
.ch-pdf-modal.is-open {
    display: flex !important;
}

.ch-org-modal__backdrop,
.ch-slide-modal__backdrop,
.ch-pdf-modal__backdrop {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(8, 24, 52, .86) !important;
    backdrop-filter: blur(12px) !important;
}

.ch-org-modal__dialog,
.ch-slide-modal__dialog,
.ch-pdf-modal__dialog {
    position: relative !important;
    z-index: 2 !important;
    width: min(1280px, 96vw) !important;
    overflow: hidden !important;
    border-radius: 28px !important;
    background: linear-gradient(180deg, #f8fbff 0%, #edf5fb 100%) !important;
    border: 1px solid rgba(255,255,255,.35) !important;
    box-shadow: 0 30px 90px rgba(0,0,0,.42) !important;
}

.ch-org-modal__dialog,
.ch-slide-modal__dialog {
    max-height: 94vh !important;
}

.ch-pdf-modal__dialog {
    height: min(900px, 94vh) !important;
}

.ch-org-modal__header,
.ch-slide-modal__header,
.ch-pdf-modal__header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
    padding: 16px 20px !important;
    background: #f8fbff !important;
    border-bottom: 1px solid rgba(116, 154, 203, .22) !important;
    box-sizing: border-box !important;
}

.ch-pdf-modal__header {
    height: 74px !important;
}

.ch-org-modal__header span,
.ch-slide-modal__header span,
.ch-pdf-modal__header span {
    display: block !important;
    margin-bottom: 4px !important;
    color: #2b6da8 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
}

.ch-org-modal__header h3,
.ch-slide-modal__header h3,
.ch-pdf-modal__header h3 {
    margin: 0 !important;
    color: #15315f !important;
    font-size: 23px !important;
    font-weight: 950 !important;
}

.ch-org-modal__close,
.ch-slide-modal__close,
.ch-pdf-modal__close {
    width: 42px !important;
    height: 42px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: #fff !important;
    color: #17325f !important;
    font-size: 28px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    box-shadow: 0 10px 24px rgba(15, 43, 82, .16) !important;
}

.ch-org-modal__body,
.ch-slide-modal__body,
.ch-pdf-modal__body {
    background: #102b58 !important;
    padding: 16px !important;
    box-sizing: border-box !important;
}

.ch-org-modal__body {
    max-height: calc(94vh - 78px) !important;
    overflow: auto !important;
}

.ch-slide-modal__body {
    position: relative !important;
    min-height: 620px !important;
    max-height: calc(94vh - 78px) !important;
    overflow: auto !important;
    padding: 18px 72px !important;
}

.ch-pdf-modal__body {
    height: calc(100% - 74px) !important;
}

.ch-org-modal__body img,
.ch-slide-modal__body img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
    border-radius: 18px !important;
    background: #102b58 !important;
    box-shadow: 0 18px 42px rgba(0,0,0,.28) !important;
}

.ch-pdf-modal__body iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    border-radius: 18px !important;
    background: #fff !important;
}

.ch-slide-nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 3 !important;
    width: 48px !important;
    height: 64px !important;
    border: 0 !important;
    border-radius: 18px !important;
    background: rgba(255,255,255,.92) !important;
    color: #15315f !important;
    font-size: 44px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    box-shadow: 0 16px 36px rgba(0,0,0,.24) !important;
}

.ch-slide-nav--prev {
    left: 16px !important;
}

.ch-slide-nav--next {
    right: 16px !important;
}

.ch-slide-nav:hover,
.ch-org-modal__close:hover,
.ch-slide-modal__close:hover,
.ch-pdf-modal__close:hover {
    filter: brightness(1.03);
}

body.ch-modal-open {
    overflow: hidden !important;
}

/* =========================
   RESPONSIVO
========================= */

@media (max-width: 1300px) {
    .ch-top-grid {
        grid-template-columns: 1fr;
    }

    .ch-hero,
    .ch-organograma-card {
        min-height: auto;
    }

    .ch-organograma-frame,
    .ch-organograma-link {
        min-height: 460px;
    }

    .ch-organograma-img {
        height: 460px;
    }
}

@media (max-width: 1100px) {
    .ch-cards-grid,
    .ch-card-grid,
    .ch-policy-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ch-support-hero-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .ch-support-mini-card {
        min-width: auto;
        width: 100%;
    }

    .ch-solides-feature {
        grid-template-columns: 1fr;
    }

    .ch-solides-feature__media {
        min-height: 340px;
    }
}

@media (max-width: 900px) {
    .ch-support-grid,
    .ch-card-grid--two {
        grid-template-columns: 1fr;
    }

    .ch-support-card {
        min-height: auto;
    }

    .ch-support-hero {
        padding: 24px 22px;
        border-radius: 24px;
    }

    .ch-support-card {
        border-radius: 24px;
    }
}

@media (max-width: 760px) {
    .ch-page {
        padding: 18px 14px 34px;
    }

    .ch-wrapper {
        width: 100%;
    }

    .ch-hero,
    .ch-organograma-card,
    .ch-hub,
    .ch-detail-hero,
    .ch-policy-hero,
    .ch-policy-card {
        border-radius: 22px;
    }

    .ch-hero,
    .ch-detail-hero,
    .ch-policy-hero {
        padding: 22px;
    }

    .ch-hero-title {
        font-size: 44px;
        letter-spacing: -1.5px;
    }

    .ch-detail-hero h1,
    .ch-policy-hero h1,
    .ch-support-hero-content h1 {
        font-size: 38px;
    }

    .ch-card-head,
    .ch-hub-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .ch-cards-grid,
    .ch-card-grid,
    .ch-card-grid--two,
    .ch-policy-grid,
    .ch-solides-info-grid {
        grid-template-columns: 1fr;
    }

    .ch-organograma-frame,
    .ch-organograma-link,
    .ch-organograma-empty {
        min-height: 300px;
    }

    .ch-organograma-img {
        height: 300px;
    }

    .ch-card {
        min-height: auto;
    }

    .ch-material-card img,
    .ch-material-placeholder {
        height: 220px;
    }

    .ch-pdf-panel iframe {
        height: 560px;
    }

    .ch-org-modal,
    .ch-slide-modal,
    .ch-pdf-modal {
        padding: 10px !important;
    }

    .ch-org-modal__dialog,
    .ch-slide-modal__dialog,
    .ch-pdf-modal__dialog {
        width: 100% !important;
        border-radius: 22px !important;
    }

    .ch-pdf-modal__dialog {
        height: 92vh !important;
    }

    .ch-org-modal__header h3,
    .ch-slide-modal__header h3,
    .ch-pdf-modal__header h3 {
        font-size: 18px !important;
    }

    .ch-slide-modal__body {
        min-height: 360px !important;
        padding: 14px 52px !important;
    }

    .ch-slide-nav {
        width: 38px !important;
        height: 54px !important;
        font-size: 34px !important;
    }

    .ch-solides-feature {
        padding: 14px;
        border-radius: 24px;
        gap: 18px;
    }

    .ch-solides-feature__media {
        min-height: 260px;
        border-radius: 20px;
    }

    .ch-solides-feature__content h2 {
        font-size: 28px;
    }

    .ch-solides-feature__content p {
        font-size: 15px;
    }
}/* =========================================================
   CH - HOME / CAPITAL HUMANO
========================================================= */

.ch-home-shell {
    width: 100%;
    margin-top: 6px;
}

.ch-home-grid {
    display: grid;
    grid-template-columns: 1.02fr 1.22fr;
    gap: 24px;
    align-items: stretch;
}

.ch-home-hero,
.ch-home-organograma-card {
    position: relative;
    background: linear-gradient(135deg, #f7f9fc 0%, #eef4f9 100%);
    border: 1px solid rgba(177, 198, 223, 0.34);
    border-radius: 28px;
    box-shadow:
        0 18px 40px rgba(10, 33, 76, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
    overflow: hidden;
}

/* efeito decorativo */
.ch-home-hero::before,
.ch-home-organograma-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 130px;
    height: 130px;
    background: radial-gradient(circle at top right, rgba(157, 216, 255, 0.45), transparent 68%);
    pointer-events: none;
}

.ch-home-hero {
    padding: 30px 28px 28px;
    min-height: 620px;
    display: flex;
    flex-direction: column;
}

.ch-home-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: #365f9d;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(159, 185, 214, 0.45);
    margin-bottom: 18px;
}

.ch-home-title {
    margin: 0;
    font-size: clamp(54px, 5vw, 82px);
    line-height: 0.92;
    letter-spacing: -2px;
    font-weight: 900;
    color: #18366f;
    max-width: 540px;
}

.ch-home-subtitle {
    margin: 14px 0 22px;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 700;
    color: #5176ad;
}

.ch-home-intro-card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(191, 207, 227, 0.55);
    border-radius: 20px;
    padding: 18px 18px;
    margin-bottom: 18px;
    box-shadow: 0 8px 20px rgba(20, 45, 90, 0.06);
}

.ch-home-intro-card p {
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
    font-weight: 500;
    color: #264678;
}

.ch-home-pillars {
    display: grid;
    gap: 14px;
    margin-top: auto;
}

.ch-home-pillar {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(191, 207, 227, 0.55);
    border-radius: 18px;
    padding: 18px 18px 16px;
    box-shadow: 0 8px 18px rgba(20, 45, 90, 0.05);
}

.ch-home-pillar-label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    letter-spacing: 1.6px;
    font-weight: 800;
    color: #3a78d1;
}

.ch-home-pillar strong {
    display: block;
    font-size: 19px;
    line-height: 1.45;
    color: #1e3560;
    font-weight: 700;
}

/* ORGANOGRAMA */

.ch-home-organograma-card {
    padding: 24px;
    min-height: 620px;
    display: flex;
    flex-direction: column;
}

.ch-home-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.ch-home-kicker {
    font-size: 13px;
    font-weight: 700;
    color: #5a79a4;
    margin-bottom: 8px;
}

.ch-home-card-head h2 {
    margin: 0 0 8px;
    font-size: clamp(36px, 2.7vw, 58px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -1.4px;
    color: #17356b;
}

.ch-home-card-head p {
    margin: 0;
    font-size: 17px;
    line-height: 1.5;
    color: #5d7398;
    max-width: 650px;
}

.ch-home-open-btn {
    appearance: none;
    border: 1px solid rgba(174, 194, 221, 0.65);
    background: #ffffff;
    color: #234a8b;
    font-weight: 800;
    font-size: 14px;
    padding: 12px 18px;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(20, 46, 92, 0.10);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.ch-home-open-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(20, 46, 92, 0.16);
    background: #f8fbff;
}

.ch-home-organograma-box {
    flex: 1;
    min-height: 0;
    display: flex;
}

.ch-home-organograma-trigger {
    position: relative;
    width: 100%;
    min-height: 480px;
    border: none;
    background: linear-gradient(180deg, #1a3265 0%, #12264b 100%);
    border-radius: 24px;
    padding: 16px;
    cursor: pointer;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.ch-home-organograma-trigger:hover .ch-home-organograma-img {
    transform: scale(1.01);
}

.ch-home-organograma-img {
    width: 100%;
    height: 100%;
    min-height: 448px;
    object-fit: contain;
    border-radius: 18px;
    display: block;
    transition: transform .22s ease;
}

.ch-home-zoom-chip {
    position: absolute;
    right: 18px;
    bottom: 18px;
    background: rgba(16, 34, 71, 0.92);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.16);
}

.ch-home-organograma-empty {
    width: 100%;
    min-height: 480px;
    border-radius: 24px;
    border: 1px dashed rgba(157, 178, 209, 0.8);
    background: rgba(255,255,255,0.68);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    color: #29436f;
    padding: 24px;
}

.ch-home-organograma-empty-icon {
    font-size: 38px;
}

/* responsivo */
@media (max-width: 1480px) {
    .ch-home-grid {
        grid-template-columns: 1fr;
    }

    .ch-home-hero,
    .ch-home-organograma-card {
        min-height: auto;
    }

    .ch-home-title {
        max-width: 100%;
    }

    .ch-home-card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .ch-home-open-btn {
        align-self: flex-start;
    }
}

@media (max-width: 768px) {
    .ch-home-hero,
    .ch-home-organograma-card {
        padding: 20px;
        border-radius: 22px;
    }

    .ch-home-title {
        font-size: 42px;
        letter-spacing: -1px;
    }

    .ch-home-subtitle {
        font-size: 20px;
    }

    .ch-home-intro-card p,
    .ch-home-pillar strong,
    .ch-home-card-head p {
        font-size: 15px;
    }

    .ch-home-card-head h2 {
        font-size: 32px;
    }

    .ch-home-organograma-trigger {
        min-height: 340px;
    }

    .ch-home-organograma-img {
        min-height: 310px;
    }
}


/***Assinatura digital */


.signature-page {
    padding: 32px;
}

html[data-theme="dark"] .signature-page,
:root:not([data-theme="light"]) .signature-page {
    color: #f8fafc;
}

.signature-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    padding: 34px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(20, 45, 82, .96), rgba(12, 30, 58, .96));
    box-shadow: 0 22px 60px rgba(0, 0, 0, .22);
    border: 1px solid rgba(255, 255, 255, .10);
}

.signature-badge,
.signature-section-label {
    display: inline-flex;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(251, 113, 64, .16);
    color: #fb8a5f;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.signature-hero h1 {
    margin: 14px 0 8px;
    font-size: 34px;
    color: #ffffff;
}

.signature-hero p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, .74);
    font-size: 15px;
}

.signature-hero-btn,
.signature-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: #fb7040;
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    border: none;
    transition: .2s ease;
    white-space: nowrap;
}

.signature-hero-btn:hover,
.signature-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(251, 112, 64, .28);
}

.signature-user-card {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
    padding: 18px 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .10);
}

.signature-user-avatar {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(251, 112, 64, .18);
    font-size: 22px;
}

.signature-user-card strong {
    display: block;
    color: #ffffff;
    font-size: 16px;
}

.signature-user-card span {
    display: block;
    color: rgba(255, 255, 255, .68);
    margin-top: 3px;
}

.signature-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.signature-stats article {
    padding: 22px;
    border-radius: 24px;
    background: #ffffff;
    color: #10213d;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .14);
}

.signature-stats span {
    display: block;
    font-size: 28px;
    font-weight: 900;
}

.signature-stats p {
    margin: 4px 0 0;
    color: #64748b;
    font-weight: 700;
}

.signature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.signature-card {
    padding: 24px;
    border-radius: 28px;
    background: #ffffff;
    color: #111827;
    box-shadow: 0 18px 46px rgba(0, 0, 0, .16);
}

.signature-card--pending {
    border: 1px solid rgba(251, 112, 64, .35);
}

.signature-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.signature-card h2 {
    margin: 10px 0 0;
    color: #101828;
    font-size: 22px;
}

.signature-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.signature-doc {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.signature-doc__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.signature-doc-note {
    margin: 8px 0 0;
    font-size: 12px;
    color: #92400e;
    background: rgba(251, 191, 36, .15);
    padding: 8px 10px;
    border-radius: 12px;
}

.signature-filter-hint {
    margin: 0 0 8px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
    color: rgba(248, 250, 252, .85);
    font-size: 14px;
    line-height: 1.45;
}

.signature-filter-hint__cache {
    opacity: .75;
    font-size: 13px;
}

.signature-filter-hint__refresh {
    margin-left: 8px;
    font-weight: 700;
    color: #fb7040;
    text-decoration: none;
}

.signature-filter-hint__refresh:hover {
    text-decoration: underline;
}

.signature-embed-panel {
    margin: 0 0 24px;
    padding: 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(251, 112, 64, .35);
}

.signature-embed-panel__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.signature-embed-panel__head h2 {
    margin: 4px 0 6px;
    font-size: 1.25rem;
}

.signature-embed-panel__head p {
    margin: 0;
    font-size: 14px;
    opacity: .85;
}

.signature-embed-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.signature-embed-panel__fallback {
    margin: 0 0 12px;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.45;
    border-radius: 10px;
    background: rgba(251, 112, 64, 0.12);
    border: 1px solid rgba(251, 112, 64, 0.35);
}

.signature-embed-panel__loader {
    padding: 12px 0;
    font-size: 14px;
    color: #fb7040;
}

.signature-embed-panel__frame-wrap {
    border-radius: 14px;
    overflow: hidden;
    background: #0f172a;
    min-height:  min(72vh, 820px);
}

.signature-embed-panel__frame {
    display: block;
    width: 100%;
    height: min(72vh, 820px);
    border: 0;
    background: #fff;
}

.signature-doc-files {
    margin: 8px 0 0;
    padding-left: 18px;
    font-size: 13px;
    opacity: .9;
}

.signature-doc-files li {
    margin: 2px 0;
}

.signature-doc--group .signature-btn.is-active {
    box-shadow: 0 0 0 2px rgba(251, 112, 64, .5);
}

html[data-theme="light"] .signature-embed-panel {
    background: #f8fafc;
    border-color: rgba(251, 112, 64, .45);
}

.signature-popup-hint {
    margin: 0 0 16px;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(59, 130, 246, .18);
    border: 1px solid rgba(59, 130, 246, .35);
    color: #e2e8f0;
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.signature-popup-hint__btn {
    border: none;
    border-radius: 999px;
    padding: 8px 16px;
    font-weight: 800;
    cursor: pointer;
    background: #3b82f6;
    color: #fff;
}

.signature-btn--ghost {
    background: transparent;
    color: #fb7040;
    border: 2px solid rgba(251, 112, 64, .55);
}

.signature-btn--ghost:hover {
    background: rgba(251, 112, 64, .08);
}

.signature-api-alert--soft {
    background: rgba(148, 163, 184, .2);
    border-color: rgba(148, 163, 184, .35);
}

.signature-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
}

.signature-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .72);
}

.signature-modal__dialog {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(1040px, 96vw);
    height: min(90vh, 880px);
    background: #0f172a;
    border-radius: 20px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .45);
    border: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.signature-modal__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.signature-modal__head h2 {
    margin: 0;
    font-size: 17px;
    color: #f8fafc;
}

.signature-modal__close {
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.signature-modal__note {
    margin: 0;
    padding: 10px 18px;
    font-size: 13px;
    color: #cbd5e1;
    background: rgba(251, 113, 64, .12);
}

.signature-modal__frame-wrap {
    flex: 1;
    min-height: 0;
    background: #020617;
}

.signature-modal__frame {
    width: 100%;
    height: 100%;
    border: 0;
}

.signature-doc-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(251, 112, 64, .14);
    font-size: 20px;
}

.signature-doc-icon--done {
    background: rgba(34, 197, 94, .14);
}

.signature-doc-info h3 {
    margin: 0;
    color: #111827;
    font-size: 15px;
}

.signature-doc-info p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 13px;
}

.signature-btn--secondary {
    background: #10213d;
}

.signature-empty {
    padding: 28px;
    border-radius: 22px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    text-align: center;
}

.signature-empty strong {
    display: block;
    color: #111827;
}

.signature-empty p {
    color: #64748b;
    margin: 6px 0 0;
}

@media (max-width: 1100px) {
    .signature-grid,
    .signature-stats {
        grid-template-columns: 1fr;
    }

    .signature-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .signature-doc {
        grid-template-columns: 46px 1fr;
    }

    .signature-doc .signature-doc__actions {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}
.signature-api-alert {
    margin: 18px 0;
    padding: 16px 20px;
    border-radius: 18px;
    background: rgba(251, 112, 64, .16);
    color: #fff;
    border: 1px solid rgba(251, 112, 64, .35);
}

/* Assinatura Digital — modo claro (contraste legível) */
html[data-theme="light"] .signature-page {
    color: #122338;
}

html[data-theme="light"] .signature-user-card {
    background: #ffffff;
    border: 1px solid rgba(27, 45, 78, 0.12);
    box-shadow: 0 10px 28px rgba(27, 45, 78, 0.08);
}

html[data-theme="light"] .signature-user-card strong {
    color: #0f2846;
}

html[data-theme="light"] .signature-user-card span {
    color: rgba(27, 45, 78, 0.62);
}

html[data-theme="light"] .signature-user-avatar {
    background: rgba(234, 88, 12, 0.12);
}

html[data-theme="light"] .signature-filter-hint {
    background: rgba(34, 112, 170, 0.08);
    border: 1px solid rgba(34, 112, 170, 0.18);
    color: #334155;
}

html[data-theme="light"] .signature-filter-hint strong {
    color: #0f2846;
}

html[data-theme="light"] .signature-stats article {
    border: 1px solid rgba(27, 45, 78, 0.1);
    box-shadow: 0 12px 28px rgba(27, 45, 78, 0.1);
}

html[data-theme="light"] .signature-stats span {
    color: #0f2846;
}

html[data-theme="light"] .signature-stats p {
    color: #64748b;
}

html[data-theme="light"] .signature-card {
    border: 1px solid rgba(27, 45, 78, 0.1);
    box-shadow: 0 14px 36px rgba(27, 45, 78, 0.1);
}

html[data-theme="light"] .signature-card--pending {
    border-color: rgba(234, 88, 12, 0.35);
}

html[data-theme="light"] .signature-badge,
html[data-theme="light"] .signature-section-label {
    background: rgba(234, 88, 12, 0.14);
    color: #c2410c;
}

html[data-theme="light"] .signature-card h2 {
    color: #0f2846;
}

html[data-theme="light"] .signature-doc {
    background: #ffffff;
    border: 1px solid rgba(27, 45, 78, 0.1);
}

html[data-theme="light"] .signature-doc-info h3 {
    color: #1b2d4e;
}

html[data-theme="light"] .signature-doc-info p {
    color: rgba(27, 45, 78, 0.58);
}

html[data-theme="light"] .signature-empty {
    background: #f3f8fb;
    border-color: rgba(34, 112, 170, 0.22);
}

html[data-theme="light"] .signature-empty strong {
    color: #1b2d4e;
}

html[data-theme="light"] .signature-empty p {
    color: rgba(27, 45, 78, 0.62);
}

html[data-theme="light"] .signature-api-alert {
    background: rgba(234, 88, 12, 0.1);
    color: #9a3412;
    border-color: rgba(234, 88, 12, 0.28);
}

html[data-theme="light"] .signature-api-alert strong {
    color: #7c2d12;
}

html[data-theme="light"] .signature-api-alert--soft {
    background: rgba(34, 112, 170, 0.08);
    color: #334155;
    border-color: rgba(34, 112, 170, 0.2);
}

html[data-theme="light"] .signature-popup-hint {
    background: rgba(34, 112, 170, 0.1);
    border-color: rgba(34, 112, 170, 0.22);
    color: #1e3a5f;
}

html[data-theme="light"] .signature-btn--ghost {
    color: #c2410c;
    border-color: rgba(234, 88, 12, 0.45);
}

html[data-theme="light"] .signature-btn--ghost:hover {
    background: rgba(234, 88, 12, 0.08);
}

/*financeiro*/

.fin-page {
    padding: 28px;
}

.fin-hero {
    background: linear-gradient(135deg, #12345a, #0f2745);
    border-radius: 28px;
    padding: 28px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    box-shadow: 0 20px 45px rgba(15, 39, 69, .18);
    margin-bottom: 24px;
}

.fin-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 12px;
}

.fin-hero h1 {
    margin: 0 0 8px;
    font-size: 34px;
}

.fin-hero p {
    margin: 0;
    color: rgba(255,255,255,.78);
}

.fin-hero-btn,
.fin-mini-btn {
    text-decoration: none;
    border: 0;
    background: #00a8e8;
    color: #fff;
    font-weight: 800;
    padding: 12px 18px;
    border-radius: 16px;
    white-space: nowrap;
    box-shadow: 0 12px 30px rgba(0,168,232,.28);
}

.fin-grid {
    display: grid;
    grid-template-columns: minmax(360px, .8fr) minmax(520px, 1.2fr);
    gap: 24px;
    align-items: stretch;
}

.fin-card {
    background: #fff;
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 18px 45px rgba(15, 39, 69, .10);
    border: 1px solid rgba(15, 39, 69, .08);
}

.fin-card-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 20px;
}

.fin-card-head span {
    color: #00a8e8;
    font-weight: 900;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.fin-card-head h2 {
    margin: 4px 0 0;
    color: #12345a;
    font-size: 22px;
}

.fin-org {
    background: linear-gradient(180deg, #153e68, #0f2d4d);
    border-radius: 24px;
    padding: 28px 18px;
    overflow: auto;
    max-height: 720px;
}

.fin-org::-webkit-scrollbar {
    width: 6px;
}

.fin-org::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.25);
    border-radius: 999px;
}

.fin-org-node {
    background: #fff;
    border: 3px solid #00a8e8;
    color: #12345a;
    border-radius: 4px;
    padding: 12px 14px;
    text-align: center;
    width: fit-content;
    min-width: 150px;
    max-width: 190px;
    margin: 0 auto;
    box-shadow: 0 10px 22px rgba(0,0,0,.18);
}

.fin-org-node strong {
    display: block;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.15;
}

.fin-org-node small {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
}

.fin-org-line {
    width: 4px;
    height: 34px;
    background: #00a8e8;
    margin: 0 auto;
}

.fin-org-branch {
    position: relative;
    padding-top: 18px;
}

.fin-team-list {
    position: relative;
    margin: 18px auto 0;
    padding-left: 34px;
    max-width: 290px;
}

.fin-team-list::before {
    content: "";
    position: absolute;
    left: 16px;
    top: -18px;
    bottom: 24px;
    width: 4px;
    background: #00a8e8;
}

.fin-team-list .fin-org-node {
    position: relative;
    margin: 0 0 10px;
    min-width: 185px;
}

.fin-team-list .fin-org-node::before {
    content: "";
    position: absolute;
    left: -21px;
    top: 50%;
    width: 21px;
    height: 4px;
    background: #00a8e8;
    transform: translateY(-50%);
}

.fin-bi-frame {
    width: 100%;
    height: 720px;
    border-radius: 22px;
    overflow: hidden;
    background: #0f2745;
    border: 1px solid rgba(15, 39, 69, .10);
}

.fin-bi-frame iframe {
    width: 100%;
    height: 100%;
    display: block;
}

@media (max-width: 1100px) {
    .fin-grid {
        grid-template-columns: 1fr;
    }

    .fin-bi-frame {
        height: 620px;
    }
}

@media (max-width: 720px) {
    .fin-page {
        padding: 18px;
    }

    .fin-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .fin-hero h1 {
        font-size: 28px;
    }

    .fin-hero-btn {
        width: 100%;
        text-align: center;
    }
}

.fin-org--premium {
    background:
        radial-gradient(circle at top, rgba(0, 168, 232, .24), transparent 34%),
        linear-gradient(145deg, #0f2745, #12345a);
    padding: 30px;
    border-radius: 28px;
    max-height: 720px;
    overflow: auto;
}

.fin-org-level {
    display: flex;
    justify-content: center;
}

.fin-person {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 20px;
    padding: 14px 16px;
    min-width: 245px;
    box-shadow: 0 18px 35px rgba(0, 0, 0, .18);
}

.fin-person strong {
    display: block;
    color: #12345a;
    font-size: 14px;
    font-weight: 900;
}

.fin-person small {
    display: block;
    color: #47647f;
    font-size: 12px;
    font-weight: 700;
    margin-top: 3px;
}

.fin-avatar {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #00a8e8, #12345a);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    flex: 0 0 auto;
    box-shadow: 0 10px 22px rgba(0, 168, 232, .28);
}

.fin-person--president {
    min-width: 280px;
}

.fin-person--director {
    min-width: 280px;
    transform: scale(.98);
}

.fin-person--manager {
    min-width: 280px;
    transform: scale(.96);
}

.fin-connector {
    width: 3px;
    height: 34px;
    margin: 0 auto;
    background: linear-gradient(180deg, #00a8e8, rgba(255,255,255,.4));
    border-radius: 999px;
}

.fin-team-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(2, minmax(210px, 1fr));
    gap: 14px;
    position: relative;
}

.fin-team-grid::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 12%;
    right: 12%;
    height: 3px;
    background: rgba(0, 168, 232, .9);
    border-radius: 999px;
}

.fin-person--team {
    min-width: 0;
    padding: 12px;
    border-radius: 18px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .14);
}

.fin-person--team .fin-avatar {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    font-size: 12px;
}

.fin-person--team strong {
    font-size: 13px;
}

.fin-person--team small {
    font-size: 11px;
}

@media (max-width: 720px) {
    .fin-team-grid {
        grid-template-columns: 1fr;
    }

    .fin-person {
        min-width: 100%;
    }
}





/*report*/

.report-page {
    padding: 28px;
    background: transparent;
}

.report-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: stretch;
    padding: 28px;
    border-radius: 28px;
    background: linear-gradient(135deg, #102b55, #1d3f73);
    color: #fff;
    box-shadow: 0 18px 45px rgba(15, 35, 70, .18);
    margin-bottom: 22px;
}

.report-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    font-weight: 800;
    margin-bottom: 14px;
}

.report-hero h1 {
    margin: 0 0 8px;
    font-size: 34px;
    line-height: 1.05;
}

.report-hero p {
    margin: 0;
    color: rgba(255,255,255,.82);
    max-width: 720px;
}

.report-hero__stats {
    min-width: 180px;
    border-radius: 24px;
    background: rgba(255,255,255,.13);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.report-hero__stats strong {
    font-size: 44px;
    line-height: 1;
}

.report-hero__stats span {
    color: rgba(255,255,255,.78);
    font-weight: 700;
}

.report-alert {
    background: #fff3cd;
    color: #664d03;
    border: 1px solid #ffecb5;
    border-radius: 18px;
    padding: 16px 18px;
    margin-bottom: 18px;
}

.report-alert p {
    margin: 6px 0 0;
}

.report-toolbar {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
}

.report-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #dce4f2;
    border-radius: 18px;
    padding: 0 16px;
    box-shadow: 0 10px 28px rgba(20, 44, 84, .06);
}

.report-search input {
    width: 100%;
    border: 0;
    outline: 0;
    height: 50px;
    font-weight: 700;
    color: #17233c;
}

.report-filter {
    height: 52px;
    border: 1px solid #dce4f2;
    border-radius: 18px;
    padding: 0 16px;
    background: #fff;
    font-weight: 800;
    color: #17233c;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.report-card {
    background: #fff;
    border: 1px solid #e1e8f3;
    border-radius: 24px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(20, 44, 84, .08);
    transition: .2s ease;
}

.report-card__preview {
    position: relative;
    height: 156px;
    background: linear-gradient(160deg, #f0f5ff 0%, #e6eef9 100%);
    flex-shrink: 0;
}

.report-card__thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.report-card__thumb--hidden {
    display: none !important;
}

.report-card__icon--preview-fallback {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    background: transparent;
    font-size: 52px;
}

.report-card__icon--preview-fallback.report-card__icon--visible {
    display: flex;
}

.report-card__type--overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    box-shadow: 0 8px 20px rgba(20, 44, 84, .1);
}

.report-card__body {
    padding: 16px 18px 18px;
}

.report-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(20, 44, 84, .13);
}

.report-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.report-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: #eef4ff;
    font-size: 26px;
}

.report-card__type {
    padding: 7px 10px;
    border-radius: 999px;
    background: #f1f5fb;
    color: #33506f;
    font-size: 12px;
    font-weight: 900;
}

.report-card__body h3 {
    margin: 0;
    color: #12213a;
    font-size: 16px;
    line-height: 1.25;
    min-height: 42px;
    word-break: break-word;
}

.report-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 16px 0;
    font-size: 12px;
    color: #718199;
    font-weight: 800;
}

.report-card__actions {
    display: flex;
    gap: 10px;
}

.report-btn {
    flex: 1;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 900;
    font-size: 13px;
}

.report-btn--primary {
    background: #173b70;
    color: #fff;
}

.report-btn--ghost {
    background: #eef4ff;
    color: #173b70;
}

.report-empty {
    text-align: center;
    background: #fff;
    border: 1px dashed #c7d3e6;
    border-radius: 26px;
    padding: 60px 20px;
    color: #53657d;
}

.report-empty div {
    font-size: 52px;
}

.report-empty h2 {
    color: #142542;
    margin: 12px 0 8px;
}

@media (max-width: 760px) {
    .report-page {
        padding: 18px;
    }

    .report-hero {
        flex-direction: column;
    }

    .report-toolbar {
        flex-direction: column;
    }
}
.report-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) 330px;
    gap: 18px;
    align-items: start;
}

.report-folders-panel,
.report-files-panel,
.report-recent-panel {
    background: rgba(29, 63, 115, .72);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 18px 45px rgba(15, 35, 70, .14);
}

.report-files-panel {
    min-width: 0;
}

.report-panel-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 900;
    margin-bottom: 14px;
}

.report-panel-title small {
    color: rgba(255,255,255,.68);
    font-size: 12px;
}

.report-panel-title--explorer {
    margin-top: 4px;
}

.report-breadcrumbs {
    margin-bottom: 12px;
    min-height: 28px;
}

.report-breadcrumbs__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 2px;
    font-size: 13px;
    font-weight: 800;
}

.report-breadcrumbs__sep {
    color: rgba(255,255,255,.35);
    user-select: none;
}

.report-crumb {
    border: 0;
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.92);
    font: inherit;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.report-crumb:hover {
    background: #fff;
    color: #143463;
    transform: translateY(-1px);
}

.report-crumb--home {
    background: rgba(255,255,255,.16);
}

.report-crumb--current {
    color: rgba(255,255,255,.95);
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.22);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-root-folders-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.report-explorer {
    transition: opacity .2s ease;
}

.report-grid--enter {
    animation: reportExplorerIn .22s ease;
}

@keyframes reportExplorerIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.report-grid--search {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.report-folder-card {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,.22);
    background: linear-gradient(155deg, rgba(255,255,255,.97) 0%, rgba(236, 244, 255,.94) 55%, rgba(255, 251, 235,.92) 100%);
    box-shadow: 0 14px 36px rgba(12, 28, 58, .2);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    outline: none;
}

.report-folder-card:hover,
.report-folder-card:focus-visible {
    transform: translateY(-5px);
    box-shadow: 0 22px 50px rgba(12, 28, 58, .28);
    border-color: rgba(23, 59, 112, .35);
}

.report-folder-card__shine {
    position: absolute;
    inset: -40% 20% auto -30%;
    height: 70%;
    background: linear-gradient(115deg, transparent, rgba(255,255,255,.55), transparent);
    opacity: .45;
    transform: rotate(-12deg);
    pointer-events: none;
}

.report-folder-card__body {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 18px;
    min-height: 108px;
}

.report-folder-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 28px;
    background: linear-gradient(145deg, #ffecc8, #ffd28a);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
    flex-shrink: 0;
}

.report-folder-card__text {
    flex: 1;
    min-width: 0;
}

.report-folder-card__text h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.25;
    color: #12213a;
    font-weight: 900;
    word-break: break-word;
}

.report-folder-card__meta {
    font-size: 12px;
    font-weight: 800;
    color: #5a6d86;
}

.report-folder-card__chevron {
    font-size: 28px;
    font-weight: 300;
    color: #173b70;
    opacity: .45;
    line-height: 1;
    flex-shrink: 0;
}

.report-folder-card:hover .report-folder-card__chevron,
.report-folder-card:focus-visible .report-folder-card__chevron {
    opacity: .85;
    transform: translateX(3px);
    transition: opacity .2s ease, transform .2s ease;
}

.report-card__trail {
    margin: 6px 0 0;
    font-size: 11px;
    font-weight: 800;
    color: #7a8ca3;
    line-height: 1.35;
    min-height: 32px;
}

.report-folder-btn {
    width: 100%;
    border: 0;
    outline: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-weight: 900;
    margin-bottom: 10px;
    text-align: left;
    transition: .2s ease;
}

.report-folder-btn:hover,
.report-folder-btn.active {
    background: #fff;
    color: #143463;
    transform: translateY(-2px);
}

.report-folder-btn strong {
    min-width: 34px;
    height: 28px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: rgba(20,52,99,.12);
    font-size: 12px;
}

.report-card__folder {
    margin-top: 10px;
    font-size: 12px;
    color: #53657d;
    font-weight: 800;
    min-height: 18px;
}

.report-recent-panel {
    position: sticky;
    top: 18px;
}

.report-recent-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: #fff;
    text-decoration: none;
    margin-bottom: 10px;
    box-shadow: 0 10px 24px rgba(20, 44, 84, .08);
    transition: .2s ease;
}

.report-recent-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(20, 44, 84, .14);
}

.report-recent-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #eef4ff;
    font-size: 21px;
}

.report-recent-item strong {
    display: block;
    color: #12213a;
    font-size: 13px;
    line-height: 1.25;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.report-recent-item span {
    display: block;
    color: #718199;
    font-size: 11px;
    font-weight: 800;
}

@media (max-width: 1300px) {
    .report-layout {
        grid-template-columns: 240px minmax(0, 1fr);
    }

    .report-recent-panel {
        grid-column: 1 / -1;
        position: static;
    }
}

@media (max-width: 860px) {
    .report-layout {
        grid-template-columns: 1fr;
    }

    .report-folders-panel,
    .report-files-panel,
    .report-recent-panel {
        padding: 14px;
    }
}



/* ===== TI 2.0 - visual baseado no TI atual ===== */
.ti-home-page,.ti-ticket-page{position:relative;min-height:calc(100vh - 112px);padding:28px 22px 56px;overflow:hidden;background:linear-gradient(180deg,#ffffff 0%,#f7fbff 100%);border-radius:0;color:#1B2D4E}.ti-home-fx span{position:absolute;width:15px;height:15px;border-radius:4px;background:#67c7e8;opacity:.45;box-shadow:12px 12px 26px rgba(34,112,170,.18)}.ti-home-fx span:nth-child(1){top:22px;left:7%}.ti-home-fx span:nth-child(2){top:250px;left:18%}.ti-home-fx span:nth-child(3){top:520px;right:13%}.ti-home-fx span:nth-child(4){bottom:110px;left:12%}.ti-home-head{text-align:center;margin:18px auto 18px;max-width:900px}.ti-home-head h1{margin:0 0 8px;color:#1B2D4E;font-size:28px;font-weight:950}.ti-home-head p{margin:0;color:#71829b;font-size:15px}.ti-shortcuts-wrap{width:min(1040px,100%);margin:0 auto 32px;display:flex;justify-content:center;gap:16px;flex-wrap:wrap}.ti-shortcut{width:270px;min-height:64px;padding:12px 14px;display:grid;grid-template-columns:42px 1fr 34px;align-items:center;gap:10px;border-radius:999px;background:#fff;border:1px solid #dfeaf6;box-shadow:0 18px 35px rgba(20,51,89,.14);transition:.18s ease}.ti-shortcut:hover{transform:translateY(-2px);box-shadow:0 24px 42px rgba(20,51,89,.18)}.ti-shortcut-ico{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#edf7ff;color:#2270AA;font-size:18px}.ti-shortcut-body{min-width:0}.ti-shortcut-body strong{display:block;font-size:14px;color:#1B2D4E;line-height:1.1}.ti-shortcut-body span{display:block;margin-top:3px;color:#73849b;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ti-shortcut a{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#2e86c1;color:#fff;text-decoration:none;font-weight:900}.ti-org-panel{position:relative;width:min(1120px,100%);margin:0 auto;padding:30px 44px 34px;border-radius:30px;background:linear-gradient(180deg,#173964 0%,#081a33 100%);color:#fff;text-align:center;box-shadow:0 34px 80px rgba(4,14,32,.38);overflow:hidden}.ti-org-title{text-transform:uppercase;letter-spacing:.22em;font-weight:950;color:#d8ebff;font-size:15px}.ti-org-sub{margin-top:8px;color:#bcd0e8;font-size:13px}.ti-org-flow{max-width:860px;margin:22px auto 18px}.ti-org-row{margin-top:14px}.ti-org-label{text-transform:uppercase;letter-spacing:.18em;color:#b8cce3;font-size:12px;font-weight:900;margin-bottom:8px}.ti-org-pill{display:inline-flex;align-items:center;justify-content:center;min-width:130px;padding:10px 22px;border-radius:999px;background:linear-gradient(180deg,#f9fbff,#d8e8fb);color:#17345f;font-weight:950;box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 12px 22px rgba(0,0,0,.18)}.ti-org-pill--top{min-width:140px}.ti-org-row p{margin:9px auto 0;max-width:760px;color:#d7e5f6;font-size:12px;font-weight:700;line-height:1.55}.ti-suppliers-title{text-transform:uppercase;letter-spacing:.18em;color:#c7d9ef;font-size:12px;font-weight:950;margin:22px 0 12px}.ti-suppliers-grid{display:flex;justify-content:center;flex-wrap:wrap;gap:12px}.ti-suppliers-grid div{min-width:170px;max-width:250px;padding:13px 16px;border-radius:14px;background:linear-gradient(180deg,#f1f7ff,#d8e8fb);color:#17345f;box-shadow:0 10px 20px rgba(0,0,0,.12)}.ti-suppliers-grid strong{display:block;font-weight:950;font-size:14px}.ti-suppliers-grid span{display:block;margin-top:4px;font-size:12px;color:#425b7a}.ti-home-bottom{width:min(1120px,100%);margin:24px auto 0;display:grid;grid-template-columns:1.25fr .75fr;gap:18px}.ti-home-card,.ti-ticket-card{background:#fff;border:1px solid #dce7f4;border-radius:24px;padding:22px;box-shadow:0 18px 42px rgba(13,38,76,.10)}.ti-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.ti-card-head h2,.ti-home-card h2{margin:0;color:#173662;font-size:22px}.ti-card-head a{color:#2270AA;text-decoration:none;font-weight:900}.ti-mini-list{display:flex;flex-direction:column;gap:10px}.ti-mini-ticket{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:13px 14px;border-radius:16px;background:#f8fbff;border:1px solid #dce8f6;color:#173662;text-decoration:none}.ti-mini-ticket strong{display:block;font-size:13px;color:#173662}.ti-mini-ticket span{display:block;margin-top:4px;color:#667991;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:560px}.ti-mini-ticket em{font-style:normal;padding:7px 10px;border-radius:999px;background:#eaf2ff;color:#1d5f99;font-size:12px;font-weight:950;white-space:nowrap}.ti-stats-compact{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.ti-stats-compact div{padding:16px;border-radius:18px;background:#f8fbff;border:1px solid #dce8f6}.ti-stats-compact small{display:block;color:#697c94;font-weight:900}.ti-stats-compact strong{display:block;margin-top:6px;color:#173662;font-size:28px}.ti-empty{margin:0;color:#64748b}.ti-ticket-head{display:flex;align-items:center;justify-content:space-between;gap:18px;width:min(1180px,100%);margin:0 auto 20px;padding:26px 30px;border-radius:28px;background:linear-gradient(135deg,#173964,#245993);color:#fff;box-shadow:0 24px 54px rgba(8,24,52,.22)}.ti-ticket-head span{display:inline-flex;margin-bottom:10px;padding:7px 12px;border-radius:999px;background:rgba(255,255,255,.12);font-size:12px;font-weight:950}.ti-ticket-head h1{margin:0 0 8px;color:#fff;font-size:34px}.ti-ticket-head p{margin:0;color:rgba(255,255,255,.82);max-width:780px;line-height:1.55}.ti-ticket-grid{width:min(1180px,100%);margin:0 auto;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(340px,.85fr);gap:20px;align-items:start}.ti-ticket-card--form{padding:0;overflow:hidden}.ti-ticket-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 22px;border-bottom:1px solid #e3edf7;background:#f8fbff}.ti-sla-pill,.ti-history-pill{display:inline-flex;align-items:center;padding:9px 13px;border-radius:999px;font-weight:900;font-size:13px;text-decoration:none}.ti-sla-pill{background:#edf7ff;color:#1d6598}.ti-history-pill{background:#fff;color:#2270AA;border:1px solid #dbe8f6}.ti-support-form{padding:22px;display:flex;flex-direction:column;gap:18px}.ti-form-section-title{padding-top:4px;color:#173662;font-weight:950;font-size:17px}.ti-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.ti-form-grid--3{grid-template-columns:repeat(3,minmax(0,1fr))}.ti-support-form label{display:flex;flex-direction:column;gap:8px;color:#1d3e6b;font-weight:900;font-size:13px}.ti-support-form small{font-size:12px;color:#73849b;font-weight:700}.ti-support-form input,.ti-support-form select,.ti-support-form textarea,.ti-filter input,.ti-filter select{width:100%;min-height:50px;border:1px solid #cfdbef;border-radius:14px;background:#fff;color:#223650;padding:12px 14px;font:inherit;box-sizing:border-box;outline:none}.ti-support-form input:focus,.ti-support-form select:focus,.ti-support-form textarea:focus,.ti-filter input:focus,.ti-filter select:focus{border-color:#4a85ea;box-shadow:0 0 0 4px rgba(74,133,234,.12)}.ti-support-form input[readonly]{background:#edf3fa;color:#617188}.ti-support-form textarea{min-height:130px;resize:vertical}.ti-span-full{grid-column:1/-1}.ti-form-note{display:flex;align-items:flex-end;color:#64748b;font-size:13px;line-height:1.55;padding-bottom:7px}.ti-submit-row{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:4px;padding-top:18px;border-top:1px solid #e7eef7}.ti-submit-row span{color:#6b7c93;font-weight:800;font-size:13px}.ti-btn{border:0;border-radius:14px;padding:13px 18px;background:linear-gradient(135deg,#2270AA,#3BABD4);color:#fff;text-decoration:none;font-weight:950;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 12px 24px rgba(34,112,170,.22)}.ti-btn--small{padding:11px 14px}.ti-btn--ghost-light{background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.18);box-shadow:none}.ti-filter{display:grid;grid-template-columns:1fr 170px auto;gap:10px;margin-bottom:16px}.ti-list-scroll{display:flex;flex-direction:column;gap:10px;max-height:640px;overflow:auto;scrollbar-width:none}.ti-list-scroll::-webkit-scrollbar{display:none}.ti-alert{width:min(1180px,100%);margin:0 auto 16px;padding:14px 16px;border-radius:16px;font-weight:900}.ti-alert--sucesso,.ti-alert--success{background:#ecfdf3;color:#166534;border:1px solid #bbf7d0}.ti-alert--erro,.ti-alert--error,.ti-alert--danger{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca}
@media(max-width:1180px){.ti-ticket-grid,.ti-home-bottom{grid-template-columns:1fr}.ti-mini-ticket span{max-width:420px}}@media(max-width:860px){.ti-ticket-head{flex-direction:column;align-items:flex-start}.ti-form-grid,.ti-form-grid--3,.ti-filter{grid-template-columns:1fr}.ti-span-full{grid-column:auto}.ti-submit-row{flex-direction:column;align-items:stretch}.ti-shortcut{width:100%}.ti-org-panel{padding:24px 18px}.ti-home-page,.ti-ticket-page{padding:18px 14px 38px}}@media(max-width:620px){.ti-suppliers-grid div{width:100%;max-width:none}.ti-stats-compact{grid-template-columns:1fr}.ti-mini-ticket{align-items:flex-start;flex-direction:column}.ti-ticket-head h1{font-size:28px}}

.ti2-page {
    position: relative;
    min-height: calc(100vh - 92px);
    padding: 28px;
    overflow: hidden;
    color: #10233d;
}

.ti2-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 8% 8%, rgba(59, 171, 212, .18), transparent 26%),
        radial-gradient(circle at 92% 20%, rgba(34, 112, 170, .16), transparent 24%),
        linear-gradient(180deg, rgba(255,255,255,.78), rgba(238,246,255,.92));
    pointer-events: none;
    z-index: 0;
}

.ti2-page > * {
    position: relative;
    z-index: 1;
}

.ti2-hero {
    width: min(1320px, 100%);
    margin: 0 auto 22px;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, .75fr);
    gap: 20px;
}

.ti2-hero__content,
.ti2-hero__panel,
.ti2-card {
    border: 1px solid rgba(255,255,255,.52);
    box-shadow: 0 24px 58px rgba(8,31,59,.14);
    backdrop-filter: blur(16px);
}

.ti2-hero__content {
    min-height: 300px;
    border-radius: 32px;
    padding: 34px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 18%, rgba(59,171,212,.26), transparent 28%),
        linear-gradient(135deg, #10233d 0%, #183b6d 58%, #236ca7 100%);
}

.ti2-kicker {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: #dff6ff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ti2-hero h1 {
    max-width: 780px;
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(2.1rem, 4vw, 4.2rem);
    line-height: .96;
    letter-spacing: -.06em;
}

.ti2-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255,255,255,.80);
    font-size: 1.02rem;
    line-height: 1.65;
}

.ti2-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.ti2-btn {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 18px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 900;
}

.ti2-btn--primary {
    color: #10233d;
    background: #fff;
}

.ti2-btn--ghost {
    color: #fff;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
}

.ti2-hero__panel {
    border-radius: 32px;
    padding: 22px;
    background: rgba(255,255,255,.82);
}

.ti2-live-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-radius: 22px;
    background: linear-gradient(135deg, #ffffff, #edf6ff);
}

.ti2-live-dot {
    width: 12px;
    height: 12px;
    display: inline-block;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 7px rgba(34,197,94,.12);
}

.ti2-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.ti2-metric {
    min-height: 104px;
    padding: 17px;
    border-radius: 22px;
    background: linear-gradient(180deg, #fff, #f4f8fd);
}

.ti2-metric small {
    display: block;
    color: #64748b;
    font-weight: 900;
    margin-bottom: 8px;
}

.ti2-metric strong {
    color: #173662;
    font-size: 2.2rem;
}

.ti2-actions {
    width: min(1320px, 100%);
    margin: 0 auto 20px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.ti2-action-card {
    min-height: 190px;
    padding: 18px;
    border-radius: 26px;
    text-decoration: none;
    background: rgba(255,255,255,.84);
    box-shadow: 0 18px 40px rgba(8,31,59,.10);
}

.ti2-action-card--featured {
    background: linear-gradient(135deg, #173662, #1f5f95);
}

.ti2-action-card--featured strong,
.ti2-action-card--featured em,
.ti2-action-card--featured b {
    color: #fff;
}

.ti2-action-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 18px;
    background: #edf7ff;
    font-size: 1.35rem;
}

.ti2-action-card strong {
    display: block;
    color: #173662;
    font-size: 1rem;
    margin-bottom: 8px;
}

.ti2-action-card em {
    display: block;
    min-height: 44px;
    color: #64748b;
    font-style: normal;
    font-size: .88rem;
    line-height: 1.45;
}

.ti2-action-card b {
    display: inline-flex;
    margin-top: 14px;
    color: #2270AA;
    font-size: .88rem;
}

.ti2-main-grid {
    width: min(1320px, 100%);
    margin: 0 auto 20px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    gap: 20px;
}

.ti2-card {
    border-radius: 30px;
    padding: 24px;
    background: rgba(255,255,255,.86);
}

.ti2-section-head span {
    color: #2270AA;
    font-size: .76rem;
    font-weight: 950;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.ti2-section-head h2,
.ti2-card-title-row h2 {
    margin: 8px 0;
    color: #102d54;
    font-size: 1.7rem;
}

.ti2-section-head p {
    margin: 0;
    color: #64748b;
}

.ti2-org-timeline {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.ti2-person {
    display: grid;
    grid-template-columns: 62px minmax(0,1fr);
    gap: 15px;
    align-items: center;
    padding: 17px;
    border-radius: 24px;
    background: linear-gradient(180deg, #fff, #f5f9ff);
}

.ti2-person--lead {
    background: linear-gradient(135deg, #132f55, #1e5c91);
}

.ti2-person-avatar {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: linear-gradient(180deg, #55c3ea, #2270AA);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 950;
}

.ti2-person span {
    color: #2270AA;
    font-size: .76rem;
    font-weight: 950;
    text-transform: uppercase;
}

.ti2-person strong {
    display: block;
    margin: 4px 0;
    color: #102d54;
    font-size: 1.2rem;
}

.ti2-person p {
    margin: 0;
    color: #64748b;
    font-size: .92rem;
}

.ti2-person--lead span,
.ti2-person--lead strong,
.ti2-person--lead p {
    color: #fff;
}

.ti2-card-title-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.ti2-card-title-row a {
    color: #2270AA;
    text-decoration: none;
    font-weight: 950;
}

.ti2-ticket-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 420px;
    overflow: auto;
}

.ti2-ticket-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 20px;
    background: linear-gradient(180deg, #fff, #f6faff);
    text-decoration: none;
}

.ti2-ticket-row strong {
    display: block;
    color: #102d54;
}

.ti2-ticket-row span {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: .86rem;
}

.ti2-status {
    padding: 8px 11px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: .76rem;
    font-weight: 950;
    font-style: normal;
}

.ti2-empty-state {
    padding: 20px;
    border-radius: 20px;
    background: #f8fbff;
    border: 1px dashed rgba(34,112,170,.24);
}

@media (max-width: 1320px) {
    .ti2-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1050px) {
    .ti2-hero,
    .ti2-main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .ti2-page {
        padding: 18px 14px 34px;
    }

    .ti2-actions {
        grid-template-columns: 1fr;
    }

    .ti2-action-card {
        min-height: auto;
    }

    .ti2-ticket-row {
        grid-template-columns: 1fr;
    }
}

/* ===== TI PREMIUM 2.0 ===== */

.ti-premium-page {
    position: relative;
    padding: clamp(12px, 1.5vw, 24px) clamp(8px, 1.2vw, 20px) 48px;
    min-height: calc(100vh - 72px);
    max-width: none;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 12%, rgba(59,171,212,.16), transparent 24%),
        radial-gradient(circle at 88% 28%, rgba(34,112,170,.18), transparent 26%),
        linear-gradient(135deg, #10233d 0%, #173257 45%, #1d3f6d 100%);
}

.ti-premium-page > *:not(.ti-premium-page__ambient) {
    position: relative;
    z-index: 1;
}

.ti-premium-page__ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ti-ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.45;
    animation: ti-orb-float 14s ease-in-out infinite;
}

.ti-ambient-orb--1 {
    width: 280px;
    height: 280px;
    top: -8%;
    left: 4%;
    background: rgba(59, 171, 212, 0.35);
}

.ti-ambient-orb--2 {
    width: 220px;
    height: 220px;
    top: 42%;
    right: 6%;
    background: rgba(99, 102, 241, 0.28);
    animation-delay: -4s;
}

.ti-ambient-orb--3 {
    width: 180px;
    height: 180px;
    bottom: 8%;
    left: 38%;
    background: rgba(34, 112, 170, 0.32);
    animation-delay: -8s;
}

@keyframes ti-orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(12px, -18px) scale(1.06); }
    66% { transform: translate(-10px, 14px) scale(0.96); }
}

@keyframes ti-hub-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hub TI — layout em largura total (atalhos + organograma lado a lado) */
.ti-hub-page .ti-premium-hero.ti-hub-hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(16px, 2vw, 24px);
    align-items: stretch;
    max-width: none;
    margin: 0 0 clamp(18px, 2.5vw, 26px);
    padding: clamp(22px, 3vw, 36px) clamp(20px, 3vw, 32px);
    border-radius: 24px;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(145deg, rgba(22, 42, 78, 0.96) 0%, rgba(12, 28, 54, 0.98) 42%, rgba(18, 36, 68, 0.95) 100%);
    border: 1px solid rgba(125, 211, 252, 0.22);
    box-shadow:
        0 28px 64px rgba(4, 10, 28, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    animation: ti-hub-rise 0.55s ease backwards;
}

.ti-hub-page .ti-premium-hero.ti-hub-hero--with-radar {
    grid-template-columns: auto minmax(0, 1fr) minmax(min(100%, 440px), 44%);
    align-items: stretch;
    min-height: clamp(210px, 24vw, 300px);
}

.ti-hub-hero__shimmer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(
        105deg,
        transparent 38%,
        rgba(255, 255, 255, 0.03) 46%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.03) 54%,
        transparent 62%
    );
    background-size: 220% 100%;
    animation: ti-call-hero-shimmer 8s ease-in-out infinite;
}

.ti-hub-hero__glow {
    position: absolute;
    inset: -45%;
    background:
        radial-gradient(circle at 24% 18%, rgba(56, 189, 248, 0.28), transparent 40%),
        radial-gradient(circle at 80% 60%, rgba(167, 139, 250, 0.22), transparent 45%);
    pointer-events: none;
    animation: ti-call-glow-drift 9s ease-in-out infinite;
}

.ti-hub-hero__gridline {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.ti-hub-hero__icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(52px, 7vw, 68px);
    height: clamp(52px, 7vw, 68px);
    border-radius: 18px;
    font-size: clamp(24px, 3.2vw, 30px);
    background: linear-gradient(160deg, rgba(56, 189, 248, 0.25) 0%, rgba(99, 102, 241, 0.18) 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
    align-self: center;
}

.ti-hub-hero__copy {
    align-self: center;
    min-width: 0;
}

.ti-hub-hero .ti-premium-hero__content {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.ti-hub-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.ti-hub-hero__pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(240, 249, 255, 0.95);
    background: rgba(8, 24, 48, 0.55);
    border: 1px solid rgba(125, 211, 252, 0.28);
}

/* Hub — Radar TI (IA) no hero */
.ti-hub-hero__radar {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: clamp(18px, 2vw, 26px) clamp(20px, 2.2vw, 28px);
    border-radius: 20px;
    background: rgba(8, 20, 42, 0.58);
    border: 1px solid rgba(125, 211, 252, 0.26);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    min-width: 0;
    min-height: 100%;
    align-self: stretch;
    animation: ti-hub-rise 0.65s ease 0.15s backwards;
}

.ti-hub-hero__radar-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ti-hub-hero__radar-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #b8ecff;
}

.ti-hub-hero__coach {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.ti-hub-hero__bubble {
    max-width: min(220px, 42vw);
    padding: 9px 12px;
    border-radius: 12px 12px 12px 4px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    animation: ti-tip-bubble-float 3.5s ease-in-out infinite;
}

.ti-hub-hero__bubble-text {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.35;
    color: #ecfeff;
}

.ti-hub-hero__bubble.is-switching .ti-hub-hero__bubble-text {
    animation: ti-tip-bubble-text 0.35s ease;
}

.ti-hub-hero__robot {
    position: relative;
    width: 52px;
    height: 62px;
    flex-shrink: 0;
    animation: ti-tip-robot-float 2.8s ease-in-out infinite;
}

.ti-hub-hero__robot-glow {
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 40px;
    height: 12px;
    margin-left: -20px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(56, 189, 248, 0.5), transparent 70%);
}

.ti-hub-hero__robot-antenna {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 11px;
    margin-left: -1.5px;
    border-radius: 999px;
    background: linear-gradient(180deg, #7dd3fc, #38bdf8);
}

.ti-hub-hero__robot-antenna::after {
    content: "";
    position: absolute;
    top: -4px;
    left: 50%;
    width: 7px;
    height: 7px;
    margin-left: -3.5px;
    border-radius: 50%;
    background: #fde68a;
    box-shadow: 0 0 10px rgba(253, 224, 106, 0.75);
    animation: ti-tip-antenna-blink 2s ease-in-out infinite;
}

.ti-hub-hero__robot-head {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 34px;
    height: 28px;
    margin-left: -17px;
    border-radius: 10px;
    background: linear-gradient(165deg, #e2e8f0, #94a3b8);
    border: 2px solid rgba(255, 255, 255, 0.35);
}

.ti-hub-hero__robot-eye {
    position: absolute;
    top: 9px;
    width: 6px;
    height: 7px;
    border-radius: 50%;
    background: #0f172a;
    animation: ti-tip-robot-blink 4.5s ease-in-out infinite;
}

.ti-hub-hero__robot-eye--l { left: 7px; }
.ti-hub-hero__robot-eye--r { right: 7px; }

.ti-hub-hero__robot-mouth {
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 12px;
    height: 5px;
    margin-left: -6px;
    border-radius: 0 0 8px 8px;
    background: #334155;
}

.ti-hub-hero__robot.is-talking .ti-hub-hero__robot-mouth {
    animation: ti-tip-robot-talk 0.35s ease-in-out infinite;
}

.ti-hub-hero__robot-torso {
    position: absolute;
    top: 36px;
    left: 50%;
    width: 30px;
    height: 20px;
    margin-left: -15px;
    border-radius: 8px;
    background: linear-gradient(160deg, #38bdf8, #2563eb);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.ti-hub-hero__robot-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    border-radius: 50%;
    background: #fde68a;
    animation: ti-tip-core-pulse 1.8s ease-in-out infinite;
}

.ti-hub-hero__robot-arm--right {
    position: absolute;
    top: 38px;
    right: 4px;
    width: 8px;
    height: 18px;
    border-radius: 6px;
    background: linear-gradient(180deg, #cbd5e1, #64748b);
    transform-origin: top center;
    animation: ti-tip-robot-wave 1.1s ease-in-out infinite;
}

.ti-hub-hero__robot-base {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 36px;
    height: 8px;
    margin-left: -18px;
    border-radius: 6px;
    background: #475569;
}

.ti-hub-hero__radar-viewport {
    position: relative;
    flex: 1;
    min-height: 8.5rem;
    display: flex;
    flex-direction: column;
}

.ti-hub-hero__radar-slide {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: start;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.ti-hub-hero__radar-slide.is-active {
    opacity: 1;
    visibility: visible;
    position: relative;
    pointer-events: auto;
    animation: ti-tip-slide-in-next 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.ti-hub-hero__radar-slide.is-exit-next {
    visibility: visible;
    position: absolute;
    animation: ti-tip-slide-out-next 0.38s ease forwards;
}

.ti-hub-hero__radar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(56, 189, 248, 0.2);
    border: 1px solid rgba(125, 211, 252, 0.3);
    color: #e0f7ff;
    font-size: 1.28rem;
    flex-shrink: 0;
}

.ti-hub-hero__radar-slide.is-active .ti-hub-hero__radar-icon {
    animation: ti-tip-icon-pop 0.45s ease 0.08s backwards;
}

.ti-hub-hero__radar-copy {
    min-width: 0;
}

.ti-hub-hero__radar-copy h3 {
    margin: 0 0 8px;
    font-size: clamp(0.95rem, 1.1vw, 1.08rem);
    font-weight: 800;
    line-height: 1.3;
    color: #fff;
}

.ti-hub-hero__radar-copy p {
    margin: 0;
    font-size: clamp(0.84rem, 1vw, 0.95rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
    display: block;
    overflow: visible;
    white-space: normal;
}

.ti-hub-hero__radar-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
}

.ti-hub-hero__radar-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.ti-hub-hero__radar-dot.is-active {
    background: #7dd3fc;
    transform: scale(1.15);
}

.ti-hub-hero__radar-progress {
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.ti-hub-hero__radar-progress-fill {
    display: block;
    height: 100%;
    width: 100%;
    transform-origin: left center;
    transform: scaleX(0);
    background: linear-gradient(90deg, #38bdf8, #a78bfa);
}

.ti-hub-hero__radar.is-auto .ti-hub-hero__radar-progress-fill {
    animation: ti-tip-progress-fill var(--ti-hub-radar-interval, 6s) linear forwards;
}

@media (max-width: 1100px) {
    .ti-hub-page .ti-premium-hero.ti-hub-hero--with-radar {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        min-height: 0;
    }

    .ti-hub-hero__radar {
        grid-column: 1 / -1;
        min-height: auto;
    }

    .ti-hub-hero__radar-viewport {
        min-height: 7rem;
    }
}

@media (min-width: 1400px) {
    .ti-hub-page .ti-premium-hero.ti-hub-hero--with-radar {
        grid-template-columns: auto minmax(0, 1fr) minmax(480px, 46%);
    }
}

@media (max-width: 640px) {
    .ti-hub-hero__coach {
        flex-direction: row;
        align-items: center;
    }

    .ti-hub-hero__bubble {
        max-width: none;
        flex: 1;
    }
}

.ti-premium-workspace {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(16px, 2vw, 22px);
    align-items: start;
    animation: ti-hub-rise 0.6s ease 0.08s backwards;
}

@media (min-width: 1100px) {
    .ti-premium-workspace {
        grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.72fr);
    }
}

.ti-hub-main {
    padding: clamp(18px, 2.5vw, 26px) clamp(18px, 2.5vw, 28px) clamp(22px, 3vw, 30px);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 120px),
        rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 48px rgba(4, 14, 30, 0.28);
    backdrop-filter: blur(12px);
}

.ti-hub-panel-head {
    margin-bottom: 20px;
}

.ti-hub-panel-head h2 {
    margin: 8px 0 8px;
    color: #fff;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.ti-hub-panel-head__lead {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
    line-height: 1.5;
    max-width: 56ch;
}

.ti-hub-page .ti-shortcuts-wrap {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.ti-shortcuts-grid--hub {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 1.5vw, 18px);
}

.ti-shortcuts-grid--hub .ti-shortcut-card {
    position: relative;
    min-height: 148px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0 14px;
    animation: ti-hub-rise 0.5s ease backwards;
}

.ti-shortcuts-grid--hub .ti-shortcut-card:nth-child(1) { animation-delay: 0.1s; }
.ti-shortcuts-grid--hub .ti-shortcut-card:nth-child(2) { animation-delay: 0.14s; }
.ti-shortcuts-grid--hub .ti-shortcut-card:nth-child(3) { animation-delay: 0.18s; }
.ti-shortcuts-grid--hub .ti-shortcut-card:nth-child(4) { animation-delay: 0.22s; }
.ti-shortcuts-grid--hub .ti-shortcut-card:nth-child(5) { animation-delay: 0.26s; }
.ti-shortcuts-grid--hub .ti-shortcut-card:nth-child(6) { animation-delay: 0.3s; }
.ti-shortcuts-grid--hub .ti-shortcut-card:nth-child(7) { animation-delay: 0.34s; }

.ti-shortcuts-grid--hub .ti-shortcut-card--featured {
    grid-column: span 2;
    min-height: 132px;
    flex-direction: row;
    align-items: center;
    gap: 18px;
}

.ti-shortcuts-grid--hub .ti-shortcut-card--featured .ti-shortcut-card__icon {
    margin-bottom: 0;
}

.ti-shortcuts-grid--hub .ti-shortcut-card--featured .ti-shortcut-card__text {
    flex: 1;
    min-width: 0;
}

.ti-shortcuts-grid--hub .ti-shortcut-card__icon {
    margin-bottom: 0;
    font-size: 1.2rem;
}

.ti-shortcuts-grid--hub .ti-shortcut-card__icon i {
    line-height: 1;
}

.ti-shortcuts-grid--hub .ti-shortcut-card__text {
    flex: 1 1 calc(100% - 64px);
    min-width: 0;
}

.ti-shortcut-card__arrow {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    transition: transform 0.25s ease, background 0.25s ease;
}

.ti-shortcut-card:hover .ti-shortcut-card__arrow {
    transform: translateX(3px);
    background: rgba(255, 255, 255, 0.18);
}

.ti-shortcut-card--featured .ti-shortcut-card__arrow {
    background: rgba(255, 255, 255, 0.2);
}

.ti-hub-column {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 2vw, 22px);
    min-width: 0;
}

.ti-hub-org {
    margin: 0;
    padding: clamp(18px, 2.5vw, 26px) clamp(18px, 2.5vw, 28px) clamp(22px, 3vw, 30px);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 120px),
        rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 48px rgba(4, 14, 30, 0.28);
    backdrop-filter: blur(12px);
    animation: ti-hub-rise 0.6s ease 0.14s backwards;
}

.ti-hub-org .ti-org-header {
    text-align: left;
    margin: 0 0 18px;
    max-width: none;
}

.ti-org-tree--hub {
    max-width: none;
    width: 100%;
    align-items: stretch;
}

.ti-org-tree.ti-org-tree--hub.ti-org-tree--horizontal {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: stretch;
    gap: 0;
    max-width: none;
    margin: 0;
    width: 100%;
}

.ti-org-tree.ti-org-tree--hub.ti-org-tree--horizontal .ti-org-card {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    padding: clamp(14px, 1.5vw, 20px);
    gap: 12px;
}

.ti-org-tree.ti-org-tree--hub.ti-org-tree--horizontal .ti-org-card__body p {
    font-size: 0.8rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ti-org-tree.ti-org-tree--hub.ti-org-tree--horizontal .ti-org-card__body h3 {
    font-size: 1.05rem;
}

.ti-org-tree.ti-org-tree--hub.ti-org-tree--horizontal .ti-org-avatar {
    width: 44px;
    height: 44px;
    font-size: 1rem;
}

.ti-org-connector--horizontal {
    flex-direction: row;
    flex-shrink: 0;
    align-self: center;
    padding: 0 clamp(6px, 1vw, 12px);
    gap: 8px;
}

.ti-org-connector--horizontal .ti-org-connector__line {
    width: clamp(20px, 3vw, 40px);
    height: 3px;
    background: linear-gradient(90deg, rgba(143, 231, 255, 0.95), rgba(59, 171, 212, 0.45));
    box-shadow: 0 0 14px rgba(59, 171, 212, 0.45);
}

.ti-org-connector--horizontal.ti-org-connector--soft .ti-org-connector__line,
.ti-org-connector--horizontal .ti-org-connector__line--soft {
    width: clamp(16px, 2.5vw, 32px);
    height: 3px;
    background: linear-gradient(90deg, rgba(165, 180, 252, 0.65), rgba(99, 102, 241, 0.25));
    box-shadow: 0 0 10px rgba(129, 140, 248, 0.35);
}

.ti-org-connector--hub:not(.ti-org-connector--horizontal) {
    padding: 4px 0 8px;
}

.ti-hub-journal {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: min(78vh, 920px);
    padding: clamp(18px, 2.5vw, 26px) clamp(16px, 2vw, 24px);
    border-radius: 24px;
    background:
        linear-gradient(165deg, rgba(34, 112, 170, 0.22) 0%, transparent 45%),
        rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 48px rgba(4, 14, 30, 0.28);
    backdrop-filter: blur(12px);
    animation: ti-hub-rise 0.6s ease 0.16s backwards;
}

@keyframes ti-journal-head-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ti-journal-item-in {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes ti-journal-shimmer {
    0%, 100% {
        opacity: 0.65;
        background-position: 200% 0;
    }
    50% {
        opacity: 1;
    }
}

@keyframes ti-journal-icon-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

.ti-hub-journal__head {
    flex-shrink: 0;
    margin-bottom: 16px;
    animation: ti-journal-head-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.12s backwards;
}

.ti-hub-journal__head h2 {
    margin: 8px 0 8px;
    color: #fff;
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.ti-hub-journal__lead {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
    line-height: 1.5;
}

.ti-hub-journal__feed {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(143, 227, 255, 0.35) transparent;
}

.ti-hub-journal__feed::-webkit-scrollbar {
    width: 6px;
}

.ti-hub-journal__feed::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background: rgba(143, 227, 255, 0.35);
}

.ti-hub-journal__feed.is-animated .ti-hub-journal__item:not(.ti-hub-journal__item--loading) {
    animation: ti-journal-item-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.ti-hub-journal__feed.is-animated .ti-hub-journal__item:nth-child(1) { animation-delay: 0.06s; }
.ti-hub-journal__feed.is-animated .ti-hub-journal__item:nth-child(2) { animation-delay: 0.12s; }
.ti-hub-journal__feed.is-animated .ti-hub-journal__item:nth-child(3) { animation-delay: 0.18s; }
.ti-hub-journal__feed.is-animated .ti-hub-journal__item:nth-child(4) { animation-delay: 0.24s; }
.ti-hub-journal__feed.is-animated .ti-hub-journal__item:nth-child(5) { animation-delay: 0.3s; }
.ti-hub-journal__feed.is-animated .ti-hub-journal__item:nth-child(6) { animation-delay: 0.36s; }
.ti-hub-journal__feed.is-animated .ti-hub-journal__item:nth-child(7) { animation-delay: 0.42s; }
.ti-hub-journal__feed.is-animated .ti-hub-journal__item:nth-child(8) { animation-delay: 0.48s; }
.ti-hub-journal__feed.is-animated .ti-hub-journal__item:nth-child(9) { animation-delay: 0.54s; }
.ti-hub-journal__feed.is-animated .ti-hub-journal__item:nth-child(10) { animation-delay: 0.6s; }

.ti-hub-journal__item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition:
        border-color 0.35s ease,
        background 0.35s ease,
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.ti-hub-journal__item:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(143, 227, 255, 0.22);
    transform: translateY(-2px) translateX(-2px);
    box-shadow: 0 12px 28px rgba(4, 14, 30, 0.18);
}

.ti-hub-journal__item.is-spotlight {
    border-color: rgba(143, 227, 255, 0.42);
    background: rgba(255, 255, 255, 0.14);
    transform: translateX(-3px);
    box-shadow:
        0 0 0 1px rgba(143, 227, 255, 0.28),
        0 14px 32px rgba(34, 112, 170, 0.22);
}

.ti-hub-journal__item--loading {
    position: relative;
    overflow: hidden;
    animation: ti-journal-shimmer 1.6s ease-in-out infinite;
}

.ti-hub-journal__item--loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.12) 50%,
        transparent 60%
    );
    background-size: 200% 100%;
    animation: ti-journal-sweep 1.8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ti-journal-sweep {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.ti-hub-journal__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(59, 171, 212, 0.25);
    color: rgba(186, 230, 253, 0.95);
    font-size: 1.1rem;
    transition: transform 0.35s ease, background 0.35s ease;
}

.ti-hub-journal__icon i {
    display: block;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ti-hub-journal__item:hover .ti-hub-journal__icon {
    background: rgba(59, 171, 212, 0.38);
}

.ti-hub-journal__item:hover .ti-hub-journal__icon i {
    transform: scale(1.15) rotate(-6deg);
}

.ti-hub-journal__item.is-spotlight .ti-hub-journal__icon i {
    animation: ti-journal-icon-pulse 2.8s ease-in-out infinite;
}

.ti-hub-journal__copy {
    flex: 1;
    min-width: 0;
}

.ti-hub-journal__cat {
    display: inline-block;
    margin-bottom: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(186, 230, 253, 0.9);
    background: rgba(59, 171, 212, 0.2);
    border: 1px solid rgba(143, 227, 255, 0.2);
}

.ti-hub-journal__copy h3 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
}

.ti-hub-journal__copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.84rem;
    line-height: 1.5;
}

@keyframes ti-hub-pulse {
    0%, 100% { opacity: 0.75; }
    50% { opacity: 1; }
}

@media (min-width: 900px) and (max-width: 1099px) {
    .ti-shortcuts-grid--hub {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ti-shortcuts-grid--hub .ti-shortcut-card--featured {
        grid-column: span 2;
    }
}

@media (max-width: 1099px) {
    .ti-hub-journal {
        max-height: none;
    }
}

@media (max-width: 640px) {
    .ti-org-tree.ti-org-tree--hub.ti-org-tree--horizontal {
        flex-direction: column;
        align-items: stretch;
    }

    .ti-org-tree.ti-org-tree--hub.ti-org-tree--horizontal .ti-org-card {
        width: 100%;
    }

    .ti-org-tree.ti-org-tree--hub.ti-org-tree--horizontal .ti-org-card__body p {
        display: block;
        -webkit-line-clamp: unset;
        overflow: visible;
    }

    .ti-org-connector--horizontal {
        flex-direction: column;
        padding: 4px 0 8px;
    }

    .ti-org-connector--horizontal .ti-org-connector__line,
    .ti-org-connector--horizontal .ti-org-connector__line--soft {
        width: 3px;
        height: 28px;
        background: linear-gradient(180deg, rgba(143, 231, 255, 0.95), rgba(59, 171, 212, 0.45));
    }

    .ti-org-connector--horizontal.ti-org-connector--soft .ti-org-connector__line,
    .ti-org-connector--horizontal .ti-org-connector__line--soft {
        background: linear-gradient(180deg, rgba(165, 180, 252, 0.65), rgba(99, 102, 241, 0.25));
    }
}

@media (max-width: 899px) {
    .ti-hub-page .ti-premium-hero.ti-hub-hero {
        grid-template-columns: 1fr;
    }

    .ti-hub-hero__icon-wrap {
        display: none;
    }

    .ti-shortcuts-grid--hub {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ti-shortcuts-grid--hub .ti-shortcut-card--featured {
        grid-column: span 2;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ti-ambient-orb,
    .ti-hub-page .ti-premium-hero,
    .ti-premium-workspace,
    .ti-shortcuts-grid--hub .ti-shortcut-card,
    .ti-hub-org,
    .ti-hub-journal,
    .ti-hub-journal__head,
    .ti-hub-journal__feed.is-animated .ti-hub-journal__item,
    .ti-hub-journal__item--loading,
    .ti-hub-journal__item--loading::after,
    .ti-hub-journal__item.is-spotlight,
    .ti-hub-journal__item.is-spotlight .ti-hub-journal__icon i {
        animation: none !important;
    }

    .ti-hub-journal__feed.is-animated .ti-hub-journal__item {
        opacity: 1;
        transform: none;
    }
}

.ti-premium-hero {
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    gap: 22px;
    max-width: 1360px;
    margin: 0 auto 22px;
}

.ti-premium-hero__content,
.ti-premium-hero__glass,
.ti-shortcut-card,
.ti-org-section {
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 24px 60px rgba(4, 14, 30, .28);
}

.ti-premium-hero__content {
    padding: 42px;
    background:
        radial-gradient(circle at 90% 15%, rgba(59,171,212,.24), transparent 28%),
        linear-gradient(135deg, rgba(20,49,89,.96), rgba(24,74,123,.92));
    color: #fff;
}

.ti-premium-badge {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: #dff6ff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    margin-bottom: 18px;
}

.ti-premium-hero h1 {
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(2.2rem, 4vw, 4.3rem);
    line-height: .98;
}

.ti-premium-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255,255,255,.78);
    line-height: 1.65;
}

.ti-premium-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.ti-premium-btn {
    min-height: 50px;
    padding: 0 20px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 900;
}

.ti-premium-btn--primary {
    background: #fff;
    color: #173257;
}

.ti-premium-btn--secondary {
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,.16);
}

.ti-premium-hero__glass {
    padding: 22px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    background: rgba(255,255,255,.10);
    backdrop-filter: blur(16px);
}

.ti-stat-card {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.10);
}

.ti-stat-card small {
    display: block;
    color: rgba(255,255,255,.72);
    font-weight: 800;
    margin-bottom: 8px;
}

.ti-stat-card strong {
    color: #fff;
    font-size: 2rem;
}

.ti-shortcuts-wrap {
    display: block;
    width: 100%;
    max-width: 1360px;
    margin: 0 auto 28px;
    padding: 0 4px;
}

.ti-shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.ti-shortcut-card {
    min-height: 168px;
    padding: 22px 52px 22px 22px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    backdrop-filter: blur(18px);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, background 0.28s ease, border-color 0.28s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.ti-shortcut-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 40px rgba(5, 18, 40, 0.35);
    border-color: rgba(143, 227, 255, 0.25);
}

.ti-shortcut-card--featured {
    background: linear-gradient(145deg, #1f6fa8 0%, #2270aa 40%, #3babd4 100%);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 36px rgba(34, 112, 170, 0.35);
}

.ti-shortcut-card--featured:hover {
    background: linear-gradient(145deg, #2578b5 0%, #2a82c4 45%, #42b5dc 100%);
}

.ti-shortcut-card__icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.14);
    margin-bottom: 16px;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.ti-shortcut-card--featured .ti-shortcut-card__icon {
    background: rgba(255, 255, 255, 0.2);
}

.ti-shortcut-card__text h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.ti-shortcut-card__text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.88rem;
    line-height: 1.5;
}

.ti-org-section {
    max-width: 1360px;
    margin: 0 auto;
    padding: clamp(22px, 3vw, 34px) clamp(20px, 3vw, 32px) clamp(28px, 4vw, 40px);
    background:
        radial-gradient(ellipse 90% 60% at 100% 0%, rgba(59, 171, 212, 0.22), transparent 45%),
        radial-gradient(ellipse 70% 50% at 0% 100%, rgba(99, 102, 241, 0.12), transparent 50%),
        rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 56px rgba(4, 14, 30, 0.22);
}

.ti-org-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 32px;
}

.ti-org-kicker {
    display: inline-block;
    color: #8fe3ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ti-org-header h2 {
    margin: 10px 0 12px;
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.ti-org-header__lead {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* Organograma em árvore (vertical — outras páginas; hub usa --horizontal) */
.ti-org-tree:not(.ti-org-tree--horizontal) {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ti-org-tier {
    width: 100%;
    display: flex;
    justify-content: center;
}

.ti-org-tier--root .ti-org-card {
    max-width: 100%;
}

.ti-org-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 0 10px;
    gap: 6px;
}

.ti-org-connector__line {
    width: 3px;
    height: 32px;
    border-radius: 99px;
    background: linear-gradient(180deg, rgba(143, 231, 255, 0.95), rgba(59, 171, 212, 0.45));
    box-shadow: 0 0 14px rgba(59, 171, 212, 0.45);
}

.ti-org-connector__line--soft {
    height: 26px;
    background: linear-gradient(180deg, rgba(165, 180, 252, 0.65), rgba(99, 102, 241, 0.25));
    box-shadow: 0 0 10px rgba(129, 140, 248, 0.35);
}

.ti-org-connector__label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(186, 230, 253, 0.65);
}

.ti-org-connector--soft .ti-org-connector__label {
    color: rgba(199, 210, 254, 0.55);
}

.ti-org-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    width: 100%;
    padding: 22px 22px 22px 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 32px rgba(5, 16, 35, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ti-org-card:hover {
    transform: translateY(-2px);
    border-color: rgba(143, 227, 255, 0.22);
    box-shadow: 0 18px 44px rgba(5, 16, 35, 0.28);
}

.ti-org-card--director {
    background: linear-gradient(135deg, rgba(34, 112, 170, 0.95) 0%, rgba(45, 138, 195, 0.75) 50%, rgba(59, 171, 212, 0.55) 100%);
    border-color: rgba(255, 255, 255, 0.2);
}

.ti-org-card--analyst {
    border-left: 4px solid rgba(125, 211, 252, 0.85);
    background: rgba(255, 255, 255, 0.11);
}

.ti-org-card--intern {
    border-left: 4px solid rgba(167, 139, 250, 0.7);
    background: rgba(255, 255, 255, 0.08);
}

.ti-org-card__media {
    flex-shrink: 0;
}

.ti-org-card__body {
    min-width: 0;
}

.ti-org-card__tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(186, 242, 255, 0.95);
    margin-bottom: 8px;
}

.ti-org-card--analyst .ti-org-card__tag {
    color: #7dd3fc;
}

.ti-org-card--intern .ti-org-card__tag {
    color: #c4b5fd;
}

.ti-org-avatar {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    font-weight: 900;
    font-size: 1.3rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.ti-org-avatar--analyst {
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.35), rgba(14, 165, 233, 0.25));
    border: 1px solid rgba(125, 211, 252, 0.35);
}

.ti-org-avatar--intern {
    background: linear-gradient(145deg, rgba(167, 139, 250, 0.35), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(196, 181, 253, 0.35);
}

.ti-org-card h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.ti-org-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.52;
    font-size: 0.9rem;
}

@media (max-width: 1200px) {
    .ti-premium-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .ti-premium-page {
        padding: 18px 14px 32px;
    }

    .ti-shortcuts-grid:not(.ti-shortcuts-grid--hub):not(.ti-shortcuts-grid--painel-operacoes),
    .ti-premium-hero__glass {
        grid-template-columns: 1fr;
    }

    .ti-shortcuts-grid--hub {
        grid-template-columns: 1fr;
    }

    .ti-shortcuts-grid--hub .ti-shortcut-card--featured {
        grid-column: auto;
        flex-direction: column;
        align-items: flex-start;
    }

    .ti-shortcuts-grid--hub .ti-shortcut-card--featured .ti-shortcut-card__icon {
        margin-bottom: 14px;
    }

    .ti-premium-hero__content {
        padding: 26px;
    }

    .ti-org-section {
        padding: 20px 16px 28px;
        border-radius: 22px;
    }

    .ti-org-connector__label {
        display: none;
    }

    .ti-org-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .ti-org-card__body {
        text-align: center;
    }

    .ti-org-card--analyst,
    .ti-org-card--intern {
        border-left: none;
        border-top: 4px solid;
        border-image: linear-gradient(90deg, rgba(125, 211, 252, 0.9), rgba(59, 171, 212, 0.4)) 1;
        padding-top: 20px;
    }

    .ti-org-card--intern {
        border-image: linear-gradient(90deg, rgba(167, 139, 250, 0.85), rgba(99, 102, 241, 0.35)) 1;
    }
}

/* Painel operações TI — mantém cartões lado a lado (breakpoint genérico acima força 1 coluna só em .ti-shortcuts-grid) */
.ti-shortcuts-grid.ti-shortcuts-grid--painel-operacoes {
    width: 100%;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 236px), 1fr));
}

@media (max-width: 700px) {
    .ti-shortcuts-grid.ti-shortcuts-grid--painel-operacoes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 400px) {
    .ti-shortcuts-grid.ti-shortcuts-grid--painel-operacoes {
        grid-template-columns: 1fr;
    }
}

/* Cartões do painel operações: ícone + texto em linha */
.ti-shortcuts-grid.ti-shortcuts-grid--painel-operacoes .ti-shortcut-card {
    flex-direction: row;
    align-items: center;
    gap: 18px;
    min-height: unset;
    padding: 18px 22px;
}

.ti-shortcuts-grid.ti-shortcuts-grid--painel-operacoes .ti-shortcut-card__icon {
    margin-bottom: 0;
}

.ti-shortcuts-grid.ti-shortcuts-grid--painel-operacoes .ti-shortcut-card__text {
    min-width: 0;
}

/* Cadastro colaboradores (portal + tema TI) */
.ti-cadastro-page .ti-cadastro-page-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.ti-cadastro-page .ti-org-section.ti-cadastro-page__heading {
    padding: clamp(14px, 2vw, 22px) clamp(16px, 2vw, 24px);
    margin-bottom: 16px;
    text-align: center;
}

.ti-cadastro-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
    padding: clamp(18px, 2.5vw, 26px) clamp(18px, 3vw, 28px);
}

.ti-cadastro-toolbar .ti-premium-btn {
    min-height: 46px;
    font-size: 0.92rem;
}

.ti-cadastro-panel {
    padding: clamp(22px, 3vw, 34px) clamp(20px, 3vw, 32px);
}

.ti-cadastro-panel__title {
    margin: 0 0 1rem;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.ti-cadastro-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 14px 20px;
    align-items: start;
}

.ti-cadastro-form-grid .form-field--cadastro-span {
    grid-column: 1 / -1;
}

.ti-cadastro-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding-top: 4px;
}

.ti-premium-page.ti-cadastro-page .form-field label {
    color: rgba(223, 246, 255, 0.9);
}

.ti-cadastro-flash {
    max-width: 1180px;
    margin: 0 auto 16px;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 0.93rem;
    font-weight: 600;
}

.ti-cadastro-flash--ok {
    background: rgba(34, 197, 94, 0.18);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #dcfce7;
}

.ti-cadastro-flash--err {
    background: rgba(248, 113, 113, 0.16);
    border: 1px solid rgba(248, 113, 113, 0.38);
    color: #fee2e2;
}

html[data-theme="light"] .ti-premium-page.ti-cadastro-page .form-field label {
    color: var(--primary) !important;
}

html[data-theme="light"] .ti-cadastro-panel__title {
    color: var(--text) !important;
}

html[data-theme="light"] .ti-cadastro-flash--ok {
    color: #166534 !important;
    background: rgba(34, 197, 94, 0.15) !important;
    border-color: rgba(22, 101, 52, 0.25) !important;
}

html[data-theme="light"] .ti-cadastro-flash--err {
    color: #991b1b !important;
    background: rgba(248, 113, 113, 0.12) !important;
    border-color: rgba(153, 27, 27, 0.3) !important;
}

/* Lista «Colaboradores ativos» (portal TI) */
.ti-collab-list-page .ti-collab-list-page__main-title {
    margin: 14px 0 0;
    color: #fff;
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ti-collab-list-page__lead {
    margin: 14px auto 0;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    line-height: 1.55;
}

.ti-collab-toolbar.ti-org-section.ti-cadastro-toolbar {
    align-items: center;
}

.ti-collab-toolbar .ti-collab-export-btn {
    border: 1px solid rgba(167, 243, 208, 0.35);
    color: #f0fdf4 !important;
    background: linear-gradient(145deg, #047857 0%, #10b981 48%, #34d399 110%) !important;
    box-shadow: 0 10px 26px rgba(16, 185, 129, 0.25);
}

.ti-collab-toolbar .ti-collab-export-btn:hover {
    filter: brightness(1.05);
}

.ti-collab-toolbar__search {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    min-width: min(340px, 100%);
    padding: 10px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.85);
}

.ti-collab-toolbar__search input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 0.93rem;
    outline: none;
}

.ti-collab-toolbar__search input::placeholder {
    color: rgba(255, 255, 255, 0.52);
}

.ti-collab-table-panel {
    padding: clamp(16px, 2.5vw, 28px) clamp(14px, 2.5vw, 24px) clamp(26px, 3vw, 36px);
}

.ti-collab-table-wrap {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(4, 12, 24, 0.35);
    overflow: hidden;
}

.ti-collab-table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.88rem;
    color: rgba(237, 250, 255, 0.92);
}

.ti-collab-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 14px 12px;
    text-align: left;
    white-space: nowrap;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(10, 30, 55, 0.82);
    color: rgba(143, 227, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ti-collab-table tbody td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: middle;
}

.ti-collab-row:hover td {
    background: rgba(59, 171, 212, 0.1);
}

.ti-collab-ellipsis {
    display: inline-block;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

.ti-collab-cell-nowrap {
    white-space: nowrap;
}

.ti-collab-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: lowercase;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #bbf7d0;
}

.ti-collab-actions-col {
    white-space: nowrap;
    width: 1%;
}

.ti-collab-edit-btn {
    border: none;
    border-radius: 12px;
    padding: 8px 14px;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    color: #0b2538;
    background: linear-gradient(145deg, #e0f2fe 0%, #bae6fd 100%);
}

.ti-collab-edit-btn:hover {
    filter: brightness(1.03);
}

.ti-collab-empty {
    margin: 0;
    padding: 28px 20px;
    text-align: center;
    color: rgba(227, 244, 255, 0.72);
}

.ti-collab-modal.modal-content {
    --ti-collab-modal-fg: #0f172a;
    --ti-collab-modal-fg-muted: #475569;
    --ti-collab-modal-border: #e2e8f0;
    --ti-collab-modal-surface: #ffffff;
    --ti-collab-modal-surface-subtle: #f1f5f9;

    border: none;
    border-radius: 18px;
    overflow: hidden;
    background: var(--ti-collab-modal-surface);
    color: var(--ti-collab-modal-fg);
    box-shadow:
        0 25px 50px -12px rgba(15, 23, 42, 0.22),
        0 0 0 1px rgba(15, 23, 42, 0.06);
}

.modal.ti-collab-modal .modal-header {
    padding: 1.15rem 1.4rem;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 72%);
    border-bottom: 1px solid var(--ti-collab-modal-border);
}

.modal.ti-collab-modal .modal-title {
    font-weight: 800;
    font-size: 1.125rem;
    letter-spacing: -0.025em;
    color: var(--ti-collab-modal-fg);
    margin: 0;
}

.modal.ti-collab-modal .modal-body {
    padding: 1.35rem 1.4rem 1.25rem;
    background: var(--ti-collab-modal-surface);
    color: var(--ti-collab-modal-fg);
}

.modal.ti-collab-modal .modal-footer {
    padding: 1rem 1.4rem 1.15rem;
    border-top: 1px solid var(--ti-collab-modal-border);
    background: var(--ti-collab-modal-surface-subtle);
    gap: 0.5rem;
}

/* Resumo do colaborador: contraste garantido sobre fundo claro do modal */

@media (max-width: 520px) {
    .modal.ti-collab-modal .ti-collab-view-dl {
        grid-template-columns: 1fr;
        row-gap: 0.2rem;
    }

    .modal.ti-collab-modal .ti-collab-view-dl dd {
        margin-bottom: 0.85rem;
    }
}

.modal.ti-collab-modal .ti-collab-view-dl {
    display: grid;
    grid-template-columns: minmax(112px, 150px) minmax(0, 1fr);
    column-gap: 1rem;
    row-gap: 1rem;
    align-items: start;
}

.modal.ti-collab-modal .ti-collab-view-dl dt {
    margin: 0;
    font-weight: 700;
    font-size: 0.6875rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--ti-collab-modal-fg-muted);
    line-height: 1.35;
}

.modal.ti-collab-modal .ti-collab-view-dl dd {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--ti-collab-modal-fg);
}

.modal.ti-collab-modal .ti-collab-hostname-callout {
    padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
    border: 1px solid #93c5fd;
    font-weight: 700;
    font-size: 1rem;
    word-break: break-word;
    color: #0c4a6e;
}

.modal.ti-collab-modal .ti-collab-unset {
    color: var(--ti-collab-modal-fg-muted);
    opacity: 1;
}

.modal.ti-collab-modal .ti-collab-verification-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fefce8;
    border: 1px solid #fde047;
    color: #713f12;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
}

.modal.ti-collab-modal .ti-collab-verification-note.small {
    font-size: 0.8125rem;
}

.modal.ti-collab-modal .ti-collab-verification-note .bi {
    flex-shrink: 0;
    margin-top: 0.1em;
    color: #a16207;
}

/* Formulário edição — labels e campos alinhados ao modal */
.modal.ti-collab-modal .ti-collab-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ti-collab-modal-fg-muted);
}

.modal.ti-collab-modal .ti-collab-field .text-danger {
    font-weight: 700;
}

.modal.ti-collab-modal .ti-collab-field .form-control,
.modal.ti-collab-modal .ti-collab-field .form-select {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ti-collab-modal-fg);
    border-color: #cbd5e1;
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
    background-color: #fff;
}

.modal.ti-collab-modal .ti-collab-field .form-control:focus,
.modal.ti-collab-modal .ti-collab-field .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.modal.ti-collab-modal .ti-collab-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.1rem;
}

@media (min-width: 768px) {
    .modal.ti-collab-modal .ti-collab-edit-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.modal.ti-collab-modal .ti-collab-edit-grid > .ti-collab-field--modal-span-row {
    grid-column: 1 / -1;
}

.modal.ti-collab-modal #ti-collab-edit-form label.ti-collab-field.d-block {
    max-width: 100%;
}

.ti-collab-edit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: 12px;
}

.ti-premium-page.ti-collab-list-page.ti-cadastro-page .ti-collab-layout-wide {
    width: 100%;
    max-width: min(1780px, calc(100vw - 96px));
    margin-inline: auto;
}

@media (max-width: 1100px) {
    .ti-premium-page.ti-collab-list-page.ti-cadastro-page .ti-collab-layout-wide {
        max-width: 100%;
    }
}

.ti-collab-wide-section {
    max-width: min(1780px, calc(100vw - 96px)) !important;
    margin-inline: auto;
}

.ti-collab-table-wrap--dense {
    overflow-x: hidden;
    max-width: 100%;
}

/* Lista de colaboradores: cabe na largura disponível sem scroll horizontal */
.ti-collab-list-page .ti-collab-table--dense {
    table-layout: fixed;
    width: 100%;
    font-size: 0.8125rem;
}

.ti-collab-list-page .ti-collab-table--dense thead th {
    white-space: normal;
    line-height: 1.2;
    padding: 9px 5px;
    vertical-align: bottom;
    word-break: break-word;
    hyphens: auto;
}

.ti-collab-list-page .ti-collab-table--dense tbody td {
    padding: 8px 5px;
    vertical-align: top;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.ti-collab-list-page .ti-collab-table--dense thead th:nth-child(1),
.ti-collab-list-page .ti-collab-table--dense tbody td:nth-child(1) {
    width: 3.25%;
}

.ti-collab-list-page .ti-collab-table--dense thead th:nth-child(2),
.ti-collab-list-page .ti-collab-table--dense tbody td:nth-child(2) {
    width: 11%;
}

.ti-collab-list-page .ti-collab-table--dense thead th:nth-child(3),
.ti-collab-list-page .ti-collab-table--dense tbody td:nth-child(3) {
    width: 13%;
}

.ti-collab-list-page .ti-collab-table--dense thead th:nth-child(4),
.ti-collab-list-page .ti-collab-table--dense tbody td:nth-child(4) {
    width: 11%;
}

.ti-collab-list-page .ti-collab-table--dense thead th:nth-child(5),
.ti-collab-list-page .ti-collab-table--dense tbody td:nth-child(5) {
    width: 8%;
}

.ti-collab-list-page .ti-collab-table--dense thead th:nth-child(6),
.ti-collab-list-page .ti-collab-table--dense tbody td:nth-child(6) {
    width: 11%;
}

.ti-collab-list-page .ti-collab-table--dense thead th:nth-child(7),
.ti-collab-list-page .ti-collab-table--dense tbody td:nth-child(7) {
    width: 9%;
}

.ti-collab-list-page .ti-collab-table--dense thead th:nth-child(8),
.ti-collab-list-page .ti-collab-table--dense tbody td:nth-child(8) {
    width: 7.5%;
}

.ti-collab-list-page .ti-collab-table--dense thead th:nth-child(9),
.ti-collab-list-page .ti-collab-table--dense tbody td:nth-child(9) {
    width: 9%;
}

.ti-collab-list-page .ti-collab-table--dense thead th:nth-child(10),
.ti-collab-list-page .ti-collab-table--dense tbody td:nth-child(10) {
    width: 8%;
}

/* E-mail/cargo/itens: texto completo em várias linhas (sem ellipsis forçada) */
.ti-collab-list-page .ti-collab-table--dense .ti-collab-ellipsis,
.ti-collab-list-page .ti-collab-table--dense .ti-collab-ellipsis--email,
.ti-collab-list-page .ti-collab-table--dense .ti-collab-ellipsis--cargo,
.ti-collab-list-page .ti-collab-table--dense .ti-collab-ellipsis--itens {
    display: block;
    max-width: none;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.ti-collab-list-page .ti-collab-table--dense .ti-collab-actions-col {
    white-space: normal;
}

.ti-collab-status-cell {
    min-width: 0;
}

.ti-collab-list-page .ti-collab-table--dense .ti-collab-status-switch {
    flex-wrap: wrap;
    gap: 2px 6px;
    max-width: 100%;
}

.ti-collab-status-switch {
    display: inline-flex;
    align-items: center;
}

.ti-collab-status-switch .form-check-input {
    width: 2.65rem;
    height: 1.35rem;
    cursor: pointer;
    flex-shrink: 0;
}

.ti-collab-status-switch .ti-collab-status-label {
    color: rgba(223, 246, 255, 0.92);
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    user-select: none;
}

.ti-collab-list-page .ti-collab-table--dense .ti-collab-status-switch .ti-collab-status-label {
    font-size: 0.72rem;
}

.ti-collab-actions-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    min-width: 0;
}

.ti-collab-list-page .ti-collab-table--dense .ti-collab-act-btn {
    padding: 6px 8px;
    font-size: 0.7rem;
    width: 100%;
    text-align: center;
}

.ti-collab-act-btn {
    border: none;
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.ti-collab-act-btn:active {
    transform: scale(0.98);
}

.ti-collab-act-btn--view {
    color: rgba(223, 246, 255, 0.96);
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.ti-collab-act-btn--edit {
    color: #0b2538;
    background: linear-gradient(145deg, #e0f2fe 0%, #bae6fd 100%);
}

html[data-theme="light"] .ti-collab-toolbar__search {
    background: rgba(15, 40, 70, 0.06);
    border-color: rgba(15, 40, 70, 0.12);
    color: var(--primary);
}

html[data-theme="light"] .ti-collab-toolbar__search input {
    color: var(--text);
}

html[data-theme="light"] .ti-collab-toolbar__search input::placeholder {
    color: rgba(15, 40, 70, 0.45);
}

html[data-theme="light"] .ti-collab-toolbar .ti-collab-export-btn {
    color: #f0fdf4 !important;
}

html[data-theme="light"] .ti-premium-page.ti-cadastro-page .ti-cadastro-toolbar .ti-premium-btn--secondary {
    color: #1b2d4e !important;
    background: rgba(27, 45, 78, 0.08) !important;
    border: 1px solid rgba(27, 45, 78, 0.18) !important;
}

html[data-theme="light"] .ti-premium-page.ti-cadastro-page .ti-cadastro-toolbar .ti-premium-btn--secondary:hover {
    color: #102a4a !important;
    background: rgba(34, 112, 170, 0.12) !important;
    border-color: rgba(34, 112, 170, 0.3) !important;
}

html[data-theme="light"] .ti-collab-table-wrap {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(15, 40, 70, 0.12);
}

html[data-theme="light"] .ti-collab-table {
    color: var(--text);
}

html[data-theme="light"] .ti-collab-table thead th {
    background: rgba(23, 50, 87, 0.08);
    color: rgba(23, 50, 87, 0.75);
    border-bottom-color: rgba(23, 50, 87, 0.12);
}

html[data-theme="light"] .ti-collab-table tbody td {
    border-bottom-color: rgba(23, 50, 87, 0.08);
}

html[data-theme="light"] .ti-collab-chip {
    background: rgba(22, 101, 52, 0.12);
    color: #15803d;
    border-color: rgba(21, 128, 61, 0.3);
}

html[data-theme="light"] .ti-collab-list-page__lead {
    color: rgba(15, 40, 70, 0.7);
}

html[data-theme="light"] .ti-collab-list-page .ti-collab-list-page__main-title {
    color: var(--text);
}

html[data-theme="light"] .ti-collab-edit-btn {
    background: linear-gradient(145deg, #e0edff 0%, #cce3ff 100%);
    color: #0f2744;
}

html[data-theme="light"] .ti-collab-status-switch .ti-collab-status-label {
    color: rgba(15, 40, 70, 0.88);
}

html[data-theme="light"] .ti-collab-act-btn--view {
    color: rgba(15, 40, 70, 0.92);
    background: rgba(15, 40, 70, 0.06);
    border-color: rgba(15, 40, 70, 0.12);
}

html[data-theme="light"] .ti-collab-act-btn--edit {
    color: #0b2538;
    background: linear-gradient(145deg, #dff2ff 0%, #bde4ff 100%);
}

/* Notebooks / desktops TI (lista + gráfico) */
.ti-notebooks-page .ti-notebooks-flash {
    padding: 12px 18px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 0.93rem;
}

.ti-notebooks-page .ti-notebooks-flash--ok {
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.38);
    color: #bbf7d0;
}

.ti-notebooks-page .ti-notebooks-flash--err {
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(248, 113, 113, 0.42);
    color: #fecaca;
}

.ti-notebooks-page .ti-notebooks-section-title {
    margin: 0 0 12px;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.94);
}

/* Reserva: chips de unidade (contagens + filtro de tabela) */
.ti-notebooks-page .ti-nb-reserva-unit-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.ti-notebooks-page .ti-nb-reserva-unit-pill {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(15, 23, 42, 0.55);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.ti-notebooks-page .ti-nb-reserva-unit-pill:hover {
    border-color: rgba(96, 165, 250, 0.45);
    background: rgba(30, 41, 59, 0.75);
}

.ti-notebooks-page .ti-nb-reserva-unit-pill.is-active {
    border-color: rgba(96, 165, 250, 0.75);
    background: rgba(37, 99, 235, 0.22);
    box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.2);
}

.ti-notebooks-page .ti-nb-reserva-unit-pill--outras {
    border-style: dashed;
    opacity: 0.92;
}

.ti-notebooks-page .ti-nb-reserva-unit-pill__cnt {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
}

.ti-notebooks-page .ti-nb-reserva-unit-pill.is-active .ti-nb-reserva-unit-pill__cnt {
    background: rgba(255, 255, 255, 0.2);
}

.ti-notebooks-page .ti-notebooks-grid-form .ti-notebooks-table {
    margin-top: 0;
}

.ti-notebooks-page .ti-notebooks-table-scroll {
    overflow-x: auto;
    border-radius: 20px;
}

/*
 * Lista de colaboradores (densa) reserva ~3% na 1.ª coluna (checkbox).
 * Na tabela de notebooks a 1.ª coluna é o colaborador — sem override o <select> fica ínfimo.
 */
.ti-notebooks-page.ti-collab-list-page .ti-collab-table--dense {
    table-layout: auto;
    width: 100%;
    min-width: 880px;
}

.ti-notebooks-page.ti-collab-list-page .ti-collab-table--dense thead th:nth-child(1),
.ti-notebooks-page.ti-collab-list-page .ti-collab-table--dense tbody td:nth-child(1) {
    width: auto;
    min-width: 17rem;
}

.ti-notebooks-page.ti-collab-list-page .ti-collab-table--dense thead th:nth-child(2),
.ti-notebooks-page.ti-collab-list-page .ti-collab-table--dense tbody td:nth-child(2) {
    width: auto;
    min-width: 5.5rem;
}

.ti-notebooks-page.ti-collab-list-page .ti-collab-table--dense thead th:nth-child(3),
.ti-notebooks-page.ti-collab-list-page .ti-collab-table--dense tbody td:nth-child(3) {
    width: auto;
    min-width: 11rem;
}

.ti-notebooks-page.ti-collab-list-page .ti-collab-table--dense thead th:nth-child(4),
.ti-notebooks-page.ti-collab-list-page .ti-collab-table--dense tbody td:nth-child(4) {
    width: auto;
    min-width: 7rem;
}

.ti-notebooks-page.ti-collab-list-page .ti-collab-table--dense thead th:nth-child(5),
.ti-notebooks-page.ti-collab-list-page .ti-collab-table--dense tbody td:nth-child(5) {
    width: auto;
    min-width: 6.5rem;
}

.ti-notebooks-page.ti-collab-list-page .ti-collab-table--dense thead th:nth-child(6),
.ti-notebooks-page.ti-collab-list-page .ti-collab-table--dense tbody td:nth-child(6) {
    width: auto;
    min-width: 8rem;
}

.ti-notebooks-page.ti-collab-list-page .ti-collab-table--dense thead th:nth-child(7),
.ti-notebooks-page.ti-collab-list-page .ti-collab-table--dense tbody td:nth-child(7) {
    width: auto;
    min-width: 9rem;
}

.ti-notebooks-page.ti-collab-list-page .ti-collab-table--dense thead th:nth-child(8),
.ti-notebooks-page.ti-collab-list-page .ti-collab-table--dense tbody td:nth-child(8) {
    width: auto;
    min-width: 5.75rem;
}

.ti-notebooks-page .ti-collab-table--dense tbody td:nth-child(1) .ti-notebooks-select {
    width: 100%;
    min-width: 14rem;
    max-width: 100%;
}

.ti-notebooks-page .ti-collab-table--dense tbody td:nth-child(7) .ti-notebooks-select {
    width: 100%;
    min-width: 8rem;
}

.ti-notebooks-page .ti-notebooks-select {
    font-size: 0.8125rem;
    color: rgba(237, 250, 255, 0.95);
    background-color: rgba(15, 40, 70, 0.55);
    border-color: rgba(255, 255, 255, 0.14);
}

.ti-notebooks-page .ti-notebooks-select:focus {
    border-color: rgba(59, 171, 212, 0.85);
    box-shadow: 0 0 0 0.2rem rgba(59, 171, 212, 0.18);
}

.ti-notebooks-page .ti-notebooks-select option {
    color: #1b2d4e;
    background-color: #f8fafc;
}

.ti-notebooks-page .ti-notebooks-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 0.76rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    background: rgba(224, 242, 254, 1);
    color: #0b2538 !important;
    border: none;
    cursor: pointer;
}

.ti-notebooks-page .ti-notebooks-detail-link:hover {
    filter: brightness(1.05);
}

#tiNotebooksCadModal .ti-notebooks-add-field--modal .ti-notebooks-field-label,
#tiNotebooksDetModal .ti-notebooks-add-field--modal .ti-notebooks-field-label {
    font-weight: 600;
    color: #334155;
}

#tiNotebooksCadModal .ti-notebooks-add-field--modal,
#tiNotebooksDetModal .ti-notebooks-add-field--modal {
    color: #1e293b;
}

/* Fora de .ti-premium-page (overflow) — z-index acima do backdrop Bootstrap */
#tiNotebooksCadModal.modal,
#tiNotebooksDetModal.modal {
    z-index: 1060;
}

/* Modal Ver/Cadastrar: campos sempre com aparência editável (evita cinza “desabilitado” do Bootstrap no tema escuro da página) */
#tiNotebooksDetModal .modal-content,
#tiNotebooksCadModal .modal-content {
    color-scheme: light;
}

#tiNotebooksCadModal .ti-notebooks-add-field .form-control,
#tiNotebooksCadModal .ti-notebooks-add-field .form-select,
#tiNotebooksCadModal .ti-notebooks-add-field textarea.form-control,
#tiNotebooksDetModal .ti-notebooks-add-field .form-control,
#tiNotebooksDetModal .ti-notebooks-add-field .form-select,
#tiNotebooksDetModal .ti-notebooks-add-field textarea.form-control {
    color: #1b2d4e !important;
    background-color: #fff !important;
    border: 1px solid rgba(203, 213, 225, 0.95) !important;
    border-radius: 10px;
    opacity: 1 !important;
    -webkit-text-fill-color: #1b2d4e;
    box-shadow: none;
}

#tiNotebooksCadModal .ti-notebooks-add-field .form-select,
#tiNotebooksDetModal .ti-notebooks-add-field .form-select {
    cursor: pointer;
}

#tiNotebooksCadModal .ti-notebooks-add-field .form-control:focus,
#tiNotebooksCadModal .ti-notebooks-add-field .form-select:focus,
#tiNotebooksCadModal .ti-notebooks-add-field textarea.form-control:focus,
#tiNotebooksDetModal .ti-notebooks-add-field .form-control:focus,
#tiNotebooksDetModal .ti-notebooks-add-field .form-select:focus,
#tiNotebooksDetModal .ti-notebooks-add-field textarea.form-control:focus {
    color: #1b2d4e !important;
    background-color: #fff !important;
    border-color: rgba(59, 130, 246, 0.75) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18) !important;
}

#tiNotebooksCadModal .ti-notebooks-add-field .form-control:disabled,
#tiNotebooksCadModal .ti-notebooks-add-field .form-select:disabled,
#tiNotebooksDetModal .ti-notebooks-add-field .form-control:disabled,
#tiNotebooksDetModal .ti-notebooks-add-field .form-select:disabled {
    background-color: #f1f5f9 !important;
    color: #64748b !important;
    -webkit-text-fill-color: #64748b;
    cursor: not-allowed;
    opacity: 1 !important;
}

#tiNotebooksCadModal .ti-notebooks-add-field .form-select option,
#tiNotebooksDetModal .ti-notebooks-add-field .form-select option {
    color: #1b2d4e;
    background-color: #fff;
}

#tiNotebooksCadModal .ti-notebooks-modal-submit,
#tiNotebooksDetModal .ti-notebooks-modal-submit {
    font-weight: 700;
}

/*
 * Modal cadastro: se o <form> for filho direto único de .modal-content, o layout flex do
 * Bootstrap não faz scroll só no body e o rodapé sai da área útil. Cabeçalho fora do form +
 * flex + min-height:0 no meio corrige o corte dos botões.
 */
#tiNotebooksCadModal.modal .modal-dialog-scrollable .modal-content,
#tiNotebooksDetModal.modal .modal-dialog-scrollable .modal-content {
    display: flex;
    flex-direction: column;
    max-height: min(92vh, 960px);
    overflow: hidden;
}

#tiNotebooksCadModal .modal-header,
#tiNotebooksDetModal .modal-header {
    flex-shrink: 0;
}

#tiNotebooksCadModal .ti-notebooks-modal-form,
#tiNotebooksDetModal .ti-notebooks-modal-form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

#tiNotebooksCadModal .ti-notebooks-modal-form > .modal-body,
#tiNotebooksDetModal .ti-notebooks-modal-form > .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

#tiNotebooksCadModal .ti-notebooks-modal-form > .modal-footer,
#tiNotebooksDetModal .ti-notebooks-modal-form > .modal-footer {
    flex-shrink: 0;
    margin-top: auto;
    padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    background: var(--bs-modal-bg);
    box-shadow: 0 -6px 18px rgba(15, 23, 42, 0.06);
}

/* Autocomplete colaborador (fixo no viewport: não é cortado pelo overflow do modal) */
#tiCadColPanel.ti-cad-col-panel {
    position: fixed;
    z-index: 10800;
    max-height: min(280px, 42vh);
    overflow-y: auto;
    margin: 0;
    background: var(--bs-body-bg, #fff);
    border: 1px solid rgba(148, 163, 184, 0.75);
    border-radius: 10px;
    box-shadow: 0 14px 44px rgba(15, 23, 42, 0.2);
    -webkit-overflow-scrolling: touch;
}

#tiCadColPanel.ti-cad-col-panel .list-group-item {
    border-radius: 0;
    border-left: none;
    border-right: none;
}

#tiCadColPanel.ti-cad-col-panel button.list-group-item {
    cursor: pointer;
    font-size: 0.8125rem;
    line-height: 1.35;
}

.ti-notebooks-page .ti-notebooks-perif-fieldset {
    border: 1px solid rgba(148, 163, 184, 0.55);
    border-radius: 12px;
    padding: 12px 14px 14px;
    margin: 0;
    grid-column: 1 / -1;
}

.ti-notebooks-page .ti-notebooks-perif-legend {
    float: unset;
    width: auto;
    padding: 0 6px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #334155;
}

.ti-notebooks-page .ti-notebooks-perif-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-bottom: 4px;
}

.ti-notebooks-page .ti-notebooks-perif-check {
    margin: 0;
    font-size: 0.82rem;
    color: #1e293b;
}

html[data-theme="light"] .ti-notebooks-page .ti-notebooks-perif-legend {
    color: var(--text, #334155);
}

.ti-notebooks-page .ti-notebooks-add-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
    gap: 12px 16px;
}

.ti-notebooks-page .ti-notebooks-add-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(223, 246, 255, 0.88);
}

.ti-notebooks-page .ti-notebooks-add-field--full {
    grid-column: 1 / -1;
}

.ti-notebooks-page .ti-notebooks-add-field .form-control,
.ti-notebooks-page .ti-notebooks-add-field .form-select,
.ti-notebooks-page .ti-notebooks-add-field textarea.form-control,
.ti-notebooks-page .ti-notebooks-add-field .form-control:focus,
.ti-notebooks-page .ti-notebooks-add-field .form-select:focus,
.ti-notebooks-page .ti-notebooks-add-field textarea.form-control:focus {
    color: #1b2d4e;
    background-color: #fff;
    border-radius: 10px;
    border-color: rgba(203, 213, 225, 0.9);
}

html[data-theme="light"] .ti-notebooks-page .ti-notebooks-flash--ok {
    background: rgba(34, 197, 94, 0.12);
    color: #166534 !important;
    border-color: rgba(22, 101, 52, 0.28);
}

html[data-theme="light"] .ti-notebooks-page .ti-notebooks-flash--err {
    background: rgba(239, 68, 68, 0.08);
    color: #b91c1c !important;
    border-color: rgba(185, 28, 28, 0.35);
}

html[data-theme="light"] .ti-notebooks-page .ti-notebooks-section-title {
    color: var(--text);
}

html[data-theme="light"] .ti-notebooks-page .ti-nb-reserva-unit-pill {
    border-color: rgba(15, 23, 42, 0.12);
    background: rgba(248, 250, 252, 0.95);
    color: rgba(15, 40, 70, 0.95);
}

html[data-theme="light"] .ti-notebooks-page .ti-nb-reserva-unit-pill:hover {
    border-color: rgba(37, 99, 235, 0.35);
    background: #fff;
}

html[data-theme="light"] .ti-notebooks-page .ti-nb-reserva-unit-pill.is-active {
    border-color: rgba(37, 99, 235, 0.55);
    background: rgba(219, 234, 254, 0.9);
}

html[data-theme="light"] .ti-notebooks-page .ti-nb-reserva-unit-pill__cnt {
    background: rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .ti-notebooks-page .ti-nb-reserva-unit-pill.is-active .ti-nb-reserva-unit-pill__cnt {
    background: rgba(37, 99, 235, 0.15);
}

/* Inventário TI extra: hub monitores/telefones + páginas legadas alinhadas ao tema Conecta */
.ti-notebooks-page.ti-inv-extra-page .ti-inv-hub-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.ti-notebooks-page .ti-inv-hub-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1.5rem 1.35rem;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(155deg, rgba(15, 23, 42, 0.72) 0%, rgba(30, 41, 59, 0.45) 100%);
    text-decoration: none;
    color: rgba(255, 255, 255, 0.92);
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.ti-notebooks-page .ti-inv-hub-card:hover {
    border-color: rgba(96, 165, 250, 0.55);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
    transform: translateY(-2px);
    color: #fff;
}

.ti-notebooks-page .ti-inv-hub-card__icon {
    font-size: 1.75rem;
    color: #93c5fd;
    line-height: 1;
}

.ti-notebooks-page .ti-inv-hub-card--phone .ti-inv-hub-card__icon {
    color: #6ee7b7;
}

.ti-notebooks-page .ti-inv-hub-card__title {
    margin: 0.25rem 0 0;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.ti-notebooks-page .ti-inv-hub-card__desc {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.62);
}

.ti-notebooks-page .ti-inv-hub-card:hover .ti-inv-hub-card__desc {
    color: rgba(255, 255, 255, 0.78);
}

.ti-notebooks-page .ti-inv-hub-card__cta {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #93c5fd;
}

.ti-notebooks-page .ti-inv-hub-card:hover .ti-inv-hub-card__cta {
    color: #bfdbfe;
}

.ti-notebooks-page .ti-inv-form-control,
.ti-notebooks-page .ti-inv-legacy-form .form-label {
    border-radius: 12px;
}

.ti-inv-modal .modal-content.ti-inv-modal-content,
.modal.ti-inv-modal .modal-content {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(17, 24, 39, 0.97);
    color: rgba(255, 255, 255, 0.92);
}

.modal.ti-inv-modal .modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.modal.ti-inv-modal .modal-footer {
    border-top-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="light"] .ti-notebooks-page .ti-inv-hub-card {
    border-color: rgba(15, 23, 42, 0.1);
    background: rgba(248, 250, 252, 0.98);
    color: #0f172a;
}

html[data-theme="light"] .ti-notebooks-page .ti-inv-hub-card:hover {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .ti-notebooks-page .ti-inv-hub-card__desc {
    color: rgba(15, 23, 42, 0.62);
}

html[data-theme="light"] .modal.ti-inv-modal .modal-content {
    background: #fff;
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.12);
}

/* Modal visão consolidada inventário TI */
.modal.ti-inv-consolidado-modal .modal-dialog.modal-xl {
    max-width: min(1280px, calc(100vw - 2rem));
}

.ti-inv-consolidado-modal .ti-inv-consolidado-pre {
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.82rem;
    line-height: 1.45;
    margin: 0;
}

.ti-inv-consolidado-modal .ti-inv-consolidado-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
}

.ti-inv-consolidado-modal .ti-inv-consolidado-links a {
    font-size: 0.78rem;
    font-weight: 700;
    color: #93c5fd;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ti-inv-consolidado-modal .ti-inv-consolidado-links a:hover {
    color: #bfdbfe;
}

.ti-inv-consolidado-modal .ti-inv-badge {
    display: inline-block;
    margin: 2px 4px 2px 0;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid rgba(251, 191, 36, 0.55);
    background: rgba(251, 191, 36, 0.12);
    color: #fcd34d;
}

.ti-inv-consolidado-modal tbody tr.ti-inv-row--warn td {
    box-shadow: inset 3px 0 0 rgba(251, 191, 36, 0.85);
}

html[data-theme="light"] .ti-inv-consolidado-modal .ti-inv-consolidado-links a {
    color: #1d4ed8;
}

html[data-theme="light"] .ti-inv-consolidado-modal .ti-inv-badge {
    border-color: rgba(180, 83, 9, 0.45);
    background: rgba(251, 191, 36, 0.22);
    color: #92400e;
}

.ti-inv-consolidado-modal .ti-inv-edit-panel-wrap {
    background: rgba(15, 23, 42, 0.55);
    vertical-align: top;
}

.ti-inv-consolidado-modal .ti-inv-edit-panel .form-control.bg-dark {
    color: #e2e8f0;
}

html[data-theme="light"] .ti-inv-consolidado-modal .ti-inv-edit-panel-wrap {
    background: rgba(241, 245, 249, 0.95);
}

html[data-theme="light"] .ti-inv-consolidado-modal .ti-inv-edit-panel .form-control.bg-dark {
    background-color: #fff !important;
    color: #0f172a !important;
    border-color: rgba(15, 23, 42, 0.2) !important;
}

.ti-inv-consolidado-modal .ti-inv-perif-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.6rem;
    font-size: 0.74rem;
    line-height: 1.35;
}

.ti-inv-consolidado-modal .ti-inv-perif-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 600;
    color: #bbf7d0;
}

.ti-inv-consolidado-modal .ti-inv-perif-item--off {
    color: rgba(148, 163, 184, 0.9);
    font-weight: 500;
}

html[data-theme="light"] .ti-inv-consolidado-modal .ti-inv-perif-item {
    color: #166534;
}

html[data-theme="light"] .ti-inv-consolidado-modal .ti-inv-perif-item--off {
    color: rgba(71, 85, 105, 0.85);
}

.ti-inv-consolidado-modal tr.ti-inv-flash-highlight td {
    animation: ti-inv-row-flash 2.1s ease-out;
}

@keyframes ti-inv-row-flash {
    0% {
        background-color: rgba(251, 191, 36, 0.35);
    }
    100% {
        background-color: transparent;
    }
}

.ti-inv-consolidado-modal .ti-inv-mini-link {
    color: rgba(147, 197, 253, 0.95);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ti-inv-consolidado-modal .ti-inv-mini-link:hover {
    color: #dbeafe;
}

html[data-theme="light"] .ti-inv-consolidado-modal .ti-inv-mini-link {
    color: #1d4ed8;
}

html[data-theme="light"] .ti-notebooks-page .ti-inv-hub-card__cta {
    color: #1d4ed8;
}

html[data-theme="light"] .ti-notebooks-page .ti-notebooks-add-field {
    color: rgba(15, 40, 70, 0.78);
}

html[data-theme="light"] .ti-notebooks-page .ti-notebooks-select {
    color: rgba(15, 40, 70, 0.95);
    background-color: #fff;
    border-color: rgba(15, 40, 70, 0.18);
}

html[data-theme="light"] .ti-notebooks-page .ti-notebooks-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .ti-shortcut-card:hover,
    .ti-org-card:hover {
        transform: none;
    }
}


/* ===== TI CHAMADOS PREMIUM 2.0 ===== */
.ti-call-page {
    min-height: calc(100vh - 72px);
    padding: 28px;
    color: #f8fbff;
    background:
        radial-gradient(circle at 12% 8%, rgba(59,171,212,.18), transparent 24%),
        radial-gradient(circle at 88% 22%, rgba(34,112,170,.18), transparent 24%),
        linear-gradient(135deg, #10233d 0%, #173257 48%, #1d3f6d 100%);
}
.ti-call-hero,
.ti-call-layout {
    width: 100%;
    max-width: none;
    margin-inline: 0;
}
.ti-call-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
    gap: 20px;
    margin-bottom: 20px;
}
.ti-call-hero__content,
.ti-call-hero__stats,
.ti-call-card,
.ti-call-alert {
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 30px;
    box-shadow: 0 24px 60px rgba(4,14,30,.28);
    backdrop-filter: blur(16px);
}
.ti-call-hero__content {
    padding: 34px;
    background:
        radial-gradient(circle at 90% 15%, rgba(59,171,212,.24), transparent 30%),
        linear-gradient(135deg, rgba(20,49,89,.96), rgba(24,74,123,.92));
}
.ti-call-badge {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: #dff6ff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.ti-call-hero h1 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: .98;
}
.ti-call-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255,255,255,.78);
    line-height: 1.65;
}
.ti-call-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}
.ti-call-hero__stats {
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    background: rgba(255,255,255,.10);
}
.ti-call-stat {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.10);
}
.ti-call-stat small {
    display: block;
    color: rgba(255,255,255,.72);
    font-weight: 800;
    margin-bottom: 8px;
}
.ti-call-stat strong {
    color: #fff;
    font-size: 2rem;
}
.ti-call-alert {
    width: 100%;
    max-width: none;
    margin: 0 0 20px;
    padding: 15px 18px;
    font-weight: 800;
}
.ti-call-alert--sucesso,
.ti-call-alert--success {
    background: rgba(34,197,94,.16);
    color: #c9ffd9;
}
.ti-call-alert--erro,
.ti-call-alert--error,
.ti-call-alert--danger {
    background: rgba(239,68,68,.16);
    color: #ffd2d2;
}
.ti-call-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
    gap: 20px;
    align-items: start;
}
.ti-call-layout--solo {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .55fr);
}
.ti-call-card {
    padding: 24px;
    background: rgba(255,255,255,.10);
}
.ti-call-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
}
.ti-call-card__head span {
    color: #8fe3ff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.ti-call-card__head h2 {
    margin: 7px 0 0;
    color: #fff;
    font-size: 1.8rem;
}
.ti-call-card__head em {
    padding: 8px 12px;
    border-radius: 999px;
    color: #dff6ff;
    background: rgba(255,255,255,.10);
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}
.ti-call-form {
    display: grid;
    gap: 22px;
}
.ti-call-section-title {
    color: #fff;
    font-weight: 900;
    font-size: 1.05rem;
    padding-top: 4px;
}
.ti-call-grid {
    display: grid;
    gap: 16px;
}
.ti-call-grid--1 { grid-template-columns: 1fr; }
.ti-call-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ti-call-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ti-call-field {
    display: grid;
    gap: 8px;
}
.ti-call-field span {
    color: rgba(255,255,255,.86);
    font-size: 13px;
    font-weight: 900;
}
.ti-call-field small {
    color: rgba(255,255,255,.58);
    font-weight: 700;
}
.ti-call-field input,
.ti-call-field select,
.ti-call-field textarea {
    width: 100%;
    min-height: 52px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 16px;
    padding: 13px 15px;
    background: rgba(255,255,255,.94);
    color: #142b4a;
    font: inherit;
    outline: none;
    box-sizing: border-box;
}
.ti-call-field textarea {
    min-height: 140px;
    resize: vertical;
}
.ti-call-field input:focus,
.ti-call-field select:focus,
.ti-call-field textarea:focus {
    border-color: rgba(59,171,212,.7);
    box-shadow: 0 0 0 4px rgba(59,171,212,.16);
}
.ti-call-field input[readonly] {
    background: rgba(255,255,255,.78);
}
.ti-call-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 8px;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(8, 22, 48, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 12px 28px rgba(4, 12, 32, 0.22);
}
.ti-call-btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 18px;
    border: 0;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 900;
    cursor: pointer;
    transition: .18s ease;
}
.ti-call-btn:hover {
    transform: translateY(-1px);
}
.ti-call-btn--primary,
.ti-call-btn--filter {
    color: #fff;
    background: linear-gradient(135deg, #1a5f96 0%, #2270aa 42%, #2d8fc4 100%);
    box-shadow:
        0 4px 0 rgba(12, 48, 88, 0.35),
        0 14px 32px rgba(15, 70, 120, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.22);
}
.ti-call-btn--primary:hover,
.ti-call-btn--filter:hover {
    background: linear-gradient(135deg, #1f6dab 0%, #2880bd 42%, #3a9fd4 100%);
    box-shadow:
        0 4px 0 rgba(12, 48, 88, 0.32),
        0 18px 36px rgba(15, 70, 120, 0.5);
}
.ti-call-submit .ti-call-btn--primary {
    flex-shrink: 0;
    min-width: min(100%, 220px);
    min-height: 52px;
    padding: 0 26px;
    font-size: 1rem;
    letter-spacing: 0.02em;
}
.ti-call-submit .ti-call-btn--primary .ti-submit-text {
    color: #fff;
}

.ti-call-submit .ti-call-btn--primary:focus-visible {
    outline: 3px solid rgba(125, 211, 252, 0.85);
    outline-offset: 3px;
}
.ti-call-btn--ghost {
    color: #fff;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
}
.ti-call-btn--light {
    color: #173257;
    background: #fff;
}
.ti-submit-spinner {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    display: none;
    animation: tiSpin .8s linear infinite;
}
.ti-call-btn.is-loading .ti-submit-spinner { display: inline-block; }
.ti-call-btn.is-loading { pointer-events: none; opacity: .9; }
@keyframes tiSpin { to { transform: rotate(360deg); } }
.ti-call-filter {
    display: grid;
    grid-template-columns: minmax(0,1fr) 160px auto;
    gap: 10px;
    margin-bottom: 16px;
}
.ti-call-filter input,
.ti-call-filter select {
    min-height: 46px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 14px;
    padding: 0 13px;
    background: rgba(255,255,255,.92);
    color: #142b4a;
    font: inherit;
}
.ti-call-list {
    display: grid;
    gap: 10px;
    max-height: 620px;
    overflow: auto;
    padding-right: 4px;
    scrollbar-width: thin;
}
.ti-call-ticket {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    text-decoration: none;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.08);
    color: #fff;
}
.ti-call-ticket strong,
.ti-call-ticket span,
.ti-call-ticket p {
    display: block;
    min-width: 0;
}
.ti-call-ticket strong {
    color: #fff;
    font-size: .92rem;
}
.ti-call-ticket span {
    margin-top: 3px;
    color: #8fe3ff;
    font-size: .82rem;
    font-weight: 800;
}
.ti-call-ticket p {
    margin: 5px 0 0;
    color: rgba(255,255,255,.68);
    font-size: .82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ti-call-status {
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    color: #fff;
    font-size: .74rem;
    font-weight: 900;
    font-style: normal;
    white-space: nowrap;
}
.ti-call-empty,
.ti-call-guide-list > div {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.08);
}
.ti-call-empty strong,
.ti-call-guide-list strong {
    display: block;
    color: #fff;
    margin-bottom: 6px;
}
.ti-call-empty span,
.ti-call-guide-list p {
    margin: 0;
    color: rgba(255,255,255,.70);
    line-height: 1.5;
}
.ti-call-guide-list {
    display: grid;
    gap: 12px;
}
@media (max-width: 1180px) {
    .ti-call-hero,
    .ti-call-layout,
    .ti-call-layout--solo {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 780px) {
    .ti-call-page { padding: 18px; }
    .ti-call-grid--2,
    .ti-call-grid--3,
    .ti-call-hero__stats,
    .ti-call-filter {
        grid-template-columns: 1fr;
    }
    .ti-call-submit {
        flex-direction: column;
        align-items: stretch;
    }
    .ti-call-btn { width: 100%; }
}
/* ===== TI CHAMADOS - LAYOUT PREMIUM ===== */

.ti-call-page {
    min-height: calc(100vh - 72px);
    padding: 36px 24px 56px;
    background:
        radial-gradient(circle at 15% 12%, rgba(59,171,212,.16), transparent 26%),
        radial-gradient(circle at 85% 28%, rgba(34,112,170,.18), transparent 28%),
        linear-gradient(135deg, #10233d 0%, #183861 48%, #1d3f6d 100%);
}

.ti-call-hero {
    max-width: none;
    width: 100%;
    margin: 0 0 22px;
    border-radius: 32px;
    padding: 36px 42px;
    background:
        radial-gradient(circle at 92% 12%, rgba(59,171,212,.28), transparent 30%),
        linear-gradient(135deg, rgba(20,49,89,.98), rgba(34,112,170,.88));
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 24px 60px rgba(4,14,30,.30);
    color: #fff;
}

.ti-call-badge {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    color: #dff6ff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.ti-call-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    line-height: .95;
    letter-spacing: -.06em;
}

.ti-call-alert {
    max-width: none;
    width: 100%;
    margin: 0 0 18px;
    padding: 14px 18px;
    border-radius: 18px;
    font-weight: 800;
}

.ti-call-alert--sucesso {
    background: rgba(34,197,94,.16);
    color: #bbf7d0;
    border: 1px solid rgba(34,197,94,.22);
}

.ti-call-alert--erro {
    background: rgba(239,68,68,.16);
    color: #fecaca;
    border: 1px solid rgba(239,68,68,.22);
}

.ti-call-layout,
.ti-call-layout--solo {
    max-width: none;
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
}

.ti-call-card {
    border-radius: 32px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 24px 60px rgba(4,14,30,.26);
    backdrop-filter: blur(16px);
    overflow: hidden;
}

.ti-call-card--form {
    padding: 0;
}

.ti-call-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding: 26px 28px;
    border-bottom: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.06);
}

.ti-call-card__head span {
    color: #8fe3ff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ti-call-card__head h2 {
    margin: 8px 0 0;
    color: #fff;
    font-size: 2rem;
}

.ti-call-card__head em {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    color: #fff;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

.ti-call-form {
    padding: 28px;
}

.ti-call-section-title {
    margin: 8px 0 16px;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 900;
}

.ti-call-section-title:not(:first-child) {
    margin-top: 28px;
}

.ti-call-grid {
    display: grid;
    gap: 16px;
}

.ti-call-grid--1 {
    grid-template-columns: 1fr;
}

.ti-call-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ti-call-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ti-call-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ti-call-field span {
    color: rgba(255,255,255,.88);
    font-size: 13px;
    font-weight: 900;
}

.ti-call-field small {
    color: rgba(255,255,255,.60);
    font-weight: 700;
    line-height: 1.3;
}

.ti-call-field input,
.ti-call-field select,
.ti-call-field textarea {
    width: 100%;
    min-height: 54px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 18px;
    padding: 0 16px;
    background: rgba(255,255,255,.92);
    color: #163157;
    font: inherit;
    outline: none;
    box-sizing: border-box;
    transition: .2s ease;
}

.ti-call-field textarea {
    min-height: 160px;
    padding: 16px;
    resize: vertical;
}

.ti-call-field input:focus,
.ti-call-field select:focus,
.ti-call-field textarea:focus {
    background: #fff;
    border-color: rgba(59,171,212,.70);
    box-shadow: 0 0 0 4px rgba(59,171,212,.16);
    transform: translateY(-1px);
}

.ti-call-field input[readonly] {
    background: rgba(255,255,255,.78);
    color: #203a5f;
    cursor: not-allowed;
}

.ti-call-actions {
    margin-top: 28px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.ti-call-btn,
.ti-call-actions button {
    min-height: 54px;
    padding: 0 22px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #2270AA, #3BABD4);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(34,112,170,.28);
    transition: .2s ease;
}

.ti-call-btn:hover,
.ti-call-actions button:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
}

.ti-call-btn--ghost {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: none;
}

@media (max-width: 980px) {
    .ti-call-grid--2,
    .ti-call-grid--3 {
        grid-template-columns: 1fr;
    }

    .ti-call-card__head {
        flex-direction: column;
    }
}

@media (max-width: 680px) {
    .ti-call-page {
        padding: 20px 14px 40px;
    }

    .ti-call-hero,
    .ti-call-form,
    .ti-call-card__head {
        padding: 22px;
    }

    .ti-call-hero h1 {
        font-size: 2.5rem;
    }
}

/* ===== TI CHAMADOS — layout largo, animações, modo claro ===== */
.ti-premium-page.ti-call-page {
    position: relative;
    min-height: calc(100vh - 72px);
    padding: clamp(12px, 1.2vw, 20px) 0 48px;
    overflow: hidden;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.ti-call-page .ti-call-shell,
.ti-premium-page.ti-call-page .ti-collab-layout-wide.ti-call-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none !important;
    margin-inline: 0;
}

.ti-premium-page.ti-call-page.ti-collab-list-page .ti-collab-layout-wide {
    max-width: none !important;
    width: 100% !important;
}

.ti-call-hero--open {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 20px 24px;
    margin-bottom: 22px;
    padding: clamp(24px, 3vw, 40px) clamp(22px, 3vw, 42px);
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    animation: ti-hub-rise 0.55s ease backwards;
}

.ti-call-hero__glow {
    position: absolute;
    inset: -40%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.28), transparent 42%),
        radial-gradient(circle at 85% 70%, rgba(167, 139, 250, 0.2), transparent 45%);
    animation: ti-call-glow-drift 9s ease-in-out infinite;
}

.ti-call-hero__gridline {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.07;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.45) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.45) 1px, transparent 1px);
    background-size: 48px 48px;
}

.ti-call-hero__shimmer {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        105deg,
        transparent 38%,
        rgba(255, 255, 255, 0.04) 46%,
        rgba(255, 255, 255, 0.14) 50%,
        rgba(255, 255, 255, 0.04) 54%,
        transparent 62%
    );
    background-size: 220% 100%;
    animation: ti-call-hero-shimmer 7s ease-in-out infinite;
}

@keyframes ti-call-glow-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(2.5%, -2%) scale(1.05); }
}

@keyframes ti-call-hero-shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

@keyframes ti-call-hero-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ti-call-badge-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4);
    }
    50% {
        transform: scale(1.06);
        box-shadow: 0 0 0 8px rgba(56, 189, 248, 0);
    }
}

.ti-call-hero__anim {
    opacity: 0;
    animation: ti-call-hero-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.ti-call-hero__anim--1 { animation-delay: 0.1s; }
.ti-call-hero__anim--2 { animation-delay: 0.2s; }
.ti-call-hero__anim--3 { animation-delay: 0.3s; }
.ti-call-hero__anim--4 { animation-delay: 0.42s; }
.ti-call-hero__anim--5 { animation-delay: 0.52s; }

.ti-call-badge__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.55rem;
    height: 1.55rem;
    margin-right: 8px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.22);
    animation: ti-call-badge-pulse 2.6s ease-in-out infinite;
}

.ti-call-hero--open .ti-call-badge {
    align-items: center;
    gap: 2px;
}

.ti-call-hero__main {
    position: relative;
    z-index: 1;
}

/* Carrossel — dicas IA (abertura de chamado) */
.ti-call-ai-tips {
    margin-bottom: 22px;
}

.ti-call-ai-tips__panel {
    position: relative;
    overflow: hidden;
    padding: clamp(18px, 2.5vw, 24px) clamp(20px, 3vw, 28px);
    border-radius: 22px;
    border: 1px solid rgba(125, 211, 252, 0.22);
    background:
        linear-gradient(135deg, rgba(15, 36, 68, 0.92) 0%, rgba(22, 52, 96, 0.88) 55%, rgba(28, 64, 110, 0.9) 100%);
    box-shadow: 0 18px 44px rgba(4, 14, 30, 0.28);
}

.ti-call-ai-tips__panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 12% 88%, rgba(56, 189, 248, 0.12), transparent 42%);
    opacity: 0.9;
}

.ti-call-ai-tips__layout {
    display: grid;
    grid-template-columns: minmax(88px, 110px) minmax(0, 1fr);
    gap: 12px 20px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.ti-call-ai-tips__coach {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.ti-call-ai-tips__bubble {
    position: relative;
    max-width: 118px;
    padding: 8px 11px;
    border-radius: 14px 14px 14px 4px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    animation: ti-tip-bubble-pop 0.5s ease backwards, ti-tip-bubble-float 4s ease-in-out 0.5s infinite;
}

.ti-call-ai-tips__bubble-text {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.35;
    color: #ecfeff;
    text-align: center;
}

.ti-call-ai-tips__bubble.is-switching .ti-call-ai-tips__bubble-text {
    animation: ti-tip-bubble-text 0.35s ease;
}

.ti-call-ai-tips__robot {
    position: relative;
    width: 72px;
    height: 88px;
    animation: ti-tip-robot-float 3.2s ease-in-out infinite;
}

.ti-call-ai-tips__robot-glow {
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 54px;
    height: 18px;
    margin-left: -27px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(56, 189, 248, 0.45), transparent 70%);
    animation: ti-tip-robot-glow 3.2s ease-in-out infinite;
}

.ti-call-ai-tips__robot-antenna {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 14px;
    margin-left: -1.5px;
    border-radius: 999px;
    background: linear-gradient(180deg, #7dd3fc, #38bdf8);
}

.ti-call-ai-tips__robot-antenna::after {
    content: "";
    position: absolute;
    top: -5px;
    left: 50%;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    border-radius: 50%;
    background: #fde68a;
    box-shadow: 0 0 12px rgba(253, 224, 106, 0.8);
    animation: ti-tip-antenna-blink 2s ease-in-out infinite;
}

.ti-call-ai-tips__robot-head {
    position: absolute;
    top: 12px;
    left: 50%;
    width: 46px;
    height: 38px;
    margin-left: -23px;
    border-radius: 14px;
    background: linear-gradient(165deg, #e2e8f0 0%, #94a3b8 100%);
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: inset 0 -4px 0 rgba(15, 23, 42, 0.12);
}

.ti-call-ai-tips__robot-eye {
    position: absolute;
    top: 12px;
    width: 8px;
    height: 10px;
    border-radius: 50%;
    background: #0f172a;
    animation: ti-tip-robot-blink 4.5s ease-in-out infinite;
}

.ti-call-ai-tips__robot-eye--l { left: 10px; }
.ti-call-ai-tips__robot-eye--r { right: 10px; }

.ti-call-ai-tips__robot-mouth {
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 16px;
    height: 6px;
    margin-left: -8px;
    border-radius: 0 0 10px 10px;
    background: #334155;
    transition: height 0.2s ease, border-radius 0.2s ease;
}

.ti-call-ai-tips__robot.is-talking .ti-call-ai-tips__robot-mouth {
    height: 10px;
    border-radius: 8px;
    animation: ti-tip-robot-talk 0.35s ease-in-out infinite;
}

.ti-call-ai-tips__robot-torso {
    position: absolute;
    top: 48px;
    left: 50%;
    width: 40px;
    height: 28px;
    margin-left: -20px;
    border-radius: 10px;
    background: linear-gradient(160deg, #38bdf8 0%, #2563eb 100%);
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.ti-call-ai-tips__robot-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border-radius: 50%;
    background: #fde68a;
    box-shadow: 0 0 10px rgba(253, 224, 106, 0.7);
    animation: ti-tip-core-pulse 1.8s ease-in-out infinite;
}

.ti-call-ai-tips__robot-arm {
    position: absolute;
    top: 52px;
    width: 10px;
    height: 22px;
    border-radius: 8px;
    background: linear-gradient(180deg, #cbd5e1, #64748b);
}

.ti-call-ai-tips__robot-arm--left {
    left: 8px;
    transform-origin: top center;
    transform: rotate(18deg);
}

.ti-call-ai-tips__robot-arm--right {
    right: 8px;
    transform-origin: top center;
    animation: ti-tip-robot-wave 1.2s ease-in-out infinite;
}

.ti-call-ai-tips__robot-base {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 50px;
    height: 10px;
    margin-left: -25px;
    border-radius: 8px 8px 4px 4px;
    background: #475569;
}

@keyframes ti-tip-robot-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes ti-tip-robot-glow {
    0%, 100% { opacity: 0.5; transform: scaleX(1); }
    50% { opacity: 0.9; transform: scaleX(1.08); }
}

@keyframes ti-tip-robot-wave {
    0%, 100% { transform: rotate(-8deg); }
    50% { transform: rotate(22deg); }
}

@keyframes ti-tip-robot-blink {
    0%, 48%, 52%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.15); }
}

@keyframes ti-tip-robot-talk {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.65); }
}

@keyframes ti-tip-antenna-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

@keyframes ti-tip-core-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.75; }
}

@keyframes ti-tip-bubble-pop {
    from { opacity: 0; transform: scale(0.85) translateY(6px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes ti-tip-bubble-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes ti-tip-bubble-text {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes ti-tip-slide-in-next {
    from { opacity: 0; transform: translateX(28px) scale(0.98); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes ti-tip-slide-in-prev {
    from { opacity: 0; transform: translateX(-28px) scale(0.98); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes ti-tip-slide-out-next {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(-24px); }
}

@keyframes ti-tip-slide-out-prev {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(24px); }
}

@keyframes ti-tip-progress-fill {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes ti-tip-icon-pop {
    0% { transform: scale(0.85); opacity: 0.6; }
    60% { transform: scale(1.08); }
    100% { transform: scale(1); opacity: 1; }
}

.ti-call-ai-tips__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin-bottom: 16px;
}

.ti-call-ai-tips__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #b8ecff;
}

.ti-call-ai-tips__label .bi {
    color: #fde68a;
    animation: ti-call-badge-pulse 3s ease-in-out infinite;
}

.ti-call-ai-tips__status {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.72);
}

.ti-call-ai-tips__viewport {
    position: relative;
    min-height: 5.5rem;
}

.ti-call-ai-tips__slides {
    position: relative;
}

.ti-call-ai-tips__slide {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px 18px;
    align-items: start;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    inset: 0;
    visibility: hidden;
}

.ti-call-ai-tips__slide.is-active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
    visibility: visible;
    animation: ti-tip-slide-in-next 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.ti-call-ai-tips__slide.is-exit-next {
    visibility: visible;
    position: absolute;
    animation: ti-tip-slide-out-next 0.4s ease forwards;
}

.ti-call-ai-tips__slide.is-exit-prev {
    visibility: visible;
    position: absolute;
    animation: ti-tip-slide-out-prev 0.4s ease forwards;
}

.ti-call-ai-tips__slide.is-enter-prev {
    animation: ti-tip-slide-in-prev 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.ti-call-ai-tips__slide.is-active .ti-call-ai-tips__icon {
    animation: ti-tip-icon-pop 0.5s ease 0.1s backwards;
}

.ti-call-ai-tips__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(56, 189, 248, 0.2);
    border: 1px solid rgba(125, 211, 252, 0.35);
    color: #e0f7ff;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.ti-call-ai-tips__title {
    margin: 0 0 6px;
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
}

.ti-call-ai-tips__desc {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.95rem;
    line-height: 1.55;
    max-width: 72ch;
}

.ti-call-ai-tips__progress {
    position: relative;
    z-index: 1;
    height: 4px;
    margin-top: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.ti-call-ai-tips__progress-fill {
    display: block;
    height: 100%;
    width: 100%;
    transform-origin: left center;
    transform: scaleX(0);
    border-radius: inherit;
    background: linear-gradient(90deg, #38bdf8, #818cf8, #a78bfa);
}

.ti-call-ai-tips.is-auto .ti-call-ai-tips__progress-fill {
    animation: ti-tip-progress-fill var(--ti-tip-interval, 5.5s) linear forwards;
}

.ti-call-ai-tips__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
}

.ti-call-ai-tips__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #e8f7ff;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ti-call-ai-tips__nav:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(125, 211, 252, 0.45);
    transform: translateY(-1px);
}

.ti-call-ai-tips__dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ti-call-ai-tips__dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.ti-call-ai-tips__dot.is-active {
    background: #7dd3fc;
    transform: scale(1.2);
}

.ti-call-ai-tips__slide--skeleton .ti-call-ai-tips__sk-icon {
    display: block;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0.08) 100%);
    background-size: 200% 100%;
    animation: ti-call-hero-shimmer 1.4s ease-in-out infinite;
}

.ti-call-ai-tips__sk-line {
    display: block;
    height: 12px;
    margin-bottom: 10px;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.14) 50%, rgba(255, 255, 255, 0.06) 100%);
    background-size: 200% 100%;
    animation: ti-call-hero-shimmer 1.4s ease-in-out infinite;
}

.ti-call-ai-tips__sk-line--lg {
    height: 18px;
    width: 55%;
}

.ti-call-ai-tips__sk-line--sm {
    width: 70%;
}

html[data-theme="light"] .ti-call-ai-tips__panel {
    border-color: rgba(27, 45, 78, 0.14);
    background: linear-gradient(135deg, #1e3a5f 0%, #234b78 50%, #2a5f8f 100%);
    box-shadow: 0 16px 40px rgba(27, 45, 78, 0.14);
}

html[data-theme="light"] .ti-call-ai-tips__status {
    color: rgba(255, 255, 255, 0.88);
}

@media (max-width: 640px) {
    .ti-call-ai-tips__layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .ti-call-ai-tips__coach {
        flex-direction: row;
        justify-content: flex-start;
        align-items: flex-end;
        gap: 12px;
    }

    .ti-call-ai-tips__bubble {
        max-width: none;
        flex: 1;
        border-radius: 14px 14px 4px 14px;
    }

    .ti-call-ai-tips__robot {
        flex-shrink: 0;
        transform: scale(0.9);
        transform-origin: bottom center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ti-call-ai-tips__slide.is-active {
        animation: none;
    }

    .ti-call-ai-tips__label .bi,
    .ti-call-ai-tips__slide--skeleton .ti-call-ai-tips__sk-icon,
    .ti-call-ai-tips__sk-line,
    .ti-call-ai-tips__robot,
    .ti-call-ai-tips__robot-arm--right,
    .ti-call-ai-tips__robot-glow,
    .ti-call-ai-tips__robot-eye,
    .ti-call-ai-tips__robot-core,
    .ti-call-ai-tips__robot-antenna::after,
    .ti-call-ai-tips__bubble,
    .ti-call-ai-tips.is-auto .ti-call-ai-tips__progress-fill {
        animation: none !important;
    }
}

.ti-call-hero__lead {
    max-width: none;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.05rem;
    line-height: 1.6;
}

.ti-call-hero__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.ti-call-hero__pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #e8f7ff;
    font-size: 0.82rem;
    font-weight: 700;
}

.ti-call-hero__aside {
    position: relative;
    z-index: 1;
    align-self: center;
}

.ti-call-layout--with-aside {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 400px) !important;
    max-width: none !important;
    width: 100% !important;
    gap: 22px !important;
    align-items: start;
}

.ti-call-page .ti-call-layout--solo {
    grid-template-columns: minmax(0, 1fr) !important;
}

@media (min-width: 1200px) {
    .ti-call-page .ti-call-grid--3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ti-call-page .ti-call-grid--2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1500px) {
    .ti-call-layout--with-aside {
        grid-template-columns: minmax(0, 1.5fr) minmax(320px, 420px) !important;
    }
}

.ti-call-reveal {
    animation: ti-hub-rise 0.6s ease backwards;
}

.ti-call-reveal--delay {
    animation-delay: 0.12s;
}

.ti-call-section {
    padding-bottom: 8px;
}

.ti-call-section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    margin-right: 8px;
    border-radius: 8px;
    background: rgba(59, 171, 212, 0.35);
    color: #fff;
    font-size: 0.85rem;
    vertical-align: middle;
}

.ti-call-sla-badge {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.18);
    border: 1px solid rgba(74, 222, 128, 0.35);
    color: #dcfce7;
    font-style: normal;
    font-weight: 800;
    font-size: 0.8rem;
    white-space: nowrap;
}

.ti-call-input--locked,
.ti-call-field input.ti-call-input--locked[readonly] {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border-color: rgba(27, 45, 78, 0.14) !important;
    cursor: default;
    box-shadow: none !important;
}

.ti-call-submit__hint {
    margin: 0;
    flex: 1 1 200px;
    max-width: 40rem;
    color: rgba(226, 240, 255, 0.95);
    font-size: 0.94rem;
    line-height: 1.55;
    font-weight: 500;
}

.ti-call-submit__hint strong {
    color: #fff;
    font-weight: 700;
}

.ti-call-guide-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ti-call-guide-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(125, 211, 252, 0.35);
}

.ti-call-guide-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(59, 171, 212, 0.22);
    color: #b8ecff;
    font-size: 1.15rem;
}

.ti-call-guide-item strong {
    display: block;
    color: #fff;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.ti-call-guide-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
    line-height: 1.45;
}

.ti-call-card--guide .ti-call-card__head {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ti-call-card--guide .ti-call-guide-list {
    padding: 8px 22px 24px;
}

.ti-call-page .content-body,
main.content .ti-call-page {
    max-width: none;
}

html[data-theme="light"] .ti-call-page .content-body {
    padding-left: 12px;
    padding-right: 12px;
}

@media (max-width: 1100px) {
    .ti-call-layout--with-aside {
        grid-template-columns: 1fr !important;
    }

    .ti-call-hero--open {
        grid-template-columns: 1fr;
    }

    .ti-call-hero__aside {
        justify-self: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ti-call-hero--open,
    .ti-call-reveal,
    .ti-call-hero__glow,
    .ti-call-hero__shimmer,
    .ti-call-hero__anim,
    .ti-call-badge__icon {
        animation: none !important;
    }

    .ti-call-hero__anim,
    .ti-call-badge__icon {
        opacity: 1 !important;
        transform: none !important;
    }

    .ti-call-guide-item:hover {
        transform: none;
    }
}

/* Modo claro — contraste legível */
html[data-theme="light"] .ti-premium-page.ti-call-page {
    background:
        radial-gradient(ellipse 120% 90% at 0% 0%, rgba(59, 171, 212, 0.14), transparent 55%),
        radial-gradient(ellipse 80% 70% at 100% 100%, rgba(34, 112, 170, 0.1), transparent 50%),
        linear-gradient(165deg, #e2e9f2 0%, #eef2f8 48%, #e8edf5 100%) !important;
}

html[data-theme="light"] .ti-call-hero--open {
    border-color: rgba(27, 45, 78, 0.12) !important;
    box-shadow: 0 20px 48px rgba(27, 45, 78, 0.12) !important;
}

html[data-theme="light"] .ti-call-hero__lead {
    color: rgba(255, 255, 255, 0.95) !important;
}

html[data-theme="light"] .ti-call-hero__pill {
    color: #f0f9ff !important;
    background: rgba(255, 255, 255, 0.16) !important;
}

html[data-theme="light"] .ti-call-card {
    background: #ffffff !important;
    border-color: rgba(27, 45, 78, 0.12) !important;
    box-shadow: 0 16px 40px rgba(27, 45, 78, 0.08) !important;
    color: #1b2d4e !important;
}

html[data-theme="light"] .ti-call-card__head {
    background: #f8fafc !important;
    border-bottom-color: rgba(27, 45, 78, 0.1) !important;
}

html[data-theme="light"] .ti-call-card__head span {
    color: #1d4ed8 !important;
}

html[data-theme="light"] .ti-call-card__head h2,
html[data-theme="light"] .ti-call-section-title {
    color: #0f2846 !important;
}

html[data-theme="light"] .ti-call-sla-badge {
    background: rgba(34, 197, 94, 0.12) !important;
    border-color: rgba(22, 101, 52, 0.25) !important;
    color: #166534 !important;
}

html[data-theme="light"] .ti-call-field span {
    color: #0f2846 !important;
}

html[data-theme="light"] .ti-call-field small {
    color: #64748b !important;
}

html[data-theme="light"] .ti-call-field input,
html[data-theme="light"] .ti-call-field select,
html[data-theme="light"] .ti-call-field textarea {
    background: #fff !important;
    border-color: rgba(27, 45, 78, 0.18) !important;
    color: #0f2846 !important;
}

html[data-theme="light"] .ti-call-input--locked,
html[data-theme="light"] .ti-call-field input.ti-call-input--locked[readonly] {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border-color: rgba(27, 45, 78, 0.14) !important;
}

html[data-theme="light"] .ti-call-submit {
    background: linear-gradient(180deg, #f1f5f9 0%, #e8eef6 100%) !important;
    border: 1px solid rgba(27, 45, 78, 0.14) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 10px 24px rgba(27, 45, 78, 0.08) !important;
}

html[data-theme="light"] .ti-call-submit__hint {
    color: #334155 !important;
}

html[data-theme="light"] .ti-call-submit__hint strong {
    color: #0f2846 !important;
}

html[data-theme="light"] .ti-call-submit .ti-call-btn--primary {
    background: linear-gradient(135deg, #1a5f96 0%, #2270aa 45%, #2b8fbe 100%) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    box-shadow:
        0 3px 0 rgba(15, 55, 95, 0.28),
        0 12px 28px rgba(34, 112, 170, 0.38) !important;
}

html[data-theme="light"] .ti-call-submit .ti-call-btn--primary:hover {
    background: linear-gradient(135deg, #1f6dab 0%, #2880bd 45%, #3a9fd4 100%) !important;
    box-shadow:
        0 3px 0 rgba(15, 55, 95, 0.24),
        0 16px 32px rgba(34, 112, 170, 0.45) !important;
}

html[data-theme="light"] .ti-call-submit .ti-call-btn--primary .ti-submit-text {
    color: #fff !important;
}

html[data-theme="light"] .ti-call-guide-item {
    background: #f8fafc !important;
    border-color: rgba(27, 45, 78, 0.1) !important;
}

html[data-theme="light"] .ti-call-guide-item:hover {
    background: #fff !important;
    border-color: rgba(34, 112, 170, 0.25) !important;
}

html[data-theme="light"] .ti-call-guide-item__icon {
    background: rgba(34, 112, 170, 0.12) !important;
    color: #1d4ed8 !important;
}

html[data-theme="light"] .ti-call-guide-item strong {
    color: #0f2846 !important;
}

html[data-theme="light"] .ti-call-guide-item p {
    color: #475569 !important;
}

html[data-theme="light"] .ti-call-section-num {
    background: rgba(34, 112, 170, 0.15) !important;
    color: #1d4ed8 !important;
}

html[data-theme="light"] .ti-call-btn--ghost {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}

html[data-theme="light"] .ti-call-alert--sucesso,
html[data-theme="light"] .ti-call-alert--success {
    color: #166534 !important;
    background: rgba(34, 197, 94, 0.12) !important;
    border: 1px solid rgba(22, 101, 52, 0.22) !important;
}

html[data-theme="light"] .ti-call-alert--erro,
html[data-theme="light"] .ti-call-alert--error,
html[data-theme="light"] .ti-call-alert--danger {
    color: #991b1b !important;
    background: rgba(239, 68, 68, 0.1) !important;
    border: 1px solid rgba(153, 27, 27, 0.22) !important;
}

/* ===== TI DASHBOARD ===== */

.ti-dash-page {
    min-height: calc(100vh - 72px);
    padding: 32px 28px 56px;
    background:
        radial-gradient(circle at 12% 12%, rgba(59,171,212,.16), transparent 26%),
        radial-gradient(circle at 88% 34%, rgba(34,112,170,.20), transparent 28%),
        linear-gradient(135deg, #10233d 0%, #183861 48%, #1d3f6d 100%);
}

.ti-dash-hero,
.ti-dash-panel,
.ti-dash-kpis article {
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 24px 60px rgba(4,14,30,.28);
    backdrop-filter: blur(16px);
}

.ti-dash-hero {
    max-width: 1380px;
    margin: 0 auto 20px;
    padding: 34px;
    border-radius: 32px;
    background:
        radial-gradient(circle at 92% 15%, rgba(59,171,212,.24), transparent 30%),
        linear-gradient(135deg, rgba(20,49,89,.98), rgba(34,112,170,.88));
    color: #fff;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.ti-dash-badge {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    color: #dff6ff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.ti-dash-hero h1 {
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: .95;
}

.ti-dash-hero p {
    margin: 0;
    color: rgba(255,255,255,.78);
}

.ti-dash-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ti-dash-btn {
    min-height: 48px;
    padding: 0 18px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #173257;
    text-decoration: none;
    font-weight: 900;
}

.ti-dash-btn--ghost {
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,.18);
}

.ti-dash-filters {
    max-width: 1380px;
    margin: 0 auto 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ti-dash-filters a {
    padding: 11px 15px;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.82);
    text-decoration: none;
    font-weight: 800;
}

.ti-dash-filters a.is-active {
    background: linear-gradient(135deg, #2270AA, #3BABD4);
    color: #fff;
}

.ti-dash-kpis {
    max-width: 1380px;
    margin: 0 auto 20px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.ti-dash-kpis article {
    min-height: 140px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255,255,255,.10);
}

.ti-dash-kpis span {
    display: block;
    color: #9ee7ff;
    font-weight: 900;
    font-size: 12px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.ti-dash-kpis strong {
    display: block;
    color: #fff;
    font-size: 2.4rem;
    line-height: 1;
    margin-bottom: 10px;
}

.ti-dash-kpis small {
    color: rgba(255,255,255,.68);
    font-weight: 700;
}

.ti-dash-panel {
    max-width: 1380px;
    margin: 0 auto;
    border-radius: 30px;
    background: rgba(255,255,255,.10);
    overflow: hidden;
}

.ti-dash-panel-head {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    border-bottom: 1px solid rgba(255,255,255,.10);
}

.ti-dash-panel-head span {
    color: #8fe3ff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ti-dash-panel-head h2 {
    margin: 8px 0 0;
    color: #fff;
    font-size: 2rem;
}

.ti-dash-search {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ti-dash-search input,
.ti-dash-search select {
    min-height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.92);
    padding: 0 14px;
    color: #173257;
    outline: none;
}

.ti-dash-search input {
    min-width: 320px;
}

.ti-dash-search button {
    min-height: 48px;
    border: 0;
    border-radius: 16px;
    padding: 0 18px;
    background: linear-gradient(135deg, #2270AA, #3BABD4);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.ti-dash-table-wrap {
    overflow-x: auto;
}

.ti-dash-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
}

.ti-dash-table th {
    padding: 16px;
    text-align: left;
    color: #9ee7ff;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    border-bottom: 1px solid rgba(255,255,255,.10);
}

.ti-dash-table td {
    padding: 16px;
    color: rgba(255,255,255,.82);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.ti-dash-table td strong {
    display: block;
    color: #fff;
}

.ti-dash-table td small {
    display: block;
    margin-top: 5px;
    color: rgba(255,255,255,.58);
    max-width: 360px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ti-dash-status {
    display: inline-flex;
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.ti-dash-status--aberto {
    background: rgba(59,171,212,.22);
}

.ti-dash-status--em-andamento {
    background: rgba(245,158,11,.22);
}

.ti-dash-status--aguardando-usuario {
    background: rgba(168,85,247,.22);
}

.ti-dash-status--resolvido,
.ti-dash-status--fechado {
    background: rgba(34,197,94,.22);
}

.ti-dash-open {
    display: inline-flex;
    padding: 9px 13px;
    border-radius: 12px;
    background: #fff;
    color: #173257;
    text-decoration: none;
    font-weight: 900;
}

.ti-dash-empty {
    text-align: center;
    color: rgba(255,255,255,.72);
    padding: 32px !important;
}

@media (max-width: 1200px) {
    .ti-dash-kpis {
        grid-template-columns: repeat(3, 1fr);
    }

    .ti-dash-hero,
    .ti-dash-panel-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 760px) {
    .ti-dash-page {
        padding: 20px 14px 40px;
    }

    .ti-dash-kpis {
        grid-template-columns: 1fr;
    }

    .ti-dash-search,
    .ti-dash-search input,
    .ti-dash-search select,
    .ti-dash-search button {
        width: 100%;
        min-width: 0;
    }
}

/* ===== TI DETALHE / GERENCIAR CHAMADO ===== */

.ti-detail-page {
    min-height: calc(100vh - 72px);
    padding: 32px 28px 56px;
    background:
        radial-gradient(circle at 12% 12%, rgba(59,171,212,.16), transparent 26%),
        radial-gradient(circle at 88% 34%, rgba(34,112,170,.20), transparent 28%),
        linear-gradient(135deg, #10233d 0%, #183861 48%, #1d3f6d 100%);
}

.ti-detail-hero,
.ti-detail-card {
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 24px 60px rgba(4,14,30,.28);
    backdrop-filter: blur(16px);
}

.ti-detail-hero {
    max-width: 1380px;
    margin: 0 auto 20px;
    padding: 34px;
    border-radius: 32px;
    background:
        radial-gradient(circle at 92% 15%, rgba(59,171,212,.24), transparent 30%),
        linear-gradient(135deg, rgba(20,49,89,.98), rgba(34,112,170,.88));
    color: #fff;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
}

.ti-detail-badge,
.ti-detail-kicker,
.ti-detail-form-head span {
    color: #8fe3ff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ti-detail-hero h1 {
    margin: 8px 0;
    color: #fff;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: .95;
}

.ti-detail-hero p {
    margin: 0;
    color: rgba(255,255,255,.76);
}

.ti-detail-grid {
    max-width: 1380px;
    margin: 0 auto 20px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
    gap: 20px;
}

.ti-detail-card {
    border-radius: 30px;
    padding: 26px;
    background: rgba(255,255,255,.10);
    color: #fff;
}

.ti-detail-head,
.ti-detail-card-title-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.ti-detail-head h2,
.ti-detail-form-head h2 {
    margin: 8px 0 0;
    color: #fff;
    font-size: 2rem;
}

.ti-detail-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ti-detail-pill {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.ti-detail-pill--aberto {
    background: rgba(59,171,212,.24);
}

.ti-detail-pill--em-andamento {
    background: rgba(245,158,11,.24);
}

.ti-detail-pill--aguardando-usuario {
    background: rgba(168,85,247,.24);
}

.ti-detail-pill--resolvido,
.ti-detail-pill--fechado {
    background: rgba(34,197,94,.24);
}

.ti-detail-pill--urgencia {
    background: rgba(250,204,21,.20);
}

.ti-detail-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.ti-detail-info-grid div {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.10);
}

.ti-detail-info-grid small,
.ti-detail-description small {
    display: block;
    color: rgba(255,255,255,.58);
    font-weight: 800;
    margin-bottom: 6px;
}

.ti-detail-info-grid strong {
    color: #fff;
    font-size: .95rem;
    word-break: break-word;
}

.ti-detail-description {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.10);
}

.ti-detail-description h3 {
    margin: 0 0 16px;
    color: #fff;
    font-size: 1.2rem;
}

.ti-detail-description p {
    margin: 0;
    color: rgba(255,255,255,.78);
    line-height: 1.7;
}

.ti-detail-form {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.ti-detail-form label {
    display: grid;
    gap: 8px;
}

.ti-detail-form label span {
    color: rgba(255,255,255,.88);
    font-size: 13px;
    font-weight: 900;
}

.ti-detail-form textarea,
.ti-detail-form select {
    width: 100%;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 18px;
    background: rgba(255,255,255,.94);
    color: #173257;
    font: inherit;
    outline: none;
    box-sizing: border-box;
}

.ti-detail-form textarea {
    min-height: 170px;
    padding: 16px;
    resize: vertical;
}

.ti-detail-form select {
    min-height: 52px;
    padding: 0 14px;
}

.ti-detail-form textarea:focus,
.ti-detail-form select:focus {
    background: #fff;
    border-color: rgba(59,171,212,.70);
    box-shadow: 0 0 0 4px rgba(59,171,212,.16);
}

.ti-detail-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ti-detail-check {
    display: flex !important;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px !important;
    color: rgba(255,255,255,.78);
    font-weight: 800;
}

.ti-detail-check input {
    width: 18px;
    height: 18px;
}

.ti-detail-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ti-detail-btn {
    min-height: 50px;
    padding: 0 18px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 900;
    cursor: pointer;
    border: 0;
}

.ti-detail-btn--primary {
    background: linear-gradient(135deg, #2270AA, #3BABD4);
    color: #fff;
    box-shadow: 0 16px 34px rgba(34,112,170,.28);
}

.ti-detail-btn--ghost {
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,.16);
}

.ti-detail-history {
    max-width: 1380px;
    margin: 0 auto;
}

.ti-detail-empty {
    margin-top: 16px;
    padding: 20px;
    border-radius: 18px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.72);
}

.ti-timeline {
    margin-top: 20px;
    display: grid;
    gap: 14px;
}

.ti-timeline-item {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 14px;
}

.ti-timeline-dot {
    width: 14px;
    height: 14px;
    margin-top: 18px;
    border-radius: 999px;
    background: #3BABD4;
    box-shadow: 0 0 0 6px rgba(59,171,212,.16);
}

.ti-timeline-content {
    padding: 16px;
    border-radius: 20px;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.10);
}

.ti-timeline-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.ti-timeline-top strong {
    color: #fff;
}

.ti-timeline-top span,
.ti-timeline-content em {
    color: rgba(255,255,255,.60);
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
}

.ti-timeline-content p {
    margin: 10px 0 0;
    color: rgba(255,255,255,.78);
    line-height: 1.6;
}

.ti-detail-alert {
    max-width: 1380px;
    margin: 0 auto 18px;
    padding: 14px 18px;
    border-radius: 18px;
    font-weight: 900;
}

.ti-detail-alert--sucesso,
.ti-detail-alert--success {
    background: rgba(34,197,94,.16);
    color: #bbf7d0;
    border: 1px solid rgba(34,197,94,.22);
}

.ti-detail-alert--erro,
.ti-detail-alert--error {
    background: rgba(239,68,68,.16);
    color: #fecaca;
    border: 1px solid rgba(239,68,68,.22);
}

@media (max-width: 1180px) {
    .ti-detail-grid,
    .ti-detail-info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ti-detail-hero {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 760px) {
    .ti-detail-page {
        padding: 20px 14px 40px;
    }

    .ti-detail-grid,
    .ti-detail-info-grid,
    .ti-detail-form-grid {
        grid-template-columns: 1fr;
    }

    .ti-detail-card,
    .ti-detail-hero {
        padding: 22px;
    }
}

/* ===== TI TERMOS ===== */

.ti-terms-page {
    min-height: calc(100vh - 72px);
    padding: 32px 28px 56px;
    background:
        radial-gradient(circle at 12% 12%, rgba(59,171,212,.16), transparent 26%),
        radial-gradient(circle at 88% 34%, rgba(34,112,170,.20), transparent 28%),
        linear-gradient(135deg, #10233d 0%, #183861 48%, #1d3f6d 100%);
}

.ti-terms-hero,
.ti-terms-card {
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 24px 60px rgba(4,14,30,.28);
    backdrop-filter: blur(16px);
}

.ti-terms-hero {
    max-width: 1380px;
    margin: 0 auto 20px;
    padding: 34px;
    border-radius: 32px;
    background:
        radial-gradient(circle at 92% 15%, rgba(59,171,212,.24), transparent 30%),
        linear-gradient(135deg, rgba(20,49,89,.98), rgba(34,112,170,.88));
    color: #fff;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
}

.ti-terms-badge,
.ti-terms-card-head span {
    color: #8fe3ff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ti-terms-hero h1 {
    margin: 8px 0;
    color: #fff;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: .95;
}

.ti-terms-hero p {
    margin: 0;
    color: rgba(255,255,255,.76);
}

.ti-terms-grid {
    max-width: 1380px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    gap: 20px;
}

.ti-terms-card {
    border-radius: 30px;
    padding: 26px;
    background: rgba(255,255,255,.10);
    color: #fff;
}

.ti-terms-card-head {
    margin-bottom: 22px;
}

.ti-terms-card-head h2 {
    margin: 8px 0 0;
    color: #fff;
    font-size: 2rem;
}

.ti-terms-form {
    display: grid;
    gap: 18px;
}

.ti-terms-form-grid {
    display: grid;
    gap: 16px;
}

.ti-terms-form-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ti-terms-form label {
    display: grid;
    gap: 8px;
}

.ti-terms-form label span,
.ti-terms-field--readonly > span {
    color: rgba(255,255,255,.88);
    font-size: 13px;
    font-weight: 900;
}

.ti-terms-readonly-hint {
    margin: 0 0 1rem;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.45;
    color: rgba(224, 242, 254, 0.92);
    background: rgba(59, 171, 212, 0.12);
    border: 1px solid rgba(125, 211, 252, 0.28);
}

.ti-terms-field--readonly {
    display: grid;
    gap: 8px;
}

.ti-terms-field--full {
    grid-column: 1 / -1;
}

.ti-terms-field-value {
    margin: 0;
    min-height: 54px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.98);
    border: 1px solid rgba(203, 213, 225, 0.85);
    color: #173257;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.45;
    box-shadow: none;
    cursor: default;
    user-select: text;
}

.ti-terms-field-value--multiline {
    min-height: 120px;
    white-space: pre-wrap;
}

.ti-terms-form--readonly .ti-terms-btn--primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.ti-terms-form input,
.ti-terms-form textarea {
    width: 100%;
    min-height: 54px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 18px;
    background: rgba(255,255,255,.94);
    color: #173257;
    font: inherit;
    outline: none;
    padding: 0 16px;
    box-sizing: border-box;
}

.ti-terms-form textarea {
    min-height: 120px;
    padding: 16px;
    resize: vertical;
}

.ti-terms-form input:focus,
.ti-terms-form textarea:focus {
    background: #fff;
    border-color: rgba(59,171,212,.70);
    box-shadow: 0 0 0 4px rgba(59,171,212,.16);
}

.ti-terms-note {
    padding: 15px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.10);
    color: rgba(255,255,255,.72);
    font-weight: 700;
    line-height: 1.5;
}

.ti-terms-actions {
    display: flex;
    justify-content: flex-end;
}

.ti-terms-btn {
    min-height: 50px;
    padding: 0 18px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 900;
    cursor: pointer;
    border: 0;
}

.ti-terms-btn--primary {
    background: linear-gradient(135deg, #2270AA, #3BABD4);
    color: #fff;
    box-shadow: 0 16px 34px rgba(34,112,170,.28);
}

.ti-terms-btn--ghost {
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,.16);
}

.ti-terms-list {
    display: grid;
    gap: 12px;
    max-height: 560px;
    overflow: auto;
    padding-right: 4px;
}

.ti-terms-list::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.ti-terms-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.10);
}

.ti-terms-item strong {
    display: block;
    color: #fff;
    margin-bottom: 6px;
}

.ti-terms-item span,
.ti-terms-item small {
    display: block;
    color: rgba(255,255,255,.66);
    line-height: 1.4;
}

.ti-terms-item em {
    align-self: flex-start;
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(59,171,212,.20);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    font-style: normal;
}

.ti-terms-item--pdf em {
    background: rgba(239,68,68,.22);
}

.ti-terms-item-pdf-tail {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    align-self: flex-start;
}

.ti-terms-pdf-remover-form {
    margin: 0;
}

.ti-terms-empty {
    padding: 20px;
    border-radius: 20px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.72);
}

.ti-terms-empty strong {
    display: block;
    color: #fff;
    margin-bottom: 6px;
}

.ti-terms-painel-hint {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(59, 171, 212, 0.12);
    border: 1px solid rgba(143, 227, 255, 0.22);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.88rem;
    line-height: 1.45;
}

.ti-terms-painel-hint strong {
    color: #fff;
}

.ti-terms-painel-hint--warn {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.35);
    color: rgba(255, 248, 220, 0.95);
}

.ti-terms-item--painel {
    border-color: rgba(143, 227, 255, 0.18);
}

.ti-terms-item--notebook em {
    background: rgba(34, 112, 170, 0.35);
}

.ti-terms-item--atual {
    border-color: rgba(143, 227, 255, 0.45) !important;
    background: rgba(59, 171, 212, 0.14) !important;
    box-shadow: 0 0 0 1px rgba(143, 227, 255, 0.12) inset;
}

html[data-theme="light"] .ti-terms-item--atual {
    background: rgba(34, 112, 170, 0.08) !important;
    border-color: rgba(34, 112, 170, 0.28) !important;
}

.ti-terms-item--monitor em {
    background: rgba(99, 102, 241, 0.28);
}

.ti-terms-alert {
    max-width: 1380px;
    margin: 0 auto 18px;
    padding: 14px 18px;
    border-radius: 18px;
    font-weight: 900;
}

.ti-terms-alert--sucesso,
.ti-terms-alert--success {
    background: rgba(34,197,94,.16);
    color: #bbf7d0;
    border: 1px solid rgba(34,197,94,.22);
}

.ti-terms-alert--erro,
.ti-terms-alert--error {
    background: rgba(239,68,68,.16);
    color: #fecaca;
    border: 1px solid rgba(239,68,68,.22);
}

@media (max-width: 1050px) {
    .ti-terms-grid,
    .ti-terms-form-grid--2 {
        grid-template-columns: 1fr;
    }

    .ti-terms-hero {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 760px) {
    .ti-terms-page {
        padding: 20px 14px 40px;
    }

    .ti-terms-card,
    .ti-terms-hero {
        padding: 22px;
    }
}


/* COMERCIAL — dashboard (hero + equipe + Power BI) */

.comercial-page {
    position: relative;
    padding: clamp(10px, 1.5vw, 20px) clamp(4px, 1vw, 12px) 48px;
    max-width: none;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.comercial-page__ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 60% 40% at 12% 4%, rgba(56, 189, 248, 0.10), transparent 55%),
        radial-gradient(ellipse 50% 40% at 92% 0%, rgba(167, 139, 250, 0.10), transparent 55%);
}

.comercial-page > * {
    position: relative;
    z-index: 1;
}

.comercial-hero {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: clamp(18px, 3vw, 26px);
    padding: clamp(24px, 4vw, 38px) clamp(22px, 4vw, 40px);
    border-radius: 24px;
    margin-bottom: clamp(20px, 2.5vw, 28px);
    color: #fff;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(22, 42, 78, 0.96) 0%, rgba(12, 28, 54, 0.98) 42%, rgba(18, 36, 68, 0.95) 100%);
    border: 1px solid rgba(125, 211, 252, 0.22);
    box-shadow:
        0 28px 64px rgba(4, 10, 28, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 -1px 0 rgba(129, 140, 248, 0.15) inset;
}

.comercial-hero__gridline {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.comercial-hero__glow {
    position: absolute;
    inset: -45%;
    background:
        radial-gradient(circle at 24% 18%, rgba(56, 189, 248, 0.28), transparent 40%),
        radial-gradient(circle at 80% 60%, rgba(167, 139, 250, 0.22), transparent 45%);
    pointer-events: none;
}

.comercial-hero__icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(56px, 8vw, 72px);
    height: clamp(56px, 8vw, 72px);
    border-radius: 20px;
    font-size: clamp(26px, 3.8vw, 32px);
    background: linear-gradient(160deg, rgba(56, 189, 248, 0.25) 0%, rgba(99, 102, 241, 0.18) 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
        0 12px 36px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    flex-shrink: 0;
}

.comercial-hero__copy {
    flex: 1;
    min-width: 0;
}

.comercial-hero__kicker {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(186, 230, 253, 0.92);
}

.comercial-hero__title {
    margin: 0 0 10px;
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.1;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.comercial-hero__lead {
    margin: 0;
    max-width: min(72ch, 100%);
    color: rgba(224, 242, 254, 0.9);
    font-size: 15px;
    line-height: 1.55;
}

.comercial-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.comercial-hero__pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgba(240, 249, 255, 0.95);
    background: rgba(8, 24, 48, 0.55);
    border: 1px solid rgba(125, 211, 252, 0.28);
    backdrop-filter: blur(6px);
}

.comercial-hero__pill i {
    font-size: 1.05em;
    opacity: 0.9;
}

/* Hero Comercial — animação de entrada e ambiente */
.comercial-hero__shimmer {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        105deg,
        transparent 32%,
        rgba(255, 255, 255, 0.03) 42%,
        rgba(255, 255, 255, 0.22) 50%,
        rgba(255, 255, 255, 0.03) 58%,
        transparent 68%
    );
    background-size: 240% 100%;
}

.comercial-hero__scan {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.comercial-hero__scan::after {
    content: '';
    position: absolute;
    left: -30%;
    top: 0;
    width: 28%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.18), transparent);
    transform: skewX(-18deg);
}

.comercial-hero__icon-wrap,
.comercial-hero__copy {
    position: relative;
    z-index: 2;
}

@keyframes comercial-hero-card-in {
    from {
        opacity: 0;
        transform: translateY(22px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes comercial-hero-reveal {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes comercial-hero-glow-drift {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(5%, -4%) scale(1.08);
    }
}

@keyframes comercial-hero-grid-drift {
    0% {
        background-position: 0 0, 0 0;
    }
    100% {
        background-position: 48px 48px, 48px 48px;
    }
}

@keyframes comercial-hero-shimmer-sweep {
    0%, 100% {
        background-position: 200% 0;
    }
    50% {
        background-position: -200% 0;
    }
}

@keyframes comercial-hero-scan-sweep {
    0% {
        left: -35%;
    }
    100% {
        left: 115%;
    }
}

@keyframes comercial-hero-icon-float {
    0%, 100% {
        transform: translateY(0);
        box-shadow:
            0 12px 36px rgba(0, 0, 0, 0.35),
            0 0 0 1px rgba(255, 255, 255, 0.06) inset,
            0 0 20px rgba(56, 189, 248, 0.2);
    }
    50% {
        transform: translateY(-8px);
        box-shadow:
            0 20px 44px rgba(0, 0, 0, 0.42),
            0 0 0 1px rgba(255, 255, 255, 0.1) inset,
            0 0 40px rgba(56, 189, 248, 0.45);
    }
}

@keyframes comercial-hero-icon-draw {
    0%, 100% {
        transform: scale(1);
    }
    45% {
        transform: scale(1.12);
    }
}

@keyframes comercial-hero-border-pulse {
    0%, 100% {
        box-shadow:
            0 28px 64px rgba(4, 10, 28, 0.55),
            0 0 0 1px rgba(255, 255, 255, 0.05) inset,
            0 -1px 0 rgba(129, 140, 248, 0.15) inset,
            0 0 0 0 rgba(56, 189, 248, 0);
    }
    50% {
        box-shadow:
            0 32px 72px rgba(4, 10, 28, 0.58),
            0 0 0 1px rgba(255, 255, 255, 0.08) inset,
            0 -1px 0 rgba(129, 140, 248, 0.22) inset,
            0 0 28px 4px rgba(56, 189, 248, 0.35);
    }
}

.comercial-hero--animated {
    animation:
        comercial-hero-card-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both,
        comercial-hero-border-pulse 3.5s ease-in-out 0.9s infinite;
}

.comercial-hero--animated .comercial-hero__glow {
    animation: comercial-hero-glow-drift 10s ease-in-out infinite;
}

.comercial-hero--animated .comercial-hero__gridline {
    opacity: 0.09;
    animation: comercial-hero-grid-drift 18s linear infinite;
}

.comercial-hero--animated .comercial-hero__shimmer {
    animation: comercial-hero-shimmer-sweep 5.5s ease-in-out infinite;
}

.comercial-hero--animated .comercial-hero__scan::after {
    animation: comercial-hero-scan-sweep 4.8s ease-in-out infinite;
}

.comercial-hero__reveal {
    opacity: 0;
}

.comercial-hero--animated .comercial-hero__reveal {
    animation: comercial-hero-reveal 0.78s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.comercial-hero--animated .comercial-hero__icon-wrap.comercial-hero__reveal {
    animation:
        comercial-hero-reveal 0.78s cubic-bezier(0.22, 1, 0.36, 1) 0.12s forwards,
        comercial-hero-icon-float 3.6s ease-in-out 1s infinite;
}

.comercial-hero--animated .comercial-hero__icon-wrap i {
    display: inline-block;
    animation: comercial-hero-icon-draw 2.8s ease-in-out 1.1s infinite;
}

.comercial-hero__reveal--1 { animation-delay: 0.12s; }
.comercial-hero__reveal--2 { animation-delay: 0.24s; }
.comercial-hero__reveal--3 { animation-delay: 0.36s; }
.comercial-hero__reveal--4 { animation-delay: 0.48s; }
.comercial-hero__reveal--5 { animation-delay: 0.6s; }
.comercial-hero__reveal--6 { animation-delay: 0.72s; }

.comercial-hero--animated .comercial-hero__icon-wrap.comercial-hero__reveal--1 {
    animation-delay: 0.12s, 1s;
}

.comercial-hero--static .comercial-hero__reveal,
.comercial-hero--static {
    opacity: 1;
    animation: none !important;
    transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .comercial-hero--animated,
    .comercial-hero--animated .comercial-hero__glow,
    .comercial-hero--animated .comercial-hero__gridline,
    .comercial-hero--animated .comercial-hero__shimmer,
    .comercial-hero--animated .comercial-hero__scan::after,
    .comercial-hero--animated .comercial-hero__icon-wrap,
    .comercial-hero--animated .comercial-hero__icon-wrap i,
    .comercial-hero--animated .comercial-hero__reveal,
    .comercial-hero--animated .comercial-hero__icon-wrap.comercial-hero__reveal {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Hero dentro do top bar (layout igual Operações) */
@media (min-width: 1080px) {
    .comercial-page .operacoes-top-bar__primary {
        min-width: 0;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .comercial-page .operacoes-top-bar__primary .comercial-hero {
        margin-bottom: 0;
        flex: 1 1 auto;
        min-height: min-content;
    }
}

.comercial-section-eyebrow {
    margin: 0 0 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(125, 211, 252, 0.75);
}

/* Workspace: organograma (esquerda) + Power BI (direita) */
.comercial-workspace {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(16px, 2vw, 22px);
    align-items: stretch;
}

@media (min-width: 1080px) {
    .comercial-workspace--with-bi {
        grid-template-columns: minmax(320px, 0.6fr) minmax(520px, 1.55fr);
    }
}

.comercial-org-panel {
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 140px),
        linear-gradient(165deg, #122d4f 0%, #0e243f 55%, #0a1c32 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 48px rgba(5, 15, 35, 0.45);
    overflow: hidden;
    min-height: 0;
}

.comercial-org-panel__head {
    padding: clamp(18px, 2.5vw, 24px) clamp(20px, 2.5vw, 28px) 4px;
}

.comercial-org-panel__title {
    margin: 0 0 6px;
    font-size: clamp(17px, 1.6vw, 20px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #f0f9ff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    line-height: 1.2;
}

.comercial-org-panel__title i {
    color: rgba(125, 211, 252, 0.9);
    font-size: 0.95em;
}

.comercial-org-panel__desc {
    margin: 0;
    font-size: 13px;
    color: rgba(186, 210, 235, 0.85);
    line-height: 1.5;
}

.comercial-organograma {
    padding: clamp(16px, 2vw, 24px) clamp(16px, 2vw, 28px) clamp(22px, 3vw, 32px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-height: 0;
}

/* Power BI panel */
.comercial-bi-panel {
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(25, 56, 108, 0.9) 0%, rgba(16, 38, 78, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 44px rgba(4, 12, 32, 0.45);
    min-height: clamp(520px, 72vh, 880px);
}

.comercial-bi-panel__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 14px;
    padding: 16px 20px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.comercial-bi-panel__title {
    margin: 0;
    font-size: clamp(16px, 1.45vw, 19px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #f0f9ff;
    line-height: 1.25;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.comercial-bi-panel__title i {
    color: rgba(125, 211, 252, 0.9);
    font-size: 0.95em;
}

.comercial-bi-panel__actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.comercial-bi-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 11px;
    font-size: 12.5px;
    font-weight: 800;
    text-decoration: none;
    color: #0c182e;
    background: linear-gradient(135deg, #e0f2fe 0%, #7dd3fc 40%, #38bdf8 100%);
    border: 1px solid rgba(14, 165, 233, 0.45);
    box-shadow: 0 8px 22px rgba(8, 47, 73, 0.25);
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.comercial-bi-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(8, 47, 73, 0.32);
}

.comercial-bi-btn--ghost {
    color: #e0f2fe;
    background: rgba(15, 36, 70, 0.55);
    border: 1px solid rgba(125, 211, 252, 0.32);
    box-shadow: none;
}

.comercial-bi-btn--ghost:hover {
    background: rgba(20, 48, 90, 0.7);
    box-shadow: 0 6px 18px rgba(4, 12, 32, 0.4);
}

.comercial-bi-panel__frame {
    flex: 1;
    min-height: 0;
    background: rgba(8, 20, 42, 0.95);
}

.comercial-bi-panel__frame iframe {
    width: 100%;
    height: 100%;
    min-height: 480px;
    display: block;
    border: 0;
}

.comercial-bi-panel__frame--empty {
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: linear-gradient(180deg, rgba(241, 245, 249, 0.98) 0%, rgba(226, 232, 240, 0.95) 100%);
}

.comercial-bi-panel__placeholder {
    padding: clamp(20px, 3vw, 28px);
    align-self: center;
    width: 100%;
    max-width: 640px;
    box-sizing: border-box;
}

.comercial-bi-panel__placeholder-title {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.comercial-bi-panel__placeholder-text {
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 1.55;
    color: #334155;
}

.comercial-bi-panel__placeholder-text strong {
    color: #0f172a;
}

.comercial-bi-panel__placeholder-text code {
    font-size: 0.88em;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.08);
    word-break: break-all;
    color: #0f172a;
}

@media (max-width: 1079px) {
    .comercial-bi-panel {
        min-height: clamp(440px, 58vh, 640px);
    }
}

.org-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: min(100%, 1080px);
    margin: 0 auto;
}

/* Variante compacta para uso em sidebar/coluna estreita */
.org-tree--sidebar {
    min-width: 0;
    width: 100%;
}

.org-tree--sidebar .org-hub {
    max-width: 100%;
}

.org-tree--sidebar .org-hub__cross {
    display: none;
}

.org-tree--sidebar .org-hub__columns {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 0;
}

.org-tree--sidebar .org-card {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.org-tree--sidebar .org-card--executive {
    min-width: 0;
    padding: 18px 20px;
}

.org-tree--sidebar .org-card--member {
    min-width: 0;
    padding: 12px 16px;
}

.org-tree--sidebar .org-branch__stem {
    height: 20px;
    margin-bottom: 8px;
}

.org-tree--sidebar .org-spine--down {
    height: 26px;
}

.org-tree--sidebar .org-team {
    gap: 10px;
}

.org-tree--sidebar .org-stack {
    gap: 14px;
}

.org-tree--sidebar .org-card__name {
    font-size: 15.5px;
}

.org-tree--sidebar .org-card--executive .org-card__name {
    font-size: 17px;
}

.org-tree--sidebar .org-card--member .org-card__name {
    font-size: 14px;
}

.org-tree--sidebar .org-card__role {
    font-size: 13px;
}

.org-tree--sidebar .org-card--member .org-card__role {
    font-size: 12.5px;
}

.org-tier {
    display: flex;
    justify-content: center;
    width: 100%;
}

.org-tier--hub {
    align-items: stretch;
}

/* Conector vertical entre níveis */
.org-spine {
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.95), rgba(14, 165, 233, 0.65));
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
}

.org-spine--down {
    height: 36px;
    margin: 0 auto;
}

/* Cards */
.org-card {
    text-align: center;
    border-radius: 16px;
    padding: 18px 22px;
    min-width: min(220px, 88vw);
    max-width: 320px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
    border: 1px solid rgba(14, 116, 184, 0.22);
    box-shadow:
        0 10px 28px rgba(5, 25, 55, 0.18),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.org-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 16px 40px rgba(5, 25, 55, 0.22),
        0 1px 0 rgba(255, 255, 255, 0.95) inset;
    border-color: rgba(56, 189, 248, 0.45);
}

.org-card--executive {
    min-width: min(260px, 90vw);
    padding: 22px 26px;
    background: linear-gradient(145deg, #ffffff 0%, #eef6ff 55%, #e8f2fc 100%);
    border: 1px solid rgba(2, 132, 199, 0.35);
    box-shadow:
        0 12px 36px rgba(3, 80, 130, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.org-card--executive::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    margin: 0 auto 14px;
    border-radius: 4px;
    background: linear-gradient(90deg, #0ea5e9, #6366f1);
}

.org-card__label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 8px;
}

.org-card__name {
    display: block;
    color: #0c4a6e;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 6px;
}

.org-card--executive .org-card__name {
    font-size: 19px;
    color: #0a3d5c;
}

.org-card__role {
    display: block;
    color: #475569;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
}

.org-card--member {
    min-width: min(180px, 85vw);
    padding: 14px 18px;
}

.org-card--member .org-card__name {
    font-size: 15px;
}

.org-card--member .org-card__role {
    font-size: 13px;
    color: #64748b;
}

/* Hub: barra horizontal + três colunas */
.org-hub {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.org-hub__cross {
    position: relative;
    width: 100%;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.org-hub__hline {
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.85) 10%, rgba(56, 189, 248, 0.85) 90%, transparent);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.org-hub__columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 3vw, 32px);
    width: 100%;
    padding-top: 8px;
}

.org-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.org-branch__stem {
    width: 3px;
    height: 28px;
    border-radius: 3px;
    margin-bottom: 10px;
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.9), rgba(56, 189, 248, 0.45));
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.org-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.org-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding-top: 4px;
    border-top: 1px dashed rgba(148, 163, 184, 0.45);
    margin-top: 4px;
}

@media (max-width: 900px) {
    .org-hub__hline {
        left: 8%;
        right: 8%;
    }

    .org-hub__columns {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .org-hub__cross {
        display: none;
    }

    .org-branch__stem {
        display: none;
    }

    .org-team {
        border-top-style: solid;
        border-color: rgba(148, 163, 184, 0.3);
    }
}

@media (prefers-reduced-motion: reduce) {
    .org-card {
        transition: none;
    }

    .org-card:hover {
        transform: none;
    }
}

/* OPERAÇÕES — página (layout refinado, equipe regional, planilhas) */

.operacoes-page {
    position: relative;
    padding: clamp(10px, 1.5vw, 20px) clamp(4px, 1vw, 12px) 48px;
    max-width: none;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.operacoes-page__ambient {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.5;
    background:
        radial-gradient(ellipse 85% 50% at 8% -5%, rgba(56, 189, 248, 0.22), transparent 52%),
        radial-gradient(ellipse 70% 45% at 95% 5%, rgba(167, 139, 250, 0.18), transparent 48%),
        radial-gradient(ellipse 75% 42% at 50% 100%, rgba(14, 165, 233, 0.12), transparent 50%),
        linear-gradient(180deg, rgba(8, 18, 38, 0.4) 0%, transparent 35%);
}

.operacoes-page__noise {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

.operacoes-page > * {
    position: relative;
    z-index: 1;
}

.operacoes-shell {
    display: flex;
    flex-direction: column;
    gap: clamp(18px, 2.2vw, 26px);
    width: 100%;
    max-width: none;
}

.operacoes-top-bar {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(16px, 2.2vw, 22px);
    align-items: start;
}

@media (min-width: 1080px) {
    /* Coluna do Power BI mais larga que o bloco Operações (hero), estilo dashboard */
    .operacoes-top-bar--with-bi {
        grid-template-columns: minmax(260px, 0.68fr) minmax(380px, 1.42fr);
        gap: clamp(18px, 2.2vw, 24px);
        align-items: stretch;
    }

    .operacoes-top-bar__bi {
        position: sticky;
        top: calc(72px + 16px + env(safe-area-inset-top, 0px));
        align-self: stretch;
        min-height: 0;
    }

    .operacoes-top-bar__primary {
        min-width: 0;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .operacoes-top-bar__primary .operacoes-hero {
        margin-bottom: 0;
        flex: 1 1 auto;
        min-height: min-content;
    }
}

.operacoes-bi-rail {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: min(440px, 52vh);
    max-height: min(620px, 72vh);
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(25, 56, 108, 0.9) 0%, rgba(16, 38, 78, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 44px rgba(4, 12, 32, 0.45);
    backdrop-filter: blur(10px);
}

.operacoes-bi-rail__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 14px;
    padding: 16px 18px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.operacoes-bi-rail__title {
    margin: 0;
    font-size: clamp(15px, 1.35vw, 17px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #f0f9ff;
    line-height: 1.25;
}

.operacoes-bi-rail__frame {
    flex: 1;
    min-height: 0;
    background: rgba(8, 20, 42, 0.95);
}

.operacoes-bi-rail__frame iframe {
    width: 100%;
    height: 100%;
    min-height: 280px;
    display: block;
    border: 0;
}

.operacoes-bi-rail__frame--empty {
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: linear-gradient(180deg, rgba(241, 245, 249, 0.98) 0%, rgba(226, 232, 240, 0.95) 100%);
}

.operacoes-bi-rail__placeholder {
    padding: clamp(18px, 3vw, 26px);
    align-self: center;
    width: 100%;
    box-sizing: border-box;
}

.operacoes-bi-rail__placeholder-title {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.operacoes-bi-rail__placeholder-text {
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 1.55;
    color: #334155;
}

.operacoes-bi-rail__placeholder-text strong {
    color: #0f172a;
}

.operacoes-bi-rail__code {
    font-size: 0.88em;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.08);
    word-break: break-all;
    color: #0f172a;
}

.operacoes-bi-rail__placeholder-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    color: #0c182e;
    background: linear-gradient(135deg, #e0f2fe 0%, #7dd3fc 40%, #38bdf8 100%);
    border: 1px solid rgba(14, 165, 233, 0.45);
    box-shadow: 0 6px 18px rgba(8, 47, 73, 0.2);
}

.operacoes-bi-rail__placeholder-btn:hover {
    box-shadow: 0 8px 22px rgba(8, 47, 73, 0.28);
}

.operacoes-bi-open--compact {
    padding: 9px 14px;
    font-size: 12px;
    border-radius: 11px;
}

@media (max-width: 1079px) {
    .operacoes-bi-rail {
        min-height: min(360px, 46vh);
        max-height: min(520px, 58vh);
    }
}

.operacoes-hero {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: clamp(18px, 3vw, 26px);
    padding: clamp(26px, 4.5vw, 40px) clamp(24px, 5vw, 44px);
    border-radius: 24px;
    margin-bottom: clamp(26px, 3.5vw, 36px);
    color: #fff;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(22, 42, 78, 0.96) 0%, rgba(12, 28, 54, 0.98) 42%, rgba(18, 36, 68, 0.95) 100%);
    border: 1px solid rgba(125, 211, 252, 0.22);
    box-shadow:
        0 28px 64px rgba(4, 10, 28, 0.58),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 -1px 0 rgba(129, 140, 248, 0.15) inset;
}

.operacoes-hero__gridline {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.operacoes-hero__glow {
    position: absolute;
    inset: -45%;
    background:
        radial-gradient(circle at 28% 18%, rgba(56, 189, 248, 0.28), transparent 40%),
        radial-gradient(circle at 78% 55%, rgba(167, 139, 250, 0.2), transparent 45%);
    pointer-events: none;
}

.operacoes-hero__icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(58px, 9vw, 76px);
    height: clamp(58px, 9vw, 76px);
    border-radius: 20px;
    font-size: clamp(28px, 4vw, 34px);
    background: linear-gradient(160deg, rgba(56, 189, 248, 0.25) 0%, rgba(99, 102, 241, 0.18) 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
        0 12px 36px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    flex-shrink: 0;
}

.operacoes-hero__copy {
    flex: 1;
    min-width: 0;
}

.operacoes-hero__kicker {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(186, 230, 253, 0.92);
}

.operacoes-hero__title {
    margin: 0 0 10px;
    font-size: clamp(28px, 4.2vw, 40px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.08;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.operacoes-hero__lead {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(224, 242, 254, 0.9);
    max-width: min(72ch, 100%);
}

.operacoes-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.operacoes-hero__pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgba(240, 249, 255, 0.95);
    background: rgba(8, 24, 48, 0.55);
    border: 1px solid rgba(125, 211, 252, 0.28);
    backdrop-filter: blur(6px);
}

.operacoes-hero__pill i {
    font-size: 1.05em;
    opacity: 0.9;
}

.operacoes-flow {
    display: flex;
    flex-direction: column;
    gap: clamp(22px, 3.2vw, 36px);
    margin-top: 0;
}

.operacoes-panel--matriculas {
    overflow: hidden;
}

.operacoes-panel__head--matriculas {
    border-bottom: 1px solid rgba(94, 184, 255, 0.12);
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.06) 0%, transparent 100%);
}

.operacoes-panel__desc--tight {
    margin-bottom: 0;
}

.operacoes-bi-open {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    color: #0c182e;
    background: linear-gradient(135deg, #e0f2fe 0%, #7dd3fc 40%, #38bdf8 100%);
    border: 1px solid rgba(14, 165, 233, 0.45);
    box-shadow: 0 8px 22px rgba(8, 47, 73, 0.25);
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.operacoes-bi-open:hover {
    box-shadow: 0 10px 28px rgba(8, 47, 73, 0.32);
    transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
    .operacoes-bi-open:hover {
        transform: none;
    }
}

.operacoes-section-eyebrow,
.operacoes-aside-eyebrow {
    margin: 0 0 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(125, 211, 252, 0.75);
}

.operacoes-aside-eyebrow {
    color: rgba(167, 243, 208, 0.85);
}

.operacoes-panel {
    border-radius: 22px;
    background: linear-gradient(168deg, rgba(24, 44, 78, 0.78) 0%, rgba(11, 26, 50, 0.92) 100%);
    border: 1px solid rgba(94, 184, 255, 0.24);
    box-shadow:
        0 24px 56px rgba(4, 12, 32, 0.52),
        0 1px 0 rgba(255, 255, 255, 0.05) inset;
    backdrop-filter: blur(12px);
}

.operacoes-panel--equipe {
    overflow: hidden;
}

.operacoes-panel__head {
    padding: clamp(20px, 3vw, 26px) clamp(20px, 3vw, 28px) clamp(14px, 2vw, 18px);
    border-bottom: 1px solid rgba(94, 184, 255, 0.12);
}

.operacoes-panel__head--equipe {
    border-bottom: 1px solid rgba(94, 184, 255, 0.14);
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.06) 0%, transparent 100%);
}

.operacoes-panel__title {
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(18px, 2.4vw, 22px);
    font-weight: 800;
    color: #f0f9ff;
    letter-spacing: -0.025em;
}

.operacoes-panel__title i {
    font-size: 1.2em;
    opacity: 0.92;
    color: rgba(125, 211, 252, 0.95);
}

.operacoes-panel__desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(190, 218, 248, 0.9);
    max-width: 62ch;
}

.operacoes-panel__gestor {
    margin: 10px 0 0;
    font-size: 14px;
    font-weight: 800;
    color: rgba(224, 242, 254, 0.98);
    letter-spacing: -0.01em;
}

.operacoes-equipe {
    padding: clamp(20px, 3vw, 28px) clamp(18px, 3vw, 26px) clamp(24px, 3vw, 32px);
}

.operacoes-equipe__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(16px, 2.2vw, 20px);
    align-items: stretch;
}

/* 2×2: cartões mais largos, menos “torre”; altura da linha igualada + scroll no texto longo */
@media (min-width: 720px) {
    .operacoes-equipe__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.operacoes-equipe-card {
    position: relative;
    border-radius: 18px;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.07) 0%, rgba(10, 24, 46, 0.65) 100%);
    border: 1px solid rgba(94, 184, 255, 0.18);
    box-shadow: 0 14px 36px rgba(4, 12, 32, 0.38);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.operacoes-equipe-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
    background: linear-gradient(180deg, #38bdf8, #6366f1);
    opacity: 0.95;
}

.operacoes-equipe-card--mg::before {
    background: linear-gradient(180deg, #34d399, #059669);
}

.operacoes-equipe-card--sp::before {
    background: linear-gradient(180deg, #38bdf8, #2563eb);
}

.operacoes-equipe-card--go::before {
    background: linear-gradient(180deg, #fbbf24, #ea580c);
}

.operacoes-equipe-card--ap::before {
    background: linear-gradient(180deg, #a78bfa, #7c3aed);
}

.operacoes-equipe-card:hover {
    border-color: rgba(125, 211, 252, 0.35);
    box-shadow: 0 18px 44px rgba(4, 12, 32, 0.48);
    transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
    .operacoes-equipe-card:hover {
        transform: none;
    }
}

.operacoes-equipe-card__head {
    padding: 16px 18px 14px 20px;
    background: linear-gradient(105deg, rgba(255, 255, 255, 0.06) 0%, transparent 65%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    flex-shrink: 0;
}

.operacoes-equipe-card__regiao {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(224, 242, 254, 0.88);
    margin-bottom: 6px;
}

.operacoes-equipe-card__base {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #f8fafc;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(6, 18, 38, 0.55);
    border: 1px solid rgba(125, 211, 252, 0.28);
}

.operacoes-equipe-card__list {
    margin: 0;
    padding: 16px 16px 18px 20px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: rgba(125, 211, 252, 0.35) rgba(8, 24, 48, 0.35);
    scrollbar-width: thin;
}

.operacoes-equipe-card__list::-webkit-scrollbar {
    width: 8px;
}

.operacoes-equipe-card__list::-webkit-scrollbar-thumb {
    background: rgba(125, 211, 252, 0.28);
    border-radius: 8px;
}

.operacoes-equipe-membro {
    margin: 0;
    padding: 14px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.operacoes-equipe-membro:last-child {
    padding-bottom: 2px;
    border-bottom: none;
}

.operacoes-equipe-membro__dot {
    width: 8px;
    height: 8px;
    margin-top: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, #7dd3fc, #818cf8);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.45);
}

.operacoes-equipe-membro__body {
    min-width: 0;
}

.operacoes-equipe-membro__nome {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    line-height: 1.3;
}

.operacoes-equipe-membro__texto {
    margin: 0;
    font-size: 13px;
    line-height: 1.58;
    color: rgba(203, 220, 248, 0.9);
}

.operacoes-sheets-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(18px, 2.5vw, 24px);
    padding: 0 clamp(18px, 3vw, 26px) clamp(22px, 3vw, 30px);
    align-items: stretch;
}

/* Planilhas — workspace estilo Excel Online (tela cheia) */
.operacoes-xlsx-workspace {
    padding: 0 clamp(14px, 2.5vw, 24px) clamp(20px, 3vw, 28px);
}

.operacoes-xlsx-wb-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.operacoes-xlsx-wb-tab {
    border: 1px solid rgba(94, 184, 255, 0.28);
    background: rgba(15, 32, 58, 0.65);
    color: rgba(224, 242, 254, 0.9);
    border-radius: 12px 12px 0 0;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.operacoes-xlsx-wb-tab.is-active {
    background: linear-gradient(180deg, #217346 0%, #1a5c38 100%);
    border-color: rgba(52, 211, 153, 0.55);
    color: #f0fdf4;
}

.operacoes-xlsx-wb {
    display: none;
    border-radius: 0 16px 16px 16px;
    overflow: hidden;
    border: 1px solid rgba(94, 184, 255, 0.22);
    box-shadow: 0 24px 56px rgba(4, 12, 32, 0.55);
    background: #f3f3f3;
}

.operacoes-xlsx-wb.is-active {
    display: block;
}

.operacoes-xlsx-chrome {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: linear-gradient(180deg, #217346 0%, #1e6b41 100%);
    color: #f8fafc;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.operacoes-xlsx-chrome__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.operacoes-xlsx-chrome__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 1.2rem;
}

.operacoes-xlsx-chrome__title {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
}

.operacoes-xlsx-chrome__file {
    margin: 2px 0 0;
    font-size: 11px;
    opacity: 0.88;
    word-break: break-word;
}

.operacoes-xlsx-chrome__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.operacoes-xlsx-mode {
    display: inline-flex;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.operacoes-xlsx-mode__btn {
    border: 0;
    background: rgba(0, 0, 0, 0.12);
    color: rgba(255, 255, 255, 0.92);
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.operacoes-xlsx-mode__btn.is-active {
    background: rgba(255, 255, 255, 0.22);
}

.operacoes-xlsx-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(0, 0, 0, 0.1);
    color: #f8fafc;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.operacoes-xlsx-action--primary {
    background: #f8fafc;
    color: #14532d;
    border-color: rgba(255, 255, 255, 0.65);
}

.operacoes-xlsx-stage {
    position: relative;
    min-height: min(78vh, 820px);
    background: #e8e8e8;
}

.operacoes-xlsx-stage:fullscreen {
    min-height: 100vh;
    background: #fff;
}

.operacoes-xlsx-stage:fullscreen .operacoes-xlsx-iframe,
.operacoes-xlsx-stage:fullscreen .operacoes-xlsx-portal-view {
    min-height: calc(100vh - 48px);
}

.operacoes-xlsx-embed-view,
.operacoes-xlsx-portal-view {
    display: none;
    height: 100%;
    min-height: min(78vh, 820px);
}

.operacoes-xlsx-embed-view.is-active,
.operacoes-xlsx-portal-view.is-active {
    display: flex;
    flex-direction: column;
}

.operacoes-xlsx-iframe {
    width: 100%;
    height: min(78vh, 820px);
    min-height: 520px;
    border: 0;
    background: #fff;
}

.operacoes-xlsx-portal-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    background: #f3f3f3;
    border-bottom: 1px solid #d4d4d4;
}

.operacoes-xlsx-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 200px;
    max-width: 360px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #c7c7c7;
    background: #fff;
    color: #1f2937;
    font-size: 13px;
}

.operacoes-xlsx-search input {
    border: 0;
    outline: none;
    width: 100%;
    font: inherit;
    background: transparent;
}

.operacoes-xlsx-portal-hint {
    font-size: 11px;
    color: #6b7280;
}

.operacoes-xlsx-portal-status {
    padding: 24px 16px;
    text-align: center;
    color: #4b5563;
    font-size: 14px;
}

.operacoes-xlsx-portal-loading {
    margin: 0;
    font-weight: 600;
}

.operacoes-xlsx-portal-error {
    margin: 0;
    color: #b91c1c;
    font-weight: 600;
}

.operacoes-xlsx-grid-host {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.operacoes-xlsx-grid-panel {
    display: none;
    flex: 1;
    min-height: 0;
    flex-direction: column;
}

.operacoes-xlsx-grid-panel.is-active {
    display: flex;
}

.operacoes-xlsx-grid-scroll {
    flex: 1;
    overflow: auto;
    min-height: min(68vh, 720px);
}

.operacoes-xlsx-grid {
    border-collapse: collapse;
    min-width: 100%;
    font-family: "Segoe UI", Calibri, Arial, sans-serif;
    font-size: 12px;
    color: #111827;
    background: #fff;
}

.operacoes-xlsx-grid th,
.operacoes-xlsx-grid td {
    border: 1px solid #d4d4d4;
    padding: 4px 8px;
    white-space: nowrap;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.operacoes-xlsx-grid thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f3f3f3;
    font-weight: 700;
    box-shadow: 0 1px 0 #d4d4d4;
}

.operacoes-xlsx-grid tbody tr:nth-child(even) {
    background: #fafafa;
}

.operacoes-xlsx-grid tbody tr:hover {
    background: #e8f4ea;
}

.operacoes-xlsx-cell-empty {
    display: block;
    min-width: 24px;
    min-height: 16px;
}

.operacoes-xlsx-sheetbar {
    display: flex;
    flex-wrap: nowrap;
    gap: 2px;
    overflow-x: auto;
    padding: 0 6px;
    background: #f3f3f3;
    border-top: 1px solid #d4d4d4;
    min-height: 32px;
    align-items: flex-end;
}

.operacoes-xlsx-sheetbar__tab {
    border: 0;
    border-radius: 4px 4px 0 0;
    background: #e2e2e2;
    color: #374151;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    margin-top: 4px;
}

.operacoes-xlsx-sheetbar__tab.is-active {
    background: #fff;
    color: #14532d;
    box-shadow: 0 -1px 0 #fff, inset 0 2px 0 #217346;
}

html[data-theme="dark"] .operacoes-xlsx-wb {
    background: #1e293b;
}

html[data-theme="dark"] .operacoes-xlsx-grid {
    color: #e2e8f0;
    background: #0f172a;
}

html[data-theme="dark"] .operacoes-xlsx-grid th,
html[data-theme="dark"] .operacoes-xlsx-grid td {
    border-color: #334155;
}

html[data-theme="dark"] .operacoes-xlsx-grid thead th {
    background: #1e293b;
}

@media (min-width: 960px) {
    .operacoes-sheets-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.operacoes-sheet-card {
    border-radius: 20px;
    background: linear-gradient(168deg, rgba(18, 36, 62, 0.88) 0%, rgba(8, 22, 44, 0.94) 100%);
    border: 1px solid rgba(94, 184, 255, 0.22);
    box-shadow:
        0 20px 48px rgba(4, 12, 32, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.operacoes-sheet-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(94, 184, 255, 0.12);
    background: linear-gradient(90deg, rgba(52, 211, 153, 0.08) 0%, rgba(56, 189, 248, 0.06) 50%, transparent 100%);
}

.operacoes-sheet-card__titlewrap {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.operacoes-sheet-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 1.25rem;
    color: rgba(224, 242, 254, 0.95);
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.22), rgba(99, 102, 241, 0.15));
    border: 1px solid rgba(125, 211, 252, 0.25);
    flex-shrink: 0;
}

.operacoes-sheet-card__title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #f8fafc;
    line-height: 1.25;
}

.operacoes-sheet-card__file {
    margin: 4px 0 0;
    font-size: 12px;
    color: rgba(186, 210, 240, 0.75);
    word-break: break-word;
}

.operacoes-sheet-card__dl {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    color: #0c1e36;
    background: linear-gradient(135deg, #ecfdf5 0%, #a7f3d0 45%, #6ee7b7 100%);
    border: 1px solid rgba(52, 211, 153, 0.45);
    box-shadow: 0 8px 22px rgba(5, 46, 22, 0.2);
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.operacoes-sheet-card__dl:hover {
    box-shadow: 0 10px 28px rgba(5, 46, 22, 0.28);
    transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
    .operacoes-sheet-card__dl:hover {
        transform: none;
    }
}

.operacoes-org-panel--inset {
    border-radius: 0 0 20px 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%),
        linear-gradient(180deg, #132544 0%, #0d1e38 62%, #0a1830 100%);
    overflow: hidden;
}

.operacoes-organograma {
    padding: clamp(18px, 3vw, 34px) clamp(14px, 3vw, 28px) clamp(26px, 4vw, 40px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.operacoes-tree .operacoes-card {
    background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
    border: 2px solid rgba(94, 184, 255, 0.78);
    box-shadow:
        0 8px 26px rgba(5, 22, 52, 0.2),
        0 1px 0 rgba(255, 255, 255, 1) inset;
    position: relative;
    overflow: hidden;
}

.operacoes-tree .operacoes-card:hover {
    border-color: rgba(125, 211, 252, 0.98);
    transform: translateY(-2px);
}

.operacoes-tree .org-card--executive.operacoes-card::before {
    background: linear-gradient(90deg, #818cf8, #38bdf8, #a78bfa);
    height: 4px;
    margin-bottom: 12px;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.45);
}

.operacoes-tree .org-card--manager.operacoes-card::before {
    content: '';
    display: block;
    width: 42px;
    height: 3px;
    margin: 0 auto 11px;
    border-radius: 3px;
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.operacoes-tree .org-card--member.operacoes-card::before {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    margin: -4px auto 11px;
    border-radius: 2px;
    background: linear-gradient(90deg, #22d3ee, #a5b4fc);
    opacity: 0.9;
}

.operacoes-sheet-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
    padding: clamp(14px, 2.5vw, 20px) clamp(18px, 3vw, 26px);
    border-bottom: 1px solid rgba(94, 184, 255, 0.1);
}

.operacoes-sheet-toolbar--actions {
    border-bottom: none;
    padding-bottom: 8px;
}

.operacoes-sheet-action {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 18px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid rgba(125, 211, 252, 0.35);
    flex-shrink: 0;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.operacoes-sheet-action--primary {
    color: #eaf6ff;
    background: rgba(14, 116, 180, 0.35);
    box-shadow: 0 10px 28px rgba(8, 28, 62, 0.35);
}

.operacoes-sheet-action--primary:hover {
    border-color: rgba(125, 211, 252, 0.55);
    background: rgba(22, 138, 205, 0.45);
}

.operacoes-sheet-dl {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    color: #0f2748;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border: 1px solid rgba(125, 211, 252, 0.5);
    box-shadow: 0 8px 24px rgba(14, 116, 180, 0.25);
    flex-shrink: 0;
}

.operacoes-sheet-dl:hover {
    background: linear-gradient(135deg, #f0f9ff 0%, #7dd3fc 100%);
    border-color: rgba(56, 189, 248, 0.65);
}

.operacoes-sheet-alert {
    padding: 14px 18px;
    border-radius: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.45;
    color: #fef3c7;
    background: rgba(180, 83, 9, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.35);
}

.operacoes-sheet-embed-wrap {
    padding: 4px clamp(14px, 2.5vw, 22px) clamp(22px, 3vw, 28px);
}

.operacoes-sheet-embed-card.qa-excel-preview-card {
    margin-top: 0;
}

.operacoes-sheet-embed-frame {
    min-height: min(72vh, 720px) !important;
    height: calc(100vh - 320px) !important;
}

.operacoes-sheet-alert--inline {
    margin: 0 clamp(18px, 3vw, 26px) 14px;
}

.operacoes-sheet-card .operacoes-sheet-alert--inline {
    margin: 0 14px 12px;
}

.operacoes-sheet-card .operacoes-sheet-embed-wrap {
    padding: 0 12px 14px;
}

.operacoes-sheet-embed-card--polished {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow:
        0 16px 40px rgba(4, 12, 32, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.operacoes-sheet-embed-frame--grid {
    min-height: 360px !important;
    height: clamp(360px, 48vh, 520px) !important;
}

@media (max-width: 959px) {
    .operacoes-sheet-embed-frame--grid {
        min-height: min(52vh, 560px) !important;
        height: calc(100vh - 280px) !important;
    }
}

.operacoes-sheet-refresh-link {
    margin-left: 0.35em;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.operacoes-sheet-preview {
    padding: 0 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.operacoes-sheet-tabs {
    margin: 0;
}

.operacoes-sheet-search {
    margin: 0;
}

.operacoes-sheet-portal-card {
    margin-top: 0;
}

.operacoes-sheet-portal-card .qa-spreadsheet-wrap {
    max-height: min(58vh, 520px);
}

.operacoes-sheet-panel:not(.is-active) {
    display: none;
}


.operacoes-spine {
    background: linear-gradient(180deg, rgba(125, 211, 252, 0.95), rgba(56, 189, 248, 0.55));
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
}

.operacoes-hub {
    width: 100%;
    max-width: 980px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}

.operacoes-hub__cross {
    position: relative;
    width: 100%;
    height: 22px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.operacoes-hub__hline {
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.9) 8%, rgba(125, 211, 252, 0.9) 92%, transparent);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

.operacoes-hub__columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(20px, 4vw, 40px);
    width: 100%;
    padding-top: 6px;
    align-items: start;
}

.operacoes-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.operacoes-branch__stem {
    width: 3px;
    height: 26px;
    border-radius: 3px;
    margin-bottom: 8px;
    background: linear-gradient(180deg, rgba(125, 211, 252, 0.95), rgba(56, 189, 248, 0.45));
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
}

.operacoes-branch__stem--long {
    height: 32px;
}

.operacoes-zigzag {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 4px auto 0;
    padding: 8px 0 4px;
}

.operacoes-zigzag__spine {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    margin-left: -1.5px;
    border-radius: 3px;
    background: linear-gradient(180deg, rgba(125, 211, 252, 0.85), rgba(56, 189, 248, 0.35));
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
    pointer-events: none;
}

.operacoes-zigzag__row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    min-height: 6px;
    padding: 10px 0;
}

.operacoes-zigzag__row::before {
    content: '';
    grid-column: 2;
    width: 44px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, rgba(125, 211, 252, 0.85), rgba(56, 189, 248, 0.65));
    justify-self: center;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.25);
}

.operacoes-zigzag__row--left .org-card {
    grid-column: 1;
    justify-self: end;
}

.operacoes-zigzag__row--left::before {
    transform: scaleX(1);
}

.operacoes-zigzag__row--right .org-card {
    grid-column: 3;
    justify-self: start;
}

.operacoes-zigzag__row--right::before {
    transform: scaleX(1);
}

@media (max-width: 860px) {
    .operacoes-hub__hline {
        display: none;
    }

    .operacoes-hub__columns {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
    }

    .operacoes-branch__stem {
        height: 18px;
    }

    .operacoes-zigzag {
        max-width: 100%;
    }

    .operacoes-zigzag__spine {
        left: 24px;
        margin-left: 0;
    }

    .operacoes-zigzag__row {
        grid-template-columns: 1fr;
        padding-left: 48px;
    }

    .operacoes-zigzag__row::before {
        display: none;
    }

    .operacoes-zigzag__row--left .org-card,
    .operacoes-zigzag__row--right .org-card {
        grid-column: 1;
        justify-self: stretch;
    }
}

/***********pesquisa ******************/


/* =========================
   PESQUISA GLOBAL
========================= */

.search-page {
    padding: 28px;
}

.search-hero {
    padding: 30px;
    border-radius: 28px;
    background: linear-gradient(135deg, #183761, #213f73);
    color: #fff;
    box-shadow: 0 18px 45px rgba(10, 25, 55, .22);
    margin-bottom: 20px;
}

.search-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    font-weight: 800;
    margin-bottom: 14px;
}

.search-hero h1 {
    margin: 0 0 8px;
    font-size: 34px;
    font-weight: 900;
}

.search-hero p {
    margin: 0;
    color: rgba(255,255,255,.82);
    font-size: 15px;
}

.search-summary {
    margin-bottom: 16px;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-weight: 700;
}

.search-results {
    display: grid;
    gap: 14px;
}

.search-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.05));
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 14px 32px rgba(8, 18, 40, .16);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.search-card:hover {
    transform: translateY(-2px);
    border-color: rgba(80, 190, 240, .45);
    background: linear-gradient(135deg, rgba(255,255,255,.13), rgba(255,255,255,.07));
}

.search-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 24px;
    background: rgba(255,255,255,.12);
    flex: 0 0 auto;
}

.search-card__content {
    flex: 1;
    min-width: 0;
}

.search-card__top span {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(75, 185, 240, .18);
    color: #bfefff;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 7px;
}

.search-card h3 {
    margin: 0 0 5px;
    font-size: 18px;
    font-weight: 900;
}

.search-card p {
    margin: 0;
    color: rgba(255,255,255,.72);
    line-height: 1.45;
}

.search-card__arrow {
    font-size: 24px;
    opacity: .7;
}

.search-empty {
    padding: 42px;
    border-radius: 26px;
    text-align: center;
    color: #fff;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.10);
}

.search-empty div {
    font-size: 42px;
    margin-bottom: 10px;
}

.search-empty h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.search-empty p {
    margin: 0;
    color: rgba(255,255,255,.72);
}

html[data-theme="light"] .search-summary {
    background: #ffffff !important;
    color: #1b2d4e !important;
    border: 1px solid rgba(27, 45, 78, 0.12);
    box-shadow: 0 8px 22px rgba(27, 45, 78, 0.08);
}

html[data-theme="light"] .search-card {
    background: #ffffff !important;
    border: 1px solid rgba(27, 45, 78, 0.12) !important;
    color: #1b2d4e !important;
    box-shadow: 0 12px 28px rgba(27, 45, 78, 0.1) !important;
}

html[data-theme="light"] .search-card:hover {
    border-color: rgba(34, 112, 170, 0.35) !important;
    background: #f8fbff !important;
}

html[data-theme="light"] .search-card__icon {
    background: rgba(34, 112, 170, 0.1) !important;
}

html[data-theme="light"] .search-card__top span {
    background: rgba(34, 112, 170, 0.12) !important;
    color: #1a5f8f !important;
}

html[data-theme="light"] .search-card h3 {
    color: #122338 !important;
}

html[data-theme="light"] .search-card p {
    color: #4a5d78 !important;
}

html[data-theme="light"] .search-card__arrow {
    color: #2270aa !important;
    opacity: 1;
}

html[data-theme="light"] .search-empty {
    background: #ffffff !important;
    border: 1px solid rgba(27, 45, 78, 0.12) !important;
    color: #1b2d4e !important;
    box-shadow: 0 12px 28px rgba(27, 45, 78, 0.08);
}

html[data-theme="light"] .search-empty h2 {
    color: #122338 !important;
}

html[data-theme="light"] .search-empty p {
    color: #4a5d78 !important;
}


/* =========================
   NOTIFICAÇÕES
========================= */

.notification-wrapper {
    position: relative;
}

.notification-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 1.15rem;
    cursor: pointer;
    padding: 0;
    border-radius: 12px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.notification-bell i {
    display: block;
    line-height: 1;
}

.notification-bell:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.03);
}

.notification-count {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ff3b5c;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    display: grid;
    place-items: center;
}

.notification-dropdown {
    position: absolute;
    top: 44px;
    right: 0;
    width: 360px;
    max-height: 460px;
    overflow: hidden;
    border-radius: 22px;
    background: #17335f;
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 22px 55px rgba(0,0,0,.35);
    z-index: 9999;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.10);
}

.notification-header__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.notification-header__btn {
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.notification-header__btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.notification-header__btn--clear {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.notification-list {
    max-height: 390px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.03);
}

.notification-item:hover {
    background: rgba(255,255,255,.09);
}

.notification-item.is-unread {
    background: rgba(55, 172, 235, .14);
}

.notification-item.notification-item--action.is-unread {
    background: rgba(255, 193, 7, .12);
    border-inline-start: 3px solid rgba(255, 204, 102, .85);
    padding-inline-start: 13px;
}

.notification-item__icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.12);
    flex: 0 0 auto;
}

.notification-item__body {
    flex: 1;
    min-width: 0;
}

.notification-item__body strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.notification-item__body p {
    margin: 0;
    font-size: 12px;
    color: rgba(255,255,255,.72);
    line-height: 1.35;
}

.notification-date {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: rgba(255,255,255,.48);
}

.notification-empty {
    padding: 24px;
    color: rgba(255,255,255,.72);
    text-align: center;
}

html[data-theme="light"] .notification-bell {
    color: #ffffff !important;
}

html[data-theme="light"] .notification-dropdown {
    background: #ffffff !important;
    border: 1px solid rgba(27, 45, 78, 0.12) !important;
    box-shadow: 0 22px 55px rgba(27, 45, 78, 0.18) !important;
}

html[data-theme="light"] .notification-header {
    color: #0f2846 !important;
    border-bottom-color: rgba(27, 45, 78, 0.1) !important;
}

html[data-theme="light"] .notification-header__btn {
    background: rgba(34, 112, 170, 0.1) !important;
    color: #2270aa !important;
    border: 1px solid rgba(34, 112, 170, 0.2) !important;
}

html[data-theme="light"] .notification-header__btn--clear {
    background: #2270aa !important;
    color: #ffffff !important;
    border-color: transparent !important;
}

html[data-theme="light"] .notification-item {
    color: #1b2d4e !important;
    background: #f8fafc !important;
    border-bottom-color: rgba(27, 45, 78, 0.08) !important;
}

html[data-theme="light"] .notification-item.is-unread {
    background: rgba(34, 112, 170, 0.1) !important;
}

html[data-theme="light"] .notification-item__body p,
html[data-theme="light"] .notification-date,
html[data-theme="light"] .notification-empty {
    color: #64748b !important;
}


/* ===== TEMA CLARO / ESCURO ===== */

/* Barra de aviso / consentimento de cookies (LGPD + preferências no navegador) */
.cookie-consent {
    position: fixed;
    z-index: 10050;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 16px;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(15, 28, 52, 0.97) 0%, rgba(10, 22, 44, 0.99) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
}

.cookie-consent__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.cookie-consent__text {
    flex: 1 1 280px;
    min-width: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.875rem;
    line-height: 1.45;
}

.cookie-consent__text strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 6px;
    color: #fff;
}

.cookie-consent__text p {
    margin: 0;
    opacity: 0.95;
}

.cookie-consent__actions {
    flex-shrink: 0;
}

.cookie-consent__btn {
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.cookie-consent__btn--primary {
    background: linear-gradient(180deg, #3d6fb8 0%, #2c558c 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-consent__btn--primary:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

html[data-theme="light"] .cookie-consent {
    background: linear-gradient(180deg, #f4f5f7 0%, #e8eaef 100%);
    border-top-color: rgba(27, 45, 78, 0.15);
    box-shadow: 0 -6px 24px rgba(27, 45, 78, 0.12);
}

html[data-theme="light"] .cookie-consent__text {
    color: #1b2d4e;
}

html[data-theme="light"] .cookie-consent__text strong {
    color: #122038;
}

html[data-theme="light"] .cookie-consent__btn--primary {
    background: linear-gradient(180deg, #2c558c 0%, #1e3a5f 100%);
}

/* Alternador de tema — estilo alinhado ao menu lateral (ícones Bootstrap) */
.theme-toggle-btn {
    position: relative;
    flex-shrink: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.2s cubic-bezier(0.34, 1.2, 0.64, 1);
    view-transition-name: theme-toggle;
}

.theme-toggle-btn__track {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    width: 84px;
    height: 42px;
    padding: 4px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-sizing: border-box;
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.35s ease;
}

.theme-toggle-btn__thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transform: translateX(0);
    transition:
        transform 0.58s cubic-bezier(0.34, 1.12, 0.64, 1),
        background 0.45s ease,
        box-shadow 0.45s ease,
        border-color 0.45s ease;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
}

html[data-theme="light"] .theme-toggle-btn__thumb {
    transform: translateX(calc(100% + 4px));
    background: linear-gradient(180deg, #5fc8ea 0%, #3babd4 100%);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow:
        0 4px 16px rgba(34, 112, 170, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.theme-toggle-btn__option {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    height: 34px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 1.05rem;
    line-height: 1;
    transition:
        color 0.45s ease,
        transform 0.58s cubic-bezier(0.34, 1.12, 0.64, 1),
        opacity 0.45s ease;
}

.theme-toggle-btn__option i {
    display: block;
    line-height: 1;
}

html[data-theme="dark"] .theme-toggle-btn__option--dark,
html[data-theme="light"] .theme-toggle-btn__option--light {
    color: #f0f9ff;
    transform: scale(1.1);
}

html[data-theme="dark"] .theme-toggle-btn__option--light,
html[data-theme="light"] .theme-toggle-btn__option--dark {
    color: rgba(255, 255, 255, 0.38);
    transform: scale(0.92);
}

.theme-toggle-btn:hover .theme-toggle-btn__track {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.theme-toggle-btn:active {
    transform: scale(0.96);
}

.theme-toggle-btn.theme-toggle-btn--animating .theme-toggle-btn__track {
    box-shadow:
        0 0 0 2px rgba(59, 171, 212, 0.45),
        0 0 24px rgba(59, 171, 212, 0.28);
}

.theme-toggle-btn:focus-visible .theme-toggle-btn__track {
    outline: 2px solid rgba(125, 211, 252, 0.85);
    outline-offset: 2px;
}

/* Transição de tema — página + fallback sem View Transitions API */
html {
    view-transition-name: root;
}

html.bloko-theme-transitioning {
    pointer-events: none;
}

html.bloko-theme-transitioning .theme-toggle-btn {
    pointer-events: auto;
}

::view-transition-old(root) {
    animation: bloko-theme-out 0.58s cubic-bezier(0.4, 0, 0.2, 1) both;
    mix-blend-mode: normal;
    z-index: 1;
}

::view-transition-new(root) {
    animation: bloko-theme-reveal 0.58s cubic-bezier(0.33, 1, 0.68, 1) both;
    mix-blend-mode: normal;
    z-index: 2;
}

::view-transition-old(theme-toggle),
::view-transition-new(theme-toggle) {
    animation: none;
    mix-blend-mode: normal;
    height: auto;
    width: auto;
    right: auto;
    bottom: auto;
}

::view-transition-group(theme-toggle) {
    animation-duration: 0.58s;
    animation-timing-function: cubic-bezier(0.34, 1.12, 0.64, 1);
}

@keyframes bloko-theme-out {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0.35;
        transform: scale(0.985);
    }
}

@keyframes bloko-theme-reveal {
    from {
        clip-path: circle(0px at var(--bloko-theme-x, 50%) var(--bloko-theme-y, 50%));
    }
    to {
        clip-path: circle(var(--bloko-theme-r, 150vmax) at var(--bloko-theme-x, 50%) var(--bloko-theme-y, 50%));
    }
}

/* Fallback (Firefox e navegadores sem View Transitions): círculo com a cor do tema destino */
.bloko-theme-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    pointer-events: none;
    clip-path: circle(0 at var(--bloko-theme-x, 50%) var(--bloko-theme-y, 50%));
    transition: clip-path 0.58s cubic-bezier(0.33, 1, 0.68, 1);
    will-change: clip-path;
}

.bloko-theme-overlay--light {
    background:
        radial-gradient(ellipse 120% 90% at 0% 0%, rgba(59, 171, 212, 0.16), transparent 55%),
        radial-gradient(ellipse 80% 70% at 100% 100%, rgba(34, 112, 170, 0.12), transparent 50%),
        linear-gradient(165deg, #e2e9f2 0%, #eef2f8 48%, #e8edf5 100%);
}

.bloko-theme-overlay--dark {
    background:
        radial-gradient(circle at 18% 20%, rgba(59, 171, 212, 0.18), transparent 18%),
        radial-gradient(circle at 82% 78%, rgba(34, 112, 170, 0.16), transparent 20%),
        linear-gradient(135deg, #10233d 0%, #173257 42%, #1d3f6d 100%);
}

.bloko-theme-overlay.is-active {
    clip-path: circle(var(--bloko-theme-r, 150vmax) at var(--bloko-theme-x, 50%) var(--bloko-theme-y, 50%));
}

@media (prefers-reduced-motion: reduce) {
    .theme-toggle-btn__thumb,
    .theme-toggle-btn__option {
        transition-duration: 0.01ms !important;
    }

    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation: none !important;
    }

    .bloko-theme-overlay {
        transition-duration: 0.01ms !important;
    }
}

/* ===== TEMA CLARO BLOKO - REFINADO ===== */

html[data-theme="light"] {
    color-scheme: light;
}

html[data-theme="light"] body,
html[data-theme="light"] .content,
html[data-theme="light"] .content-body {
    background:
        radial-gradient(ellipse 120% 90% at 0% 0%, rgba(59, 171, 212, 0.16), transparent 55%),
        radial-gradient(ellipse 80% 70% at 100% 100%, rgba(34, 112, 170, 0.12), transparent 50%),
        linear-gradient(165deg, #e2e9f2 0%, #eef2f8 48%, #e8edf5 100%) !important;
    color: #122338 !important;
}

html[data-theme="light"] .app-topbar {
    background: linear-gradient(180deg, #243d63 0%, #1b2d4e 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 32px rgba(18, 35, 63, 0.14);
}

html[data-theme="light"] .topbar-search {
    background: #ffffff !important;
    border: 1px solid rgba(27, 45, 78, 0.14) !important;
    box-shadow: 0 4px 18px rgba(27, 45, 78, 0.08) !important;
}

html[data-theme="light"] .topbar-search input {
    color: #1b2d4e !important;
}

html[data-theme="light"] .topbar-search input::placeholder {
    color: rgba(27, 45, 78, 0.55) !important;
}

html[data-theme="light"] .topbar-search-icon {
    background: rgba(34, 112, 170, 0.1) !important;
    color: #2270aa !important;
}

html[data-theme="light"] .topbar-search:hover .topbar-search-icon,
html[data-theme="light"] .topbar-search:focus-within .topbar-search-icon {
    background: rgba(34, 112, 170, 0.16) !important;
    color: #1a5f8f !important;
}

html[data-theme="light"] .theme-toggle-btn__track {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}

html[data-theme="light"] .theme-toggle-btn:hover .theme-toggle-btn__track {
    background: rgba(255, 255, 255, 0.2) !important;
}

html[data-theme="light"] .theme-toggle-btn__option--light {
    color: #ffffff !important;
}

html[data-theme="light"] .theme-toggle-btn__option--dark {
    color: rgba(255, 255, 255, 0.45) !important;
}

/* Cards Microsoft em claro */
html[data-theme="light"] .side-tool-card {
    background: #ffffff !important;
    color: #1B2D4E !important;
    border: 1px solid rgba(27, 45, 78, 0.10) !important;
    box-shadow: 0 18px 40px rgba(27, 45, 78, 0.12) !important;
}

html[data-theme="light"] .side-tool-card h3,
html[data-theme="light"] .side-tool-card p,
html[data-theme="light"] .side-tool-link {
    color: #1B2D4E !important;
}

html[data-theme="light"] .side-tool-link {
    color: #2270AA !important;
}

html[data-theme="light"] .recent-carousel__slide {
    background: rgba(34, 112, 170, 0.09) !important;
    border-color: rgba(34, 112, 170, 0.18) !important;
}

html[data-theme="light"] .recent-carousel__slide:hover {
    background: rgba(34, 112, 170, 0.14) !important;
    border-color: rgba(34, 112, 170, 0.28) !important;
}

html[data-theme="light"] .recent-carousel__slide-title {
    color: #1b2d4e !important;
}

html[data-theme="light"] .recent-carousel__slide-meta {
    color: #64748b !important;
}

html[data-theme="light"] .recent-carousel__slide-hint {
    color: #2270aa !important;
}

html[data-theme="light"] .recent-carousel__dot {
    background: rgba(27, 45, 78, 0.22) !important;
}

html[data-theme="light"] .recent-carousel__dot.is-active,
html[data-theme="light"] .side-tool-card--recent .recent-carousel__dot.is-active {
    background: #2270aa !important;
}

/* ===== SIDEBAR NO TEMA CLARO ===== */

html[data-theme="light"] .sidebar {
    background: #fafbfd !important;
    border-right: 1px solid rgba(27, 45, 78, 0.1) !important;
    box-shadow: 8px 0 32px rgba(27, 45, 78, 0.08) !important;
}

html[data-theme="light"] .brand,
html[data-theme="light"] .menu-link,
html[data-theme="light"] .menu-group-trigger,
html[data-theme="light"] .submenu-link {
    color: #1B2D4E !important;
}

html[data-theme="light"] .brand__word--bloko {
    color: #1b2d4e !important;
}

html[data-theme="light"] .brand__word--conecta {
    background: linear-gradient(
        105deg,
        #1b2d4e 0%,
        #2270aa 42%,
        #3babd4 56%,
        #1b2d4e 100%
    ) !important;
    background-size: 220% 100% !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
}

html[data-theme="light"] .sidebar-toggle {
    background: #2270aa !important;
    color: #ffffff !important;
}

html[data-theme="light"] .menu-link:hover,
html[data-theme="light"] .menu-group-trigger:hover,
html[data-theme="light"] .submenu-link:hover {
    background: rgba(34, 112, 170, 0.10) !important;
    color: #1B2D4E !important;
}

html[data-theme="light"] .menu-link.is-active,
html[data-theme="light"] .menu-group.is-active > .menu-group-trigger,
html[data-theme="light"] .submenu-link.is-active {
    background: #2270AA !important;
    color: #ffffff !important;
}

html[data-theme="light"] .submenu {
    border-left-color: rgba(27, 45, 78, 0.18) !important;
}

html[data-theme="light"] .menu-caret {
    color: #1B2D4E !important;
}

@media (max-width: 900px) {
    .sidebar {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: -280px !important;
        width: 260px !important;
        min-width: 260px !important;
        height: 100vh !important;
        z-index: 99999 !important;
        padding: 28px 22px !important;
        overflow-y: auto !important;
        scrollbar-width: none;
        -ms-overflow-style: none;
        transition: left .25s ease !important;
    }

    .sidebar::-webkit-scrollbar {
        width: 0;
        height: 0;
        display: none;
    }

    .app.app--mobile-menu-open .sidebar {
        left: 0 !important;
    }

    .app.app--mobile-menu-open::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.38);
        z-index: 99998;
    }

    .topbar-menu-mobile {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    .app--mobile-menu-open .brand {
        display: flex !important;
    }

    .app--mobile-menu-open .menu-label,
    .app--mobile-menu-open .submenu-label {
        display: inline !important;
    }
}

/* ===== REFINO FINAL MODO CLARO ===== */

html[data-theme="light"] .dashboard-card,
html[data-theme="light"] .dashboard-card--hero,
html[data-theme="light"] .dashboard-card--agenda,
html[data-theme="light"] .dashboard-card--feed,
html[data-theme="light"] .dashboard-card--bi,
html[data-theme="light"] .dashboard-card--bi-full {
    background: #ffffff !important;
    color: #1B2D4E !important;
    border: 1px solid rgba(27, 45, 78, 0.10) !important;
    box-shadow: 0 18px 42px rgba(27, 45, 78, 0.13) !important;
}

html[data-theme="light"] .dashboard-card--hero {
    background:
        radial-gradient(circle at 88% 18%, rgba(59,171,212,0.20), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #eef5f9 100%) !important;
}

html[data-theme="light"] .dashboard-card h1,
html[data-theme="light"] .dashboard-card h2,
html[data-theme="light"] .dashboard-card h3,
html[data-theme="light"] .dashboard-card h4,
html[data-theme="light"] .dashboard-card p,
html[data-theme="light"] .dashboard-card span,
html[data-theme="light"] .dashboard-card strong,
html[data-theme="light"] .dashboard-card a {
    color: #1B2D4E !important;
}

html[data-theme="light"] .hero-welcome-badge {
    background: rgba(34, 112, 170, 0.10) !important;
    color: #2270AA !important;
}

/* Agenda */
html[data-theme="light"] .agenda-mini-item {
    background: #f3f8fb !important;
    border: 1px solid rgba(34, 112, 170, 0.14) !important;
}

html[data-theme="light"] .agenda-mini-item strong {
    color: #122338 !important;
}

html[data-theme="light"] .agenda-mini-empty {
    color: rgba(27, 45, 78, 0.55) !important;
}

html[data-theme="light"] .agenda-mini-wrap::after {
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.96)) !important;
}

html[data-theme="light"] .agenda-mini-date {
    color: #2270AA !important;
}

/* Modal agenda corporativa — tema claro */
html[data-theme="light"] #agendaModal .external-app-modal__dialog {
    background: #ffffff !important;
    border: 1px solid rgba(27, 45, 78, 0.12) !important;
    box-shadow: 0 28px 60px rgba(27, 45, 78, 0.2) !important;
}

html[data-theme="light"] #agendaModal .external-app-modal__header,
html[data-theme="light"] #agendaModal .external-app-modal__footer {
    border-color: rgba(27, 45, 78, 0.1) !important;
}

html[data-theme="light"] #agendaModal .external-app-modal__header h3 {
    color: #0f2846 !important;
}

html[data-theme="light"] #agendaModal .external-app-modal__close {
    background: rgba(34, 112, 170, 0.1) !important;
    color: #1b2d4e !important;
}

html[data-theme="light"] #agendaModal .external-app-modal__body {
    color: #1b2d4e !important;
    color-scheme: light;
}

html[data-theme="light"] #agendaModal .external-app-modal__button--secondary {
    background: rgba(34, 112, 170, 0.1) !important;
    color: #1a5f8f !important;
    border: 1px solid rgba(34, 112, 170, 0.2);
}

html[data-theme="light"] #agendaCalendar .fc {
    --fc-border-color: rgba(27, 45, 78, 0.12);
    --fc-page-bg-color: #ffffff;
    --fc-neutral-bg-color: #f3f8fb;
    --fc-neutral-text-color: #1b2d4e;
    --fc-button-bg-color: #f3f8fb;
    --fc-button-border-color: rgba(34, 112, 170, 0.22);
    --fc-button-text-color: #1b2d4e;
    --fc-button-hover-bg-color: #e8f2fa;
    --fc-button-hover-border-color: rgba(34, 112, 170, 0.32);
    --fc-button-active-bg-color: rgba(34, 112, 170, 0.18);
    --fc-button-active-border-color: rgba(34, 112, 170, 0.4);
    --fc-today-bg-color: rgba(59, 171, 212, 0.16);
    --fc-now-indicator-color: #2270aa;
    --fc-more-link-text-color: #2270aa;
}

html[data-theme="light"] #agendaCalendar .fc-toolbar-title {
    color: #0f2846 !important;
    font-size: 1.2rem;
    font-weight: 900;
}

html[data-theme="light"] #agendaCalendar .fc-col-header-cell-cushion {
    color: #4a5d78 !important;
}

html[data-theme="light"] #agendaCalendar .fc-daygrid-day-number {
    color: #122338 !important;
    opacity: 1 !important;
}

html[data-theme="light"] #agendaCalendar .fc-day-other {
    background: #f6f9fc !important;
    opacity: 1 !important;
}

html[data-theme="light"] #agendaCalendar .fc-day-other .fc-daygrid-day-top,
html[data-theme="light"] #agendaCalendar .fc-day-other .fc-daygrid-day-number {
    opacity: 1 !important;
}

html[data-theme="light"] #agendaCalendar .fc-day-other .fc-daygrid-day-number {
    color: #6b7f97 !important;
}

html[data-theme="light"] #agendaCalendar .fc-button,
html[data-theme="light"] #agendaCalendar .fc-button-primary,
html[data-theme="light"] #agendaCalendar .fc-prev-button,
html[data-theme="light"] #agendaCalendar .fc-next-button,
html[data-theme="light"] #agendaCalendar .fc-today-button {
    background: #eef4fa !important;
    border: 1px solid rgba(34, 112, 170, 0.28) !important;
    color: #122338 !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

html[data-theme="light"] #agendaCalendar .fc-button:hover,
html[data-theme="light"] #agendaCalendar .fc-button-primary:hover {
    background: #e2edf7 !important;
    color: #0f2846 !important;
}

html[data-theme="light"] #agendaCalendar .fc-button-primary:not(:disabled).fc-button-active,
html[data-theme="light"] #agendaCalendar .fc-button:not(:disabled).fc-button-active {
    background: linear-gradient(135deg, #2270aa 0%, #3babd4 100%) !important;
    border-color: #1a5f8f !important;
    color: #ffffff !important;
}

html[data-theme="light"] #agendaCalendar .fc-button:focus,
html[data-theme="light"] #agendaCalendar .fc-button-primary:focus {
    box-shadow: 0 0 0 3px rgba(34, 112, 170, 0.22) !important;
}

html[data-theme="light"] #agendaCalendar .fc-daygrid-more-link {
    color: #1a5f8f !important;
    font-weight: 800;
}

html[data-theme="light"] #agendaCalendar .fc-daygrid-day.fc-day-today {
    background: rgba(59, 171, 212, 0.14) !important;
}

html[data-theme="light"] #agendaCalendar .fc-day-today .fc-daygrid-day-number {
    color: #0f4c75 !important;
    font-weight: 900;
}

html[data-theme="light"] #agendaCalendar .fc-list-day-cushion {
    background: #eef4fa !important;
    color: #0f2846 !important;
}

html[data-theme="light"] #agendaCalendar .fc-list-event-title,
html[data-theme="light"] #agendaCalendar .fc-list-event-time {
    color: #1b2d4e !important;
}

html[data-theme="light"] #agendaCalendar .fc-list-event:hover td {
    background: rgba(34, 112, 170, 0.08) !important;
}

html[data-theme="light"] #agendaCalendar .fc-list-empty {
    color: #4a5d78 !important;
}

html[data-theme="light"] .dashboard-card--hero p {
    color: rgba(27, 45, 78, 0.72) !important;
}

html[data-theme="light"] .dashboard-pendencias-head,
html[data-theme="light"] .dashboard-tips-head {
    color: rgba(27, 45, 78, 0.55) !important;
}

html[data-theme="light"] .dashboard-pendencias-head-note,
html[data-theme="light"] .dashboard-tips-head-note {
    color: rgba(27, 45, 78, 0.42) !important;
}

html[data-theme="light"] .recent-carousel--hero-pendencias .recent-carousel__viewport,
html[data-theme="light"] .recent-carousel--hero-tips .recent-carousel__viewport {
    background: rgba(27, 45, 78, 0.06) !important;
    border-color: rgba(27, 45, 78, 0.12) !important;
}

html[data-theme="light"] .recent-carousel--hero-pendencias .recent-carousel__slide:hover,
html[data-theme="light"] .recent-carousel--hero-tips .recent-carousel__slide:hover {
    background: rgba(34, 112, 170, 0.1) !important;
}

html[data-theme="light"] .recent-carousel__pendencia-go {
    color: #2270aa !important;
}

html[data-theme="light"] .recent-carousel__pendencia-badge {
    background: rgba(220, 38, 38, 0.12) !important;
    color: #b91c1c !important;
}

html[data-theme="light"] .recent-carousel--hero-tips .recent-carousel__hero-tip-title {
    color: #1b2d4e !important;
}

html[data-theme="light"] .recent-carousel__hero-tip-badge {
    background: rgba(34, 112, 170, 0.14) !important;
    color: #2270aa !important;
}

/* Comunicados — cards */
html[data-theme="light"] .feed-card--social,
html[data-theme="light"] .feed-card--hero {
    background: #ffffff !important;
    border: 1px solid rgba(27, 45, 78, 0.12) !important;
    box-shadow: 0 10px 28px rgba(27, 45, 78, 0.1) !important;
}

html[data-theme="light"] .feed-card--social:hover,
html[data-theme="light"] .feed-card--hero:hover {
    box-shadow: 0 16px 40px rgba(27, 45, 78, 0.14) !important;
    border-color: rgba(34, 112, 170, 0.28) !important;
}

html[data-theme="light"] .feed-card-side h4,
html[data-theme="light"] .feed-card-side .feed-meta {
    color: #1b2d4e !important;
}

html[data-theme="light"] .dashboard-card--feed .dashboard-card-head h3 {
    color: #0f2846 !important;
}

html[data-theme="light"] .dashboard-card--feed .dashboard-filter {
    background: linear-gradient(135deg, #2270aa 0%, #3babd4 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(34, 112, 170, 0.22) !important;
}

html[data-theme="light"] .dashboard-card--feed a.dashboard-filter {
    background: #ffffff !important;
    color: #2270aa !important;
    border: 1px solid rgba(34, 112, 170, 0.32) !important;
    box-shadow: 0 4px 14px rgba(27, 45, 78, 0.06) !important;
}

html[data-theme="light"] .dashboard-card--feed a.dashboard-filter:hover {
    background: #f0f7fc !important;
    border-color: rgba(34, 112, 170, 0.45) !important;
}

html[data-theme="light"] .feed-empty {
    color: rgba(27, 45, 78, 0.55) !important;
}

/* Botões de ação do feed */
html[data-theme="light"] .feed-action-btn {
    background: rgba(34, 112, 170, 0.08) !important;
    color: #1a5f8f !important;
    border: 1px solid rgba(34, 112, 170, 0.2) !important;
    box-shadow: none !important;
}

html[data-theme="light"] .feed-action-btn:hover {
    background: rgba(34, 112, 170, 0.14) !important;
    color: #0f4c75 !important;
}

html[data-theme="light"] .feed-action-btn.is-active {
    background: rgba(34, 112, 170, 0.2) !important;
    color: #0c3d5c !important;
    box-shadow: 0 0 0 1px rgba(34, 112, 170, 0.25) inset !important;
}

html[data-theme="light"] .feed-action-btn--accent {
    background: rgba(15, 118, 110, 0.1) !important;
    color: #0f766e !important;
    border-color: rgba(15, 118, 110, 0.28) !important;
}

html[data-theme="light"] .feed-action-btn--accent:hover {
    background: rgba(15, 118, 110, 0.16) !important;
    color: #115e59 !important;
}

html[data-theme="light"] .feed-action-btn--danger {
    background: rgba(220, 38, 38, 0.08) !important;
    color: #b91c1c !important;
    border-color: rgba(220, 38, 38, 0.22) !important;
}

html[data-theme="light"] .feed-action-btn--danger:hover {
    background: rgba(220, 38, 38, 0.14) !important;
    color: #991b1b !important;
}

/* Modal de comentário — tema claro */
html[data-theme="light"] .feed-comment-modal__dialog {
    background: #ffffff !important;
    border: 1px solid rgba(27, 45, 78, 0.12) !important;
    box-shadow: 0 28px 60px rgba(27, 45, 78, 0.18) !important;
    color: #1b2d4e !important;
    color-scheme: light;
}

html[data-theme="light"] .feed-comment-modal__header {
    border-bottom-color: rgba(27, 45, 78, 0.1) !important;
}

html[data-theme="light"] .feed-comment-modal__header h3 {
    color: #0f2846 !important;
}

html[data-theme="light"] .feed-comment-modal__hint {
    color: rgba(27, 45, 78, 0.72) !important;
}

html[data-theme="light"] .feed-comment-modal__close {
    background: rgba(34, 112, 170, 0.1) !important;
    color: #1b2d4e !important;
}

html[data-theme="light"] .feed-comment-modal__textarea {
    background: #f3f8fb !important;
    border-color: rgba(34, 112, 170, 0.2) !important;
    color: #1b2d4e !important;
}

html[data-theme="light"] .feed-comment-modal__textarea::placeholder {
    color: rgba(27, 45, 78, 0.45) !important;
}

html[data-theme="light"] .feed-comment-modal__textarea:focus {
    background: #ffffff !important;
    border-color: rgba(34, 112, 170, 0.45) !important;
    box-shadow: 0 0 0 4px rgba(34, 112, 170, 0.12) !important;
}

html[data-theme="light"] .feed-comment-modal__footer {
    border-top-color: rgba(27, 45, 78, 0.08) !important;
}

html[data-theme="light"] .feed-comment-modal__btn--ghost {
    background: rgba(34, 112, 170, 0.08) !important;
    color: #1a5f8f !important;
}

html[data-theme="light"] .feed-comment-modal__btn--primary {
    background: linear-gradient(135deg, #2270aa, #3babd4) !important;
    color: #ffffff !important;
}

/* Modal de nova publicação — tema claro */
html[data-theme="light"] .publish-modal__backdrop {
    background: rgba(27, 45, 78, 0.42) !important;
}

html[data-theme="light"] .publish-modal__dialog {
    background: #ffffff !important;
    border: 1px solid rgba(27, 45, 78, 0.12) !important;
    box-shadow: 0 28px 60px rgba(27, 45, 78, 0.18) !important;
    color: #1b2d4e !important;
    color-scheme: light;
}

html[data-theme="light"] .publish-modal__header {
    border-bottom-color: rgba(27, 45, 78, 0.1) !important;
}

html[data-theme="light"] .publish-modal__header h3 {
    color: #0f2846 !important;
}

html[data-theme="light"] .publish-modal__close {
    background: rgba(34, 112, 170, 0.1) !important;
    color: #1b2d4e !important;
}

html[data-theme="light"] .publish-modal__body .form-field label {
    color: #1b2d4e !important;
}

html[data-theme="light"] .publish-modal__body .form-field input:not([type="checkbox"]),
html[data-theme="light"] .publish-modal__body .form-field textarea {
    background: #f3f8fb !important;
    border-color: rgba(34, 112, 170, 0.2) !important;
    color: #1b2d4e !important;
}

html[data-theme="light"] .publish-modal__body .form-field input:not([type="checkbox"])::placeholder,
html[data-theme="light"] .publish-modal__body .form-field textarea::placeholder {
    color: rgba(27, 45, 78, 0.45) !important;
}

html[data-theme="light"] .publish-modal__body .form-field input:not([type="checkbox"]):focus,
html[data-theme="light"] .publish-modal__body .form-field textarea:focus {
    background: #ffffff !important;
    border-color: rgba(34, 112, 170, 0.45) !important;
    box-shadow: 0 0 0 4px rgba(34, 112, 170, 0.12) !important;
}

html[data-theme="light"] .publish-modal__body .form-field input[type="file"] {
    background: #f3f8fb !important;
    color: #1b2d4e !important;
}

html[data-theme="light"] .publish-modal__check {
    color: #0f3d61 !important;
    background: linear-gradient(135deg, rgba(34, 112, 170, 0.14) 0%, rgba(59, 171, 212, 0.1) 100%) !important;
    border: 1.5px solid rgba(34, 112, 170, 0.38) !important;
    box-shadow: 0 6px 18px rgba(34, 112, 170, 0.1) !important;
}

html[data-theme="light"] .publish-modal__check:hover {
    border-color: rgba(34, 112, 170, 0.52) !important;
    background: linear-gradient(135deg, rgba(34, 112, 170, 0.18) 0%, rgba(59, 171, 212, 0.13) 100%) !important;
    box-shadow: 0 8px 22px rgba(34, 112, 170, 0.14) !important;
}

html[data-theme="light"] .publish-modal__check:has(input:checked) {
    color: #0a3250 !important;
    border-color: rgba(34, 112, 170, 0.58) !important;
    background: linear-gradient(135deg, rgba(34, 112, 170, 0.2) 0%, rgba(59, 171, 212, 0.15) 100%) !important;
    box-shadow: 0 0 0 4px rgba(34, 112, 170, 0.14), 0 8px 22px rgba(34, 112, 170, 0.12) !important;
}

html[data-theme="light"] .publish-modal__check input[type="checkbox"] {
    width: 22px !important;
    height: 22px !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 2px solid rgba(34, 112, 170, 0.55) !important;
    background: #ffffff !important;
}

html[data-theme="light"] .publish-modal__check input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #2270aa 0%, #3babd4 100%) !important;
    border-color: transparent !important;
}

html[data-theme="light"] .publish-modal__check-icon {
    color: #1a6faa !important;
    font-size: 1.2rem !important;
}

html[data-theme="light"] .publish-modal__body .form-hint {
    color: rgba(27, 45, 78, 0.62) !important;
}

html[data-theme="light"] .publish-modal__footer {
    border-top-color: rgba(27, 45, 78, 0.08) !important;
}

html[data-theme="light"] .publish-modal__btn--ghost {
    background: #eef5fb !important;
    color: #14527d !important;
    border: 1px solid rgba(34, 112, 170, 0.28) !important;
}

html[data-theme="light"] .publish-modal__btn--ghost:hover {
    background: rgba(34, 112, 170, 0.16) !important;
    border-color: rgba(34, 112, 170, 0.28) !important;
}

html[data-theme="light"] .publish-modal__btn--primary {
    background: linear-gradient(135deg, #1a6faa 0%, #2f9fd0 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(34, 112, 170, 0.34) !important;
}

html[data-theme="light"] .publish-modal__btn--primary:hover {
    box-shadow: 0 10px 26px rgba(34, 112, 170, 0.36) !important;
}

html[data-theme="light"] .publish-modal__status {
    color: rgba(27, 45, 78, 0.78) !important;
}

html[data-theme="light"] .publish-modal__status.is-error {
    color: #b91c1c !important;
}

html[data-theme="light"] .publish-modal__status.is-success {
    color: #15803d !important;
}

/* Modal de publicação (visualizar comunicado) — tema claro */
html[data-theme="light"] .feed-news-modal__dialog {
    background: #ffffff !important;
    border: 1px solid rgba(27, 45, 78, 0.12) !important;
    box-shadow: 0 28px 60px rgba(27, 45, 78, 0.2) !important;
}

html[data-theme="light"] .feed-news-modal__header {
    background: #ffffff !important;
    color: #0f2846 !important;
    border-bottom: 1px solid rgba(27, 45, 78, 0.1) !important;
}

html[data-theme="light"] .feed-news-modal__header h3,
html[data-theme="light"] #feedNewsModalTitle {
    color: #0f2846 !important;
}

html[data-theme="light"] .feed-news-modal__close {
    color: #1b2d4e !important;
    background: rgba(34, 112, 170, 0.08) !important;
    border-radius: 10px;
    width: 40px;
    height: 40px;
}

html[data-theme="light"] .feed-news-modal__body {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%) !important;
    color: #1b2d4e !important;
}

html[data-theme="light"] .feed-modal-loading,
html[data-theme="light"] .feed-modal-loading p {
    color: rgba(27, 45, 78, 0.72) !important;
}

html[data-theme="light"] .feed-modal-post-title {
    color: #0f2846 !important;
}

html[data-theme="light"] .feed-modal-post-meta,
html[data-theme="light"] .feed-modal-post-meta span {
    color: rgba(27, 45, 78, 0.58) !important;
}

html[data-theme="light"] .feed-modal-post-body {
    color: #334155 !important;
}

html[data-theme="light"] .feed-modal-files h3,
html[data-theme="light"] .feed-modal-comments h3 {
    color: #0f2846 !important;
}

html[data-theme="light"] .feed-modal-comment,
html[data-theme="light"] .feed-modal-file-item {
    background: #ffffff !important;
    border: 1px solid rgba(34, 112, 170, 0.16) !important;
    color: #1b2d4e !important;
}

html[data-theme="light"] .feed-modal-comment-text,
html[data-theme="light"] .feed-modal-comment-author {
    color: #334155 !important;
}

html[data-theme="light"] .feed-modal-comment-date {
    color: rgba(27, 45, 78, 0.5) !important;
}

html[data-theme="light"] .feed-modal-empty {
    color: rgba(27, 45, 78, 0.55) !important;
}

html[data-theme="light"] .feed-modal-chip {
    background: rgba(34, 112, 170, 0.1) !important;
    color: #1a5f8f !important;
}

html[data-theme="light"] .feed-modal-zoom-btn {
    background: rgba(15, 40, 70, 0.72) !important;
    color: #ffffff !important;
}

html[data-theme="light"] .feed-modal-zoom-btn:hover {
    background: rgba(15, 40, 70, 0.88) !important;
}

html[data-theme="light"] .feed-modal-image {
    box-shadow: 0 16px 36px rgba(27, 45, 78, 0.14) !important;
}

/* BI com moldura mais elegante */
html[data-theme="light"] .dashboard-card--bi,
html[data-theme="light"] .dashboard-card--bi-full {
    padding: 18px !important;
}

/* ===== TI NO TEMA CLARO ===== */

html[data-theme="light"] .ti-premium-page,
html[data-theme="light"] .ti-page,
html[data-theme="light"] .ti-shell {
    background:
        radial-gradient(ellipse 120% 90% at 0% 0%, rgba(59, 171, 212, 0.12), transparent 55%),
        radial-gradient(ellipse 80% 70% at 100% 100%, rgba(34, 112, 170, 0.08), transparent 50%),
        linear-gradient(165deg, #e2e9f2 0%, #eef2f8 48%, #e8edf5 100%) !important;
    color: #1B2D4E !important;
}

html[data-theme="light"] .ti-premium-page::before,
html[data-theme="light"] .ti-page::before,
html[data-theme="light"] .ti-shell::before {
    display: none !important;
}

html[data-theme="light"] .ti-org-section {
    background: #ffffff !important;
    border: 1px solid rgba(27, 45, 78, 0.1) !important;
    box-shadow: 0 18px 42px rgba(27, 45, 78, 0.12) !important;
}

html[data-theme="light"] .ti-org-kicker,
html[data-theme="light"] .ti-org-card__tag {
    color: #2270aa !important;
}

html[data-theme="light"] .ti-org-header h2 {
    color: #1b2d4e !important;
}

html[data-theme="light"] .ti-org-header__lead {
    color: #4a5d7a !important;
}

html[data-theme="light"] .ti-org-connector__label {
    color: rgba(34, 112, 170, 0.65) !important;
}

html[data-theme="light"] .ti-org-connector--soft .ti-org-connector__label {
    color: rgba(91, 80, 180, 0.6) !important;
}

html[data-theme="light"] .ti-org-card__tag {
    color: #2270aa !important;
}

html[data-theme="light"] .ti-org-card--analyst .ti-org-card__tag {
    color: #0369a1 !important;
}

html[data-theme="light"] .ti-org-card--intern .ti-org-card__tag {
    color: #5b21b6 !important;
}

html[data-theme="light"] .ti-org-card--director {
    background: linear-gradient(135deg, #2270aa 0%, #3babd4 100%) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

html[data-theme="light"] .ti-org-card--director .ti-org-card__tag,
html[data-theme="light"] .ti-org-card--director h3,
html[data-theme="light"] .ti-org-card--director p {
    color: #ffffff !important;
}

html[data-theme="light"] .ti-org-card--director p {
    color: rgba(255, 255, 255, 0.9) !important;
}

html[data-theme="light"] .ti-shortcut-card__icon {
    background: rgba(34, 112, 170, 0.12) !important;
}

html[data-theme="light"] .ti-shortcut-card--featured .ti-shortcut-card__icon {
    background: rgba(255, 255, 255, 0.22) !important;
}

html[data-theme="light"] .ti-shortcut-card,
html[data-theme="light"] .ti-org-card:not(.ti-org-card--director),
html[data-theme="light"] .ti-card,
html[data-theme="light"] .ti-org-panel {
    background: #ffffff !important;
    color: #1B2D4E !important;
    border: 1px solid rgba(27, 45, 78, 0.10) !important;
    box-shadow: 0 18px 42px rgba(27, 45, 78, 0.12) !important;
}

html[data-theme="light"] .ti-shortcut-card--featured,
html[data-theme="light"] .ti-org-person--featured {
    background: linear-gradient(135deg, #2270AA 0%, #3BABD4 100%) !important;
    color: #ffffff !important;
}

html[data-theme="light"] .ti-shortcut-card h3,
html[data-theme="light"] .ti-shortcut-card p,
html[data-theme="light"] .ti-org-card:not(.ti-org-card--director) h1,
html[data-theme="light"] .ti-org-card:not(.ti-org-card--director) h2,
html[data-theme="light"] .ti-org-card:not(.ti-org-card--director) h3,
html[data-theme="light"] .ti-org-card:not(.ti-org-card--director) p,
html[data-theme="light"] .ti-org-person h3,
html[data-theme="light"] .ti-org-person p,
html[data-theme="light"] .ti-org-person strong,
html[data-theme="light"] .ti-kicker {
    color: #1B2D4E !important;
}

html[data-theme="light"] .ti-shortcut-card--featured h3,
html[data-theme="light"] .ti-shortcut-card--featured p,
html[data-theme="light"] .ti-org-person--featured h3,
html[data-theme="light"] .ti-org-person--featured p,
html[data-theme="light"] .ti-org-person--featured strong {
    color: #ffffff !important;
}

html[data-theme="light"] .ti-kicker {
    color: #2270AA !important;
}

html[data-theme="light"] .ti-org-avatar,
html[data-theme="light"] .ti-shortcut-icon {
    background: rgba(34, 112, 170, 0.12) !important;
    color: #2270AA !important;
}

html[data-theme="light"] .ti-org-person--featured .ti-org-avatar,
html[data-theme="light"] .ti-shortcut-card--featured .ti-shortcut-icon {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
}

/* Hub TI — contraste no tema claro */
html[data-theme="light"] .ti-hub-page .ti-ambient-orb {
    opacity: 0.22;
}

html[data-theme="light"] .ti-hub-page .ti-premium-hero.ti-hub-hero {
    background: linear-gradient(145deg, #1a3a6e 0%, #16325a 48%, #1e4478 100%) !important;
    border-color: rgba(34, 112, 170, 0.28) !important;
    color: #fff !important;
}

html[data-theme="light"] .ti-hub-page .ti-premium-badge {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #e0f2fe !important;
}

html[data-theme="light"] .ti-hub-page .ti-premium-hero h1,
html[data-theme="light"] .ti-hub-page .ti-premium-hero p {
    color: #fff !important;
}

html[data-theme="light"] .ti-hub-page .ti-premium-hero p {
    color: rgba(224, 242, 254, 0.92) !important;
}

html[data-theme="light"] .ti-hub-page .ti-hub-hero__pill {
    color: #f0f9ff !important;
    background: rgba(8, 24, 48, 0.45) !important;
    border-color: rgba(34, 112, 170, 0.35) !important;
}

html[data-theme="light"] .ti-hub-page .ti-hub-main {
    background: #ffffff !important;
    border: 1px solid rgba(27, 45, 78, 0.12) !important;
    box-shadow: 0 16px 40px rgba(27, 45, 78, 0.1) !important;
}

html[data-theme="light"] .ti-hub-page .ti-hub-panel-head h2 {
    color: #1b2d4e !important;
}

html[data-theme="light"] .ti-hub-page .ti-hub-panel-head__lead {
    color: #4a5d7a !important;
}

html[data-theme="light"] .ti-hub-page .ti-hub-panel-head .ti-org-kicker {
    color: #2270aa !important;
}

html[data-theme="light"] .ti-hub-page .ti-shortcut-card__icon i {
    color: #2270aa !important;
}

html[data-theme="light"] .ti-hub-page .ti-shortcut-card--featured .ti-shortcut-card__icon i {
    color: #ffffff !important;
}

html[data-theme="light"] .ti-hub-page .ti-shortcut-card__arrow {
    background: rgba(34, 112, 170, 0.1) !important;
    color: #2270aa !important;
}

html[data-theme="light"] .ti-hub-page .ti-shortcut-card--featured .ti-shortcut-card__arrow {
    background: rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
}

html[data-theme="light"] .ti-hub-page .ti-shortcut-card p {
    color: #4a5d7a !important;
}

html[data-theme="light"] .ti-hub-page .ti-shortcut-card--featured p {
    color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="light"] .ti-hub-page .ti-org-connector__line {
    background: linear-gradient(180deg, rgba(34, 112, 170, 0.75), rgba(34, 112, 170, 0.25)) !important;
    box-shadow: none !important;
}

html[data-theme="light"] .ti-hub-page .ti-org-connector__line--soft {
    background: linear-gradient(180deg, rgba(91, 80, 180, 0.55), rgba(91, 80, 180, 0.2)) !important;
}

/* Hub — organograma horizontal (contraste no tema claro) */
html[data-theme="light"] .ti-hub-page .ti-hub-org {
    background: #ffffff !important;
    border: 1px solid rgba(27, 45, 78, 0.12) !important;
    box-shadow: 0 16px 40px rgba(27, 45, 78, 0.1) !important;
}

html[data-theme="light"] .ti-hub-page .ti-hub-org .ti-org-header h2 {
    color: #0f2846 !important;
}

html[data-theme="light"] .ti-hub-page .ti-hub-org .ti-org-header__lead {
    color: #4a5d7a !important;
}

html[data-theme="light"] .ti-hub-page .ti-hub-org .ti-org-kicker {
    color: #2270aa !important;
}

html[data-theme="light"] .ti-hub-page .ti-hub-org .ti-org-card:not(.ti-org-card--director) {
    background: #ffffff !important;
    border: 1px solid rgba(27, 45, 78, 0.14) !important;
    box-shadow: 0 10px 28px rgba(27, 45, 78, 0.08) !important;
}

html[data-theme="light"] .ti-hub-page .ti-hub-org .ti-org-card--analyst {
    border-left: 4px solid #0284c7 !important;
}

html[data-theme="light"] .ti-hub-page .ti-hub-org .ti-org-card--intern {
    border-left: 4px solid #7c3aed !important;
}

html[data-theme="light"] .ti-hub-page .ti-hub-org .ti-org-card:not(.ti-org-card--director) .ti-org-card__tag {
    color: #0369a1 !important;
}

html[data-theme="light"] .ti-hub-page .ti-hub-org .ti-org-card--intern .ti-org-card__tag {
    color: #6d28d9 !important;
}

html[data-theme="light"] .ti-hub-page .ti-hub-org .ti-org-card:not(.ti-org-card--director) h3,
html[data-theme="light"] .ti-hub-page .ti-hub-org .ti-org-card:not(.ti-org-card--director) .ti-org-card__body h3 {
    color: #0f2846 !important;
}

html[data-theme="light"] .ti-hub-page .ti-hub-org .ti-org-card:not(.ti-org-card--director) p,
html[data-theme="light"] .ti-hub-page .ti-hub-org .ti-org-card:not(.ti-org-card--director) .ti-org-card__body p {
    color: #475569 !important;
}

html[data-theme="light"] .ti-hub-page .ti-hub-org .ti-org-avatar--analyst {
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.35), rgba(14, 165, 233, 0.2)) !important;
    border: 1px solid rgba(2, 132, 199, 0.35) !important;
    color: #0369a1 !important;
}

html[data-theme="light"] .ti-hub-page .ti-hub-org .ti-org-avatar--intern {
    background: linear-gradient(145deg, rgba(167, 139, 250, 0.35), rgba(139, 92, 246, 0.2)) !important;
    border: 1px solid rgba(124, 58, 237, 0.35) !important;
    color: #6d28d9 !important;
}

html[data-theme="light"] .ti-hub-page .ti-hub-org .ti-org-connector__label {
    color: #2270aa !important;
    opacity: 1 !important;
}

html[data-theme="light"] .ti-hub-page .ti-hub-org .ti-org-connector--soft .ti-org-connector__label {
    color: #5b21b6 !important;
}

html[data-theme="light"] .ti-hub-page .ti-hub-org .ti-org-connector--horizontal .ti-org-connector__line {
    background: linear-gradient(90deg, rgba(34, 112, 170, 0.9), rgba(34, 112, 170, 0.35)) !important;
    box-shadow: none !important;
}

html[data-theme="light"] .ti-hub-page .ti-hub-org .ti-org-connector--horizontal .ti-org-connector__line--soft,
html[data-theme="light"] .ti-hub-page .ti-hub-org .ti-org-connector--horizontal.ti-org-connector--soft .ti-org-connector__line {
    background: linear-gradient(90deg, rgba(91, 80, 180, 0.75), rgba(91, 80, 180, 0.28)) !important;
}

/* Hub — Jornal TI (contraste no tema claro) */
html[data-theme="light"] .ti-hub-page .ti-hub-journal {
    background: #ffffff !important;
    border: 1px solid rgba(27, 45, 78, 0.12) !important;
    box-shadow: 0 16px 40px rgba(27, 45, 78, 0.1) !important;
}

html[data-theme="light"] .ti-hub-page .ti-hub-journal__head h2 {
    color: #0f2846 !important;
}

html[data-theme="light"] .ti-hub-page .ti-hub-journal__lead {
    color: #4a5d7a !important;
}

html[data-theme="light"] .ti-hub-page .ti-hub-journal__head .ti-org-kicker {
    color: #2270aa !important;
}

html[data-theme="light"] .ti-hub-page .ti-hub-journal__item {
    background: #f4f8fc !important;
    border: 1px solid rgba(27, 45, 78, 0.12) !important;
}

html[data-theme="light"] .ti-hub-page .ti-hub-journal__item:hover {
    background: #eef4fa !important;
    border-color: rgba(34, 112, 170, 0.28) !important;
}

html[data-theme="light"] .ti-hub-page .ti-hub-journal__icon {
    background: rgba(34, 112, 170, 0.14) !important;
    color: #2270aa !important;
}

html[data-theme="light"] .ti-hub-page .ti-hub-journal__cat {
    color: #0369a1 !important;
    background: rgba(34, 112, 170, 0.12) !important;
    border: 1px solid rgba(34, 112, 170, 0.22) !important;
}

html[data-theme="light"] .ti-hub-page .ti-hub-journal__copy h3 {
    color: #0f2846 !important;
}

html[data-theme="light"] .ti-hub-page .ti-hub-journal__copy p {
    color: #475569 !important;
}

html[data-theme="light"] .ti-hub-page .ti-hub-journal__feed {
    scrollbar-color: rgba(34, 112, 170, 0.4) transparent;
}

html[data-theme="light"] .ti-hub-page .ti-hub-journal__feed::-webkit-scrollbar-thumb {
    background: rgba(34, 112, 170, 0.4) !important;
}

html[data-theme="light"] .ti-terms-page {
    color: #1b2d4e !important;
    background:
        radial-gradient(ellipse 120% 90% at 0% 0%, rgba(59, 171, 212, 0.14), transparent 55%),
        radial-gradient(ellipse 80% 70% at 100% 100%, rgba(34, 112, 170, 0.1), transparent 50%),
        linear-gradient(165deg, #e2e9f2 0%, #eef2f8 48%, #e8edf5 100%) !important;
}

html[data-theme="light"] .ti-terms-hero {
    border-color: rgba(27, 45, 78, 0.12) !important;
    box-shadow: 0 20px 48px rgba(27, 45, 78, 0.14) !important;
}

html[data-theme="light"] .ti-terms-hero h1 {
    color: #fff !important;
}

html[data-theme="light"] .ti-terms-hero .ti-terms-badge {
    color: #b8ecff !important;
}

html[data-theme="light"] .ti-terms-hero p {
    color: rgba(255, 255, 255, 0.94) !important;
}

html[data-theme="light"] .ti-terms-hero .ti-terms-btn--ghost {
    background: rgba(255, 255, 255, 0.16) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.38) !important;
}

html[data-theme="light"] .ti-terms-card {
    background: #ffffff !important;
    border-color: rgba(27, 45, 78, 0.12) !important;
    box-shadow: 0 16px 40px rgba(27, 45, 78, 0.1) !important;
    color: #1b2d4e !important;
}

html[data-theme="light"] .ti-terms-card-head span,
html[data-theme="light"] .ti-terms-card .ti-terms-badge {
    color: #1d4ed8 !important;
}

html[data-theme="light"] .ti-terms-card-head h2,
html[data-theme="light"] .ti-terms-item strong,
html[data-theme="light"] .ti-terms-empty strong {
    color: #0f2846 !important;
}

html[data-theme="light"] .ti-terms-item span,
html[data-theme="light"] .ti-terms-item small,
html[data-theme="light"] .ti-terms-empty {
    color: #475569 !important;
}

html[data-theme="light"] .ti-terms-note {
    color: #334155 !important;
    background: #f1f5f9 !important;
    border-color: rgba(27, 45, 78, 0.12) !important;
}

html[data-theme="light"] .ti-terms-form label span,
html[data-theme="light"] .ti-terms-field--readonly > span {
    color: #0f2846 !important;
}

html[data-theme="light"] .ti-terms-readonly-hint {
    color: #0c4a6e !important;
    background: rgba(224, 242, 254, 0.98) !important;
    border-color: rgba(14, 165, 233, 0.4) !important;
}

html[data-theme="light"] .ti-terms-field-value {
    background: #f8fafc !important;
    border-color: rgba(27, 45, 78, 0.18) !important;
    color: #0f2846 !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

html[data-theme="light"] .ti-terms-item,
html[data-theme="light"] .ti-terms-empty {
    background: #f8fafc !important;
    border-color: rgba(27, 45, 78, 0.12) !important;
}

html[data-theme="light"] .ti-terms-painel-hint {
    background: rgba(34, 112, 170, 0.1) !important;
    border-color: rgba(34, 112, 170, 0.22) !important;
    color: #334155 !important;
}

html[data-theme="light"] .ti-terms-painel-hint strong {
    color: #0f2846 !important;
}

html[data-theme="light"] .ti-terms-painel-hint--warn {
    background: rgba(251, 191, 36, 0.2) !important;
    border-color: rgba(180, 120, 0, 0.4) !important;
    color: #713f12 !important;
}

html[data-theme="light"] .ti-terms-item em {
    background: rgba(34, 112, 170, 0.12) !important;
    color: #1d4ed8 !important;
}

html[data-theme="light"] .ti-terms-item--notebook em {
    background: rgba(34, 112, 170, 0.14) !important;
    color: #1e40af !important;
}

html[data-theme="light"] .ti-terms-item--monitor em {
    background: rgba(99, 102, 241, 0.14) !important;
    color: #4338ca !important;
}

html[data-theme="light"] .ti-terms-item--pdf em {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #b91c1c !important;
}

html[data-theme="light"] .ti-terms-card .ti-terms-btn--ghost,
html[data-theme="light"] .ti-terms-item .ti-terms-btn--ghost {
    background: #fff !important;
    color: #b42318 !important;
    border: 1px solid rgba(180, 35, 24, 0.35) !important;
    font-weight: 800 !important;
}

html[data-theme="light"] .ti-terms-card .ti-terms-btn--ghost:hover,
html[data-theme="light"] .ti-terms-item .ti-terms-btn--ghost:hover {
    background: #fef2f2 !important;
    border-color: rgba(180, 35, 24, 0.5) !important;
}

html[data-theme="light"] .ti-terms-alert--sucesso,
html[data-theme="light"] .ti-terms-alert--success {
    color: #166534 !important;
    background: rgba(34, 197, 94, 0.12) !important;
    border-color: rgba(22, 101, 52, 0.25) !important;
}

html[data-theme="light"] .ti-terms-alert--erro,
html[data-theme="light"] .ti-terms-alert--error {
    color: #991b1b !important;
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(153, 27, 27, 0.28) !important;
}

html[data-theme="light"] .ti-terms-item--atual {
    background: rgba(34, 112, 170, 0.1) !important;
    border-color: rgba(34, 112, 170, 0.32) !important;
}

html[data-theme="light"] .ti-terms-item--atual strong {
    color: #0f2846 !important;
}

/* ===== COMUNICADOS (FEED) NO TEMA CLARO — imagem + painel legível ===== */

html[data-theme="light"] .feed-card--hero {
    background: #e8eef5 !important;
    border-color: rgba(27, 45, 78, 0.12) !important;
}

html[data-theme="light"] .feed-card--hero .feed-card-overlay {
    background: linear-gradient(
        90deg,
        rgba(15, 40, 80, 0.04) 0%,
        rgba(15, 40, 80, 0.1) 100%
    ) !important;
}

html[data-theme="light"] .feed-card-panel,
html[data-theme="light"] .feed-card-hero-right {
    background: #ffffff !important;
    border-left: 1px solid rgba(27, 45, 78, 0.1) !important;
    box-shadow: -10px 0 24px rgba(27, 45, 78, 0.06) !important;
}

html[data-theme="light"] .feed-card-panel h4,
html[data-theme="light"] .feed-card-hero-right h4,
html[data-theme="light"] .feed-card-hero-content h4,
html[data-theme="light"] .feed-card--hero h4 {
    color: #0f2846 !important;
}

html[data-theme="light"] .feed-card-panel .feed-meta,
html[data-theme="light"] .feed-card-hero-right .feed-meta,
html[data-theme="light"] .feed-card-hero-content .feed-meta,
html[data-theme="light"] .feed-card--hero .feed-meta {
    color: #64748b !important;
    font-weight: 600;
}

html[data-theme="light"] .feed-card-panel .feed-meta span,
html[data-theme="light"] .feed-card-hero-right .feed-meta span {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(34, 112, 170, 0.1);
    color: #475569 !important;
    font-size: 0.78rem;
}

html[data-theme="light"] .feed-card-panel .feed-stats,
html[data-theme="light"] .feed-card-hero-right .feed-stats,
html[data-theme="light"] .feed-card-hero-content .feed-stats,
html[data-theme="light"] .feed-card--hero .feed-stats {
    color: #1b2d4e !important;
}

html[data-theme="light"] .feed-card--hero .feed-action-btn span {
    color: inherit !important;
}

@media (max-width: 860px) {
    html[data-theme="light"] .feed-card-panel,
    html[data-theme="light"] .feed-card-hero-right {
        border-left: 0 !important;
        border-top: 1px solid rgba(27, 45, 78, 0.1) !important;
        box-shadow: 0 -6px 20px rgba(27, 45, 78, 0.05) !important;
    }
}

html[data-theme="light"] .feed-card-media {
    background: #eef2f7 !important;
}

html[data-theme="light"] .feed-comment-carousel {
    background: #f0f4f8 !important;
    border: 1px solid rgba(27, 45, 78, 0.1) !important;
    color: rgba(27, 45, 78, 0.88) !important;
}

html[data-theme="light"] .feed-comment-carousel__author {
    color: #122338 !important;
}

html[data-theme="light"] .feed-comment-carousel__empty {
    color: rgba(27, 45, 78, 0.58) !important;
}

html[data-theme="light"] .feed-comment-carousel .feed-comment-item {
    color: #334b6e !important;
}

html[data-theme="light"] .feed-comment-carousel .feed-comment-author {
    color: #122338 !important;
}

html[data-theme="light"] .feed-comment-carousel .feed-comment-text {
    color: rgba(27, 45, 78, 0.88) !important;
}

/* ===== Jornal Bloko — lista completa (modo claro) ===== */

html[data-theme="light"] .news-feed-page__title h1 {
    color: #0f2846 !important;
}

html[data-theme="light"] .news-feed-page__title p {
    color: rgba(27, 45, 78, 0.72) !important;
}

html[data-theme="light"] .news-feed-page button.dashboard-filter,
html[data-theme="light"] .news-feed-page .dashboard-filter:not(a) {
    background: linear-gradient(135deg, #2270aa 0%, #3babd4 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(34, 112, 170, 0.22) !important;
}

html[data-theme="light"] .news-feed-page a.dashboard-filter {
    background: #ffffff !important;
    color: #2270aa !important;
    border: 1px solid rgba(34, 112, 170, 0.32) !important;
    box-shadow: 0 4px 14px rgba(27, 45, 78, 0.06) !important;
}

html[data-theme="light"] .news-feed-page a.dashboard-filter:hover {
    background: #f0f7fc !important;
    border-color: rgba(34, 112, 170, 0.45) !important;
}

html[data-theme="light"] .news-feed-page__more-meta {
    color: rgba(27, 45, 78, 0.62) !important;
}

html[data-theme="light"] .news-feed-page__empty {
    background: #ffffff !important;
    border: 1px solid rgba(27, 45, 78, 0.12) !important;
    color: rgba(27, 45, 78, 0.72) !important;
    box-shadow: 0 8px 26px rgba(27, 45, 78, 0.08) !important;
}

html[data-theme="light"] .news-feed-card {
    background: #ffffff !important;
    border: 1px solid rgba(27, 45, 78, 0.12) !important;
    box-shadow: 0 14px 36px rgba(27, 45, 78, 0.12) !important;
}

html[data-theme="light"] .news-feed-card:hover {
    box-shadow: 0 18px 44px rgba(27, 45, 78, 0.16) !important;
}

html[data-theme="light"] .news-feed-card--scheduled {
    box-shadow:
        0 0 0 1px rgba(245, 158, 11, 0.45),
        0 14px 36px rgba(27, 45, 78, 0.1) !important;
}

html[data-theme="light"] .news-feed-card__media {
    background:
        radial-gradient(circle at top left, rgba(59, 171, 212, 0.22), transparent 34%),
        linear-gradient(135deg, #e8f1fb 0%, #dbe8f5 100%) !important;
}

html[data-theme="light"] .news-feed-card__media--empty::after {
    color: rgba(27, 45, 78, 0.2) !important;
}

html[data-theme="light"] .news-feed-card__meta {
    color: rgba(27, 45, 78, 0.62) !important;
}

html[data-theme="light"] .news-feed-card__badge {
    background: rgba(34, 112, 170, 0.12) !important;
    color: #164a73 !important;
}

html[data-theme="light"] .news-feed-card__badge--scheduled {
    background: rgba(245, 158, 11, 0.2) !important;
    color: #92400e !important;
}

html[data-theme="light"] .news-feed-card__title {
    color: #122338 !important;
}

html[data-theme="light"] .news-feed-card__excerpt {
    color: rgba(27, 45, 78, 0.82) !important;
}

html[data-theme="light"] .news-feed-card__stat {
    background: rgba(27, 45, 78, 0.06) !important;
    color: #1b2d4e !important;
}

html[data-theme="light"] .news-feed-card__stat:hover {
    background: rgba(34, 112, 170, 0.14) !important;
}

html[data-theme="light"] .news-feed-card__button--ghost {
    background: rgba(27, 45, 78, 0.06) !important;
    color: #1b2d4e !important;
    border: 1px solid rgba(27, 45, 78, 0.12) !important;
}

/* ===== Sienge ===== */

.sienge-page {
    padding: 28px clamp(16px, 3vw, 32px);
    max-width: 1320px;
    margin: 0 auto;
}

.sienge-hero {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: clamp(22px, 3vw, 36px);
    border-radius: 22px;
    background: linear-gradient(135deg, #0f2748 0%, #153a5c 55%, #1a4a72 100%);
    color: #fff;
    margin-bottom: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 40px rgba(8, 20, 45, 0.35);
}

.sienge-hero__mark {
    flex-shrink: 0;
    border-radius: 12px;
    background: #fff;
    padding: 4px;
    object-fit: contain;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.sienge-badge {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}

.sienge-hero h1 {
    margin: 0 0 8px;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
}

.sienge-lead {
    margin: 0;
    max-width: 62ch;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.55;
    font-size: 15px;
}

.sienge-lead a {
    color: #7dd3fc;
}

.sienge-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
}

.sienge-tabs__item {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    color: #1e3a5f;
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
    transition: background 0.15s, color 0.15s;
}

.sienge-tabs__item:hover {
    background: #cbd5e1;
}

.sienge-tabs__item.is-active {
    background: linear-gradient(135deg, #1e3a5f, #2563eb);
    color: #fff;
    border-color: transparent;
}

.sienge-detail-dl {
    max-height: 420px;
    overflow: auto;
}

.sienge-linklist {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 13px;
}

.sienge-linklist a {
    word-break: break-all;
}

.sienge-related-links {
    margin-bottom: 14px;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.sienge-nested-dl {
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 10px;
    font-size: 12px;
}

.sienge-nested-dl dt {
    font-weight: 700;
    color: #64748b;
}

.sienge-nested-dl dd {
    margin: 0;
}

.sienge-pay-card {
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.sienge-pay-card__title {
    margin: 0 0 8px;
    font-size: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.sienge-panels {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-bottom: 20px;
}

.sienge-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    color: #1e293b;
}

.sienge-panel h2 {
    margin: 0 0 12px;
    font-size: 17px;
}

.sienge-subhead {
    margin: 18px 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: #334155;
}

.sienge-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.sienge-linkfill {
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.sienge-panel--note {
    background: #f8fafc;
}

.sienge-list {
    margin: 0 0 12px;
    padding-left: 18px;
    line-height: 1.55;
    font-size: 14px;
}

.sienge-warn {
    margin: 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    font-size: 14px;
}

.sienge-panel--table {
    grid-column: 1 / -1;
}

.sienge-panel--full {
    grid-column: 1 / -1;
}

.sienge-table-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.sienge-meta {
    font-size: 12px;
    color: #64748b;
}

.sienge-meta code {
    font-size: 11px;
    word-break: break-all;
}

.sienge-error {
    color: #b91c1c;
    font-weight: 600;
}

.sienge-table-scroll {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.sienge-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.sienge-table th,
.sienge-table td {
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.sienge-table th {
    background: #f1f5f9;
    font-weight: 700;
    white-space: nowrap;
}

.sienge-raw pre {
    max-height: 320px;
    overflow: auto;
    font-size: 11px;
    background: #0f172a;
    color: #e2e8f0;
    padding: 12px;
    border-radius: 8px;
}

.sienge-form {
    margin-top: 4px;
}

.sienge-form--inline {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 14px;
}

.sienge-form--lookup {
    align-items: flex-end;
    margin-bottom: 10px;
}

.sienge-contract-disp {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    color: #334155;
}

.sienge-contract-disp__title {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
}

.sienge-contract-disp__dl {
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 14px;
}

.sienge-contract-disp__dl dt {
    margin: 0;
    font-weight: 700;
    color: #475569;
}

.sienge-contract-disp__dl dd {
    margin: 0;
    font-weight: 500;
}

.sienge-form--tight {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #cbd5e1;
}

.sienge-form__grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-bottom: 12px;
}

.sienge-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.sienge-field--wide {
    grid-column: 1 / -1;
}

.sienge-field--compact span {
    font-size: 12px;
}

.sienge-field--check span:first-child {
    display: none;
}

.sienge-field input,
.sienge-field textarea {
    font-weight: 400;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
}

.sienge-field textarea {
    resize: vertical;
    min-height: 120px;
}

.sienge-monospace {
    font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
    font-size: 12px;
}

.sienge-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    margin-top: 24px;
}

.sienge-hint {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 12px;
    line-height: 1.45;
}

.sienge-env-check {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fefce8;
    border: 1px solid #fde047;
    color: #713f12;
    font-size: 14px;
    line-height: 1.5;
}

.sienge-env-check__intro {
    margin: 0 0 10px;
    font-size: 13px;
    color: #713f12;
}

.sienge-env-check__list {
    margin: 10px 0 0;
    padding-left: 20px;
}

.sienge-env-check__list li {
    margin: 6px 0;
}

.sienge-env-check__foot {
    margin: 12px 0 0;
    font-size: 13px;
    color: #854d0e;
}

.sienge-flash {
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 12px;
}

.sienge-flash--ok {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #047857;
}

.sienge-flash--err {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.sienge-flash--warn {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #92400e;
}

.sienge-flash-code {
    font-weight: 500;
    opacity: 0.85;
}

.sienge-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    background: linear-gradient(135deg, #0f2748 0%, #1e4976 100%);
    color: #fff;
    box-shadow: 0 2px 10px rgba(15, 39, 72, 0.25);
}

.sienge-btn:hover {
    filter: brightness(1.06);
}

.sienge-btn--ghost {
    background: #fff;
    color: #0f2748;
    border: 1px solid #cbd5e1;
    box-shadow: none;
}

.sienge-btn--danger {
    background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 100%);
}

.sienge-table-scroll--compact {
    margin-top: 10px;
}

.sienge-measured-block {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.sienge-measured-block__title {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.sienge-items-measured__meta {
    display: block;
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.sienge-items-measured__desc {
    font-size: 0.9rem;
    color: #0f172a;
    line-height: 1.35;
}

.sienge-items-measured__col-num {
    width: 9.5rem;
    vertical-align: top;
}

.sienge-items-measured__input {
    width: 100%;
    max-width: 10rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.sienge-items-measured__input--code {
    max-width: 100%;
    text-align: left;
}

.sienge-advanced-json {
    margin: 1rem 0;
    padding: 0.5rem 0.75rem;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #fff;
}

.sienge-advanced-json summary {
    cursor: pointer;
    font-weight: 600;
    color: #334155;
}

.sienge-items-missing {
    margin: 1rem 0 1.25rem;
    padding: 1rem 1.1rem;
    border-radius: 8px;
    border: 1px solid #f59e0b;
    background: #fffbeb;
    color: #78350f;
}

.sienge-items-missing__p {
    margin: 0.5rem 0 0;
    font-size: 0.92rem;
    line-height: 1.45;
}

.sienge-items-missing__p a {
    font-weight: 600;
    color: #b45309;
    text-decoration: underline;
}

.sienge-items-missing__detail {
    margin: 0.65rem 0 0;
    padding: 0.5rem 0.65rem;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #fcd34d;
    font-size: 0.88rem;
    color: #92400e;
}

.sienge-items-missing__muted {
    font-size: 0.85rem;
    color: #a16207;
}

/* =========================
   ASSISTENTE IA (CHAT GPT)
========================= */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.bloko-assist {
    font-family: 'Azo Sans', Arial, sans-serif;
}

.bloko-assist__fab {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 10050;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #3babd4, #2270aa);
    color: #ffffff;
    font-size: 1.55rem;
    box-shadow:
        0 10px 28px rgba(12, 32, 60, 0.45),
        0 2px 0 rgba(255, 255, 255, 0.12) inset;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    animation: blokoAssistFabPulse 2.8s ease-in-out infinite;
}

@keyframes blokoAssistFabPulse {
    0%, 100% {
        box-shadow:
            0 10px 28px rgba(12, 32, 60, 0.45),
            0 0 0 0 rgba(59, 171, 212, 0.45);
    }
    50% {
        box-shadow:
            0 12px 32px rgba(12, 32, 60, 0.5),
            0 0 0 10px rgba(59, 171, 212, 0);
    }
}

.bloko-assist__fab:hover {
    transform: translateY(-2px) scale(1.03);
    filter: brightness(1.06);
    animation: none;
}

.bloko-assist.is-open .bloko-assist__fab {
    animation: none;
}

.bloko-assist__fab:active {
    transform: translateY(0) scale(0.98);
}

.bloko-assist__backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10040;
    background: rgba(5, 12, 24, 0.55);
    backdrop-filter: blur(2px);
}

.bloko-assist.is-open .bloko-assist__backdrop:not([hidden]) {
    display: block;
}

.bloko-assist__panel {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 10060;
    width: min(420px, calc(100vw - 32px));
    max-height: min(620px, calc(100vh - 96px));
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #152744 0%, #1a3158 100%);
    color: rgba(255, 255, 255, 0.94);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 24px 60px rgba(5, 12, 24, 0.55),
        0 0 0 1px rgba(0, 0, 0, 0.22) inset;
    overflow: hidden;
}

.bloko-assist.is-open .bloko-assist__panel:not([hidden]) {
    animation: blokoAssistPanelIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes blokoAssistPanelIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.94);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.bloko-assist--has-studio:not(.bloko-assist--has-openai) .bloko-assist__panel {
    width: min(440px, calc(100vw - 32px));
    max-height: min(740px, calc(100vh - 72px));
}

.bloko-assist__studio-wrap {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    margin: 10px 14px 8px;
    min-height: 420px;
    max-height: min(54vh, 540px);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.25);
}

.bloko-assist--has-studio.bloko-assist--has-openai .bloko-assist__studio-wrap {
    min-height: 220px;
    max-height: 300px;
    flex-shrink: 0;
}

.bloko-assist__studio-iframe {
    flex: 1;
    width: 100%;
    border: 0;
    min-height: 380px;
    background: #0f172a;
}

.bloko-assist__misconfigured {
    padding: 12px 16px 8px;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.bloko-assist__misconfigured ol {
    padding-left: 18px;
    margin: 8px 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bloko-assist__misconfigured a {
    color: #8ecaff;
}

.bloko-assist__misconfigured code {
    font-size: 0.78em;
    word-break: break-all;
}

.bloko-assist__panel[hidden],
.bloko-assist__backdrop[hidden] {
    display: none !important;
}

.bloko-assist__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bloko-assist__title {
    margin: 0;
    font-size: 1.1rem;
    font-family: 'Excon', 'Azo Sans', sans-serif;
    letter-spacing: -0.02em;
}

.bloko-assist__subtitle {
    margin: 4px 0 0;
    font-size: 0.78rem;
    line-height: 1.35;
    opacity: 0.76;
}

.bloko-assist__close {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: background 0.15s ease;
}

.bloko-assist__close:hover {
    background: rgba(255, 255, 255, 0.12);
}

.bloko-assist__messages {
    flex: 1 1 auto;
    min-height: 200px;
    max-height: 360px;
    overflow-y: auto;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bloko-assist__msg {
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.875rem;
    line-height: 1.48;
    max-width: 92%;
    word-break: break-word;
    white-space: pre-wrap;
}

.bloko-assist__msg--user {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(59, 171, 212, 0.45), rgba(34, 112, 170, 0.35));
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.bloko-assist__msg--assistant {
    align-self: flex-start;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.bloko-assist__msg--thinking {
    align-self: flex-start;
    font-style: italic;
    opacity: 0.8;
}

.bloko-assist__welcome {
    margin: 0;
    padding: 4px 2px;
    font-size: 0.86rem;
    line-height: 1.5;
    color: rgba(226, 232, 240, 0.95);
}

.bloko-assist__welcome--animated {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 8px 4px 12px;
    animation: blokoAssistWelcomeIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

@keyframes blokoAssistWelcomeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bloko-assist__welcome-icon {
    position: relative;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(59, 171, 212, 0.35), rgba(34, 112, 170, 0.25));
    color: #7dd3fc;
    font-size: 1.25rem;
    animation: blokoAssistIconFloat 3s ease-in-out infinite;
}

@keyframes blokoAssistIconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

.bloko-assist__welcome-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 16px;
    border: 2px solid rgba(125, 211, 252, 0.45);
    animation: blokoAssistWelcomeRing 2.4s ease-out infinite;
    pointer-events: none;
}

.bloko-assist__welcome-pulse--2 {
    animation-delay: 1.2s;
}

@keyframes blokoAssistWelcomeRing {
    0% {
        transform: scale(0.85);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

.bloko-assist__welcome-text {
    flex: 1;
    min-width: 0;
}

.bloko-assist__welcome-text strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.92rem;
    color: #f8fafc;
}

.bloko-assist__welcome-text p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.5;
    color: rgba(226, 232, 240, 0.88);
}

@media (prefers-reduced-motion: reduce) {
    .bloko-assist__fab,
    .bloko-assist.is-open .bloko-assist__panel:not([hidden]),
    .bloko-assist__welcome--animated,
    .bloko-assist__welcome-icon,
    .bloko-assist__welcome-pulse {
        animation: none;
    }
}

.bloko-assist__foot {
    padding: 10px 14px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(0, 0, 0, 0.08);
}

.bloko-assist__error {
    font-size: 0.82rem;
    color: #fecaca;
    background: rgba(180, 35, 24, 0.22);
    border: 1px solid rgba(252, 165, 165, 0.25);
    border-radius: 10px;
    padding: 8px 10px;
}

.bloko-assist__hybrid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 0 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 6px;
}

.bloko-assist__copilot-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(59, 171, 212, 0.18);
    border: 1px solid rgba(59, 171, 212, 0.35);
    transition: background 0.15s ease;
}

.bloko-assist__copilot-link:hover {
    background: rgba(59, 171, 212, 0.28);
    text-decoration: none;
    color: #fff;
}

.bloko-assist__hybrid-note {
    font-size: 0.75rem;
    line-height: 1.35;
    opacity: 0.74;
}

.bloko-assist__input {
    width: 100%;
    resize: vertical;
    min-height: 44px;
    max-height: 140px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: inherit;
    font: inherit;
    outline: none;
}

.bloko-assist__input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.bloko-assist__input:focus {
    border-color: rgba(59, 171, 212, 0.55);
    box-shadow: 0 0 0 3px rgba(59, 171, 212, 0.2);
}

.bloko-assist__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.bloko-assist__btn {
    border-radius: 11px;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: filter 0.15s ease, background 0.15s ease;
}

.bloko-assist__btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.bloko-assist__btn--primary {
    background: linear-gradient(135deg, #3babd4, #2270aa);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.12);
}

.bloko-assist__btn--primary:hover:not(:disabled) {
    filter: brightness(1.08);
}

.bloko-assist__btn--ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    border-color: rgba(255, 255, 255, 0.16);
}

.bloko-assist__btn--ghost:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.07);
}

html[data-theme="light"] .bloko-assist__panel {
    background: linear-gradient(180deg, #f4f8fc 0%, #e9f0fa 100%);
    color: #182944;
    border-color: rgba(24, 49, 87, 0.12);
}

html[data-theme="light"] .bloko-assist__studio-wrap {
    border-color: rgba(24, 49, 87, 0.14);
    background: rgba(255, 255, 255, 0.7);
}

html[data-theme="light"] .bloko-assist__misconfigured a {
    color: #2270aa;
}

html[data-theme="light"] .bloko-assist__head {
    border-bottom-color: rgba(24, 49, 87, 0.1);
}

html[data-theme="light"] .bloko-assist__subtitle {
    color: #69798f;
    opacity: 1;
}

html[data-theme="light"] .bloko-assist__close {
    background: rgba(24, 49, 87, 0.06);
    border-color: rgba(24, 49, 87, 0.12);
    color: #182944;
}

html[data-theme="light"] .bloko-assist__close:hover {
    background: rgba(24, 49, 87, 0.1);
}

html[data-theme="light"] .bloko-assist__msg--user {
    background: linear-gradient(135deg, rgba(59, 171, 212, 0.28), rgba(34, 112, 170, 0.2));
    border-color: rgba(24, 49, 87, 0.1);
    color: #112746;
}

html[data-theme="light"] .bloko-assist__msg--assistant {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(24, 49, 87, 0.1);
}

html[data-theme="light"] .bloko-assist__foot {
    background: rgba(255, 255, 255, 0.5);
    border-top-color: rgba(24, 49, 87, 0.08);
}

html[data-theme="light"] .bloko-assist__input {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(24, 49, 87, 0.14);
    color: #182944;
}

html[data-theme="light"] .bloko-assist__input::placeholder {
    color: #69798f;
}

html[data-theme="light"] .bloko-assist__hybrid {
    border-bottom-color: rgba(24, 49, 87, 0.1);
}

html[data-theme="light"] .bloko-assist__copilot-link {
    color: #112746;
    background: rgba(34, 112, 170, 0.12);
    border-color: rgba(34, 112, 170, 0.28);
}

html[data-theme="light"] .bloko-assist__copilot-link:hover {
    background: rgba(34, 112, 170, 0.2);
    color: #112746;
}

html[data-theme="light"] .bloko-assist__hybrid-note {
    color: #526174;
    opacity: 1;
}

html[data-theme="light"] .bloko-assist__welcome {
    color: #526174;
}

html[data-theme="light"] .bloko-assist__welcome-text strong {
    color: #0f2744;
}

html[data-theme="light"] .bloko-assist__welcome-text p {
    color: #526174;
}

html[data-theme="light"] .bloko-assist__welcome-icon {
    background: linear-gradient(145deg, rgba(59, 171, 212, 0.2), rgba(34, 112, 170, 0.12));
    color: #2270aa;
}

html[data-theme="light"] .bloko-assist__btn--ghost {
    color: #183157;
    border-color: rgba(24, 49, 87, 0.18);
}

/* =========================
   ONEDRIVE
========================= */

.onedrive-page {
    padding: 28px;
    max-width: 920px;
    margin: 0 auto;
}

.onedrive-hero {
    background: linear-gradient(135deg, rgba(24, 47, 94, 0.98), rgba(34, 84, 162, 0.92));
    border-radius: 28px;
    padding: 28px 30px;
    color: #fff;
    box-shadow: 0 24px 60px rgba(12, 23, 46, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.onedrive-hero__brand {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}

.onedrive-hero__brand h1 {
    margin: 0 0 6px;
    font-size: 2rem;
    color: #fff;
}

.onedrive-hero__brand p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.5;
}

.onedrive-badge {
    display: inline-flex;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.onedrive-alert {
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 18px;
    font-size: 0.94rem;
    line-height: 1.5;
}

.onedrive-alert strong {
    display: block;
    margin-bottom: 4px;
}

.onedrive-alert p {
    margin: 0;
}

.onedrive-alert--warn {
    background: rgba(251, 191, 36, 0.18);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: #fff8e6;
}

.onedrive-alert--info {
    background: rgba(59, 171, 212, 0.16);
    border: 1px solid rgba(59, 171, 212, 0.35);
    color: #e8f7ff;
}

.onedrive-alert--ok {
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.32);
    color: #dcfce7;
}

.onedrive-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.onedrive-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.onedrive-btn--primary {
    background: linear-gradient(135deg, #0078d4 0%, #3babd4 100%);
    color: #fff;
    box-shadow: 0 12px 28px rgba(0, 120, 212, 0.35);
}

.onedrive-btn--primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.onedrive-btn--ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.onedrive-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.18);
}

.onedrive-btn--link {
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    padding-inline: 8px;
}

.onedrive-hint {
    margin-top: 20px;
    padding: 20px 22px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(27, 45, 78, 0.1);
    box-shadow: 0 12px 28px rgba(27, 45, 78, 0.08);
}

.onedrive-hint h2 {
    margin: 0 0 8px;
    font-size: 1rem;
    color: var(--primary);
}

.onedrive-hint p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

html[data-theme="light"] .onedrive-hint {
    background: #ffffff !important;
}

html[data-theme="light"] .onedrive-hint h2 {
    color: #0f2846 !important;
}

html[data-theme="light"] .onedrive-hint p {
    color: #4a5d78 !important;
}

/* =========================
   SHAREPOINT HUB (redes do usuário)
========================= */

.sp-hub-page {
    padding: 24px 28px 40px;
    max-width: 1240px;
    margin: 0 auto;
}

.sp-hub-hero {
    background: linear-gradient(145deg, #0b5c3a 0%, #128052 48%, #1a9d66 100%);
    border-radius: 22px;
    padding: 22px 26px 20px;
    color: #fff;
    box-shadow: 0 16px 40px rgba(11, 92, 58, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.14);
    margin-bottom: 18px;
}

.sp-hub-hero__main {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 16px;
}

.sp-hub-logo {
    flex-shrink: 0;
    display: flex;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.sp-hub-hero__copy h1 {
    margin: 0 0 6px;
    font-size: clamp(1.5rem, 2.4vw, 1.75rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.sp-hub-hero__copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.5;
    font-size: 0.95rem;
    max-width: 52ch;
}

.sp-hub-badge {
    display: inline-flex;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.sp-hub-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.sp-hub-toolbar__actions {
    display: flex;
    gap: 8px;
}

.sp-hub-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.92);
}

.sp-hub-count__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7dffb0;
    box-shadow: 0 0 0 3px rgba(125, 255, 176, 0.25);
    animation: sp-hub-pulse 1.4s ease-in-out infinite;
}

.sp-hub-count--loading .sp-hub-count__dot {
    background: #ffe08a;
    box-shadow: 0 0 0 3px rgba(255, 224, 138, 0.3);
}

@keyframes sp-hub-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.65; transform: scale(0.92); }
}

.sp-hub-btn {
    border: none;
    border-radius: 11px;
    padding: 9px 15px;
    font-weight: 700;
    font-size: 0.88rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.sp-hub-btn--ghost {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.sp-hub-btn--ghost:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(-1px);
}

.sp-hub-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.sp-hub-search-wrap {
    margin-bottom: 16px;
}

.sp-hub-search {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(27, 45, 78, 0.1);
    box-shadow: 0 8px 24px rgba(27, 45, 78, 0.06);
    color: #5a6d86;
}

.sp-hub-search input {
    flex: 1;
    border: none;
    background: transparent;
    font: inherit;
    font-size: 0.95rem;
    color: #122338;
    outline: none;
}

.sp-hub-search input::placeholder {
    color: #8a9bb2;
}

.sp-hub-alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 14px;
    line-height: 1.5;
}

.sp-hub-alert strong {
    display: block;
    margin-bottom: 4px;
}

.sp-hub-alert p {
    margin: 0;
    font-size: 0.92rem;
}

.sp-hub-alert--warn {
    background: rgba(251, 191, 36, 0.14);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: #7c4a03;
}

.sp-hub-alert--info {
    background: rgba(59, 171, 212, 0.12);
    border: 1px solid rgba(59, 171, 212, 0.32);
    color: #0f4c75;
}

.sp-hub-empty {
    text-align: center;
    padding: 44px 24px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px dashed rgba(27, 45, 78, 0.16);
    box-shadow: 0 10px 28px rgba(27, 45, 78, 0.06);
}

.sp-hub-empty__icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: #0b5c3a;
    background: linear-gradient(135deg, rgba(16, 110, 70, 0.12), rgba(26, 157, 102, 0.18));
}

.sp-hub-empty h2 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    color: var(--primary);
}

.sp-hub-empty p {
    margin: 0 auto;
    max-width: 40ch;
    color: var(--muted);
    font-size: 0.92rem;
}

.sp-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.sp-hub-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 12px;
    row-gap: 4px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(27, 45, 78, 0.08);
    box-shadow: 0 6px 20px rgba(27, 45, 78, 0.06);
    text-decoration: none;
    color: inherit;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.sp-hub-card:hover {
    transform: translateY(-2px);
    border-color: rgba(16, 110, 70, 0.3);
    box-shadow: 0 14px 32px rgba(16, 110, 70, 0.12);
}

.sp-hub-card__avatar {
    grid-row: 1 / span 3;
    align-self: start;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(145deg, #0b5c3a, #1a9d66);
    box-shadow: 0 4px 12px rgba(11, 92, 58, 0.25);
}

.sp-hub-card__name {
    grid-column: 2;
    font-size: 0.98rem;
    font-weight: 800;
    color: #122338;
    line-height: 1.3;
}

.sp-hub-card__desc {
    grid-column: 2;
    font-size: 0.84rem;
    color: #5a6d86;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sp-hub-card__desc--muted {
    color: #8a9bb2;
}

.sp-hub-card__go {
    grid-column: 2;
    font-size: 0.82rem;
    font-weight: 800;
    color: #0d7a4d;
    margin-top: 2px;
}

.sp-hub-card--hidden {
    display: none !important;
}

.sp-hub-card--skeleton {
    pointer-events: none;
    min-height: 96px;
}

.sp-hub-skel {
    display: block;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(27, 45, 78, 0.06) 25%, rgba(27, 45, 78, 0.12) 50%, rgba(27, 45, 78, 0.06) 75%);
    background-size: 200% 100%;
    animation: sp-hub-shimmer 1.2s ease-in-out infinite;
}

.sp-hub-skel--avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    grid-row: 1 / span 3;
}

.sp-hub-skel--title {
    height: 14px;
    width: 72%;
    margin-bottom: 6px;
}

.sp-hub-skel--line {
    height: 10px;
    width: 90%;
}

.sp-hub-skel--short {
    width: 55%;
}

@keyframes sp-hub-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

html[data-theme="light"] .sp-hub-search {
    background: #ffffff !important;
    border-color: rgba(27, 45, 78, 0.12) !important;
}

html[data-theme="light"] .sp-hub-search input {
    color: #122338 !important;
}

html[data-theme="light"] .sp-hub-empty,
html[data-theme="light"] .sp-hub-card {
    background: #ffffff !important;
}

html[data-theme="light"] .sp-hub-card__name {
    color: #122338 !important;
}

html[data-theme="light"] .sp-hub-card__desc {
    color: #5a6d86 !important;
}

html[data-theme="light"] .sp-hub-empty h2 {
    color: #0f2846 !important;
}

html[data-theme="light"] .sp-hub-alert--warn {
    color: #92400e !important;
}

html[data-theme="light"] .sp-hub-alert--info {
    color: #0c4a6e !important;
}

@media (max-width: 700px) {
    .sp-hub-page {
        padding: 16px;
    }

    .sp-hub-hero {
        padding: 18px;
    }

    .sp-hub-grid {
        grid-template-columns: 1fr;
    }
}