.colheo-restricted-page main.site-main {
  max-width: none;
  padding-inline: 0;
}

.colheo-restricted-page main.site-main > .page-header {
  display: none;
}

.colheo-restricted-main {
  width: 100%;
  min-height: 70vh;
  padding: 1px clamp(10px, 3vw, 34px);
  background: #fff;
}

.colheo-restricted-page .wa__btn_popup,
.colheo-restricted-page .wa__popup_chat_box {
  display: none !important;
}

body.colheo-viewer-open {
  overflow: hidden;
}

.colheo-area {
  --colheo-navy: #214164;
  --colheo-navy-dark: #122a43;
  --colheo-blue: #245c98;
  --colheo-orange: #f39200;
  --colheo-copper: #936037;
  --colheo-ink: #1c2a38;
  --colheo-muted: #647180;
  --colheo-line: #dce4ea;
  --colheo-paper: #f3f6f8;
  --colheo-white: #fff;
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 1180px;
  min-height: 650px;
  margin: 36px auto 64px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--colheo-navy);
  color: var(--colheo-white);
  box-shadow: 0 30px 80px rgba(18, 47, 76, 0.18);
  font-family: "Trebuchet MS", Arial, sans-serif;
  box-sizing: border-box;
}

.colheo-area *,
.colheo-area *::before,
.colheo-area *::after {
  box-sizing: border-box;
}

.colheo-area::before {
  position: absolute;
  z-index: -2;
  top: -42%;
  left: -19%;
  width: 62%;
  aspect-ratio: 1;
  border: 82px solid rgba(147, 96, 55, 0.42);
  border-radius: 68px;
  content: "";
  transform: rotate(45deg);
}

.colheo-area::after {
  position: absolute;
  z-index: -1;
  right: -92px;
  bottom: -112px;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: var(--colheo-orange);
  content: "";
  opacity: 0.95;
}

.colheo-area__brand-mark {
  position: absolute;
  z-index: -1;
  top: -150px;
  right: 11%;
  width: 370px;
  height: 370px;
  border: 58px solid rgba(255, 255, 255, 0.07);
  border-radius: 54px;
  transform: rotate(45deg);
}

.colheo-area__brand-mark span {
  position: absolute;
  inset: 63px;
  border-radius: 50%;
  background: var(--colheo-orange);
}

.colheo-area h1,
.colheo-area h2,
.colheo-area p {
  margin-top: 0;
}

.colheo-area h1,
.colheo-area h2 {
  color: inherit;
  font-family: "Delvona-Light", Georgia, serif;
  letter-spacing: -0.035em;
}

.colheo-area h1 strong,
.colheo-area h2 strong {
  font-family: "Delvona-ExtraBold", Georgia, serif;
  font-weight: 800;
}

.colheo-area button,
.colheo-area a,
.colheo-area input {
  font: inherit;
}

.colheo-area button:focus-visible,
.colheo-area a:focus-visible,
.colheo-area input:focus-visible {
  outline: 3px solid rgba(243, 146, 0, 0.55);
  outline-offset: 3px;
}

.colheo-area__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.25;
  text-transform: uppercase;
}

.colheo-area__eyebrow span {
  width: 22px;
  height: 1px;
  background: var(--colheo-orange);
}

.colheo-area--login {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: clamp(42px, 7vw, 98px);
  padding: clamp(56px, 7vw, 92px);
}

.colheo-area__intro {
  max-width: 560px;
}

.colheo-area__intro h1 {
  max-width: 520px;
  margin-bottom: 24px;
  font-size: clamp(44px, 5.2vw, 74px);
  font-weight: 400;
  line-height: 0.98;
}

.colheo-area__intro h1 strong {
  display: block;
  color: var(--colheo-orange);
}

.colheo-area__lead {
  max-width: 480px;
  margin-bottom: 38px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  line-height: 1.65;
}

.colheo-area__resource-note {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  padding: 13px 18px 13px 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
}

.colheo-area__resource-icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--colheo-orange);
  place-items: center;
}

.colheo-area__resource-icon svg {
  width: 23px;
  fill: none;
  stroke: white;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.colheo-area__resource-note b,
.colheo-area__resource-note small {
  display: block;
}

.colheo-area__resource-note b {
  color: var(--colheo-white);
  font-size: 14px;
  line-height: 1.4;
}

.colheo-area__resource-note small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.colheo-login-card {
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 54px rgba(10, 33, 56, 0.3);
  color: var(--colheo-ink);
}

.colheo-login-card .colheo-area__eyebrow {
  margin-bottom: 13px;
  color: var(--colheo-copper);
}

.colheo-login-card__header h2 {
  margin-bottom: 9px;
  color: var(--colheo-navy);
  font-size: clamp(31px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.1;
}

.colheo-login-card__header > p:last-child {
  margin-bottom: 27px;
  color: var(--colheo-muted);
  font-size: 14px;
  line-height: 1.55;
}

.colheo-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: -7px 0 19px;
  padding: 12px 13px;
  border: 1px solid #f0c3b9;
  border-radius: 10px;
  background: #fff4f1;
  color: #8d3121;
  font-size: 13px;
  line-height: 1.45;
}

.colheo-alert > span {
  display: grid;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #c5523a;
  color: white;
  font-size: 12px;
  font-weight: 800;
  place-items: center;
}

.colheo-login-form > label {
  display: block;
  margin: 0 0 8px;
  color: var(--colheo-navy);
  font-size: 13px;
  font-weight: 700;
}

.colheo-login-form input[type="email"],
.colheo-login-form input[type="password"],
.colheo-login-form input[type="text"] {
  width: 100%;
  min-height: 52px;
  margin: 0 0 18px;
  padding: 0 15px;
  border: 1px solid #ced8df;
  border-radius: 10px;
  background: white;
  color: var(--colheo-ink);
  box-shadow: none;
  font-size: 15px;
  outline: none;
}

.colheo-login-form input:focus {
  border-color: var(--colheo-blue);
  box-shadow: 0 0 0 3px rgba(36, 92, 152, 0.12);
}

.colheo-password-field {
  position: relative;
}

.colheo-password-field input {
  padding-right: 78px !important;
}

.colheo-password-toggle {
  position: absolute;
  top: 0;
  right: 6px;
  height: 52px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--colheo-blue);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.colheo-login-form__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 1px 0 24px;
  font-size: 12px;
}

.colheo-login-form__meta a {
  color: var(--colheo-blue);
  font-weight: 700;
  text-decoration: none;
}

.colheo-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--colheo-muted);
  cursor: pointer;
}

.colheo-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--colheo-orange);
}

.colheo-primary-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 52px;
  padding: 14px 22px !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: var(--colheo-orange) !important;
  color: white !important;
  box-shadow: 0 12px 22px rgba(243, 146, 0, 0.2);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none !important;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.colheo-primary-button:hover {
  background: #db8200 !important;
  box-shadow: 0 16px 26px rgba(219, 130, 0, 0.27);
  color: white !important;
  transform: translateY(-1px);
}

.colheo-login-form > .colheo-primary-button {
  width: 100%;
}

.colheo-login-card__privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 17px 0 0;
  color: #87929d;
  font-size: 10px;
}

.colheo-login-card__privacy span,
.colheo-file-card__secure span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #48a56c;
  box-shadow: 0 0 0 3px rgba(72, 165, 108, 0.13);
}

/* Biblioteca */
.colheo-area--library {
  max-width: 1420px;
  min-height: 720px;
  padding: clamp(34px, 5vw, 68px);
  background: var(--colheo-paper);
  color: var(--colheo-navy);
}

.colheo-area--library::before {
  top: -330px;
  left: auto;
  right: 9%;
  width: 440px;
  border-width: 68px;
  border-color: rgba(33, 65, 100, 0.06);
}

.colheo-area--library::after {
  top: -72px;
  right: 11%;
  bottom: auto;
  width: 128px;
  height: 128px;
}

.colheo-area--library .colheo-area__brand-mark {
  display: none;
}

.colheo-library-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 38px;
}

.colheo-library-header .colheo-area__eyebrow {
  margin-bottom: 12px;
  color: var(--colheo-copper);
}

.colheo-library-header h1 {
  margin-bottom: 8px;
  font-size: clamp(42px, 5vw, 70px);
  font-weight: 800;
  line-height: 1;
}

.colheo-library-header > div > p:last-child {
  margin-bottom: 0;
  color: var(--colheo-muted);
  font-size: 16px;
}

.colheo-quiet-link {
  flex: 0 0 auto;
  margin-top: 6px;
  padding: 10px 15px;
  border: 1px solid #cfd9e1;
  border-radius: 9px;
  color: var(--colheo-navy) !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
}

.colheo-quiet-link:hover {
  border-color: var(--colheo-navy);
  background: white;
}

.colheo-library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 34px);
}

.colheo-file-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(33, 65, 100, 0.08);
  border-radius: 22px;
  background: white;
  box-shadow: 0 18px 46px rgba(18, 47, 76, 0.11);
  flex-direction: column;
}

.colheo-file-card__preview {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--colheo-navy);
}

.colheo-file-card__preview::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 42, 67, 0.03), rgba(18, 42, 67, 0.24));
  content: "";
}

.colheo-file-card__preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
}

.colheo-file-card__preview-label {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
}

.colheo-file-card__preview-label span {
  display: inline-flex;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(18, 42, 67, 0.78);
  color: white;
  backdrop-filter: blur(8px);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.colheo-file-card__play {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--colheo-orange);
  box-shadow: 0 12px 28px rgba(18, 42, 67, 0.3);
  place-items: center;
}

.colheo-file-card__play svg {
  width: 22px;
  fill: white;
}

.colheo-file-card__body {
  display: flex;
  flex: 1;
  min-width: 0;
  padding: clamp(25px, 3vw, 38px);
  flex-direction: column;
}

.colheo-file-card__body .colheo-area__eyebrow {
  margin-bottom: 13px;
  color: var(--colheo-copper);
}

.colheo-file-card__body h2 {
  margin-bottom: 17px;
  font-size: clamp(32px, 3.6vw, 50px);
  font-weight: 400;
  line-height: 0.93;
}

.colheo-file-card__body h2 strong {
  color: var(--colheo-orange);
}

.colheo-file-card__description {
  min-height: 78px;
  margin-bottom: 22px;
  color: var(--colheo-muted);
  font-size: 14px;
  line-height: 1.65;
}

.colheo-file-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: auto 0 24px;
  padding: 17px 0;
  border-top: 1px solid var(--colheo-line);
  border-bottom: 1px solid var(--colheo-line);
  list-style: none;
}

.colheo-file-meta li {
  min-width: 0;
  padding: 0 16px;
  border-right: 1px solid var(--colheo-line);
}

.colheo-file-meta li:first-child {
  padding-left: 0;
}

.colheo-file-meta li:last-child {
  padding-right: 0;
  border-right: 0;
}

.colheo-file-meta b,
.colheo-file-meta span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.colheo-file-meta b {
  color: var(--colheo-navy);
  font-size: 16px;
}

.colheo-file-meta span {
  margin-top: 4px;
  color: #8a96a1;
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.colheo-view-button {
  align-self: flex-start;
}

.colheo-view-button svg,
.colheo-viewer svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.colheo-file-card__secure {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  color: #82909d;
  font-size: 10px;
  line-height: 1.4;
}

/* Visualizador */
.colheo-viewer[hidden] {
  display: none !important;
}

.colheo-viewer {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: grid;
  padding: 16px;
  place-items: center;
}

.colheo-viewer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 18, 31, 0.91);
  backdrop-filter: blur(10px);
}

.colheo-viewer__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(1500px, 96vw);
  height: min(930px, calc(100vh - 32px));
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: var(--colheo-navy-dark);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  color: white;
  outline: none;
  flex-direction: column;
}

.colheo-viewer__dialog:fullscreen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  border: 0;
  border-radius: 0;
}

.colheo-viewer__header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 14px 20px 14px 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #183552;
}

.colheo-viewer__header p {
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.colheo-viewer__header h2 {
  margin-bottom: 0;
  overflow: hidden;
  color: white;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(17px, 2vw, 23px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.colheo-viewer__header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
}

.colheo-viewer__counter {
  margin-right: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.colheo-viewer__icon-button,
.colheo-viewer__index-button,
.colheo-viewer__nav {
  display: grid;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  cursor: pointer;
  place-items: center;
  transition: background 140ms ease, border-color 140ms ease, opacity 140ms ease;
}

.colheo-viewer__icon-button:hover,
.colheo-viewer__index-button:hover,
.colheo-viewer__nav:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.16);
}

.colheo-viewer__icon-button {
  width: 43px;
  height: 43px;
  padding: 0;
  border-radius: 10px;
}

.colheo-viewer__index-button[hidden],
.colheo-topic-menu[hidden] {
  display: none !important;
}

.colheo-viewer__index-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 43px;
  padding: 0 13px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}

.colheo-viewer__index-button svg {
  width: 18px;
}

.colheo-viewer__stage {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  align-items: center;
  min-height: 0;
  padding: 18px;
  background: #0a1b2c;
}

.colheo-viewer__stage.is-topic-menu {
  grid-template-columns: minmax(0, 1fr);
}

.colheo-viewer__stage.is-topic-menu .colheo-viewer__nav {
  display: none;
}

.colheo-viewer__canvas {
  position: relative;
  width: min(100%, calc((100vh - 205px) * 1.7778));
  max-height: 100%;
  margin: auto;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: white;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
}

.colheo-viewer__canvas img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  user-select: none;
  transition: opacity 140ms ease;
}

.colheo-viewer__canvas.is-loading img {
  opacity: 0.2;
}

/* Índice interativo de Fisiologia */
.colheo-viewer__canvas.is-menu {
  background: #eef3f5;
}

.colheo-topic-menu {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: flex;
  overflow: auto;
  padding: clamp(19px, 2.4vw, 36px);
  background:
    linear-gradient(135deg, transparent 0 78%, rgba(33, 65, 100, 0.045) 78% 85%, transparent 85%),
    #eef3f5;
  color: var(--colheo-navy);
  flex-direction: column;
  scrollbar-color: rgba(33, 65, 100, 0.28) transparent;
}

.colheo-topic-menu__intro {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: clamp(15px, 1.7vw, 24px);
  padding-right: 3%;
}

.colheo-topic-menu__intro > div > p {
  margin: 0 0 5px;
  color: var(--colheo-copper);
  font-size: clamp(8px, 0.85vw, 12px);
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.colheo-topic-menu__intro h3 {
  margin: 0;
  color: var(--colheo-navy);
  font-family: "Delvona-ExtraBold", Georgia, serif;
  font-size: clamp(28px, 3.1vw, 45px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.colheo-topic-menu__intro > p {
  max-width: 330px;
  margin: 0 0 3px;
  color: var(--colheo-muted);
  font-size: clamp(10px, 1vw, 14px);
  line-height: 1.45;
}

.colheo-topic-menu__groups {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(13px, 1.6vw, 22px);
  min-height: 0;
}

.colheo-topic-group {
  min-width: 0;
  padding: clamp(15px, 1.7vw, 24px);
  border: 1px solid rgba(33, 65, 100, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(18, 42, 67, 0.08);
}

.colheo-topic-group > header {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: clamp(12px, 1.3vw, 18px);
}

.colheo-topic-group > header > span {
  position: relative;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  border: 4px solid #fff0da;
  border-radius: 50%;
  background: var(--colheo-orange);
  box-shadow: 0 0 0 1px rgba(243, 146, 0, 0.28);
}

.colheo-topic-group > header > span::after {
  position: absolute;
  top: 13px;
  left: 50%;
  width: 1px;
  height: 21px;
  background: linear-gradient(var(--colheo-orange), transparent);
  content: "";
}

.colheo-topic-group header p {
  margin: 0 0 2px;
  color: #84909b;
  font-size: clamp(7px, 0.7vw, 10px);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.colheo-topic-group h4 {
  margin: 0;
  color: var(--colheo-navy);
  font-size: clamp(16px, 1.6vw, 23px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.colheo-topic-group__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(7px, 0.75vw, 10px);
}

.colheo-topic-group__links button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  min-height: clamp(38px, 3.7vw, 52px);
  padding: 8px clamp(10px, 1vw, 14px);
  border: 1px solid #dce5ea;
  border-radius: 8px;
  background: #f8fafb;
  color: var(--colheo-navy);
  cursor: pointer;
  font-size: clamp(9px, 0.9vw, 13px);
  font-weight: 700;
  line-height: 1.18;
  text-align: left;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease, transform 150ms ease;
}

.colheo-topic-group__links button span {
  flex: 0 0 auto;
  color: var(--colheo-orange);
  font-size: 16px;
  transition: transform 150ms ease;
}

.colheo-topic-group__links button:hover {
  border-color: var(--colheo-orange);
  background: #fff8ed;
  color: var(--colheo-navy-dark);
  transform: translateY(-1px);
}

.colheo-topic-group__links button:hover span {
  transform: translateX(2px);
}

.colheo-topic-group__links button:focus-visible {
  outline: 3px solid rgba(243, 146, 0, 0.34);
  outline-offset: 2px;
}

.colheo-viewer__loading,
.colheo-viewer__error {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  background: rgba(255, 255, 255, 0.93);
  color: var(--colheo-muted);
  font-size: 13px;
}

.colheo-viewer__loading span {
  width: 18px;
  height: 18px;
  border: 2px solid #dce4ea;
  border-top-color: var(--colheo-orange);
  border-radius: 50%;
  animation: colheo-spin 700ms linear infinite;
}

.colheo-viewer__loading[hidden],
.colheo-viewer__error[hidden] {
  display: none;
}

.colheo-viewer__error {
  padding: 24px;
  color: #8d3121;
  text-align: center;
}

.colheo-viewer__nav {
  width: 42px;
  height: 64px;
  padding: 0;
  border-radius: 12px;
  justify-self: center;
}

.colheo-viewer__nav svg {
  width: 24px;
}

.colheo-viewer__nav:disabled {
  cursor: default;
  opacity: 0.25;
}

.colheo-viewer__footer {
  flex: 0 0 auto;
  padding: 13px 26px 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #183552;
}

.colheo-viewer__progress {
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
}

.colheo-viewer__progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--colheo-orange);
  transition: width 180ms ease;
}

.colheo-viewer__footer p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 9px;
  text-align: center;
}

@keyframes colheo-spin {
  to { transform: rotate(360deg); }
}

/* Mensagem */
.colheo-area--message {
  display: grid;
  padding: 60px 20px;
  place-items: center;
}

.colheo-message-card {
  width: min(560px, 100%);
  padding: 48px;
  border-radius: 22px;
  background: white;
  box-shadow: 0 24px 54px rgba(10, 33, 56, 0.3);
  color: var(--colheo-ink);
  text-align: center;
}

.colheo-message-card__icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: #fff1dc;
  color: #c97000;
  font-size: 26px;
  font-weight: 800;
  place-items: center;
}

.colheo-message-card .colheo-area__eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--colheo-copper);
}

.colheo-message-card h1 {
  margin-bottom: 17px;
  color: var(--colheo-navy);
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 800;
  line-height: 1;
}

.colheo-message-card > p:last-of-type {
  margin: 0 auto 28px;
  color: var(--colheo-muted);
  line-height: 1.7;
}

@media (max-width: 1000px) {
  .colheo-area--login {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .colheo-area__intro {
    max-width: 680px;
  }

  .colheo-login-card {
    width: min(560px, 100%);
  }

  .colheo-file-card__description {
    min-height: 100px;
  }
}

@media (max-width: 820px) {
  .colheo-library-grid {
    grid-template-columns: 1fr;
  }

  .colheo-file-card__description {
    min-height: 0;
  }

  .colheo-viewer {
    padding: 0;
  }

  .colheo-viewer__dialog {
    width: 100vw;
    height: 100vh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .colheo-viewer__header {
    min-height: 68px;
    padding: 10px 12px 10px 16px;
  }

  .colheo-viewer__header p {
    display: none;
  }

  .colheo-viewer__header h2 {
    max-width: 44vw;
  }

  .colheo-viewer__counter {
    font-size: 11px;
  }

  .colheo-viewer__icon-button {
    width: 40px;
    height: 40px;
  }

  .colheo-viewer__index-button {
    height: 40px;
    padding-inline: 10px;
  }

  .colheo-viewer__stage {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    padding: 8px 4px;
  }

  .colheo-viewer__canvas {
    width: min(100%, calc((100vh - 165px) * 1.7778));
  }

  .colheo-viewer__canvas.is-menu {
    width: 100%;
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
  }

  .colheo-topic-menu {
    padding: 22px 18px;
  }

  .colheo-topic-menu__intro {
    align-items: flex-start;
    margin-bottom: 16px;
    padding-right: 0;
    flex-direction: column;
    gap: 8px;
  }

  .colheo-topic-menu__intro h3 {
    font-size: 34px;
  }

  .colheo-topic-menu__intro > p {
    max-width: none;
    font-size: 12px;
  }

  .colheo-topic-menu__groups {
    grid-template-columns: 1fr;
  }

  .colheo-topic-group {
    padding: 18px;
  }

  .colheo-topic-group h4 {
    font-size: 20px;
  }

  .colheo-topic-group__links button {
    min-height: 46px;
    font-size: 12px;
  }

  .colheo-viewer__nav {
    width: 36px;
    height: 54px;
    border-color: transparent;
    background: transparent;
  }

  .colheo-viewer__footer {
    padding: 11px 16px 13px;
  }

  .colheo-viewer__footer p {
    display: none;
  }
}

@media (max-width: 600px) {
  .colheo-restricted-main {
    padding-inline: 8px;
  }

  .colheo-area {
    min-height: 0;
    margin: 18px auto 38px;
    border-radius: 20px;
  }

  .colheo-area::before,
  .colheo-area__brand-mark {
    opacity: 0.65;
  }

  .colheo-area--login {
    gap: 30px;
    padding: 38px 18px 20px;
  }

  .colheo-area__intro {
    padding: 0 9px;
  }

  .colheo-area__intro h1 {
    font-size: 43px;
  }

  .colheo-area__lead {
    margin-bottom: 24px;
    font-size: 15px;
  }

  .colheo-area__resource-note {
    width: 100%;
  }

  .colheo-login-card {
    padding: 26px 20px;
    border-radius: 17px;
  }

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

  .colheo-area--library {
    padding: 28px 12px 16px;
  }

  .colheo-library-header {
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 0 6px;
  }

  .colheo-library-header h1 {
    font-size: 43px;
  }

  .colheo-library-header > div > p:last-child {
    font-size: 14px;
  }

  .colheo-quiet-link {
    margin-top: 0;
    padding: 8px 10px;
    font-size: 10px;
  }

  .colheo-library-grid {
    gap: 18px;
  }

  .colheo-file-card {
    border-radius: 17px;
  }

  .colheo-file-card__body {
    padding: 25px 20px;
  }

  .colheo-file-card__body h2 {
    font-size: 36px;
  }

  .colheo-file-meta li {
    padding-inline: 9px;
  }

  .colheo-file-meta b {
    font-size: 14px;
  }

  .colheo-view-button {
    width: 100%;
  }

  .colheo-file-card__secure {
    align-items: flex-start;
  }

  .colheo-file-card__secure span {
    flex: 0 0 7px;
    margin-top: 3px;
  }

  .colheo-viewer__header-actions {
    gap: 5px;
  }

  .colheo-viewer__index-button span {
    display: none;
  }

  .colheo-viewer__index-button {
    width: 40px;
    padding: 0;
  }

  .colheo-viewer__header h2 {
    max-width: 36vw;
    font-size: 15px;
  }

  .colheo-viewer__stage {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
  }

  .colheo-viewer__nav {
    width: 32px;
  }

  .colheo-message-card {
    padding: 38px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .colheo-area *,
  .colheo-area *::before,
  .colheo-area *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
