/* ==========================================================
   TECNOTEXTIL — CENTRAL DE LINKS
   Firebase Edition

   Portabilidade visual do legado:
   - Styles.html
   - Index.html 3.7
   - Scripts.html 3.8
   - Área de usuários Firebase

   effects.css e favorites.css permanecem módulos separados.
   ========================================================== */


/* ==========================================================
   VARIÁVEIS
   ========================================================== */

:root {
  color-scheme: light;

  --blue: #0063a5;
  --blue-hover: #00558e;
  --blue-light: #e8f3fc;
  --blue-dark: #083f70;

  --red: #c4161c;
  --red-dark: #a20f14;

  --green: #157b58;
  --orange: #c36d0b;

  --ink: #17324c;
  --ink-soft: #41576d;

  --muted: #65768a;
  --muted-light: #8192a3;

  --line: #dce6ef;
  --line-dark: #c9d8e5;

  --background: #f3f7fb;
  --surface: #ffffff;
  --surface-alt: #f8fbfe;

  --shadow:
    0 12px 35px rgba(20, 54, 86, .047);

  --shadow-card:
    0 5px 14px rgba(18, 54, 87, .028);

  --shadow-lg:
    0 30px 90px rgba(0, 24, 46, .31);

  --radius-sm: 9px;
  --radius: 14px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --transition: 180ms ease;
}


/* ==========================================================
   RESET / BASE
   ========================================================== */

* {
  box-sizing: border-box;
}


[hidden] {
  display: none !important;
}


html {
  min-height: 100%;
  scroll-behavior: smooth;
}


body {
  margin: 0;

  min-width: 300px;
  min-height: 100vh;

  font-family:
    Montserrat,
    Arial,
    sans-serif;

  color: var(--ink);

  background:
    radial-gradient(
      ellipse at 85% 0%,
      rgba(0, 99, 165, .035),
      transparent 38%
    ),
    var(--background);
}


body.modal-open {
  overflow: hidden;
}


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


button {
  cursor: pointer;
}


button:disabled {
  opacity: .5;
  cursor: not-allowed;
}


a {
  color: var(--blue);
}


img,
svg {
  max-width: 100%;
}


input,
select,
textarea {
  width: 100%;
  min-width: 0;

  border: 1px solid #cbdbe8;
  border-radius: 9px;

  background: #fff;
  color: var(--ink);

  padding: 11px 12px;

  font-size: 12px;

  outline: none;

  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}


select {
  min-height: 42px;
}


input {
  min-height: 42px;
}


textarea {
  min-height: 93px;

  line-height: 1.6;

  resize: vertical;
}


input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);

  box-shadow:
    0 0 0 3px rgba(0, 99, 165, .095);
}


input::placeholder,
textarea::placeholder {
  color: #9aabba;
}


::selection {
  background: rgba(0, 99, 165, .15);
}


/* ==========================================================
   UTILITÁRIOS
   ========================================================== */

.container {
  width:
    min(
      1420px,
      calc(100% - 44px)
    );

  margin-inline: auto;
}


.eyebrow {
  display: inline-block;

  color: var(--blue);

  font-size: 9px;
  font-weight: 800;

  letter-spacing: 1.5px;

  text-transform: uppercase;
}


.helper {
  margin: 5px 0 18px;

  color: var(--muted);

  font-size: 10px;
  line-height: 1.7;
}


.material-symbols-rounded {
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;

  font-size: 20px;
  line-height: 1;

  letter-spacing: normal;
  white-space: nowrap;

  direction: ltr;

  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}


/* ==========================================================
   LINHA INSTITUCIONAL
   ========================================================== */

.institutional-line {
  height: 5px;

  display: grid;

  grid-template-columns:
    1.6fr
    1fr
    .65fr;
}


.institutional-line span:nth-child(1) {
  background: var(--blue);
}


.institutional-line span:nth-child(2) {
  background: var(--red);
}


.institutional-line span:nth-child(3) {
  background: var(--blue-dark);
}


/* ==========================================================
   CABEÇALHO
   ========================================================== */

.site-header {
  background:
    rgba(255, 255, 255, .98);

  border-bottom:
    1px solid var(--line);
}


.header-content {
  min-height: 98px;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 25px;
}


.brand {
  display: flex;

  align-items: center;

  gap: 22px;

  min-width: 0;
}


.brand-logo {
  display: flex;

  width: 170px;
  max-width: 100%;

  flex: 0 0 auto;

  text-decoration: none;
}


.brand-logo-image {
  display: block;

  width: 100%;
  height: auto;
}


.brand-text {
  display: grid;

  gap: 6px;

  min-width: 0;
}


.brand-text strong {
  color: var(--blue-dark);

  font-size: 17px;
  font-weight: 800;

  line-height: 1.3;
}


.brand-text small {
  color: var(--muted);

  font-size: 10px;
  font-weight: 600;
}


.header-actions {
  display: flex;

  align-items: center;
  justify-content: flex-end;

  flex-wrap: wrap;

  gap: 10px;
}


.account-badge {
  max-width: 270px;

  padding: 10px 12px;

  border-radius: 9px;

  background: #edf4fa;

  color: #42627f;

  font-size: 10px;
  font-weight: 700;

  overflow-wrap: anywhere;
}


/* ==========================================================
   BOTÕES
   ========================================================== */

.button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 7px;

  min-height: 40px;

  padding: 10px 15px;

  border:
    1px solid transparent;

  border-radius: 9px;

  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;

  text-align: center;
  text-decoration: none;

  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}


.button:hover:not(:disabled) {
  transform: translateY(-1px);
}


.button.primary {
  border-color: var(--blue);

  background: var(--blue);

  color: #fff;
}


.button.primary:hover:not(:disabled) {
  border-color: var(--blue-dark);

  background: var(--blue-dark);
}


.button.secondary {
  border-color: #cfdfed;

  background: #edf4fa;

  color: var(--blue-dark);
}


.button.secondary:hover:not(:disabled) {
  border-color: #a9c7dc;

  background: #e5f0f8;
}


.button.danger {
  border-color: #f3c5c6;

  background: #fff0f0;

  color: #a91b20;
}


.button.danger:hover:not(:disabled) {
  border-color: #e6a7aa;

  background: #ffe5e6;
}


.button.small {
  min-height: 34px;

  padding: 8px 11px;

  font-size: 10px;
}


.button .material-symbols-rounded {
  font-size: 17px;
}


/* ==========================================================
   LOGIN
   ========================================================== */

.login-screen {
  min-height:
    min(
      680px,
      80vh
    );

  display: grid;

  place-items: center;

  padding: 42px 0;
}


.login-panel {
  width:
    min(
      440px,
      100%
    );

  padding: 38px;

  border:
    1px solid #dce6ef;

  border-radius: 20px;

  background: #fff;

  box-shadow:
    0 20px 55px
    rgba(18, 54, 87, .063);
}


.login-symbol {
  display: inline-grid;

  place-items: center;

  width: 50px;
  height: 50px;

  margin-bottom: 20px;

  border-radius: 13px;

  background: #e8f3fc;

  color: #0063a5;
}


.login-panel h1 {
  margin:
    10px 0 12px;

  color: #083f70;

  font-size: 24px;
  line-height: 1.4;
}


.login-panel > p {
  margin:
    0 0 22px;

  color: #65768a;

  font-size: 12px;
  line-height: 1.8;
}


.login-google-button {
  width: 100%;

  min-height: 46px;
}


.login-message {
  margin-top: 16px;

  padding: 13px;

  border-radius: 10px;

  background: #edf5fb;

  color: #184766;

  font-size: 11px;
  line-height: 1.75;

  overflow-wrap: anywhere;
}


.login-message.error {
  background: #fff0f0;

  color: #9d242b;
}


.login-small {
  margin:
    20px 0 0 !important;

  color:
    #8494a5 !important;

  font-size:
    10px !important;
}


/* ==========================================================
   HERO
   ========================================================== */

.hero {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 30px;

  padding:
    55px 0 43px;
}


.hero-copy {
  max-width: 700px;
}


.hero h1 {
  margin:
    17px 0 13px;

  color: var(--blue-dark);

  font-size:
    clamp(
      29px,
      3.4vw,
      46px
    );

  font-weight: 800;

  line-height: 1.2;

  letter-spacing: -1.7px;
}


.hero h1 span {
  display: block;

  color: var(--blue);
}


.hero p {
  max-width: 620px;

  margin: 0;

  color: var(--muted);

  font-size: 13px;
  line-height: 1.85;
}


.hero-stats {
  display: flex;

  gap: 14px;

  flex-shrink: 0;
}


.stat {
  min-width: 125px;

  padding: 25px;

  border:
    1px solid var(--line);

  border-radius: 16px;

  background: white;

  box-shadow: var(--shadow);
}


.stat strong {
  display: block;

  color: var(--blue);

  font-size: 28px;
  font-weight: 800;

  line-height: 1.15;
}


.stat span {
  display: block;

  margin-top: 5px;

  color: var(--muted);

  font-size: 10px;
  font-weight: 600;
}


/* ==========================================================
   PESQUISA E FILTROS
   ========================================================== */

.search-panel {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(140px, 190px)
    minmax(140px, 190px);

  align-items: end;

  gap: 14px;

  min-width: 0;

  margin-bottom: 23px;

  padding: 20px;

  border:
    1px solid var(--line);

  border-radius: 16px;

  background: white;

  box-shadow: var(--shadow);
}


.field {
  display: grid;

  align-content: start;

  gap: 8px;

  min-width: 0;
}


.field label,
.form-field > span,
.form-field label {
  color: #50647d;

  font-size: 10px;
  font-weight: 800;
}


.search-field {
  min-width: 0;
}


/* ==========================================================
   FAMÍLIAS
   ========================================================== */

#app .cl33-family-bar {
  position: relative;

  display: flex;

  flex-direction: column;

  gap: 15px;

  width: 100%;
  min-width: 0;

  margin:
    0 0 22px;

  padding:
    clamp(
      17px,
      2vw,
      23px
    );

  border:
    1px solid #d6e4ee;

  border-top:
    3px solid #0063a5;

  border-radius: 17px;

  background:
    radial-gradient(
      ellipse at 100% 0%,
      rgba(0, 99, 165, .045),
      transparent 55%
    ),
    rgba(255, 255, 255, .96);

  box-shadow:
    0 9px 27px
    rgba(8, 52, 92, .045);
}


#app .cl33-family-heading {
  display: flex;

  align-items: baseline;
  justify-content: space-between;

  flex-wrap: wrap;

  gap: 10px;

  min-width: 0;
}


#app .cl33-family-heading h2 {
  margin: 0;

  color: #083f70;

  font-size: 18px;
  font-weight: 800;

  letter-spacing: -.025em;
  line-height: 1.4;
}


#app .cl33-family-caption {
  color: #8295a7;

  font-size: 10px;
  font-weight: 800;

  letter-spacing: .11em;
}


#app .cl33-family-bar
#categoryNavigation {
  display: flex !important;

  flex-direction: row !important;
  flex-wrap: wrap !important;

  align-items: stretch;
  justify-content: flex-start;

  gap: 9px;

  width: 100%;
  min-width: 0;

  margin: 0;
  padding: 0;
}


.category-navigation {
  display: grid;

  gap: 6px;

  margin-top: 20px;
}


.category-button {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 8px;

  width: 100%;

  padding: 12px;

  border: 0;
  border-radius: 9px;

  background: transparent;

  color: #53687e;

  font-size: 11px;
  font-weight: 700;

  text-align: left;

  cursor: pointer;
}


.category-button:hover {
  background: #f0f6fc;
}


.category-button.active {
  background: #e6f1fa;

  color: var(--blue-dark);
}


.category-button small {
  color: #8396a7;
}


#app .cl33-family-bar
#categoryNavigation .category-button {
  display: inline-flex !important;

  flex:
    0 1 auto;

  align-items: center;
  justify-content: center;

  gap: 9px;

  width: auto !important;
  max-width: 100%;
  min-width: 0;
  min-height: 39px;

  margin: 0;

  padding: 9px 14px;

  border:
    1px solid #d6e4ee;

  border-radius: 999px;

  background: #f5f9fc;

  color: #536d83;

  font-family: inherit;

  font-size: 11px;
  font-weight: 750;

  line-height: 1.3;

  text-align: center;
  white-space: normal;

  box-shadow: none;

  transition:
    background 240ms ease,
    color 240ms ease,
    border-color 240ms ease,
    transform 250ms cubic-bezier(.22, 1, .36, 1),
    box-shadow 250ms ease;
}


#app .cl33-family-bar
#categoryNavigation .category-button span {
  display: inline;

  width: auto;
  min-width: 0;

  color: inherit;

  font: inherit;

  overflow-wrap: anywhere;
}


#app .cl33-family-bar
#categoryNavigation .category-button small {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  min-width: 19px;

  padding: 2px 4px;

  border-radius: 999px;

  background:
    rgba(0, 99, 165, .065);

  color: #7b93a8;

  font-size: 9px;
  font-weight: 800;

  line-height: 1.5;
}


#app .cl33-family-bar
#categoryNavigation .category-button.active {
  border-color: #0063a5;

  background: #0063a5;

  color: #fff;

  box-shadow:
    0 5px 13px
    rgba(0, 99, 165, .18);
}


#app .cl33-family-bar
#categoryNavigation .category-button.active small {
  background:
    rgba(255, 255, 255, .18);

  color: #fff;
}


@media (hover: hover) and (pointer: fine) {
  #app .cl33-family-bar
  #categoryNavigation .category-button:hover {
    transform: translateY(-2px);

    border-color: #0063a5;

    background: #eaf4fb;

    color: #0063a5;

    box-shadow:
      0 6px 15px
      rgba(0, 99, 165, .09);
  }


  #app .cl33-family-bar
  #categoryNavigation .category-button.active:hover {
    background: #00558d;

    color: #fff;
  }
}


#app .cl33-family-bar
#categoryNavigation .category-button:focus-visible {
  outline:
    2px solid #0063a5;

  outline-offset: 3px;
}


/* ==========================================================
   WORKSPACE — GRUPOS + RESULTADOS
   ========================================================== */

.workspace,
#app .workspace.cl33-workspace {
  display: grid;

  grid-template-columns:
    minmax(205px, 240px)
    minmax(0, 1fr);

  align-items: start;

  gap:
    clamp(
      15px,
      2vw,
      25px
    );

  width: 100%;
  min-width: 0;
}


.sidebar,
.results-area {
  min-width: 0;

  border:
    1px solid var(--line);

  border-radius: 16px;

  background: white;

  box-shadow: var(--shadow);
}


.sidebar,
#app .cl33-group-panel {
  position: sticky;

  top: 18px;

  align-self: start;

  width: auto;
  min-width: 0;
  max-width: none;

  max-height:
    calc(
      100vh - 36px
    );

  margin: 0;

  padding: 19px 15px;

  overflow-y: auto;

  overscroll-behavior: contain;

  border-top:
    3px solid
    rgba(0, 126, 92, .58);
}


.sidebar-heading,
.results-header {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 15px;
}


.sidebar-heading {
  flex-wrap: wrap;
}


.sidebar-heading h2,
.results-header h2 {
  margin: 0;

  color: var(--blue-dark);

  font-size: 17px;
}


#app .cl33-group-panel
.sidebar-heading h2 {
  font-size: 19px;

  line-height: 1.3;
}


.sidebar-heading span {
  color: var(--muted);

  font-size: 9px;
  font-weight: 700;

  letter-spacing: 1px;
}


#app .cl33-group-panel
#groupNavigation {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr);

  gap: 5px;

  width: 100%;
  min-width: 0;
}


#app .cl33-group-panel
#groupNavigation .category-button {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 8px;

  width: 100%;
  min-width: 0;

  padding: 10px 9px;

  line-height: 1.5;

  text-align: left;
  white-space: normal;
}


#app .cl33-group-panel
#groupNavigation .category-button span {
  min-width: 0;

  overflow-wrap: anywhere;
}


#app .cl33-group-panel
#groupNavigation .category-button small {
  flex-shrink: 0;
}


#app .cl33-group-panel
#groupNavigation .category-button.active {
  background: #e5f5ed;

  color: #176e4c;
}


#app .cl33-group-panel
#groupNavigation .category-button.active small {
  color: #176e4c;
}


.sidebar-note {
  margin-top: 22px;

  padding-top: 21px;

  border-top:
    1px solid var(--line);
}


.sidebar-note strong {
  font-size: 11px;
}


.sidebar-note p {
  margin:
    8px 0 0;

  color: var(--muted);

  font-size: 10px;
  line-height: 1.8;
}


.results-area,
#app .cl33-workspace .results-area {
  width: 100%;
  min-width: 0;
  max-width: none;

  padding: 25px;
}


.results-header {
  margin-bottom: 23px;

  padding-bottom: 20px;

  border-bottom:
    1px solid var(--line);
}


.results-header h2 {
  margin-top: 8px;

  font-size: 22px;
}


.result-count {
  flex: 0 0 auto;

  color: #8193a4;

  font-size: 9px;
  font-weight: 800;

  letter-spacing: .08em;

  white-space: nowrap;
}


/* ==========================================================
   NÍVEIS
   ========================================================== */

.cl32-level-blue {
  --cl32-level-color: #0063a5;
  --cl32-level-bg: #e8f2fb;
  --cl32-level-border: #b6d6ed;
}


.cl32-level-green {
  --cl32-level-color: #14794e;
  --cl32-level-bg: #e7f7ef;
  --cl32-level-border: #b7e6ce;
}


.cl32-level-orange {
  --cl32-level-color: #a85a05;
  --cl32-level-bg: #fff1df;
  --cl32-level-border: #efc990;
}


.cl32-level-chip,
.cl32-level-preview {
  border:
    1px solid
    var(
      --cl32-level-border,
      #d2dfe8
    ) !important;

  background:
    var(
      --cl32-level-bg,
      #edf2f6
    ) !important;

  color:
    var(
      --cl32-level-color,
      #576c82
    ) !important;
}


.cl32-level-chip {
  font-weight: 800;
}


.cl32-level-preview {
  display: inline-flex;

  align-items: center;

  width: fit-content;
  max-width: 100%;

  margin-top: 8px;

  padding: 5px 9px;

  border-radius: 7px;

  font-size: 11px;
  font-weight: 800;

  line-height: 1.5;

  overflow-wrap: anywhere;
}


/* ==========================================================
   SELECTS CONTROLADOS
   ========================================================== */

.cl32-controlled-select {
  display: block;

  width: 100%;
  min-width: 0;
  min-height: 43px;

  padding: 10px 12px;

  border:
    1px solid #c6d8e7;

  border-radius: 8px;

  background: #fff;

  color: #173a58;

  font: inherit;
  font-size: 12px;

  cursor: pointer;
}


.cl32-controlled-select:focus-visible {
  outline:
    2px solid #0063a5;

  outline-offset: 2px;
}


.cl32-managed-hint {
  display: block;

  margin-top: 6px;

  color: #72889a;

  font-size: 10px;
  line-height: 1.6;
}


/* ==========================================================
   CARDS
   ========================================================== */

.cards-grid,
#app .cl33-workspace .cards-grid {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );

  gap: 17px;

  width: 100%;
  min-width: 0;
}


.resource-card {
  position: relative;

  display: flex;

  flex-direction: column;

  min-width: 0;

  padding: 21px;

  border:
    1px solid var(--line);

  border-radius: 14px;

  background: #fff;

  box-shadow: var(--shadow-card);

  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}


.resource-card:hover {
  border-color: #a8c8e2;

  box-shadow:
    0 9px 25px
    rgba(18, 54, 87, .063);
}


.resource-card h3,
.card-title {
  margin:
    0 0 10px;

  color: var(--blue-dark);

  font-size: 14px;
  font-weight: 800;

  line-height: 1.55;

  overflow-wrap: anywhere;
}


.resource-card p,
.card-description {
  margin:
    0 0 10px;

  color: var(--muted);

  font-size: 11px;

  line-height: 1.85;

  overflow-wrap: anywhere;
}


.card-top {
  display: flex;

  align-items: flex-start;
  justify-content: space-between;

  gap: 10px;

  margin-bottom: 10px;
}


.card-title-wrap {
  min-width: 0;
}


.card-labels,
.card-meta {
  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 7px;

  min-width: 0;

  margin-bottom: 13px;
}


.pill,
.card-chip {
  display: inline-flex;

  align-items: center;

  max-width: 100%;
  min-height: 23px;

  padding: 4px 8px;

  border:
    1px solid #dbe6ee;

  border-radius: 6px;

  background: #edf4fa;

  color: #315d7d;

  font-size: 9px;
  font-weight: 800;

  overflow-wrap: anywhere;
}


.card-chip {
  border-radius: 999px;

  background: #f7fafc;

  color: #607a90;

  font-size: 8px;
}


.pill.red {
  background: #fff0f0;

  color: #a02e34;
}


#cards .resource-card
.card-labels .cl36-family {
  border:
    1px solid #dae7f2;

  background: #e9f0f8;

  color: #285d88;

  font-weight: 800;
}


#cards .resource-card
.card-labels .cl36-group {
  border:
    1px solid #e1ebf1;

  background: #f0f5f8;

  color: #547086;

  font-weight: 700;
}


#cards .resource-card
.card-labels .cl32-level-chip {
  font-weight: 800;
}


/* ==========================================================
   HASHTAGS
   ========================================================== */

#cards .resource-card
.cl36-card-tags,
.card-tags {
  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 5px;

  width: 100%;
  min-width: 0;

  margin:
    0 0 12px;
}


#cards .resource-card
.cl36-card-tag {
  display: inline-flex;

  align-items: center;

  max-width: 100%;
  min-height: 20px;

  padding: 3px 7px;

  border:
    1px solid #e3eaf1;

  border-radius: 6px;

  background: #f7f9fc;

  color: #8296aa;

  font:
    650 9px/1.4
    Montserrat,
    Arial,
    sans-serif;

  overflow-wrap: anywhere;
  word-break: break-word;
}


.card-tag {
  color: #718497;

  font-size: 8px;
  font-weight: 700;
}


.card-tag::before {
  content: "#";
}


/* ==========================================================
   LINK / AÇÕES DO CARD
   ========================================================== */

.card-link {
  margin-top: auto;

  padding-top: 13px;

  color: #73869a;

  font-size: 10px;

  overflow: hidden;

  white-space: nowrap;

  text-overflow: ellipsis;
}


.card-actions {
  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 8px;

  margin-top: auto;

  padding-top: 16px;
}


.card-actions .button {
  min-height: 32px;

  padding: 8px 11px;

  font-size: 10px;
}


.icon-button {
  display: inline-grid;

  place-items: center;

  width: 32px;
  height: 32px;

  padding: 0;

  border:
    1px solid #d9e5ed;

  border-radius: 8px;

  background: #fff;

  color: #55748c;

  transition:
    border-color var(--transition),
    background var(--transition),
    color var(--transition);
}


.icon-button:hover {
  border-color: #8fbcd8;

  background: #f2f9fd;

  color: var(--blue);
}


.icon-button .material-symbols-rounded {
  font-size: 18px;
}


/* ==========================================================
   EDITOR — CARD EDITÁVEL
   ========================================================== */

.cl34-card-edit {
  cursor: default;
}


.cl34-card-edit:focus-visible {
  outline:
    2px solid #0063a5;

  outline-offset: 3px;
}


/* ==========================================================
   EMPTY STATE
   ========================================================== */

.empty-state {
  display: grid;

  place-items: center;

  padding: 55px 20px;

  color: var(--muted);

  text-align: center;
}


.empty-state .material-symbols-rounded {
  margin-bottom: 6px;

  color: #9eb2c2;

  font-size: 40px;
}


.empty-state h3 {
  margin:
    8px 0 5px;

  color: var(--blue-dark);

  font-size: 17px;
}


.empty-state p {
  margin: 0;

  color: var(--muted);

  font-size: 11px;
}


/* ==========================================================
   ERROS / STATUS
   ========================================================== */

.page-error,
.status-error {
  color: #ab2b30;

  font-size: 13px;

  line-height: 1.7;
}


.page-error {
  margin-top: 25px;

  padding: 20px;

  border-radius: 12px;

  background: #ffefef;
}


.status-error {
  margin:
    14px 0;

  padding: 12px 14px;

  border:
    1px solid
    rgba(196, 22, 28, .22);

  border-radius: 9px;

  background:
    rgba(196, 22, 28, .06);
}


/* ==========================================================
   RODAPÉ
   ========================================================== */

.site-footer {
  margin-top: 45px;

  padding: 25px 0;

  border-top:
    1px solid var(--line);
}


.footer-content {
  display: flex;

  align-items: center;
  justify-content: space-between;

  flex-wrap: wrap;

  gap: 15px;

  color: #7b8da0;

  font-size: 10px;
}


/* ==========================================================
   OVERLAYS / MODAIS
   ========================================================== */

.overlay {
  position: fixed;

  inset: 0;

  z-index: 100;

  display: grid;

  place-items: center;

  padding: 20px;

  background:
    rgba(6, 30, 55, .72);

  backdrop-filter: blur(6px);

  -webkit-backdrop-filter: blur(6px);
}


.modal {
  width:
    min(
      680px,
      100%
    );

  max-height:
    min(
      94vh,
      1100px
    );

  overflow-y: auto;

  padding: 28px;

  border-radius: 20px;

  background: white;

  box-shadow: var(--shadow-lg);
}


.modal-header {
  display: flex;

  align-items: flex-start;
  justify-content: space-between;

  gap: 20px;
}


.modal-header h2 {
  margin:
    9px 0 0;

  color: var(--blue-dark);

  font-size: 21px;

  line-height: 1.5;

  overflow-wrap: anywhere;
}


.close-button {
  display: grid;

  place-items: center;

  flex-shrink: 0;

  width: 37px;
  height: 37px;

  border: none;
  border-radius: 10px;

  background: #eef3f8;

  color: #52677f;

  font-size: 25px;
  line-height: 1;
}


.close-button:hover {
  background: #e2ebf2;

  color: var(--blue-dark);
}


.modal-description {
  color: var(--muted);

  font-size: 12px;

  line-height: 1.7;

  text-align: center;
}


.modal-actions {
  display: flex;

  align-items: center;
  justify-content: flex-end;

  flex-wrap: wrap;

  gap: 10px;

  margin-top: 23px;
}


.modal-actions.centered {
  justify-content: center;
}


/* ==========================================================
   QR
   ========================================================== */

.qr-modal {
  width:
    min(
      660px,
      100%
    );
}


.qr-frame {
  width:
    min(
      440px,
      100%
    );

  aspect-ratio: 1;

  margin:
    23px auto;

  padding: 15px;

  border:
    1px solid var(--line);

  border-radius: 16px;

  background: white;
}


.qr-frame img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;

  image-rendering: auto;
}


.qr-link {
  color: var(--muted);

  font-size: 10px;

  line-height: 1.7;

  text-align: center;

  overflow-wrap: anywhere;
}


/* ==========================================================
   DETALHES
   ========================================================== */

.info-content {
  display: grid;

  gap: 15px;

  margin-top: 25px;
}


.info-row {
  padding-bottom: 14px;

  border-bottom:
    1px solid var(--line);
}


.info-row strong {
  display: block;

  margin-bottom: 7px;

  color: var(--blue);

  font-size: 10px;
}


.info-row p {
  margin: 0;

  color: #41586d;

  font-size: 12px;

  line-height: 1.75;

  white-space: pre-wrap;

  overflow-wrap: anywhere;
}


/* ==========================================================
   EDITOR — FORMULÁRIO RÁPIDO
   ========================================================== */

#infoOverlay
.modal.cl34-inline-editing {
  width:
    min(
      780px,
      calc(100vw - 24px)
    );

  max-width: 100%;
}


#infoOverlay
.cl34-inline-editing
#infoContent {
  max-height:
    min(
      67dvh,
      700px
    );

  overflow-y: auto;

  overscroll-behavior: contain;

  padding-right: 4px;
}


.cl34-edit-intro {
  margin:
    0 0 18px;

  padding: 12px 14px;

  border-left:
    3px solid #0063a5;

  border-radius: 5px;

  background: #eef6fc;

  color: #365c78;

  font-size: 11px;

  line-height: 1.75;
}


.cl34-edit-form {
  display: block;

  width: 100%;
}


.cl34-edit-grid {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );

  gap: 14px;
}


.cl34-edit-field {
  display: grid;

  align-content: start;

  gap: 7px;

  min-width: 0;
}


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


.cl34-edit-field label {
  color: #36566e;

  font-size: 11px;

  font-weight: 800;
}


.cl34-edit-field input,
.cl34-edit-field select,
.cl34-edit-field textarea {
  display: block;

  width: 100%;
  min-width: 0;
  min-height: 42px;

  padding: 10px 12px;

  border:
    1px solid #c5d9e8;

  border-radius: 8px;

  background: #fff;

  color: #173a58;

  font:
    500 12px/1.6
    Montserrat,
    Arial,
    sans-serif;
}


.cl34-edit-field textarea {
  min-height: 90px;

  resize: vertical;
}


.cl34-edit-field input:focus-visible,
.cl34-edit-field select:focus-visible,
.cl34-edit-field textarea:focus-visible {
  outline:
    2px solid #0063a5;

  outline-offset: 2px;
}


.cl34-edit-hint {
  color: #7a91a3;

  font-size: 10px;

  line-height: 1.6;
}


.cl34-edit-actions {
  display: flex;

  flex-wrap: wrap;

  gap: 10px;

  margin-top: 20px;

  padding-top: 15px;

  border-top:
    1px solid #dce8ef;
}


.cl34-edit-actions .button {
  min-height: 40px;
}


.cl34-edit-status {
  margin:
    12px 0 0;

  padding: 10px 12px;

  border-radius: 7px;

  background: #eef6fc;

  color: #295b7a;

  font-size: 11px;

  line-height: 1.65;
}


.cl34-edit-status.error {
  background: #fff0ee;

  color: #a43030;
}


/* ==========================================================
   EDITOR — BOTÃO "+"
   ========================================================== */

#adminButton.cl38-editor-add {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  flex:
    0 0 auto;

  width: 43px;
  min-width: 43px;

  height: 43px;
  min-height: 43px;

  padding: 0;

  border-radius: 12px;

  font-family:
    Montserrat,
    Arial,
    sans-serif;

  font-size: 27px;
  font-weight: 500;

  line-height: 1;
}


#adminButton.cl38-editor-add:focus-visible {
  outline:
    3px solid #77b5e1;

  outline-offset: 3px;
}


/* ==========================================================
   ADMIN
   ========================================================== */

.manage-modal {
  width:
    min(
      1240px,
      100%
    );

  height:
    min(
      92vh,
      1000px
    );

  display: flex;

  flex-direction: column;

  overflow: hidden;
}


.manage-tabs {
  display: flex;

  flex-shrink: 0;

  gap: 7px;

  margin:
    20px 0;

  border-bottom:
    1px solid var(--line);
}


.tab {
  position: relative;

  padding: 13px 15px;

  border: 0;

  border-bottom:
    3px solid transparent;

  background: transparent;

  color: var(--muted);

  font-size: 11px;

  font-weight: 800;
}


.tab:hover {
  color: var(--blue);
}


.tab.active {
  border-color: var(--blue);

  color: var(--blue);
}


.tab-count:not(:empty) {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-width: 18px;
  min-height: 18px;

  margin-left: 5px;

  padding: 2px 5px;

  border-radius: 999px;

  background: var(--red);

  color: #fff;

  font-size: 8px;
  line-height: 1;
}


.manage-status {
  flex: 0 0 auto;

  margin:
    0 0 14px;

  padding: 12px 14px;

  border-radius: 9px;

  background: #edf4fa;

  color: var(--blue-dark);

  font-size: 11px;

  line-height: 1.6;
}


.manage-status.error {
  background: #fff0f0;

  color: #a32b2f;
}


/* ==========================================================
   ADMIN — BASE
   ========================================================== */

.manage-workspace {
  display: grid;

  grid-template-columns:
    310px
    minmax(0, 1fr);

  flex: 1;

  gap: 20px;

  min-height: 0;

  overflow: hidden;
}


.manage-list-panel,
.manage-form-panel {
  min-height: 0;

  overflow-y: auto;
}


.manage-list-panel {
  padding-right: 13px;

  border-right:
    1px solid var(--line);
}


.manage-list-top,
.pending-header {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 12px;

  margin-bottom: 14px;
}


.manage-list-top h3,
.manage-form-panel h3,
.pending-header h3 {
  margin: 0;

  color: var(--blue-dark);

  font-size: 14px;
}


.record-list {
  display: grid;

  gap: 8px;

  margin-top: 14px;
}


.record-option {
  display: grid;

  gap: 6px;

  width: 100%;

  padding: 13px;

  border:
    1px solid var(--line);

  border-radius: 9px;

  background: white;

  text-align: left;
}


.record-option:hover {
  border-color: #b3ccde;

  background: #f8fbfd;
}


.record-option.active {
  border-color: #81b5de;

  background: #eaf4fc;
}


.record-option strong {
  color: var(--blue-dark);

  font-size: 11px;

  line-height: 1.5;
}


.record-option small {
  color: var(--muted);

  font-size: 10px;
}


.manage-form-panel {
  padding:
    0 8px 15px 0;
}


.form-grid {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );

  gap: 15px;

  margin-top: 18px;
}


.form-field {
  display: grid;

  gap: 7px;

  min-width: 0;
}


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


.form-actions {
  display: flex;

  flex-wrap: wrap;

  gap: 10px;

  margin-top: 23px;
}


/* ==========================================================
   ADMIN — CURADORIA
   ========================================================== */

.pending-panel {
  flex: 1;

  min-height: 0;

  overflow-y: auto;
}


.pending-list {
  display: grid;

  gap: 12px;
}


.pending-card {
  padding: 20px;

  border:
    1px solid var(--line);

  border-radius: 12px;

  background: #fff;
}


.pending-card h4 {
  margin:
    8px 0;

  color: var(--blue-dark);

  font-size: 13px;
}


.pending-meta {
  color: var(--muted);

  font-size: 10px;

  line-height: 1.8;

  overflow-wrap: anywhere;
}


.pending-diff {
  display: grid;

  gap: 9px;

  margin:
    15px 0;
}


.diff-row {
  display: grid;

  grid-template-columns:
    150px
    minmax(0, 1fr);

  gap: 10px;

  padding-top: 9px;

  border-top:
    1px solid var(--line);

  font-size: 11px;

  overflow-wrap: anywhere;
}


.diff-row strong {
  color: var(--blue-dark);
}


.diff-row p {
  margin: 0;

  color: #445d71;

  white-space: pre-wrap;
}


/* ==========================================================
   ADMIN — USUÁRIOS
   ========================================================== */

.users-management {
  flex: 1;

  min-height: 0;

  overflow-y: auto;

  padding:
    2px 2px 18px;
}


.users-management-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1.25fr);

  align-items: start;

  gap: 18px;
}


.users-box {
  overflow: hidden;

  border:
    1px solid #d9e6f0;

  border-radius: 14px;

  background: #fff;
}


.users-manual-box {
  margin-bottom: 18px;
}


.users-box-header {
  display: flex;

  align-items: flex-start;
  justify-content: space-between;

  gap: 12px;

  padding: 16px 18px;

  border-bottom:
    1px solid #e3edf5;

  background: #f8fbfe;
}


.users-box-header h4 {
  margin: 0;

  color: #083f70;

  font:
    800 12px/1.4
    Montserrat,
    Arial,
    sans-serif;
}


.users-box-header p {
  margin:
    4px 0 0;

  color: #7890a4;

  font:
    500 9px/1.6
    Montserrat,
    Arial,
    sans-serif;
}


.users-box-body {
  padding: 16px;
}


.manual-user-form {
  display: grid;

  grid-template-columns:
    minmax(220px, 1fr)
    minmax(130px, 180px)
    auto;

  align-items: end;

  gap: 10px;
}


.user-control {
  display: grid;

  gap: 6px;
}


.user-control label {
  color: var(--ink-soft);

  font-size: 9px;

  font-weight: 800;
}


.access-request-list,
.managed-user-list {
  display: grid;

  gap: 10px;
}


.access-request-card,
.managed-user-card {
  display: grid;

  gap: 12px;

  padding: 14px;

  border:
    1px solid #dbe7f0;

  border-radius: 11px;

  background: #fff;
}


.access-request-card.pending {
  border-color: #b9d8ee;

  background:
    linear-gradient(
      180deg,
      #fff,
      #f9fcff
    );
}


.user-card-top {
  display: flex;

  align-items: flex-start;
  justify-content: space-between;

  flex-wrap: wrap;

  gap: 10px;
}


.user-identity {
  min-width: 0;
}


.user-identity strong {
  display: block;

  color: #123f65;

  font:
    800 11px/1.45
    Montserrat,
    Arial,
    sans-serif;

  overflow-wrap: anywhere;
}


.user-identity span {
  display: block;

  margin-top: 3px;

  color: #7b91a2;

  font:
    500 9px/1.5
    Montserrat,
    Arial,
    sans-serif;
}


.user-status-chip {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 25px;

  padding: 4px 8px;

  border-radius: 999px;

  font:
    800 8px/1
    Montserrat,
    Arial,
    sans-serif;

  letter-spacing: .05em;
}


.user-status-chip.pending {
  background: #e9f4fc;

  color: #0063a5;
}


.user-status-chip.active {
  background: #e8f6ed;

  color: #24713e;
}


.user-status-chip.inactive {
  background: #f4f0f0;

  color: #8a5454;
}


.user-status-chip.rejected {
  background: #fdecec;

  color: #a43f43;
}


.user-controls {
  display: grid;

  grid-template-columns:
    minmax(130px, 180px)
    minmax(0, 1fr);

  align-items: end;

  gap: 10px;
}


.user-actions {
  display: flex;

  flex-wrap: wrap;

  gap: 7px;
}


.user-actions .button {
  min-height: 34px;
}


.users-search {
  margin-bottom: 11px;
}


.users-empty {
  margin: 0;

  padding:
    17px 5px;

  color: var(--muted);

  font-size: 9px;

  line-height: 1.7;

  text-align: center;
}


.self-protection-note {
  margin:
    13px 0 0;

  padding: 10px 11px;

  border:
    1px solid #e1eaf1;

  border-radius: 8px;

  background: #f8fbfd;

  color: #6c8192;

  font-size: 8px;

  line-height: 1.6;
}


/* ==========================================================
   TOAST
   ========================================================== */

.toast {
  position: fixed;

  right: 22px;
  bottom: 22px;

  z-index: 200;

  max-width:
    min(
      390px,
      calc(100% - 44px)
    );

  padding: 15px 20px;

  border-radius: 12px;

  background: var(--blue-dark);

  color: white;

  box-shadow:
    0 12px 35px
    rgba(0, 0, 0, .13);

  font-size: 12px;

  line-height: 1.6;
}


/* ==========================================================
   RESPONSIVO — 1100
   ========================================================== */

@media (max-width: 1100px) {

  #app .workspace.cl33-workspace {
    grid-template-columns:
      minmax(185px, 215px)
      minmax(0, 1fr);

    gap: 16px;
  }


  #app .cl33-group-panel {
    padding:
      16px 12px;
  }

}


/* ==========================================================
   RESPONSIVO — 900
   ========================================================== */

@media (max-width: 900px) {

  .hero {
    padding:
      36px 0;
  }


  .hero-stats {
    display: none;
  }


  .workspace,
  #app .workspace.cl33-workspace {
    grid-template-columns:
      minmax(0, 1fr);
  }


  .sidebar,
  #app .cl33-group-panel {
    position: relative;

    top: auto;

    max-height: none;

    overflow: visible;

    padding: 17px;
  }


  #app .cl33-group-panel
  #groupNavigation {
    display: flex;

    flex-direction: row;

    flex-wrap: wrap;

    gap: 8px;
  }


  #app .cl33-group-panel
  #groupNavigation .category-button {
    display: inline-flex;

    justify-content: center;

    gap: 8px;

    width: auto;
    max-width: 100%;
    min-height: 35px;

    padding: 8px 12px;

    border-radius: 999px;
  }


  .sidebar-note {
    display: none;
  }


  .manage-workspace {
    grid-template-columns:
      minmax(0, 1fr);

    overflow-y: auto;
  }


  .manage-list-panel,
  .manage-form-panel {
    overflow: visible;

    border-right: 0;
  }


  .manage-list-panel {
    padding-right: 0;
  }


  .record-list {
    max-height: 210px;

    overflow-y: auto;
  }


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


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

}


/* ==========================================================
   RESPONSIVO — 800
   ========================================================== */

@media (max-width: 800px) {

  /*
   * O painel Famílias/Favoritos é transformado
   * pelo favorites.css em uma coluna nesta largura.
   */

  .results-header {
    align-items: flex-start;

    flex-wrap: wrap;
  }

}


/* ==========================================================
   RESPONSIVO — 760
   ========================================================== */

@media (max-width: 760px) {

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


  .search-field {
    grid-column:
      1 / -1;
  }


  #app .cl33-family-bar {
    padding: 15px;

    border-radius: 14px;
  }


  #app .cl33-family-bar
  #categoryNavigation {
    gap: 7px;
  }


  #app .cl33-family-bar
  #categoryNavigation .category-button {
    min-height: 36px;

    padding: 8px 11px;

    font-size: 10px;
  }

}


/* ==========================================================
   RESPONSIVO — 650
   ========================================================== */

@media (max-width: 650px) {

  .container {
    width:
      calc(
        100% - 26px
      );
  }


  .header-content {
    min-height: auto;

    padding:
      17px 0;

    flex-wrap: wrap;
  }


  .brand {
    gap: 14px;
  }


  .brand-logo {
    width: 112px;
  }


  .brand-text strong {
    font-size: 14px;
  }


  .header-actions {
    width: 100%;

    justify-content: flex-start;
  }


  .account-badge {
    max-width: 100%;
  }


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


  .results-area,
  .sidebar {
    padding: 16px;
  }


  .modal {
    padding: 18px;

    border-radius: 14px;
  }


  .overlay {
    padding: 10px;
  }


  .manage-modal {
    height: 96vh;
    max-height: 96vh;
  }


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


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


  .diff-row {
    grid-template-columns:
      minmax(0, 1fr);

    gap: 5px;
  }


  .qr-frame {
    width:
      min(
        360px,
        100%
      );
  }


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


  .cl34-edit-field.wide {
    grid-column: auto;
  }


  .cl34-edit-actions {
    display: grid;

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


  .cl34-edit-actions .button {
    width: 100%;
  }


  #infoOverlay
  .cl34-inline-editing
  #infoContent {
    max-height: 62dvh;
  }


  #adminButton.cl38-editor-add {
    width: 40px;
    min-width: 40px;

    height: 40px;
    min-height: 40px;
  }

}


/* ==========================================================
   RESPONSIVO — 600
   ========================================================== */

@media (max-width: 600px) {

  #cards .resource-card
  .card-labels {
    gap: 4px;
  }


  #cards .resource-card
  .cl36-card-tags {
    gap: 4px;
  }


  #cards .resource-card
  .cl36-card-tag {
    padding: 3px 6px;

    font-size: 8px;
  }


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


  .user-actions {
    display: grid;

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


  .user-actions .button {
    width: 100%;
  }

}


/* ==========================================================
   RESPONSIVO — 520
   ========================================================== */

@media (max-width: 520px) {

  .login-panel {
    padding: 25px;
  }


  .search-panel {
    grid-template-columns:
      minmax(0, 1fr);

    padding: 13px;
  }


  .search-field {
    grid-column: auto;
  }


  #app .cl33-family-heading h2 {
    font-size: 17px;
  }


  #app .cl33-family-caption {
    font-size: 9px;
  }


  #app .cl33-family-bar
  #categoryNavigation .category-button {
    flex:
      1 1 auto;
  }


  #app .cl33-group-panel {
    padding: 15px;
  }


  .resource-card {
    padding: 17px;
  }


  .manage-tabs {
    overflow-x: auto;

    overflow-y: hidden;
  }


  .tab {
    flex: 0 0 auto;
  }


  .footer-content {
    justify-content: center;

    text-align: center;
  }

}


/* ==========================================================
   REDUÇÃO DE MOVIMENTO
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }


  .button,
  .resource-card,
  .category-button,
  #adminButton.cl38-editor-add {
    transition: none !important;
  }


  .button:hover,
  .resource-card:hover,
  .category-button:hover {
    transform: none !important;
  }

}


/* ==========================================================
   IMPRESSÃO
   ========================================================== */

@media print {

  .institutional-line,
  .header-actions,
  .search-panel,
  .sidebar,
  .card-actions,
  .site-footer {
    display: none !important;
  }


  body {
    background: #fff;
  }


  .container {
    width: 100%;
  }


  .workspace,
  #app .workspace.cl33-workspace {
    display: block;
  }


  .results-area {
    border: 0;

    box-shadow: none;
  }

}


/* >>> CURATION_V3_CSS_BEGIN >>> */


/* ==========================================================
   CURADORIA V3 — GRUPOS
   ========================================================== */

.cl40-curation-group {
  overflow: hidden;

  border:
    1px solid #d7e5ef;

  border-radius:
    14px;

  background:
    #fff;

  box-shadow:
    0 5px 18px
    rgba(8, 52, 92, .045);
}


.cl40-group-header {
  display: flex;

  align-items: flex-start;
  justify-content: space-between;

  gap: 18px;

  padding:
    17px 18px;

  border-bottom:
    1px solid #dfebf3;

  background:
    linear-gradient(
      180deg,
      #f9fcff,
      #f5f9fc
    );
}


.cl40-group-header h3,
.cl40-history-title h3,
.cl40-review-toolbar h3 {
  margin:
    5px 0 3px;

  color:
    var(--blue-dark);

  font-size:
    15px;

  line-height:
    1.45;
}


.cl40-group-list {
  display: grid;
}


.cl40-proposal-row {
  padding:
    17px 18px;

  border-bottom:
    1px solid #e6eef4;
}


.cl40-proposal-row:last-child {
  border-bottom:
    0;
}


.cl40-proposal-top {
  display: flex;

  align-items: center;
  justify-content: space-between;

  flex-wrap: wrap;

  gap: 10px;

  margin-bottom:
    10px;
}


.cl40-proposal-select {
  display: inline-flex;

  align-items: center;

  gap: 8px;

  color:
    #124c76;

  font-size:
    10px;

  font-weight:
    800;

  cursor:
    pointer;
}


.cl40-proposal-select input {
  width:
    17px;

  min-width:
    17px;

  height:
    17px;

  min-height:
    17px;

  margin:
    0;

  padding:
    0;
}


.cl40-chips {
  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 6px;
}


.cl40-chip {
  display: inline-flex;

  align-items: center;

  min-height:
    23px;

  padding:
    4px 8px;

  border-radius:
    999px;

  background:
    #edf4fa;

  color:
    #42647d;

  font-size:
    8px;

  font-weight:
    800;

  letter-spacing:
    .03em;
}


.cl40-chip.inclusao {
  background:
    #e9f6ee;

  color:
    #176c45;
}


.cl40-chip.revisao {
  background:
    #eaf4fc;

  color:
    #0063a5;
}


.cl40-chip.exclusao {
  background:
    #fff0f0;

  color:
    #a0262c;
}


.cl40-chip.warning {
  background:
    #fff3de;

  color:
    #9d5d09;
}


.cl40-proposal-row h4 {
  margin:
    0 0 6px;

  color:
    var(--blue-dark);

  font-size:
    12px;

  line-height:
    1.5;
}


.cl40-group-actions,
.cl40-inline-actions,
.cl40-review-actions {
  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 8px;
}


.cl40-group-actions {
  padding:
    14px 18px;

  border-top:
    1px solid #dfebf3;

  background:
    #f9fcfe;
}


.cl40-inline-actions {
  margin-top:
    13px;
}


.cl40-history-title {
  margin:
    28px 0 4px;

  padding-top:
    20px;

  border-top:
    1px solid var(--line);
}


/* ==========================================================
   CURADORIA V3 — BANCADA
   ========================================================== */

.cl40-review-toolbar {
  display: flex;

  align-items: flex-start;
  justify-content: space-between;

  gap: 18px;

  margin-bottom:
    16px;

  padding:
    16px 17px;

  border:
    1px solid #d7e5ef;

  border-radius:
    13px;

  background:
    #f8fbfe;
}


.cl40-review-toolbar .helper {
  max-width:
    760px;

  margin-bottom:
    0;
}


.cl40-review-layout {
  display: grid;

  grid-template-columns:
    minmax(0, 1.55fr)
    minmax(280px, .8fr);

  align-items: start;

  gap: 17px;
}


.cl40-review-form-box,
.cl40-suggestion-panel {
  border:
    1px solid #d9e6ef;

  border-radius:
    13px;

  background:
    #fff;
}


.cl40-review-form-box {
  padding:
    18px;
}


.cl40-review-grid {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );

  gap: 13px;
}


.cl40-review-field {
  display: grid;

  align-content: start;

  gap: 6px;

  min-width: 0;
}


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


.cl40-review-field label {
  color:
    #36566e;

  font-size:
    10px;

  font-weight:
    800;
}


.cl40-review-field textarea {
  min-height:
    84px;
}


.cl40-review-field textarea[name="detalhada"],
.cl40-review-field textarea[name="textoCopiar"] {
  min-height:
    125px;
}


.cl40-review-actions {
  margin-top:
    17px;

  padding-top:
    15px;

  border-top:
    1px solid #e0eaf1;
}


.cl40-suggestion-panel {
  position: sticky;

  top: 0;

  max-height:
    calc(92vh - 190px);

  overflow-y:
    auto;

  padding:
    17px;
}


.cl40-suggestion-panel h4 {
  margin:
    7px 0 14px;

  color:
    var(--blue-dark);

  font-size:
    15px;
}


.cl40-current-value,
.cl40-suggestion {
  margin-bottom:
    11px;

  padding:
    12px;

  border:
    1px solid #dae7f0;

  border-radius:
    10px;

  background:
    #fff;
}


.cl40-current-value {
  border-color:
    #b9d5e8;

  background:
    #f3f9fd;
}


.cl40-current-value strong,
.cl40-suggestion-head strong {
  color:
    #154b70;

  font-size:
    9px;
}


.cl40-current-value p,
.cl40-suggestion-value {
  margin:
    7px 0 0;

  color:
    #435d72;

  font-size:
    10px;

  line-height:
    1.65;

  white-space:
    pre-wrap;

  overflow-wrap:
    anywhere;
}


.cl40-suggestion-value {
  max-height:
    170px;

  overflow-y:
    auto;
}


.cl40-suggestion-head {
  display: flex;

  align-items: flex-start;
  justify-content: space-between;

  flex-wrap: wrap;

  gap: 8px;
}


.cl40-suggestion-head span {
  color:
    #8093a4;

  font-size:
    8px;

  overflow-wrap:
    anywhere;
}


.cl40-suggestion .button {
  width:
    100%;

  margin-top:
    10px;
}


/* ==========================================================
   MOBILE — CARD ÚNICO E MAIS COMPACTO

   O seletor precisa ter a mesma ou maior especificidade
   do seletor desktop:
   #app .cl33-workspace .cards-grid
   ========================================================== */

@media (max-width: 650px) {

  #app .cl33-workspace .cards-grid,
  #app .cards-grid,
  .cards-grid {
    grid-template-columns:
      minmax(0, 1fr) !important;

    gap:
      12px;
  }


  #app .cl33-workspace .results-area {
    padding:
      14px;
  }


  #cards .resource-card {
    padding:
      15px 14px;

    border-radius:
      12px;
  }


  #cards .resource-card h3,
  #cards .card-title {
    margin-bottom:
      7px;

    font-size:
      14px;

    line-height:
      1.4;
  }


  #cards .resource-card p,
  #cards .card-description {
    margin-bottom:
      8px;

    font-size:
      10px;

    line-height:
      1.65;
  }


  #cards .resource-card
  .card-labels {
    margin-bottom:
      10px;
  }


  #cards .resource-card
  .cl36-card-tags {
    margin-bottom:
      9px;
  }


  #cards .resource-card
  .card-link {
    padding-top:
      8px;

    font-size:
      9px;
  }


  #cards .resource-card
  .card-actions {
    display: grid;

    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );

    gap:
      7px;

    width:
      100%;

    padding-top:
      12px;
  }


  #cards .resource-card
  .card-actions .button {
    width:
      100%;

    min-width:
      0;

    min-height:
      36px;

    padding:
      7px 8px;

    font-size:
      9px;
  }


  #cards .resource-card
  .card-actions
  .material-symbols-rounded {
    font-size:
      16px;
  }


  #cards .cl35-star {
    width:
      31px;

    height:
      31px;
  }


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


  .cl40-suggestion-panel {
    position:
      relative;

    top:
      auto;

    max-height:
      none;
  }


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


  .cl40-review-field.wide {
    grid-column:
      auto;
  }


  .cl40-group-header,
  .cl40-review-toolbar {
    flex-direction:
      column;
  }


  .cl40-group-actions,
  .cl40-inline-actions,
  .cl40-review-actions {
    display: grid;

    grid-template-columns:
      minmax(0, 1fr);

    width:
      100%;
  }


  .cl40-group-actions .button,
  .cl40-inline-actions .button,
  .cl40-review-actions .button {
    width:
      100%;
  }

}


/* ==========================================================
   CELULAR MUITO ESTREITO
   ========================================================== */

@media (max-width: 380px) {

  #cards .resource-card
  .card-actions {
    grid-template-columns:
      minmax(0, 1fr);
  }

}


/* <<< CURATION_V3_CSS_END <<< */

