:root {
  --pb-azul-profundo: #172c9c;
  --pb-azul-corporativo: #2632b0;
  --pb-violeta: #5438d8;
  --pb-azul-escuro: #12136f;
  --pb-texto: #061a33;
  --pb-titulo: #07182f;
  --pb-texto-secundario: #64748b;
  --pb-borda: #cbd5e1;
  --pb-borda-suave: #d7e2f2;
  --pb-fundo: #eaf2ff;
  --pb-fundo-painel: #f8fbff;
  --pb-branco: #ffffff;
  --pb-aprovado: #078a20;
  --pb-andamento: #2563eb;
  --pb-enviado: #f59e0b;
  --pb-reprovado: #dc2626;
  --pb-sem-status: #c8d1e8;
  --pb-gradiente-principal: linear-gradient(135deg, #172c9c 0%, #2632b0 42%, #5438d8 100%);
  --pb-gradiente-card: linear-gradient(145deg, #12136f 0%, #262fa7 52%, #4f46d8 100%);
  --pb-gradiente-linha: linear-gradient(90deg, #172c9c, #2632b0, rgba(84, 56, 216, .46), transparent);
  --shadow-soft: 0 18px 42px rgba(23, 44, 156, .10);
  --shadow-side: 0 22px 60px rgba(18, 19, 111, .24);
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins/Poppins-Thin.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins/Poppins-ThinItalic.ttf") format("truetype");
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins/Poppins-ExtraLight.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins/Poppins-ExtraLightItalic.ttf") format("truetype");
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins/Poppins-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins/Poppins-LightItalic.ttf") format("truetype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins/Poppins-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins/Poppins-MediumItalic.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins/Poppins-SemiBoldItalic.ttf") format("truetype");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins/Poppins-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins/Poppins-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins/Poppins-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins/Poppins-ExtraBoldItalic.ttf") format("truetype");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins/Poppins-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins/Poppins-BlackItalic.ttf") format("truetype");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--pb-texto);
  font-family: Poppins, "Segoe UI", Arial, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.login-screen {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 28px;
  color: var(--pb-branco);
  background:
    linear-gradient(90deg, rgba(4, 12, 31, .94), rgba(10, 30, 95, .72)),
    url("/assets/projetahub-bg-wide.png") center bottom / cover no-repeat,
    #061126;
}

.login-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 18px;
  width: min(100%, 530px);
  padding: 48px 50px 34px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .05)),
    rgba(5, 16, 40, .80);
  box-shadow: 0 28px 80px rgba(0, 18, 70, .42);
}

.login-card > * {
  position: relative;
  z-index: 1;
}

.login-logo {
  justify-self: center;
  width: min(100%, 430px);
  height: 118px;
  object-fit: contain;
}

.login-subtitle {
  margin: -6px 0 4px;
  color: rgba(255, 255, 255, .74);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

.login-welcome {
  display: grid;
  gap: 6px;
  margin: 2px 0 10px;
  text-align: center;
}

.login-welcome strong {
  font-size: 20px;
}

.login-welcome span {
  color: rgba(255, 255, 255, .74);
}

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

.login-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.login-input-field {
  position: relative;
  display: block;
}

.login-input-field > svg {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #4cc3ff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.35;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .26));
  transform: translateY(-50%);
  pointer-events: none;
}

.login-form input {
  width: 100%;
  border: 1px solid rgba(219, 228, 241, .34);
  border-radius: 10px;
  padding: 13px 14px 13px 48px;
  color: var(--pb-branco);
  background: rgba(6, 17, 38, .78);
  outline: none;
}

.password-field {
  display: block;
}

.password-field input {
  padding-right: 50px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(76, 195, 255, .22);
  border-radius: 8px;
  color: #4cc3ff;
  background: rgba(5, 15, 38, .16);
  transform: translateY(-50%);
}

.password-toggle:hover,
.password-toggle.is-visible {
  color: #061a33;
  background: #dff4ff;
}

.password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.login-form input:focus {
  border-color: #38bdff;
  box-shadow: 0 0 0 3px rgba(56, 189, 255, .18);
}

.login-form input:-webkit-autofill,
.login-form input:-webkit-autofill:hover,
.login-form input:-webkit-autofill:focus {
  border-color: #38bdff;
  -webkit-box-shadow: 0 0 0 1000px rgba(226, 238, 255, .98) inset, 0 0 0 3px rgba(56, 189, 255, .18);
  -webkit-text-fill-color: #061a33;
  caret-color: #061a33;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: -2px;
  color: rgba(255, 255, 255, .74);
  font-size: 13px;
}

.remember-me {
  display: inline-flex !important;
  grid-auto-flow: column;
  align-items: center;
  gap: 8px !important;
  color: rgba(255, 255, 255, .78) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: none !important;
}

.remember-me input {
  width: 16px;
  height: 16px;
  padding: 0;
  accent-color: #126cff;
}

.login-options a,
.login-contact a {
  color: #38bdff;
  text-decoration: none;
}

.login-form > button[type="submit"] {
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  color: var(--pb-branco);
  background: linear-gradient(90deg, #0f4fff, #0031ce);
  font-weight: 900;
}

.login-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, .68);
  font-size: 12px;
}

.login-divider::before,
.login-divider::after {
  height: 1px;
  background: rgba(255, 255, 255, .14);
  content: "";
}

.microsoft-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, .20);
  border-radius: 10px;
  color: var(--pb-branco);
  background: rgba(6, 17, 38, .54);
  font-weight: 900;
}

.microsoft-mark {
  display: grid;
  grid-template-columns: repeat(2, 9px);
  gap: 2px;
}

.microsoft-mark i {
  width: 9px;
  height: 9px;
}

.microsoft-mark i:nth-child(1) { background: #f35325; }
.microsoft-mark i:nth-child(2) { background: #81bc06; }
.microsoft-mark i:nth-child(3) { background: #05a6f0; }
.microsoft-mark i:nth-child(4) { background: #ffba08; }

.login-contact {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  text-align: center;
}

.login-error {
  min-height: 18px;
  color: #ffb36a;
  font-size: 13px;
  font-weight: 800;
}

.login-card footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .62);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.pb-fundo-grade {
  --grid-line: rgba(143, 178, 232, .24);
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    var(--pb-fundo);
  background-size: 72px 72px, 72px 72px, auto;
}

.app-shell {
  display: grid;
  grid-template-columns: 304px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  padding: 22px;
  color: var(--pb-branco);
  background: var(--pb-gradiente-card);
  box-shadow: var(--shadow-side);
}

.sidebar::after {
  position: absolute;
  right: -84px;
  bottom: 128px;
  width: 260px;
  height: 260px;
  background: url("/assets/logo-projetabim-linhas-branco.png") center / contain no-repeat;
  content: "";
  opacity: .10;
  pointer-events: none;
}

.brand {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.brand-logo {
  width: min(100%, 258px);
  height: auto;
  object-fit: contain;
}

.brand-subtitle {
  width: max-content;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  color: rgba(255, 255, 255, .86);
  background: rgba(255, 255, 255, .10);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hub-card,
.root-panel {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  background: rgba(255, 255, 255, .10);
  backdrop-filter: blur(10px);
}

.hub-card {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.hub-card span,
.root-panel span {
  color: rgba(255, 255, 255, .70);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.hub-card strong {
  font-size: 18px;
  line-height: 1.18;
}

.hub-card small {
  color: rgba(255, 255, 255, .76);
  font-size: 13px;
  line-height: 1.45;
}

.nav-block {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: rgba(255, 255, 255, .86);
  text-align: left;
  background: transparent;
  font-weight: 800;
}

.nav-item:hover,
.nav-item.active {
  border-color: rgba(255, 255, 255, .24);
  color: var(--pb-branco);
  background: rgba(255, 255, 255, .12);
}

.nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .65);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .08);
}

.nav-dot.pdf { background: var(--pb-reprovado); }
.nav-dot.bim { background: #2dd4bf; }
.nav-dot.sheet { background: var(--pb-aprovado); }
.nav-dot.document { background: #8fb2e8; }
.nav-dot.image { background: #f0abfc; }

.root-panel {
  margin-top: auto;
  padding: 14px;
}

.root-panel strong {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 8px;
  color: rgba(255, 255, 255, .92);
  font-size: 12px;
  line-height: 1.45;
}

.workspace {
  min-width: 0;
  padding: 26px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.title-block {
  min-width: 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 10px;
  border: 1px solid var(--pb-borda-suave);
  border-radius: 999px;
  color: var(--pb-azul-profundo);
  background: rgba(255, 255, 255, .70);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.topbar h1 {
  margin: 9px 0 0;
  color: var(--pb-titulo);
  font-size: 32px;
  font-weight: 900;
}

.topbar p {
  margin: 6px 0 0;
  color: var(--pb-texto-secundario);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.searchbar {
  display: grid;
  grid-template-columns: minmax(230px, 430px) 92px;
  width: min(100%, 536px);
  min-height: 44px;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.searchbar input {
  min-width: 0;
  border: 1px solid var(--pb-borda);
  border-right: 0;
  border-radius: 12px 0 0 12px;
  padding: 0 14px;
  color: var(--pb-texto);
  background: rgba(255, 255, 255, .92);
  outline: none;
}

.searchbar input:focus {
  border-color: var(--pb-azul-corporativo);
}

.searchbar button {
  border: 0;
  border-radius: 0 12px 12px 0;
  color: var(--pb-branco);
  background: var(--pb-gradiente-principal);
  font-weight: 900;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.summary-strip div {
  position: relative;
  overflow: hidden;
  min-height: 74px;
  padding: 14px 16px;
  border: 1px solid var(--pb-borda);
  border-radius: 18px;
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--shadow-soft);
}

.summary-strip div::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--pb-gradiente-linha);
  content: "";
}

.summary-strip span {
  display: block;
  color: var(--pb-texto-secundario);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.summary-strip strong {
  display: block;
  margin-top: 8px;
  color: var(--pb-azul-escuro);
  font-size: 16px;
}

.docs-operations {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  gap: 14px;
  margin-bottom: 18px;
}

.ged-upload-card,
.ged-filter-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #dbe4f1;
  border-radius: 12px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-soft);
}

.ged-upload-card header,
.ged-filter-card header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.collapse-toggle {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid #cbd8ec;
  border-radius: 7px;
  color: var(--pb-azul-profundo);
  background: #fff;
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
}

.collapse-toggle:hover {
  border-color: rgba(38, 50, 176, .44);
  color: #fff;
  background: var(--pb-gradiente-principal);
}

.collapsible-card.is-collapsed {
  align-content: start;
}

.collapsible-card.is-collapsed > :not(header) {
  display: none !important;
}

.ged-upload-card header span,
.ged-filter-card header span {
  color: var(--pb-texto-secundario);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ged-upload-card header strong,
.ged-filter-card header strong {
  color: var(--pb-titulo);
  font-size: 16px;
}

.ged-upload-card label,
.ged-filter-card label {
  display: grid;
  gap: 6px;
  color: var(--pb-texto-secundario);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ged-upload-card input,
.ged-upload-card select,
.ged-filter-card input,
.ged-filter-card select {
  width: 100%;
  min-width: 0;
  height: 38px;
  border: 1px solid var(--pb-borda);
  border-radius: 10px;
  padding: 0 10px;
  color: var(--pb-texto);
  background: var(--pb-branco);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
}

.file-drop {
  min-height: 88px;
  place-content: center;
  justify-items: center;
  border: 1px dashed rgba(38, 50, 176, .42);
  border-radius: 12px;
  background: #f8fbff;
  text-align: center;
  cursor: pointer;
}

.file-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-drop span {
  color: var(--pb-azul-profundo);
  font-size: 13px;
  font-weight: 900;
}

.file-drop small {
  max-width: 100%;
  color: var(--pb-texto-secundario);
  font-size: 11px;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-transform: none;
}

.ged-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ged-filter-card footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--pb-borda);
  border-radius: 10px;
  padding: 0 16px;
  color: var(--pb-azul-escuro);
  background: var(--pb-branco);
  font-weight: 900;
}

.ghost-button:hover {
  border-color: var(--pb-azul-corporativo);
  color: var(--pb-branco);
  background: var(--pb-azul-corporativo);
}

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

.browser-panel,
.details-panel {
  min-width: 0;
  border: 1px solid var(--pb-borda);
  border-radius: 18px;
  background: rgba(255, 255, 255, .90);
  box-shadow: var(--shadow-soft);
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--pb-borda-suave);
}

.toolbar button {
  min-width: 38px;
  height: 36px;
  border: 1px solid var(--pb-borda);
  border-radius: 10px;
  color: var(--pb-azul-escuro);
  background: var(--pb-branco);
  font-weight: 900;
}

.toolbar button:hover {
  border-color: var(--pb-azul-corporativo);
  color: var(--pb-branco);
  background: var(--pb-azul-corporativo);
}

.toolbar span {
  margin-left: auto;
  color: var(--pb-texto-secundario);
  font-size: 13px;
  font-weight: 800;
}

.table-wrap {
  overflow: auto;
  max-height: calc(100vh - 228px);
  border-radius: 0 0 18px 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--pb-borda-suave);
  text-align: left;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--pb-azul-escuro);
  background: #eaf2ff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

th:nth-child(1) {
  width: 34%;
}

th:nth-child(2) {
  width: 12%;
}

th:nth-child(3) {
  width: 16%;
}

th:nth-child(4) {
  width: 16%;
}

th:nth-child(5) {
  width: 10%;
}

th:nth-child(6) {
  width: 12%;
}

tr {
  user-select: none;
}

tbody tr:hover,
tbody tr.selected {
  background: rgba(23, 44, 156, .07);
}

td {
  color: var(--pb-texto);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.file-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: var(--pb-branco);
  background: #64748b;
  font-size: 10px;
  font-weight: 900;
}

.file-icon.folder { background: var(--pb-enviado); }
.file-icon.pdf { background: var(--pb-reprovado); }
.file-icon.bim { background: var(--pb-azul-profundo); }
.file-icon.cad { background: #0f766e; }
.file-icon.sheet { background: var(--pb-aprovado); }
.file-icon.document { background: var(--pb-andamento); }
.file-icon.image { background: var(--pb-violeta); }

.name-cell span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  color: #243b64;
  background: #e8eef8;
  font-size: 11px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-pill.approved {
  color: #065f1c;
  background: #dcfce7;
}

.status-pill.review {
  color: #854d0e;
  background: #fef3c7;
}

.status-pill.progress {
  color: #1742a0;
  background: #dbeafe;
}

.status-pill.obsolete {
  color: #991b1b;
  background: #fee2e2;
}

.status-pill.empty {
  color: #5b6478;
  background: #eef2f7;
}

.row-meta-cell {
  line-height: 1.25;
}

.row-meta-cell small,
.row-revision {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-revision {
  color: var(--pb-titulo);
  font-weight: 900;
}

.row-meta-cell small {
  color: var(--pb-texto-secundario);
  font-size: 11px;
}

.details-panel {
  padding: 18px;
}

.empty-state {
  display: grid;
  place-content: center;
  justify-items: center;
  min-height: 420px;
  color: var(--pb-texto-secundario);
  text-align: center;
}

.empty-state img {
  width: min(100%, 230px);
  height: auto;
  margin-bottom: 18px;
  object-fit: contain;
}

.empty-state strong {
  color: var(--pb-titulo);
  font-size: 18px;
}

.empty-state span {
  max-width: 270px;
  margin-top: 8px;
  line-height: 1.45;
}

.hidden {
  display: none !important;
}

.metadata-form {
  display: grid;
  gap: 14px;
}

.selected-head {
  display: grid;
  gap: 5px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--pb-borda-suave);
}

.selected-head span {
  color: var(--pb-azul-profundo);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.selected-head strong {
  color: var(--pb-titulo);
  overflow-wrap: anywhere;
}

.selected-head small {
  color: var(--pb-texto-secundario);
  overflow-wrap: anywhere;
}

.image-preview {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--pb-borda-suave);
  border-radius: 10px;
  background: #eef4ff;
}

.image-preview img {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  background: #f8fbff;
}

.file-preview {
  overflow: hidden;
  border: 1px solid var(--pb-borda-suave);
  border-radius: 10px;
  background: #f8fbff;
}

.inline-ifc-preview,
.document-frame-preview {
  height: 250px;
  background: #061437;
}

.document-frame-preview {
  background: #eef4ff;
}

.inline-ifc-preview iframe,
.document-frame-preview iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.preview-card {
  display: grid;
  gap: 10px;
  padding: 13px;
  color: var(--pb-texto);
}

.preview-card strong {
  color: var(--pb-azul-escuro);
  font-size: 13px;
}

.preview-card span,
.preview-card p {
  margin: 0;
  color: var(--pb-texto-secundario);
  font-size: 12px;
  line-height: 1.45;
}

.preview-text {
  display: grid;
  gap: 6px;
  max-height: 240px;
  overflow: auto;
}

.preview-table-wrap {
  max-height: 240px;
  overflow: auto;
  border: 1px solid var(--pb-borda-suave);
  border-radius: 8px;
  background: #fff;
}

.preview-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.preview-table td {
  min-width: 80px;
  padding: 7px 8px;
  border-bottom: 1px solid var(--pb-borda-suave);
  border-right: 1px solid var(--pb-borda-suave);
  color: var(--pb-texto);
  font-size: 12px;
  white-space: nowrap;
}

.bim-native-preview {
  min-height: 112px;
  align-content: center;
  background:
    linear-gradient(135deg, rgba(23, 44, 156, .08), rgba(56, 189, 248, .08)),
    #f8fbff;
}

body.has-modal {
  overflow: hidden;
}

.ifc-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  padding: 26px;
  background: rgba(0, 8, 30, .74);
  backdrop-filter: blur(7px);
}

.ifc-modal.hidden {
  display: none;
}

.ifc-modal-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(120, 161, 255, .32);
  border-radius: 12px;
  background: #061437;
  box-shadow: 0 24px 70px rgba(0, 10, 40, .42);
}

.ifc-modal-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(120, 161, 255, .24);
  background: linear-gradient(135deg, #071336 0%, #0d255d 100%);
}

.ifc-modal-header div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.ifc-modal-header span {
  color: #36bdf8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ifc-modal-header strong {
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ifc-modal-actions {
  display: flex;
  gap: 8px;
}

.ifc-modal-actions button {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  padding: 0 12px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
  font-weight: 900;
}

.ifc-modal-actions button:first-child {
  background: linear-gradient(135deg, var(--pb-azul-corporativo), var(--pb-violeta));
}

.ifc-modal iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #061437;
}

.open-link,
.save-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 10px;
  text-decoration: none;
}

.open-link {
  border: 1px solid var(--pb-azul-corporativo);
  color: var(--pb-azul-profundo);
  background: rgba(234, 242, 255, .74);
  font-weight: 900;
}

.metadata-form label {
  display: grid;
  gap: 6px;
  color: var(--pb-texto-secundario);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.metadata-form input,
.metadata-form select,
.metadata-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--pb-borda);
  border-radius: 10px;
  padding: 10px;
  color: var(--pb-texto);
  background: var(--pb-branco);
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
}

.metadata-form input:focus,
.metadata-form select:focus,
.metadata-form textarea:focus {
  border-color: var(--pb-azul-corporativo);
  outline: 2px solid rgba(38, 50, 176, .14);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.save-button {
  border: 0;
  color: var(--pb-branco);
  background: var(--pb-gradiente-principal);
  font-weight: 900;
}

button:disabled {
  cursor: wait;
  opacity: .62;
}

.save-status {
  min-height: 18px;
  color: var(--pb-aprovado);
  font-size: 13px;
  font-weight: 800;
}

/* ProjetaHUB shell */
.app-shell {
  grid-template-columns: 280px minmax(0, 1fr);
}

.app-shell.is-hub-view {
  grid-template-columns: minmax(0, 1fr);
}

.app-shell.is-hub-view .sidebar {
  display: none;
}

.sidebar {
  gap: 16px;
  padding: 26px 22px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(4, 14, 45, .98), rgba(7, 24, 86, .92) 52%, rgba(9, 43, 150, .78)),
    url("/assets/projetahub-bg-sidebar.png") center bottom / cover no-repeat,
    #071128;
}

.sidebar::after {
  display: none;
}

.brand-logo {
  width: min(100%, 244px);
  height: 70px;
  object-fit: contain;
}

.sidebar-group-logo {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  margin-top: auto;
  padding-top: 22px;
  text-align: center;
}

.sidebar-group-logo img {
  display: block;
  width: min(100%, 260px);
  height: auto;
  margin: 0 auto;
  opacity: .96;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .22));
}

.sidebar-group-logo .sidebar-projetabim-logo {
  width: min(100%, 226px);
}

.side-nav {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.document-nav-group {
  display: grid;
  gap: 7px;
}

.app-shell.is-hub-view .docs-nav-only {
  display: none;
}

.docs-page #hubView {
  display: none !important;
}

.docs-hidden {
  display: none !important;
}

.nav-label {
  margin: 6px 4px 4px;
  color: rgba(255, 255, 255, .66);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.nav-item,
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: rgba(255, 255, 255, .88);
  background: transparent;
  text-align: left;
  font-weight: 800;
}

.nav-item:hover,
.nav-item.active,
.nav-link:hover {
  border-color: rgba(56, 141, 248, .22);
  color: var(--pb-branco);
  background: linear-gradient(90deg, rgba(37, 99, 255, .92), rgba(23, 44, 156, .58));
}

.document-subnav {
  display: grid;
  gap: 5px;
  margin: -1px 0 2px 34px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, .18);
}

.document-subnav[hidden] {
  display: none;
}

.nav-chevron {
  margin-left: auto;
  color: rgba(255, 255, 255, .70);
  font-size: 13px;
  font-weight: 900;
  transition: transform .18s ease;
}

.document-nav-group.is-collapsed .nav-chevron {
  transform: rotate(-90deg);
}

.subnav-item {
  min-height: 27px;
  border: 0;
  border-radius: 8px;
  padding: 4px 10px;
  color: rgba(255, 255, 255, .72);
  background: transparent;
  text-align: left;
  font-size: 13px;
  font-weight: 800;
}

.subnav-item:hover,
.subnav-item.active {
  color: var(--pb-branco);
  background: rgba(56, 141, 248, .18);
}

.nav-icon,
.nav-star {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--pb-branco);
}

.nav-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.nav-item:not(.active) .nav-icon {
  color: rgba(255, 255, 255, .76);
}

.nav-star {
  border: 1px solid rgba(255, 255, 255, .28);
  border-color: rgba(255, 255, 255, .28);
  border-radius: 999px;
  color: #dbe7ff;
  font-size: 14px;
  font-weight: 900;
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  margin-left: auto;
  border: 1px solid rgba(255, 138, 0, .44);
  border-radius: 999px;
  color: #ffb36a;
  background: rgba(255, 115, 0, .24);
  font-size: 12px;
  font-weight: 900;
}

.favorites {
  display: none;
  order: 4;
  margin-top: 0;
}

.root-panel {
  display: grid;
  gap: 7px;
  margin-top: 0;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
}

.root-picker {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, .70);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.root-picker input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  padding: 8px 9px;
  color: var(--pb-branco);
  background: rgba(3, 13, 34, .45);
  font-size: 12px;
  outline: none;
}

.root-panel strong,
.root-picker input {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.root-picker input:focus {
  border-color: rgba(56, 189, 255, .82);
}

.root-save {
  min-height: 31px;
  border: 0;
  border-radius: 8px;
  color: var(--pb-branco);
  background: linear-gradient(90deg, #0f4fff, #0031ce);
  font-size: 12px;
  font-weight: 900;
}

.root-status {
  min-height: 16px;
  color: #ffb36a;
  font-size: 11px;
  font-weight: 800;
}

.user-card {
  display: grid;
  grid-template-columns: 38px minmax(112px, auto) auto;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 6px 8px;
  border: 1px solid #dbe4f1;
  border-radius: 12px;
  color: #07182f;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--pb-gradiente-principal);
  background-position: center;
  background-size: cover;
  font-size: 13px;
  font-weight: 900;
}

.avatar.has-photo {
  border: 2px solid rgba(255, 255, 255, .28);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}

.user-card strong,
.user-card span {
  display: block;
}

.user-card strong {
  font-size: 14px;
}

.user-card span {
  margin-top: 2px;
  color: #5d6b87;
  font-size: 12px;
}

.user-card button {
  min-width: 42px;
  min-height: 28px;
  border: 1px solid rgba(37, 99, 255, .18);
  border-radius: 8px;
  color: var(--pb-branco);
  background: linear-gradient(135deg, #1b5dff, #1135d8);
  font-size: 11px;
  font-weight: 900;
}

.workspace {
  padding: 34px 28px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(248, 251, 255, .78));
}

.global-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 52px;
}

.global-context {
  display: grid;
  gap: 3px;
  min-width: 220px;
}

.global-context span {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.global-context strong {
  color: #07182f;
  font-size: 18px;
  line-height: 1.15;
}

.global-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  margin-left: auto;
}

.top-action-button {
  min-height: 40px;
  border: 1px solid #dbe4f1;
  border-radius: 10px;
  padding: 0 14px;
  color: #0b1d3a;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow-soft);
  font-size: 13px;
  font-weight: 900;
}

.hub-view {
  display: grid;
  gap: 20px;
}

.hub-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 28px;
  align-items: end;
  min-height: 316px;
  padding: clamp(26px, 4vw, 48px);
  color: var(--pb-branco);
  background:
    linear-gradient(90deg, rgba(4, 12, 31, .96), rgba(6, 20, 58, .82) 58%, rgba(4, 14, 35, .58)),
    url("/assets/projetahub-bg-wide.png") center bottom / cover no-repeat,
    #061126;
  border: 1px solid rgba(216, 226, 244, .34);
  border-radius: 8px;
  box-shadow: var(--shadow-side);
}

.hub-hero::after {
  display: none;
}

.hub-hero-copy {
  position: relative;
  z-index: 1;
}

.hub-hero-copy {
  display: grid;
  align-content: end;
  gap: 14px;
  max-width: 790px;
}

.hub-hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.05;
}

.hub-hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, .76);
  font-size: 16px;
  line-height: 1.55;
}

.hub-hero-logo {
  position: relative;
  z-index: 1;
  justify-self: end;
  align-self: center;
  width: min(100%, 390px);
  max-height: 160px;
  object-fit: contain;
  object-position: right center;
}

.hub-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 4px 2px 0;
}

.hub-section-heading span {
  color: #2563eb;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.hub-section-heading h2 {
  margin: 4px 0 0;
  color: var(--pb-titulo);
  font-size: 24px;
  line-height: 1.16;
}

.hub-section-heading p {
  max-width: 430px;
  margin: 0;
  color: var(--pb-texto-secundario);
  font-size: 13px;
  line-height: 1.5;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  grid-auto-rows: 1fr;
  gap: 12px;
}

.product-card {
  display: grid;
  grid-template-rows: 92px minmax(138px, 1fr) auto;
  min-width: 0;
  min-height: 328px;
  height: 100%;
  border: 1px solid #dbe4f1;
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-soft);
}

.product-card:hover {
  border-color: rgba(56, 141, 248, .34);
  transform: translateY(-2px);
  transition: border-color .18s ease, transform .18s ease;
}

.product-card.is-coming-soon {
  background: rgba(255, 255, 255, .72);
}

.product-card.is-coming-soon .product-logo-wrap,
.product-card.is-coming-soon .product-copy {
  opacity: .58;
}

.product-card.is-coming-soon button {
  color: #334155;
  background: #e2e8f0;
}

.product-card.is-coming-soon button::after {
  content: "";
}

.product-logo-wrap {
  display: grid;
  place-items: center;
  min-width: 0;
  border-radius: 8px;
  background: #fff;
}

.product-logo-wrap img {
  width: 100%;
  max-width: 210px;
  height: 74px;
  object-fit: contain;
}

.product-text-mark {
  border: 1px solid rgba(56, 141, 248, .18);
  color: var(--pb-branco);
  background: linear-gradient(135deg, #172c9c, #0f74ff 55%, #0f8f9a);
}

.product-text-mark strong {
  font-size: 24px;
  font-weight: 300;
}

.product-copy {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding-top: 14px;
}

.product-copy span {
  color: var(--pb-azul-profundo);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-orc .product-copy span {
  color: #c86400;
}

.product-tasks .product-copy span {
  color: #047f8b;
}

.product-copy h2 {
  margin: 0;
  color: var(--pb-titulo);
  font-size: 21px;
  line-height: 1.12;
}

.product-copy p {
  margin: 0;
  color: var(--pb-texto-secundario);
  font-size: 13px;
  line-height: 1.5;
}

.product-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  color: var(--pb-branco);
  background: linear-gradient(90deg, #0f4fff, #0031ce);
  font-size: 13px;
  font-weight: 900;
}

.product-card button::after {
  content: ">";
}

.product-orc button {
  background: linear-gradient(90deg, #ff941f, #eb6f00);
}

.product-tasks button {
  background: linear-gradient(90deg, #0faebd, #057e91);
}

.product-chat button {
  background: linear-gradient(90deg, #152f8f, #2563eb);
}

.product-news button {
  background: linear-gradient(90deg, #0d9488, #14b8a6);
}

.hub-notice {
  margin: 0;
  min-height: 0;
  border-left: 4px solid #ff941f;
  padding: 10px 12px;
  color: #20385c;
  background: rgba(255, 255, 255, .82);
  font-size: 13px;
  font-weight: 800;
}

.hub-notice:empty {
  display: none;
}

.workspace-footer {
  display: none;
}

.workspace-footer img {
  width: min(100%, 430px);
  height: auto;
  opacity: .94;
  filter: drop-shadow(0 12px 28px rgba(4, 18, 45, .14));
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 660px);
  align-items: start;
  gap: 14px 20px;
  margin-bottom: 16px;
}

.topbar h1 {
  margin: 0;
  font-size: 30px;
}

.topbar p {
  color: #465a86;
  font-weight: 800;
  text-transform: uppercase;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: min(100%, 660px);
}

.top-actions .searchbar {
  flex: 1 1 520px;
}

.root-panel-top {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto minmax(150px, .35fr);
  align-items: end;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid #dbe4f1;
  border-radius: 12px;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow-soft);
}

.root-path-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.root-panel-top span,
.root-panel-top .root-picker {
  color: var(--pb-texto-secundario);
}

.root-panel-top .root-picker input {
  height: 38px;
  border-color: var(--pb-borda);
  color: var(--pb-texto);
  background: var(--pb-branco);
}

.root-panel-top .root-save {
  min-width: 96px;
  height: 38px;
}

.root-panel-top .root-status {
  align-self: center;
  min-height: auto;
  color: var(--pb-azul-profundo);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  color: #07182f;
  background: transparent;
  font-weight: 900;
}

.icon-button:hover {
  color: var(--pb-azul-profundo);
  background: rgba(23, 44, 156, .07);
}

.team-view {
  display: grid;
  gap: 18px;
}

.team-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--pb-borda);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(234, 242, 255, .76));
  box-shadow: var(--shadow-soft);
}

.team-header span {
  color: var(--pb-azul-profundo);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.team-header h1 {
  margin: 6px 0 4px;
  color: var(--pb-titulo);
  font-size: 30px;
}

.team-header p {
  max-width: 760px;
  margin: 0;
  color: var(--pb-texto-secundario);
  line-height: 1.45;
}

.team-header button {
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  padding: 0 16px;
  color: var(--pb-branco);
  background: var(--pb-gradiente-principal);
  font-weight: 900;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
}

.team-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: 220px minmax(0, 1fr) auto;
  min-width: 0;
  border: 1px solid var(--pb-borda);
  border-radius: 14px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow-soft);
}

.team-card-self {
  border-color: rgba(38, 50, 176, .34);
  box-shadow: 0 14px 34px rgba(38, 50, 176, .14);
}

.team-card img,
.team-card-photo {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  width: 100%;
  height: 220px;
  background-color: #061437;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  object-fit: cover;
  object-position: center;
  color: #fff;
  font-size: 42px;
  font-weight: 900;
}

.team-card-photo[data-team-index] {
  cursor: pointer;
}

.team-card-initials {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.team-card > div:not(.team-card-photo) {
  display: grid;
  gap: 7px;
  padding: 14px;
}

.team-card span {
  color: var(--pb-azul-profundo);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.team-card strong {
  color: var(--pb-titulo);
  font-size: 18px;
}

.team-card p {
  margin: 0;
  color: var(--pb-texto-secundario);
  font-size: 13px;
  line-height: 1.4;
}

.team-card footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 0 14px 14px;
}

.team-card small {
  min-width: 0;
  padding: 7px 9px;
  border-radius: 8px;
  color: var(--pb-azul-escuro);
  background: #eaf2ff;
  font-size: 12px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-card footer button {
  min-height: 30px;
  border: 1px solid rgba(38, 50, 176, .22);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--pb-azul-profundo);
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.dashboard-view {
  display: grid;
  gap: 18px;
}

.dashboard-header,
.dashboard-panel,
.dashboard-stats article {
  border: 1px solid var(--pb-borda);
  border-radius: 14px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-soft);
}

.dashboard-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 24px;
}

.dashboard-header span,
.dashboard-panel header span {
  color: var(--pb-azul-profundo);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-header h1 {
  margin: 6px 0 4px;
  color: var(--pb-titulo);
  font-size: 30px;
}

.dashboard-header p {
  max-width: 800px;
  margin: 0;
  color: var(--pb-texto-secundario);
  line-height: 1.45;
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.dashboard-header button {
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  padding: 0 16px;
  color: #fff;
  background: var(--pb-gradiente-principal);
  font-weight: 900;
}

.dashboard-header .ghost-button {
  border: 1px solid #d4dff0;
  color: var(--pb-azul-profundo);
  background: #fff;
}

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

.dashboard-stats article,
.dashboard-loading {
  display: grid;
  gap: 8px;
  min-height: 96px;
  padding: 16px;
}

.dashboard-stats span {
  color: var(--pb-texto-secundario);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-stats strong {
  color: var(--pb-azul-escuro);
  font-size: 28px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-panel {
  min-width: 0;
  padding: 16px;
}

.dashboard-panel-wide {
  grid-column: span 2;
}

.dashboard-pie {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.pie-chart {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  width: 132px;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(7, 24, 47, .08);
}

.pie-chart::after {
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.pie-chart strong,
.pie-chart span {
  position: relative;
  z-index: 1;
}

.pie-chart strong {
  color: var(--pb-azul-escuro);
  font-size: 24px;
  line-height: 1;
}

.pie-chart span {
  margin-top: 0;
  color: var(--pb-texto-secundario);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.pie-legend {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.pie-legend div {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  color: #243b64;
  font-size: 12px;
  font-weight: 900;
}

.pie-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.pie-legend span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-panel header {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.dashboard-panel header strong {
  color: var(--pb-titulo);
  font-size: 16px;
}

.metric-list,
.file-metric-list {
  display: grid;
  gap: 9px;
}

.metric-row {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #f1f6ff;
}

.metric-row span,
.metric-row strong,
.metric-row small {
  position: relative;
  z-index: 1;
}

.metric-row span {
  min-width: 0;
  overflow: hidden;
  color: #243b64;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
}

.metric-row strong {
  color: var(--pb-azul-escuro);
  font-size: 13px;
}

.metric-row small {
  grid-column: 1 / -1;
  color: var(--pb-texto-secundario);
  font-size: 11px;
}

.metric-row i {
  position: absolute;
  inset: auto auto 0 0;
  height: 3px;
  border-radius: 999px;
  background: var(--pb-gradiente-principal);
}

.metric-empty {
  margin: 0;
  color: var(--pb-texto-secundario);
  font-size: 13px;
}

.file-metric-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
  width: 100%;
  min-height: 48px;
  border: 1px solid #dbe4f1;
  border-radius: 9px;
  padding: 9px 10px;
  color: var(--pb-texto);
  background: #fff;
  text-align: left;
}

.file-metric-row span,
.file-metric-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-metric-row span {
  color: var(--pb-titulo);
  font-size: 13px;
  font-weight: 900;
}

.file-metric-row small {
  grid-column: 1 / 2;
  color: var(--pb-texto-secundario);
  font-size: 11px;
}

.file-metric-row strong {
  grid-row: 1 / 3;
  grid-column: 2 / 3;
  align-self: center;
  color: var(--pb-azul-profundo);
  font-size: 12px;
}

.app-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 8, 30, .72);
  backdrop-filter: blur(7px);
}

#teamMemberModal {
  z-index: 60;
}

.app-modal-card {
  display: grid;
  gap: 18px;
  width: min(100%, 720px);
  max-height: min(90vh, 760px);
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(120, 161, 255, .28);
  border-radius: 14px;
  background: #f8fbff;
  box-shadow: 0 24px 70px rgba(0, 10, 40, .42);
}

.profile-settings-card {
  width: min(100%, 1120px);
}

.team-member-card {
  width: min(100%, 920px);
}

.app-modal-card header,
.app-modal-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.app-modal-card header div {
  display: grid;
  gap: 4px;
}

.app-modal-card header span {
  color: var(--pb-azul-profundo);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.app-modal-card header strong {
  color: var(--pb-titulo);
  font-size: 20px;
}

.modal-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 6px;
  width: min(100%, 320px);
  padding: 4px;
  border: 1px solid var(--pb-borda);
  border-radius: 12px;
  background: #eef4ff;
}

.modal-tabs button {
  min-height: 36px;
  border: 0;
  border-radius: 9px;
  color: var(--pb-texto-secundario);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.modal-tabs button.active {
  color: #fff;
  background: var(--pb-gradiente-principal);
  box-shadow: 0 8px 18px rgba(23, 44, 156, .2);
}

.profile-panel {
  display: grid;
  gap: 16px;
}

.profile-panel.hidden {
  display: none;
}

.app-modal-card header button,
.secondary-button,
.primary-button {
  min-height: 38px;
  border-radius: 9px;
  padding: 0 14px;
  font-weight: 900;
}

.app-modal-card header button,
.secondary-button {
  border: 1px solid var(--pb-borda);
  color: var(--pb-azul-escuro);
  background: #fff;
}

.primary-button {
  border: 0;
  color: #fff;
  background: var(--pb-gradiente-principal);
}

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

.modal-form-grid label,
.avatar-editor-fields label {
  display: grid;
  gap: 6px;
  color: var(--pb-texto-secundario);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.modal-form-grid input,
.modal-form-grid select,
.modal-form-grid textarea,
.avatar-editor-fields input,
.avatar-editor-fields select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--pb-borda);
  border-radius: 10px;
  padding: 10px;
  color: var(--pb-texto);
  background: #fff;
  text-transform: none;
}

.modal-field-wide {
  grid-column: 1 / -1;
}

.profile-modal-head {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  color: var(--pb-texto-secundario);
}

.profile-avatar-preview {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border: 3px solid rgba(23, 44, 156, .18);
  border-radius: 999px;
  color: #fff;
  background: var(--pb-gradiente-principal) center / cover no-repeat;
  font-weight: 900;
}

.avatar-edit-target {
  border: 3px solid rgba(23, 44, 156, .18);
  padding: 0;
  cursor: grab;
}

.avatar-edit-target:focus {
  outline: 3px solid rgba(37, 99, 255, .32);
  outline-offset: 3px;
}

.avatar-edit-target:active {
  cursor: grabbing;
}

.team-member-editor {
  display: grid;
}

.avatar-editor-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--pb-borda);
  border-radius: 14px;
  background: #fff;
}

.avatar-editor-fields {
  display: grid;
  gap: 12px;
}

.avatar-editor-fields p {
  margin: 0;
  color: var(--pb-texto-secundario);
  line-height: 1.45;
}

.compact-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.avatar-range-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.avatar-range-grid input[type="range"] {
  padding: 0;
}

.avatar-range-grid,
.avatar-hidden-controls {
  display: none;
}

.switch-row,
.permission-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--pb-borda);
  border-radius: 12px;
  background: #fff;
}

.switch-row span {
  display: grid;
  gap: 3px;
}

.switch-row strong {
  color: var(--pb-titulo);
  font-size: 14px;
}

.switch-row small,
.permissions-editor small,
.profile-team-toolbar p {
  margin: 0;
  color: var(--pb-texto-secundario);
  font-size: 12px;
  line-height: 1.4;
  text-transform: none;
}

.switch-row input,
.permission-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-row i,
.permission-toggle i {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #cbd7ea;
}

.switch-row i::after,
.permission-toggle i::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 20, 70, .2);
  transition: transform .18s ease;
}

.switch-row input:checked + i,
.permission-toggle input:checked + i {
  background: linear-gradient(135deg, #155cff, #0aa99f);
}

.switch-row input:checked + i::after,
.permission-toggle input:checked + i::after {
  transform: translateX(20px);
}

.permissions-editor {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--pb-borda);
  border-radius: 14px;
  background: #fdfefe;
}

.permissions-editor header,
.profile-team-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.permissions-editor header div,
.profile-team-toolbar div {
  display: grid;
  gap: 4px;
}

.permissions-editor header span,
.profile-team-toolbar span {
  color: var(--pb-azul-profundo);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.permissions-editor header strong,
.profile-team-toolbar strong {
  color: var(--pb-titulo);
  font-size: 18px;
}

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

.permission-toggle-group {
  display: grid;
  gap: 8px;
}

.permission-toggle {
  grid-template-columns: minmax(0, 1fr) auto;
  cursor: pointer;
}

.permission-toggle span {
  color: var(--pb-titulo);
  font-size: 13px;
  font-weight: 900;
}

.permission-sub-toggle {
  margin-left: 14px;
  padding: 9px 10px;
  background: #f4f8ff;
}

.permission-sub-toggle span {
  font-size: 12px;
}

.profile-team-toolbar {
  padding: 14px;
  border: 1px solid var(--pb-borda);
  border-radius: 14px;
  background: #fff;
}

.profile-team-toolbar button {
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  padding: 0 14px;
  color: #fff;
  background: var(--pb-gradiente-principal);
  font-weight: 900;
}

.profile-team-toolbar button:disabled,
.team-card footer button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.permission-program-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.permission-program-strip span {
  padding: 7px 10px;
  border: 1px solid var(--pb-borda);
  border-radius: 999px;
  color: var(--pb-azul-escuro);
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.profile-team-notice {
  margin: 0;
  color: var(--pb-texto-secundario);
  font-size: 13px;
  line-height: 1.45;
}

.profile-team-grid {
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 10px;
  max-height: 370px;
  overflow: auto;
  padding-right: 4px;
}

.profile-team-grid .team-card {
  grid-template-rows: auto auto;
  border-radius: 10px;
  box-shadow: none;
}

.profile-team-grid .team-card-photo,
.profile-team-grid .team-card img {
  height: auto;
  aspect-ratio: 1 / 1;
  background-position: center center !important;
  background-size: cover !important;
  font-size: 30px;
}

.profile-team-grid .team-card > div:not(.team-card-photo) {
  display: none;
}

.profile-team-grid .team-card span {
  font-size: 9px;
}

.profile-team-grid .team-card strong {
  font-size: 13px;
  line-height: 1.15;
}

.profile-team-grid .team-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  font-size: 11px;
}

.profile-team-grid .team-card footer {
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 7px;
}

.profile-team-grid .team-card small {
  display: none;
}

.profile-team-grid .team-card footer button {
  width: 100%;
  min-height: 32px;
  font-size: 11px;
}

.permissions-editor.is-locked,
.switch-row.is-locked {
  opacity: .62;
}

.searchbar {
  grid-template-columns: minmax(230px, 1fr) 84px;
  min-height: 42px;
  box-shadow: none;
}

.searchbar input {
  border-radius: 9px 0 0 9px;
  background: var(--pb-branco);
}

.searchbar button {
  border-radius: 0 9px 9px 0;
}

.summary-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.summary-strip div {
  min-height: 84px;
  padding: 17px 56px 17px 20px;
  border-color: #dbe4f1;
  border-radius: 12px;
  background: rgba(255, 255, 255, .96);
}

.summary-strip div::before {
  width: 38%;
  height: 3px;
  background: var(--pb-gradiente-principal);
}

.summary-strip strong {
  color: #001a66;
  font-size: 17px;
}

.summary-strip em {
  position: absolute;
  top: 26px;
  right: 20px;
  color: rgba(7, 24, 47, .38);
  font-size: 30px;
  font-style: normal;
  font-weight: 900;
}

.content-grid {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.browser-panel,
.details-panel {
  border-color: #dbe4f1;
  border-radius: 12px;
  background: rgba(255, 255, 255, .97);
}

.toolbar {
  justify-content: space-between;
  padding: 14px 16px;
}

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

.toolbar-right {
  margin-left: auto;
}

.toolbar-action,
.view-button {
  min-width: auto !important;
  padding: 0 14px;
}

.view-button.active {
  color: var(--pb-azul-profundo);
  background: rgba(23, 44, 156, .08);
}

.toolbar span {
  margin-left: 12px;
}

.format-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--pb-borda-suave);
  background: rgba(248, 251, 255, .76);
}

.format-filters button {
  min-height: 30px;
  border: 1px solid #d4dff0;
  border-radius: 8px;
  padding: 0 10px;
  color: #243b64;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.format-filters button:hover,
.format-filters button.active {
  border-color: rgba(38, 50, 176, .42);
  color: #fff;
  background: var(--pb-gradiente-principal);
}

th {
  background: rgba(234, 242, 255, .72);
}

tbody tr.selected {
  background: rgba(37, 99, 255, .10);
}

.file-icon {
  border-radius: 6px;
}

.details-panel {
  padding: 18px 16px;
  align-self: start;
  max-height: calc(100vh - 72px);
  overflow: auto;
}

.empty-state img {
  width: min(100%, 250px);
}

.selected-head {
  gap: 7px;
}

.metadata-form {
  gap: 11px;
}

.metadata-form input,
.metadata-form select,
.metadata-form textarea {
  padding: 9px 10px;
}

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

  .sidebar {
    position: relative;
    height: auto;
    min-height: auto;
  }

  .sidebar::after,
  .sidebar-footer-logo {
    display: none;
  }

  .brand {
    grid-template-columns: minmax(0, 240px) auto;
    align-items: center;
  }

  .hub-card {
    display: none;
  }

  .side-nav,
  .nav-block {
    grid-template-columns: repeat(3, 1fr);
  }

  .document-nav-group {
    grid-column: 1 / -1;
  }

  .document-subnav {
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
    padding-left: 0;
    border-left: 0;
  }

  .side-nav .nav-label {
    grid-column: 1 / -1;
  }

  .favorites {
    display: none;
  }

  .user-card {
    margin-top: 0;
  }

  .root-panel {
    margin-top: 0;
  }

  .hub-hero {
    grid-template-columns: 1fr;
    min-height: 310px;
  }

  .hub-hero-logo {
    justify-self: start;
    object-position: left center;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card {
    grid-column: auto;
  }

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

  .docs-operations {
    grid-template-columns: 1fr;
  }

  .ged-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

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

  .global-actions {
    flex-wrap: wrap;
    width: 100%;
  }

  .top-action-button {
    flex: 1 1 130px;
  }

  .top-actions {
    min-width: 0;
    width: 100%;
  }

  .searchbar {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) 92px;
  }

  .root-panel-top {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .profile-team-grid {
    grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  }

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

  .dashboard-panel-wide {
    grid-column: span 2;
  }
}

@media (max-width: 700px) {
  .workspace,
  .sidebar {
    padding: 16px;
  }

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

  .side-nav,
  .nav-block,
  .summary-strip {
    grid-template-columns: 1fr;
  }

  .document-subnav {
    grid-template-columns: 1fr 1fr;
  }

  .hub-hero {
    min-height: 360px;
    padding: 24px;
  }

  .hub-hero h1 {
    font-size: 31px;
  }

  .hub-hero-logo {
    width: min(100%, 280px);
    max-height: 110px;
  }

  .hub-section-heading {
    align-items: start;
    flex-direction: column;
  }

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

  .product-card {
    grid-template-rows: 82px minmax(0, 1fr) auto;
    min-height: 280px;
  }

  .login-card {
    padding: 30px 22px;
  }

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

  .topbar h1 {
    font-size: 28px;
  }

  .user-card {
    flex: 1 1 100%;
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }

  .workspace-footer {
    justify-content: center;
  }

  .searchbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .searchbar input,
  .searchbar button {
    border: 1px solid var(--pb-borda);
    border-radius: 10px;
  }

  .searchbar button {
    min-height: 40px;
    margin-top: 8px;
  }

  .ged-filter-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  th:nth-child(3),
  th:nth-child(4),
  th:nth-child(5),
  td:nth-child(3),
  td:nth-child(4),
  td:nth-child(5) {
    display: none;
  }

  th:nth-child(1),
  th:nth-child(2) {
    width: auto;
  }

  .team-header {
    grid-template-columns: 1fr;
  }

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

  .profile-team-grid {
    grid-template-columns: repeat(2, minmax(118px, 1fr));
  }

  .dashboard-header,
  .dashboard-stats,
  .dashboard-grid,
  .modal-form-grid,
  .profile-modal-head,
  .avatar-editor-card,
  .avatar-range-grid,
  .permission-toggle-grid {
    grid-template-columns: 1fr;
  }

  .profile-avatar-preview {
    justify-self: center;
  }

  .profile-team-toolbar,
  .permissions-editor header {
    display: grid;
  }

  .dashboard-panel-wide {
    grid-column: auto;
  }
}

.platform-page {
  min-height: 100vh;
  background: #f4f7fb;
  color: #071833;
}

.platform-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(160px, 260px) 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px 28px;
  border-bottom: 1px solid rgba(16, 45, 95, 0.12);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.platform-brand img {
  display: block;
  width: min(220px, 100%);
  max-height: 54px;
  object-fit: contain;
  object-position: left center;
}

.platform-nav,
.platform-user,
.platform-frame-actions,
.news-actions,
.news-feed-head,
.chat-thread-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.platform-nav {
  gap: 8px;
}

.platform-user,
.platform-frame-actions,
.news-actions,
.news-feed-head,
.chat-thread-head {
  justify-content: space-between;
}

.platform-nav a,
.platform-user button,
.platform-frame-actions button,
.platform-frame-actions a,
.news-actions button,
.news-feed-head button,
.chat-channel-form button,
.chat-composer button {
  border: 0;
  border-radius: 8px;
  background: #edf4ff;
  color: #0b2a55;
  font: 700 13px/1 "Poppins", sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.platform-nav a {
  padding: 10px 12px;
}

.platform-user {
  justify-content: flex-end;
}

.platform-user img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px #dbeafe;
}

.platform-user span {
  max-width: 140px;
  overflow: hidden;
  color: #102d5f;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-user button {
  padding: 9px 11px;
}

.platform-shell,
.news-shell,
.chat-shell {
  width: min(1660px, calc(100vw - 48px));
  margin: 24px auto 34px;
}

.platform-intro,
.news-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 380px);
  align-items: center;
  gap: 28px;
  min-height: 210px;
  padding: 34px 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #eef6ff 100%);
  box-shadow: 0 20px 50px rgba(15, 41, 90, 0.12);
}

.platform-intro span,
.news-hero span,
.chat-sidebar-head span,
.news-feed-head span,
.chat-thread-head span {
  color: #0a8fd8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.platform-intro h1,
.news-hero h1,
.chat-sidebar-head h1 {
  margin: 8px 0 10px;
  color: #071833;
  font-size: clamp(32px, 5vw, 68px);
  line-height: 0.95;
}

.platform-intro p,
.news-hero p {
  max-width: 760px;
  margin: 0;
  color: #53657f;
  font-size: 18px;
  line-height: 1.55;
}

.platform-intro img,
.news-hero img {
  width: 100%;
  max-height: 150px;
  object-fit: contain;
  object-position: right center;
}

.platform-frame-card,
.news-editor,
.news-feed-panel,
.chat-sidebar,
.chat-thread {
  border: 1px solid rgba(16, 45, 95, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 41, 90, 0.1);
}

.platform-frame-card {
  margin-top: 18px;
  overflow: hidden;
}

.platform-frame-actions {
  padding: 14px 16px;
  border-bottom: 1px solid #e4ebf7;
}

.platform-frame-actions p,
.chat-thread-head p {
  margin: 0;
  color: #53657f;
  font-size: 13px;
  font-weight: 700;
}

.platform-frame-actions p[data-tone="ok"] {
  color: #087f5b;
}

.platform-frame-actions p[data-tone="error"] {
  color: #b42318;
}

.platform-frame-actions div {
  display: flex;
  gap: 8px;
}

.platform-frame-actions button,
.platform-frame-actions a {
  padding: 10px 13px;
}

.platform-frame-actions a {
  background: linear-gradient(90deg, #1457ff, #09a9e8);
  color: #ffffff;
}

.platform-frame-actions a.disabled {
  pointer-events: none;
  opacity: 0.45;
}

.platform-frame-card iframe {
  display: block;
  width: 100%;
  height: min(76vh, 850px);
  min-height: 560px;
  border: 0;
  background: #ffffff;
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.news-editor {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.news-editor h2,
.chat-thread-head h2,
.chat-sidebar h2 {
  margin: 0;
  color: #071833;
}

.news-editor label,
.chat-channel-form label {
  display: grid;
  gap: 7px;
  color: #53657f;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.news-editor input,
.news-editor select,
.news-editor textarea,
.chat-channel-form input,
.chat-composer input {
  width: 100%;
  border: 1px solid #d5e0f0;
  border-radius: 8px;
  background: #f8fbff;
  color: #071833;
  font: 600 14px/1.45 "Poppins", sans-serif;
}

.news-editor input,
.news-editor select,
.chat-channel-form input,
.chat-composer input {
  height: 44px;
  padding: 0 12px;
}

.news-editor textarea {
  min-height: 190px;
  padding: 12px;
  resize: vertical;
}

.news-actions button,
.news-feed-head button,
.chat-channel-form button,
.chat-composer button {
  min-height: 42px;
  padding: 0 14px;
}

.news-actions button:last-child,
.chat-composer button {
  background: linear-gradient(90deg, #1457ff, #09a9e8);
  color: #ffffff;
}

.news-feed-panel {
  padding: 20px;
}

.news-feed {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.news-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid #e4ebf7;
  border-radius: 8px;
  background: #fbfdff;
}

.news-card header,
.news-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.news-card header span,
.news-card small {
  color: #0a8fd8;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.news-card h2 {
  margin: 0;
  color: #071833;
  font-size: 24px;
}

.news-card p {
  margin: 0;
  color: #53657f;
  line-height: 1.65;
  white-space: pre-wrap;
}

.news-card footer strong {
  color: #102d5f;
  font-size: 13px;
}

.news-card footer button {
  border: 0;
  background: transparent;
  color: #b42318;
  cursor: pointer;
  font-weight: 800;
}

.chat-page {
  min-height: 100vh;
  overflow: hidden;
  background: #edf3fb;
}

.chat-shell {
  display: grid;
  grid-template-columns: 72px minmax(300px, 390px) minmax(0, 1fr);
  gap: 0;
  width: 100vw;
  min-height: 100vh;
  margin: 0;
  background: #f7fbff;
}

.chat-app-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 10px;
  border-right: 1px solid #dce8f6;
  background: linear-gradient(180deg, #071833 0%, #102d5f 100%);
}

.chat-app-rail a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
}

.chat-app-rail a.active,
.chat-app-rail a:hover {
  background: linear-gradient(135deg, #1457ff, #09a9e8);
}

.chat-sidebar {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
  min-height: 100vh;
  border: 0;
  border-right: 1px solid #dce8f6;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.chat-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 18px 12px;
}

.chat-sidebar-head h1 {
  margin: 4px 0 0;
  font-size: 26px;
  line-height: 1.1;
}

.chat-sidebar-head button,
.chat-thread-actions button,
.chat-composer-tool {
  display: grid;
  place-items: center;
  border: 1px solid #d5e0f0;
  border-radius: 8px;
  background: #f8fbff;
  color: #102d5f;
  cursor: pointer;
  font-weight: 900;
}

.chat-sidebar-head button {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #1457ff, #09a9e8);
  color: #ffffff;
  font-size: 22px;
}

.chat-search {
  display: grid;
  gap: 8px;
  padding: 0 18px 12px;
}

.chat-search span {
  color: #6c7f99;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.chat-search input {
  width: 100%;
  height: 44px;
  border: 1px solid #d5e0f0;
  border-radius: 8px;
  background: #f3f7fc;
  color: #071833;
  font: 700 14px/1.4 "Poppins", sans-serif;
  padding: 0 14px;
}

.chat-filter-row {
  display: flex;
  gap: 8px;
  padding: 0 18px 14px;
}

.chat-filter-row button {
  height: 36px;
  padding: 0 13px;
  border: 1px solid #d5e0f0;
  border-radius: 8px;
  background: #ffffff;
  color: #53657f;
  cursor: pointer;
  font-weight: 900;
}

.chat-filter-row button.active {
  border-color: #98d7ff;
  background: #eaf4ff;
  color: #102d5f;
}

.chat-channel-section {
  min-height: 0;
  border-top: 1px solid #eef3f9;
}

.chat-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 8px;
}

.chat-section-title h2,
.chat-sidebar h2 {
  margin: 0;
  color: #071833;
  font-size: 13px;
  text-transform: uppercase;
}

.chat-section-title span {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 24px;
  border-radius: 8px;
  background: #eef6ff;
  color: #0a8fd8;
  font-size: 12px;
  font-weight: 900;
}

.chat-channel-list {
  display: grid;
  gap: 4px;
  max-height: 100%;
  overflow: auto;
  padding: 0 10px 10px;
}

.chat-channel {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  grid-template-areas:
    "avatar copy meta"
    "avatar subtitle meta";
  align-items: center;
  gap: 2px 10px;
  width: 100%;
  min-height: 72px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #102d5f;
  text-align: left;
  cursor: pointer;
}

.chat-channel:hover,
.chat-channel.active {
  border-color: #dce8f6;
  background: #f3f8ff;
}

.chat-channel.active {
  box-shadow: inset 3px 0 0 #1457ff;
}

.chat-channel-avatar {
  grid-area: avatar;
  position: relative;
  display: block;
  width: 46px;
  height: 46px;
}

.chat-channel-avatar img,
.chat-thread-title img,
.chat-user-pill img,
.chat-message img {
  border-radius: 50%;
  object-fit: cover;
}

.chat-channel-avatar img {
  width: 46px;
  height: 46px;
  background: #eaf4ff;
}

.chat-channel-avatar i {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #0a8fd8;
  color: #ffffff;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.chat-channel-copy {
  grid-area: copy;
  display: grid;
  gap: 3px;
  min-width: 0;
}

.chat-channel-copy strong {
  overflow: hidden;
  color: #071833;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-channel-copy small,
.chat-channel em {
  overflow: hidden;
  color: #6c7f99;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-channel em {
  grid-area: subtitle;
}

.chat-channel-meta {
  grid-area: meta;
  display: grid;
  justify-items: end;
  gap: 6px;
}

.chat-channel-meta time {
  color: #7a8ba5;
  font-size: 11px;
  font-weight: 800;
}

.chat-channel-meta b {
  padding: 2px 7px;
  border-radius: 999px;
  background: #09a96f;
  color: #ffffff;
  font-size: 10px;
  text-transform: uppercase;
}

.chat-empty {
  margin: 0;
  padding: 14px;
  color: #6c7f99;
  font-size: 13px;
  font-weight: 700;
}

.chat-channel-form {
  display: grid;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid #eef3f9;
}

.chat-channel-form label {
  display: grid;
  gap: 7px;
  color: #53657f;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.chat-channel-form input,
.chat-composer input {
  width: 100%;
  border: 1px solid #d5e0f0;
  border-radius: 8px;
  background: #f8fbff;
  color: #071833;
  font: 700 14px/1.45 "Poppins", sans-serif;
}

.chat-channel-form input {
  height: 40px;
  padding: 0 12px;
}

.chat-channel-form button,
.chat-send-button {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, #1457ff, #09a9e8);
  color: #ffffff;
  cursor: pointer;
  font-weight: 900;
}

.chat-user-pill {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid #dce8f6;
  background: #f7fbff;
}

.chat-user-pill img {
  width: 42px;
  height: 42px;
}

.chat-user-pill div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.chat-user-pill strong {
  overflow: hidden;
  color: #071833;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-user-pill span {
  color: #09a96f;
  font-size: 12px;
  font-weight: 800;
}

.chat-user-pill button {
  border: 0;
  background: transparent;
  color: #53657f;
  cursor: pointer;
  font-weight: 900;
}

.chat-thread {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 100vh;
  border: 0;
  border-radius: 0;
  background: #f7fbff;
  box-shadow: none;
}

.chat-thread-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 14px 22px;
  border-bottom: 1px solid #dce8f6;
  background: #ffffff;
}

.chat-thread-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.chat-thread-title img {
  width: 48px;
  height: 48px;
  background: #eaf4ff;
}

.chat-thread-title h2 {
  overflow: hidden;
  margin: 2px 0 3px;
  color: #071833;
  font-size: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-thread-title p {
  margin: 0;
  color: #53657f;
  font-size: 12px;
  font-weight: 800;
}

.chat-thread-actions {
  display: flex;
  gap: 8px;
}

.chat-thread-actions button {
  min-width: 42px;
  height: 38px;
  padding: 0 12px;
  color: #53657f;
  font-size: 12px;
}

.chat-status {
  padding: 8px 22px;
  border-bottom: 1px solid #e9f0f8;
  background: #fbfdff;
  color: #53657f;
  font-size: 12px;
  font-weight: 800;
}

.chat-messages {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding: 24px 28px;
  background:
    radial-gradient(circle at 1px 1px, rgba(16, 45, 95, 0.06) 1px, transparent 0) 0 0 / 22px 22px,
    linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
}

.chat-message {
  display: grid;
  grid-template-columns: 42px minmax(0, max-content);
  gap: 10px;
  max-width: min(760px, 78%);
  align-items: end;
}

.chat-message.mine {
  grid-template-columns: minmax(0, max-content);
  justify-self: end;
}

.chat-message.mine img {
  display: none;
}

.chat-message img {
  width: 42px;
  height: 42px;
}

.chat-bubble {
  min-width: 210px;
  max-width: 100%;
  padding: 10px 13px;
  border: 1px solid #dce8f6;
  border-radius: 8px 8px 8px 2px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 41, 90, 0.08);
}

.chat-message.mine .chat-bubble {
  border-color: #bfe8ff;
  border-radius: 8px 8px 2px 8px;
  background: #dff4ff;
}

.chat-message header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
}

.chat-message header strong {
  color: #102d5f;
  font-size: 12px;
}

.chat-message header span {
  color: #7a8ba5;
  font-size: 11px;
  font-weight: 800;
}

.chat-message p {
  margin: 0;
  color: #273952;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-composer {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px auto;
  gap: 10px;
  align-items: center;
  padding: 14px 18px;
  border-top: 1px solid #dce8f6;
  background: #ffffff;
}

.chat-composer input {
  height: 46px;
  padding: 0 14px;
  background: #f3f7fc;
}

.chat-composer .chat-composer-tool {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid #d5e0f0;
  background: #f8fbff;
  color: #102d5f;
}

.chat-send-button {
  min-width: 96px;
}

@media (max-width: 980px) {
  .chat-shell {
    grid-template-columns: 58px minmax(250px, 340px) minmax(0, 1fr);
  }

  .chat-thread-actions button {
    width: 38px;
    padding: 0;
    overflow: hidden;
    color: transparent;
  }
}

@media (max-width: 760px) {
  .chat-page {
    overflow: auto;
  }

  .chat-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .chat-app-rail {
    display: none;
  }

  .chat-sidebar,
  .chat-thread {
    min-height: auto;
  }

  .chat-thread {
    min-height: 620px;
  }

  .chat-message {
    max-width: 92%;
  }

  .chat-composer {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }

  .chat-composer-tool:nth-of-type(2) {
    display: none;
  }
}

.autonomous-product-page {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #ffffff;
}

.autonomous-stage,
.autonomous-frame {
  width: 100%;
  height: 100%;
}

.autonomous-stage {
  position: relative;
}

.autonomous-frame {
  display: block;
  border: 0;
  background: #ffffff;
}

.autonomous-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-content: center;
  gap: 14px;
  padding: 24px;
  background: #f4f7fb;
  text-align: center;
}

.autonomous-loading.hidden {
  display: none;
}

.autonomous-loading img {
  width: min(360px, 72vw);
  max-height: 110px;
  justify-self: center;
  object-fit: contain;
}

.autonomous-loading span,
.chat-user-pill span,
.news-user-pill span {
  color: #0a8fd8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.autonomous-loading h1 {
  margin: 0;
  color: #071833;
  font-size: clamp(34px, 7vw, 76px);
  line-height: 0.95;
}

.autonomous-loading p {
  margin: 0;
  color: #53657f;
  font-weight: 700;
}

.autonomous-loading p[data-tone="error"] {
  color: #b42318;
}

.autonomous-loading a,
.chat-user-pill button,
.news-user-pill button {
  justify-self: center;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, #1457ff, #09a9e8);
  color: #ffffff;
  font: 800 13px/1 "Poppins", sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.autonomous-loading a {
  padding: 13px 16px;
}

.autonomous-loading a.hidden {
  display: none;
}

.chat-page .chat-shell {
  min-height: calc(100vh - 48px);
}

.news-page .news-shell {
  margin-top: 24px;
}

.chat-user-pill,
.news-user-pill {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e4ebf7;
  border-radius: 8px;
  background: #f8fbff;
}

.news-user-pill {
  justify-self: end;
  min-width: min(100%, 360px);
}

.chat-user-pill img,
.news-user-pill img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-user-pill strong,
.news-user-pill strong {
  display: block;
  overflow: hidden;
  color: #102d5f;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-user-pill button,
.news-user-pill button {
  min-height: 36px;
  padding: 0 12px;
}

@media (max-width: 980px) {
  .platform-topbar,
  .platform-intro,
  .news-hero,
  .news-layout,
  .chat-shell {
    grid-template-columns: 1fr;
  }

  .platform-user {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .platform-intro img,
  .news-hero img {
    object-position: left center;
  }
}

@media (max-width: 640px) {
  .platform-shell,
  .news-shell,
  .chat-shell {
    width: min(100% - 24px, 1660px);
    margin-top: 12px;
  }

  .platform-topbar,
  .platform-intro,
  .news-hero,
  .news-editor,
  .news-feed-panel,
  .chat-sidebar,
  .chat-thread-head {
    padding: 14px;
  }

  .platform-nav,
  .platform-frame-actions,
  .news-actions,
  .news-feed-head,
  .chat-thread-head {
    align-items: stretch;
    flex-direction: column;
  }

  .chat-composer {
    grid-template-columns: 1fr;
  }
}

.chat-page .chat-shell {
  grid-template-columns: 72px minmax(300px, 390px) minmax(0, 1fr);
  width: 100vw;
  min-height: 100vh;
  margin: 0;
}

.chat-page .chat-sidebar {
  padding: 0;
  border-radius: 0;
}

.chat-page .chat-user-pill {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px 18px;
  border: 0;
  border-top: 1px solid #dce8f6;
  border-radius: 0;
  background: #f7fbff;
}

.chat-page .chat-user-pill img {
  width: 42px;
  height: 42px;
}

.chat-page .chat-user-pill span {
  color: #09a96f;
  font-size: 12px;
  font-weight: 800;
  text-transform: none;
}

.chat-page .chat-user-pill button {
  justify-self: auto;
  min-height: auto;
  padding: 0;
  background: transparent;
  color: #53657f;
}

.chat-page .chat-composer {
  grid-template-columns: 44px minmax(0, 1fr) 44px auto;
}

@media (max-width: 980px) {
  .chat-page .chat-shell {
    grid-template-columns: 58px minmax(250px, 340px) minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .chat-page .chat-shell {
    grid-template-columns: 1fr;
    width: 100%;
    min-height: auto;
  }

  .chat-page .chat-app-rail {
    display: none;
  }

  .chat-page .chat-composer {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }

  .chat-page .chat-thread-head {
    align-items: center;
    flex-direction: row;
  }
}

.news-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(244, 247, 251, 0.96)),
    #f4f7fb;
}

.news-page .news-hero {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(234, 245, 255, 0.96)),
    radial-gradient(circle at 92% 18%, rgba(0, 163, 137, 0.16), transparent 34%);
}

.news-edition-bar,
.news-editor-panel,
.news-pipeline-panel,
.news-preview-panel {
  border: 1px solid rgba(16, 45, 95, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 41, 90, 0.1);
}

.news-edition-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(150px, 0.8fr) minmax(160px, 0.8fr) minmax(180px, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
}

.news-edition-bar label,
.news-editor label {
  display: grid;
  gap: 7px;
  color: #53657f;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.news-edition-bar input,
.news-edition-bar select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #d5e0f0;
  border-radius: 8px;
  background: #f8fbff;
  color: #071833;
  font: 700 14px/1.3 "Poppins", sans-serif;
}

.news-edition-actions,
.news-filter-group,
.news-card footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.news-edition-actions {
  justify-content: flex-end;
}

.news-edition-actions button,
.news-filter-group button,
.news-sections-list button,
.news-card footer button {
  border: 0;
  border-radius: 8px;
  background: #edf4ff;
  color: #0b2a55;
  font: 800 12px/1.15 "Poppins", sans-serif;
  cursor: pointer;
}

.news-edition-actions button,
.news-filter-group button,
.news-card footer button {
  min-height: 38px;
  padding: 0 11px;
}

.news-edition-actions button:first-child,
.news-actions button:last-child,
.news-card footer button[data-news-action="advance"] {
  background: linear-gradient(90deg, #1457ff, #09a9e8);
  color: #ffffff;
}

.news-card footer button[data-news-action="remove"] {
  background: #fff0f0;
  color: #b42318;
}

.news-card footer button:disabled {
  background: #e7f8f1;
  color: #087f5b;
  cursor: default;
}

.news-workspace {
  display: grid;
  grid-template-columns: minmax(330px, 430px) minmax(420px, 1fr) minmax(320px, 440px);
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.news-editor-panel,
.news-pipeline-panel,
.news-preview-panel {
  min-width: 0;
  padding: 20px;
}

.news-panel-head {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.news-panel-head span {
  color: #0a8fd8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.news-panel-head h2 {
  margin: 0;
  color: #071833;
  font-size: 22px;
}

.news-editor-panel .news-editor {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.news-editor-panel .news-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.news-editor-panel .news-actions button {
  flex: 1 1 120px;
  min-width: 0;
  white-space: normal;
}

.news-sections-guide {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #e4ebf7;
}

.news-sections-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.news-sections-list button {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 12px;
  text-align: left;
}

.news-sections-list button strong {
  color: #102d5f;
  font-size: 13px;
}

.news-sections-list button span {
  color: #53657f;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  text-transform: none;
}

.news-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 16px;
}

.news-stats div {
  min-width: 0;
  padding: 11px;
  border: 1px solid #e4ebf7;
  border-radius: 8px;
  background: #f8fbff;
}

.news-stats strong,
.news-stats span {
  display: block;
}

.news-stats strong {
  color: #071833;
  font-size: 24px;
  line-height: 1;
}

.news-stats span {
  margin-top: 5px;
  color: #53657f;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.news-filter-group {
  justify-content: flex-end;
}

.news-filter-group button.active {
  background: #102d5f;
  color: #ffffff;
}

.news-feed {
  align-content: start;
}

.news-card {
  border-left: 5px solid #8fb8ff;
}

.news-card[data-news-status="review"] {
  border-left-color: #f2b84b;
}

.news-card[data-news-status="approved"] {
  border-left-color: #00a389;
}

.news-card[data-news-status="published"] {
  border-left-color: #102d5f;
}

.news-card footer {
  align-items: flex-start;
}

.news-card footer strong {
  line-height: 1.35;
}

.news-empty {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px dashed #bfd0e7;
  border-radius: 8px;
  background: #f8fbff;
}

.news-empty strong {
  color: #102d5f;
}

.news-empty span {
  color: #53657f;
  font-weight: 700;
}

.news-preview {
  display: grid;
  gap: 18px;
}

.news-preview header {
  display: grid;
  gap: 7px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e4ebf7;
}

.news-preview header span {
  color: #0a8fd8;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.news-preview h2,
.news-preview h3,
.news-preview p {
  margin: 0;
}

.news-preview h2 {
  color: #071833;
  font-size: 28px;
  line-height: 1.1;
}

.news-preview header p,
.news-preview-note {
  color: #53657f;
  font-weight: 700;
}

.news-preview section {
  display: grid;
  gap: 10px;
}

.news-preview h3 {
  color: #102d5f;
  font-size: 14px;
  text-transform: uppercase;
}

.news-preview article {
  display: grid;
  gap: 5px;
  padding: 13px;
  border: 1px solid #e4ebf7;
  border-radius: 8px;
  background: #fbfdff;
}

.news-preview article strong {
  color: #071833;
  line-height: 1.35;
}

.news-preview article p {
  color: #53657f;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
}

@media (max-width: 1320px) {
  .news-workspace {
    grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  }

  .news-preview-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .news-edition-bar,
  .news-workspace {
    grid-template-columns: 1fr;
  }

  .news-edition-actions,
  .news-filter-group {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .news-edition-bar,
  .news-editor-panel,
  .news-pipeline-panel,
  .news-preview-panel {
    padding: 14px;
  }

  .news-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-card header,
  .news-card footer,
  .news-feed-head {
    align-items: stretch;
    flex-direction: column;
  }

  .news-card footer div,
  .news-filter-group {
    width: 100%;
  }

  .news-card footer button,
  .news-filter-group button,
  .news-edition-actions button {
    flex: 1 1 130px;
    white-space: normal;
  }
}

@media print {
  .news-hero,
  .news-edition-bar,
  .news-editor-panel,
  .news-pipeline-panel {
    display: none;
  }

  .news-shell {
    width: 100%;
    margin: 0;
  }

  .news-workspace {
    display: block;
    margin: 0;
  }

  .news-preview-panel {
    border: 0;
    box-shadow: none;
  }
}

/* ProjetaCHAT rich communication UI */
.chat-page .chat-shell {
  grid-template-columns: minmax(320px, 410px) minmax(0, 1fr);
  width: 100vw;
  min-height: 100vh;
  margin: 0;
}

.chat-page .chat-app-rail {
  display: none;
}

.chat-user-section {
  min-height: 0;
  border-top: 1px solid #eef3f9;
}

.chat-user-list {
  display: grid;
  gap: 4px;
  max-height: 230px;
  overflow: auto;
  padding: 0 10px 10px;
}

.chat-person {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 62px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #071833;
  text-align: left;
}

.chat-person:hover {
  border-color: #dce8f6;
  background: #f3f8ff;
}

.chat-person img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-person span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.chat-person strong,
.chat-person small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-person strong {
  font-size: 14px;
}

.chat-person small {
  color: #6c7f99;
  font-size: 12px;
  font-weight: 700;
}

.chat-person em {
  padding: 3px 8px;
  border-radius: 999px;
  background: #eaf4ff;
  color: #0a8fd8;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.chat-page .chat-sidebar {
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
}

.chat-page .chat-thread-actions button {
  min-width: 86px;
}

.chat-draft-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 18px;
  border-top: 1px solid #dce8f6;
  background: #fbfdff;
}

.chat-draft-attachments button {
  display: grid;
  gap: 2px;
  max-width: 220px;
  padding: 9px 11px;
  border: 1px solid #cde0f7;
  border-radius: 8px;
  background: #eef6ff;
  color: #102d5f;
  text-align: left;
}

.chat-draft-attachments span {
  overflow: hidden;
  color: #53657f;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-page .chat-composer {
  position: relative;
  grid-template-columns: 44px 44px 50px minmax(0, 1fr) 64px auto;
}

.chat-page .chat-composer-tool.recording {
  border-color: #f04438;
  background: #fff1f0;
  color: #b42318;
}

.chat-picker {
  position: absolute;
  left: 430px;
  bottom: 84px;
  z-index: 20;
  display: grid;
  gap: 12px;
  width: min(660px, calc(100vw - 460px));
  max-height: min(620px, calc(100vh - 150px));
  overflow: auto;
  padding: 14px;
  border: 1px solid #dce8f6;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 41, 90, 0.22);
}

.chat-picker-tabs {
  display: flex;
  gap: 8px;
}

.chat-picker-tabs button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #d5e0f0;
  border-radius: 8px;
  background: #ffffff;
  color: #53657f;
  font-weight: 900;
}

.chat-picker-tabs button.active {
  border-color: #98d7ff;
  background: #eaf4ff;
  color: #102d5f;
}

.chat-picker-search {
  display: grid;
  gap: 6px;
}

.chat-picker-search span {
  color: #6c7f99;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.chat-picker-search input {
  width: 100%;
  height: 42px;
  border: 1px solid #d5e0f0;
  border-radius: 8px;
  padding: 0 12px;
  background: #f8fbff;
  color: #071833;
}

.chat-emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
  gap: 7px;
}

.chat-emoji-grid button {
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #ffffff;
  font-size: 24px;
}

.chat-emoji-grid button:hover {
  border-color: #dce8f6;
  background: #f3f8ff;
}

.chat-gif-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.chat-gif-grid button {
  overflow: hidden;
  display: grid;
  gap: 7px;
  min-height: 120px;
  border: 1px solid #dce8f6;
  border-radius: 8px;
  background: #f8fbff;
  color: #102d5f;
  font-weight: 900;
}

.chat-gif-grid img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  background: #eaf4ff;
}

.chat-gif-upload {
  padding: 12px;
  align-content: center;
}

.chat-attachment {
  margin-top: 8px;
}

.chat-attachment-image img {
  display: block;
  max-width: min(360px, 100%);
  max-height: 260px;
  border-radius: 8px;
  object-fit: contain;
}

.chat-gif-fallback {
  display: grid;
  place-items: center;
  gap: 6px;
  width: min(300px, 100%);
  min-height: 150px;
  border: 1px solid rgba(38, 149, 255, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(20, 87, 255, 0.12), rgba(9, 169, 232, 0.16)),
    #eef7ff;
  color: #102d5f;
  text-align: center;
}

.chat-gif-fallback strong {
  font-size: 24px;
  font-weight: 900;
}

.chat-gif-fallback span {
  font-size: 13px;
  font-weight: 900;
}

.chat-attachment figcaption,
.chat-attachment-file,
.chat-transcript {
  color: #53657f;
  font-size: 12px;
  font-weight: 800;
}

.chat-attachment-audio {
  display: grid;
  gap: 7px;
}

.chat-attachment-audio audio {
  width: min(360px, 100%);
}

.chat-transcript {
  padding: 8px 10px;
  border-left: 3px solid #0a8fd8;
  border-radius: 0 8px 8px 0;
  background: #f3f8ff;
}

.chat-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 24, 51, 0.48);
}

.chat-modal-card {
  display: grid;
  gap: 14px;
  width: min(920px, 100%);
  max-height: min(860px, calc(100vh - 48px));
  overflow: auto;
  padding: 20px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 90px rgba(7, 24, 51, 0.28);
}

.chat-modal-card header,
.chat-modal-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chat-modal-card h2,
.chat-modal-card h3 {
  margin: 0;
  color: #071833;
}

.chat-modal-card header span {
  color: #0a8fd8;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.chat-modal-card label {
  display: grid;
  gap: 7px;
  color: #53657f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.chat-modal-card input,
.chat-modal-card select {
  width: 100%;
  height: 42px;
  border: 1px solid #d5e0f0;
  border-radius: 8px;
  padding: 0 12px;
  background: #f8fbff;
  color: #071833;
}

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

.chat-choice-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.chat-choice-list label {
  grid-template-columns: auto 38px minmax(0, 1fr);
  align-items: center;
  padding: 10px;
  border: 1px solid #dce8f6;
  border-radius: 8px;
  background: #fbfdff;
  text-transform: none;
}

.chat-choice-list input {
  width: 16px;
  height: 16px;
}

.chat-choice-list img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-choice-list span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.chat-choice-list strong,
.chat-choice-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-modal-card footer button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #edf4ff;
  color: #102d5f;
  font-weight: 900;
}

.chat-modal-card footer button:last-child {
  background: linear-gradient(90deg, #1457ff, #09a9e8);
  color: #ffffff;
}

@media (max-width: 980px) {
  .chat-page .chat-shell {
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  }

  .chat-picker {
    left: 24px;
    width: calc(100vw - 48px);
  }
}

@media (max-width: 760px) {
  .chat-page .chat-shell,
  .chat-modal-columns {
    grid-template-columns: 1fr;
  }

  .chat-page .chat-composer {
    grid-template-columns: 40px 40px 42px minmax(0, 1fr);
  }

  .chat-page .chat-composer .chat-send-button,
  .chat-page .chat-composer #chatAudioButton {
    grid-column: span 2;
  }
}

/* ProjetaCHAT branded layout */
.chat-page {
  background:
    linear-gradient(135deg, rgba(2, 13, 37, 0.96), rgba(2, 23, 62, 0.88)),
    url("/assets/projetachat-background-neural.png") center / cover fixed;
}

.chat-page .chat-shell {
  grid-template-columns: minmax(330px, 420px) minmax(0, 1fr);
  background: transparent;
}

.chat-page .chat-sidebar {
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
  border-right: 1px solid rgba(105, 180, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(2, 19, 52, 0.94), rgba(3, 31, 74, 0.9)),
    url("/assets/projetachat-background-barra.png") center bottom / cover no-repeat;
  color: #ffffff;
}

.chat-brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.chat-brand-wordmark {
  width: min(245px, 100%);
  height: 54px;
  object-fit: contain;
  object-position: left center;
}

.chat-page .chat-sidebar-head {
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(105, 180, 255, 0.18);
}

.chat-page .chat-sidebar-head button {
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: 0 14px 32px rgba(0, 123, 255, 0.32);
}

.chat-page .chat-search,
.chat-page .chat-filter-row {
  padding-left: 18px;
  padding-right: 18px;
}

.chat-page .chat-search span,
.chat-page .chat-section-title h2,
.chat-page .chat-sidebar h2 {
  color: rgba(214, 232, 255, 0.78);
}

.chat-page .chat-search input {
  border-color: rgba(113, 177, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.chat-page .chat-search input::placeholder {
  color: rgba(214, 232, 255, 0.58);
}

.chat-page .chat-modal-card input,
.chat-page .chat-modal-card select {
  border-color: #d5e0f0;
  background: #f8fbff;
  color: #071833;
}

.chat-page .chat-modal-card input::placeholder {
  color: #7a8ba5;
}

.chat-page .chat-filter-row button,
.chat-page .chat-thread-actions button,
.chat-page .chat-composer-tool {
  border-color: rgba(117, 185, 255, 0.28);
  background: rgba(255, 255, 255, 0.09);
  color: #d6e8ff;
}

.chat-page .chat-filter-row button.active,
.chat-page .chat-thread-actions button:hover,
.chat-page .chat-composer-tool:hover {
  border-color: rgba(38, 149, 255, 0.68);
  background: linear-gradient(135deg, rgba(20, 87, 255, 0.9), rgba(9, 169, 232, 0.86));
  color: #ffffff;
}

.chat-page .chat-thread-head .chat-thread-actions button,
.chat-page .chat-composer .chat-composer-tool {
  border-color: #d5e0f0;
  background: #f8fbff;
  color: #102d5f;
}

.chat-page .chat-thread-head .chat-thread-actions button:hover,
.chat-page .chat-composer .chat-composer-tool:hover {
  border-color: rgba(38, 149, 255, 0.62);
  background: linear-gradient(135deg, #1457ff, #09a9e8);
  color: #ffffff;
}

.chat-page .chat-thread-head .chat-thread-actions .chat-danger-button {
  border-color: rgba(220, 38, 38, 0.22);
  background: #fff5f5;
  color: #b42318;
}

.chat-page .chat-thread-head .chat-thread-actions .chat-danger-button:hover {
  border-color: #fda29b;
  background: #d92d20;
  color: #ffffff;
}

.chat-page .chat-user-section,
.chat-page .chat-channel-section {
  border-top: 1px solid rgba(105, 180, 255, 0.18);
}

.chat-page .chat-section-title span {
  background: rgba(12, 151, 226, 0.18);
  color: #8fd7ff;
}

.chat-page .chat-channel,
.chat-page .chat-person {
  color: #eaf4ff;
}

.chat-page .chat-channel-copy strong,
.chat-page .chat-person strong {
  color: #ffffff;
}

.chat-page .chat-channel-copy small,
.chat-page .chat-channel em,
.chat-page .chat-person small,
.chat-page .chat-empty {
  color: rgba(214, 232, 255, 0.68);
}

.chat-page .chat-channel:hover,
.chat-page .chat-channel.active,
.chat-page .chat-person:hover {
  border-color: rgba(117, 185, 255, 0.32);
  background: rgba(255, 255, 255, 0.11);
}

.chat-page .chat-channel.active {
  box-shadow: inset 3px 0 0 #18b8ff;
}

.chat-page .chat-channel-avatar img {
  background: rgba(255, 255, 255, 0.1);
}

.chat-page .chat-channel-avatar i,
.chat-page .chat-person em,
.chat-page .chat-channel-meta b {
  background: #0fb2e8;
  color: #ffffff;
}

.chat-page .chat-channel-meta time {
  color: rgba(214, 232, 255, 0.56);
}

.chat-page .chat-user-pill {
  border-top: 1px solid rgba(105, 180, 255, 0.18);
  background: rgba(2, 13, 37, 0.44);
}

.chat-page .chat-user-pill strong {
  color: #ffffff;
}

.chat-page .chat-user-pill span {
  color: #48d98c;
}

.chat-page .chat-user-pill button {
  color: #d6e8ff;
}

.chat-page .chat-thread {
  background:
    linear-gradient(180deg, rgba(247, 251, 255, 0.96), rgba(236, 246, 255, 0.92)),
    url("/assets/projetachat-background-neural.png") center / cover fixed;
}

.chat-page .chat-thread-head {
  border-bottom: 1px solid rgba(15, 51, 97, 0.12);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.chat-page .chat-thread-title h2 {
  color: #061a3a;
}

.chat-page .chat-thread-title p {
  color: #647891;
}

.chat-page .chat-thread-head span {
  color: #0a8fd8;
}

.chat-page .chat-status {
  border-bottom: 1px solid rgba(15, 51, 97, 0.08);
  background: rgba(255, 255, 255, 0.68);
  color: #345270;
}

.chat-page .chat-messages {
  background:
    linear-gradient(180deg, rgba(246, 251, 255, 0.84), rgba(235, 246, 255, 0.86)),
    url("/assets/projetachat-background-barra.png") right bottom / min(720px, 80vw) auto no-repeat;
}

.chat-page .chat-bubble {
  border: 1px solid rgba(204, 222, 244, 0.86);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(7, 24, 51, 0.08);
}

.chat-page .chat-message.mine .chat-bubble {
  border-color: rgba(38, 149, 255, 0.38);
  background: linear-gradient(135deg, #e4f4ff, #d9f7ef);
}

.chat-page .chat-composer,
.chat-page .chat-draft-attachments {
  border-top: 1px solid rgba(15, 51, 97, 0.12);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.chat-page .chat-composer input {
  border-color: rgba(15, 51, 97, 0.22);
  background: #ffffff;
}

.chat-page .chat-send-button,
.chat-page .chat-modal-card footer button:last-child,
.chat-member-card button {
  background: linear-gradient(135deg, #1457ff, #09a9e8);
  color: #ffffff;
}

.chat-picker {
  border-color: rgba(23, 118, 230, 0.18);
  box-shadow: 0 28px 70px rgba(3, 25, 61, 0.24);
}

.chat-members-card {
  width: min(760px, 100%);
}

.chat-page .chat-modal-card header button {
  min-height: 38px;
  border: 1px solid #d5e0f0;
  border-radius: 8px;
  padding: 0 12px;
  background: #edf4ff;
  color: #102d5f;
  cursor: pointer;
  font-weight: 900;
}

.chat-members-list {
  display: grid;
  gap: 16px;
}

.chat-members-list-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.chat-members-list-title h3 {
  margin: 0;
}

.chat-members-list-title span {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 24px;
  border-radius: 8px;
  background: #eef6ff;
  color: #0a8fd8;
  font-size: 12px;
  font-weight: 900;
}

.chat-member-grid {
  display: grid;
  gap: 8px;
}

.chat-member-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #dce8f6;
  border-radius: 8px;
  background: #fbfdff;
}

.chat-member-card img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-member-card span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.chat-member-card strong,
.chat-member-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-member-card em {
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef6ff;
  color: #0a8fd8;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.chat-member-card button {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  cursor: pointer;
  font-weight: 900;
}

.chat-member-card button:disabled {
  cursor: default;
  opacity: 0.42;
}

@media (max-width: 900px) {
  .chat-page .chat-shell {
    grid-template-columns: 340px minmax(0, 1fr);
  }

  .chat-brand-wordmark {
    width: 190px;
  }
}

@media (max-width: 760px) {
  .chat-page .chat-shell {
    grid-template-columns: 1fr;
  }

  .chat-page .chat-sidebar {
    min-height: auto;
    max-height: 45vh;
  }

  .chat-page .chat-thread {
    min-height: 55vh;
  }

  .chat-member-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .chat-member-card em,
  .chat-member-card button {
    grid-column: 2;
    justify-self: start;
  }
}

/* ProjetaCHAT viewport fit */
body.chat-page,
.chat-page {
  width: 100vw;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
}

html:has(body.chat-page) {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.chat-page .chat-shell {
  width: 100vw;
  height: 100dvh;
  min-height: 0;
  max-height: 100dvh;
  overflow: hidden;
  grid-template-columns: clamp(400px, 21.8vw, 430px) minmax(0, 1fr);
}

.chat-page .chat-sidebar,
.chat-page .chat-thread {
  height: 100dvh;
  min-height: 0;
  max-height: 100dvh;
  overflow: hidden;
}

.chat-page .chat-channel-section {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.chat-page .chat-channel-list {
  max-height: none;
  min-height: 0;
  overflow: auto;
}

.chat-page .chat-thread {
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
}

.chat-page .chat-messages {
  min-height: 0;
  overflow: auto;
  padding: 28px 40px;
  background:
    radial-gradient(circle at 1px 1px, rgba(16, 45, 95, 0.045) 1px, transparent 0) 0 0 / 24px 24px,
    linear-gradient(180deg, #eef7ff 0%, #deebf7 100%);
  background-color: #e7f1fb;
}

.chat-page .chat-messages .chat-empty {
  color: #49617d;
}

.chat-page .chat-draft-attachments {
  max-height: 92px;
  overflow: auto;
}

.chat-page .chat-composer {
  grid-template-columns: 44px 44px 50px minmax(0, 1fr) 64px 96px;
  min-height: 66px;
  padding: 10px 16px 12px;
}

.chat-page .chat-composer input {
  min-width: 0;
}

.chat-page .chat-send-button {
  min-width: 96px;
}

@media (max-width: 900px) {
  .chat-page .chat-shell {
    grid-template-columns: minmax(320px, 360px) minmax(0, 1fr);
  }

  .chat-brand-wordmark {
    width: min(220px, 100%);
  }
}

@media (max-width: 760px) {
  body.chat-page,
  .chat-page {
    height: auto;
    min-height: 100dvh;
    overflow: auto;
  }

  .chat-page .chat-shell,
  .chat-page .chat-sidebar,
  .chat-page .chat-thread {
    height: auto;
    max-height: none;
  }
}

/* ProjetaCHAT compact desktop responsiveness */
.chat-page .chat-thread {
  min-width: 0;
}

.chat-page .chat-thread-head,
.chat-page .chat-status,
.chat-page .chat-composer {
  flex-shrink: 0;
}

.chat-page .chat-thread-title {
  min-width: 0;
}

.chat-page .chat-thread-title > div {
  min-width: 0;
}

.chat-page .chat-thread-actions {
  flex: 0 0 auto;
}

.chat-page .chat-composer {
  position: sticky;
  bottom: 0;
  z-index: 12;
  gap: 8px;
}

.chat-page .chat-composer .chat-composer-tool,
.chat-page .chat-send-button {
  flex: 0 0 auto;
}

@media (max-width: 1180px) {
  .chat-page .chat-shell {
    grid-template-columns: clamp(300px, 34vw, 380px) minmax(0, 1fr);
  }

  .chat-brand-wordmark {
    width: min(220px, 100%);
  }

  .chat-page .chat-sidebar-head,
  .chat-page .chat-search,
  .chat-page .chat-filter-row,
  .chat-page .chat-section-title,
  .chat-page .chat-user-pill {
    padding-left: 12px;
    padding-right: 12px;
  }

  .chat-page .chat-filter-row {
    gap: 6px;
    flex-wrap: wrap;
  }

  .chat-page .chat-filter-row button {
    height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .chat-page .chat-channel-list,
  .chat-user-list {
    padding-left: 8px;
    padding-right: 8px;
  }

  .chat-page .chat-channel {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    min-height: 66px;
    gap: 2px 8px;
    padding: 8px;
  }

  .chat-page .chat-channel-avatar,
  .chat-page .chat-channel-avatar img {
    width: 42px;
    height: 42px;
  }

  .chat-page .chat-thread-head {
    min-height: 74px;
    padding: 10px 16px;
  }

  .chat-page .chat-thread-title img {
    width: 44px;
    height: 44px;
  }

  .chat-page .chat-thread-title h2 {
    font-size: 18px;
  }

  .chat-page .chat-messages {
    padding: 20px 24px;
  }

  .chat-page .chat-composer {
    grid-template-columns: 40px 40px 44px minmax(140px, 1fr) 58px 86px;
    min-height: 58px;
    padding: 8px 10px;
  }

  .chat-page .chat-composer .chat-composer-tool {
    width: 40px;
    height: 40px;
    min-height: 40px;
    font-size: 12px;
  }

  .chat-page #chatAudioButton {
    width: auto;
    min-width: 58px;
  }

  .chat-page .chat-composer input {
    height: 42px;
  }

  .chat-page .chat-send-button {
    min-width: 86px;
    min-height: 42px;
    padding: 0 10px;
  }
}

@media (max-width: 860px) {
  .chat-page .chat-shell {
    grid-template-columns: minmax(260px, 34vw) minmax(0, 1fr);
  }

  .chat-brand-wordmark {
    width: 190px;
  }

  .chat-page .chat-sidebar-head button {
    width: 38px;
    height: 38px;
  }

  .chat-page .chat-thread-actions {
    gap: 6px;
  }

  .chat-page .chat-thread-actions button {
    min-width: 72px;
    height: 36px;
    padding: 0 9px;
    font-size: 11px;
  }

  .chat-page .chat-composer {
    grid-template-columns: 38px 38px minmax(120px, 1fr) 54px 78px;
  }

  .chat-page #chatGifButton {
    display: none;
  }

  .chat-page .chat-composer .chat-composer-tool {
    width: 38px;
    height: 38px;
    min-height: 38px;
  }

  .chat-page #chatAudioButton {
    min-width: 54px;
  }

  .chat-page .chat-send-button {
    min-width: 78px;
  }
}

@media (max-height: 650px) and (min-width: 761px) {
  .chat-page .chat-sidebar-head {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .chat-brand-wordmark {
    height: 44px;
  }

  .chat-page .chat-search {
    gap: 5px;
    padding-bottom: 8px;
  }

  .chat-page .chat-search input {
    height: 38px;
  }

  .chat-page .chat-filter-row {
    padding-bottom: 8px;
  }

  .chat-page .chat-section-title {
    padding-top: 9px;
    padding-bottom: 5px;
  }

  .chat-page .chat-thread-head {
    min-height: 64px;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .chat-page .chat-status {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .chat-page .chat-messages {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .chat-page .chat-composer {
    min-height: 54px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .chat-page .chat-user-pill {
    padding-top: 8px;
    padding-bottom: 8px;
  }
}

@media (min-width: 601px) and (max-width: 760px) {
  body.chat-page,
  .chat-page {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }

  .chat-page .chat-shell {
    grid-template-columns: minmax(220px, 36vw) minmax(0, 1fr);
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }

  .chat-page .chat-sidebar-head {
    gap: 6px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .chat-page .chat-sidebar-head button {
    width: 34px;
    height: 34px;
  }

  .chat-brand-wordmark {
    width: min(165px, 100%);
  }

  .chat-page .chat-sidebar,
  .chat-page .chat-thread {
    height: 100dvh;
    min-height: 0;
    max-height: 100dvh;
    overflow: hidden;
  }

  .chat-page .chat-composer {
    grid-template-columns: 36px 36px minmax(96px, 1fr) 52px 74px;
    gap: 6px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .chat-page #chatAttachButton {
    grid-column: 1;
    grid-row: 1;
  }

  .chat-page #chatEmojiButton {
    display: inline-grid !important;
    grid-column: 2;
    grid-row: 1;
  }

  .chat-page #chatGifButton {
    display: none !important;
  }

  .chat-page #chatInput {
    display: block !important;
    grid-column: 3;
    grid-row: 1;
    min-width: 0;
  }

  .chat-page .chat-composer .chat-send-button,
  .chat-page .chat-composer #chatAudioButton {
    grid-row: 1;
  }

  .chat-page .chat-composer .chat-composer-tool {
    width: 36px;
    height: 38px;
  }

  .chat-page #chatAudioButton {
    grid-column: 4;
    min-width: 52px;
  }

  .chat-page .chat-send-button {
    grid-column: 5;
    min-width: 74px;
  }
}

@media (max-width: 600px) {
  body.chat-page,
  .chat-page {
    height: auto;
    min-height: 100dvh;
    overflow: auto;
  }

  .chat-page .chat-shell {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .chat-page .chat-sidebar {
    height: auto;
    max-height: 42dvh;
  }

  .chat-page .chat-thread {
    height: 58dvh;
    min-height: 520px;
    max-height: none;
  }

  .chat-page .chat-composer {
    grid-template-columns: 38px 38px minmax(140px, 1fr) 54px 78px;
  }
}

/* ProjetaCHAT fixed account footer */
.chat-page .chat-sidebar {
  position: relative;
  box-sizing: border-box;
  padding-bottom: 82px;
}

.chat-page .chat-user-pill {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  min-height: 74px;
}

.chat-page .chat-channel-list {
  padding-bottom: 12px;
}

@media (max-height: 650px) and (min-width: 601px) {
  .chat-page .chat-sidebar {
    padding-bottom: 68px;
  }

  .chat-page .chat-user-pill {
    min-height: 62px;
  }
}

@media (max-width: 600px) {
  .chat-page .chat-sidebar {
    padding-bottom: 0;
  }

  .chat-page .chat-user-pill {
    position: sticky;
    bottom: 0;
  }
}
