:root {
  color-scheme: dark;
  --ink: #f4f7fb;
  --muted: #bfd3e5;
  --line: rgba(139, 207, 241, 0.28);
  --glass: rgba(8, 15, 25, 0.64);
  --blue: #6ed5ff;
  --blue-soft: rgba(74, 137, 226, 0.25);
  --box-blue: #08364a;
  --box-blue-hover: #0a4258;
  --box-border: rgba(139, 207, 241, 0.44);
  --navy: #041b2c;
  --title: #092743;
}

body[data-page="repo"] .repository-hero p:not(.eyebrow) {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(183, 238, 255, 0.9), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(75, 204, 240, 0.5), transparent 36%),
    linear-gradient(180deg, #d8f7ff 0%, #98dceb 45%, #52a9c1 72%, #06314a 100%);
}

a,
button,
input {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 108px;
  padding: 0 clamp(2.25rem, 6vw, 6.4rem);
  transition: height 240ms ease, background 240ms ease, border-color 240ms ease, backdrop-filter 240ms ease;
}

.site-header.is-scrolled,
.site-header.is-solid {
  height: 78px;
  border-bottom: 1px solid rgba(122, 194, 232, 0.42);
  background:
    linear-gradient(180deg, rgba(213, 235, 247, 0.52), rgba(149, 204, 234, 0.2) 58%, rgba(3, 30, 49, 0.18)),
    rgba(214, 235, 247, 0.36);
  backdrop-filter: blur(18px) saturate(1.08);
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: clamp(250px, 27vw, 450px);
  height: 78px;
  text-decoration: none;
}

.brand img {
  display: block;
  max-height: 76px;
  max-width: clamp(220px, 25vw, 420px);
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(2, 18, 31, 0.24));
}

.brand-mark {
  display: none !important;
  width: 58px;
  height: 58px;
}

.brand-fallback {
  display: none;
  color: var(--ink);
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1;
}

.brand-full:not([src]),
.brand-full[src=""],
.brand-full.is-missing,
.brand-mark.is-missing,
.site-footer img.is-missing {
  display: none;
}

.brand:has(.brand-full.is-missing) .brand-fallback,
.brand:has(.brand-mark.is-missing) .brand-fallback {
  display: inline-block;
}

.site-header.is-scrolled .brand-full {
  display: none;
}

.site-header.is-scrolled .brand-mark {
  display: block !important;
}

.site-header.is-scrolled .brand {
  min-width: 78px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2.4vw, 2.75rem);
  margin-right: clamp(0rem, 1.4vw, 1.5rem);
}

.desktop-nav a,
.mobile-menu a {
  color: #071b33;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.desktop-nav a:hover,
.mobile-menu a:hover {
  color: #1d8fd3;
  border-color: rgba(76, 172, 226, 0.36);
  background: rgba(222, 239, 249, 0.3);
  box-shadow: 0 10px 28px rgba(30, 117, 171, 0.12);
}

.desktop-nav a {
  position: relative;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.65rem;
  width: 0;
  height: 3px;
  background: rgba(76, 172, 226, 0.55);
  transform: translateX(-50%);
  transition: width 180ms ease;
}

.desktop-nav a.is-active::after,
.desktop-nav a:hover::after {
  width: 64px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(218, 238, 249, 0.22);
  backdrop-filter: blur(14px);
}

.menu-toggle span {
  position: absolute;
  width: 18px;
  height: 1px;
  background: #071b33;
  transition: transform 200ms ease;
}

.menu-toggle span:first-child {
  transform: translateY(-6px);
}

.menu-toggle span:last-child {
  transform: translateY(6px);
}

.menu-toggle.is-open span:first-child {
  transform: rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:last-child {
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: 9.75rem clamp(1.35rem, 5vw, 3.5rem) 2rem;
  background:
    radial-gradient(circle at 16% 8%, rgba(218, 250, 255, 0.86), transparent 32%),
    radial-gradient(circle at 86% 18%, rgba(99, 221, 245, 0.54), transparent 36%),
    linear-gradient(180deg, rgba(88, 176, 198, 0.9), rgba(8, 44, 63, 0.92));
  backdrop-filter: blur(24px) saturate(1.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.mobile-menu::before {
  content: "";
  position: absolute;
  top: 1.15rem;
  left: clamp(1.35rem, 5vw, 3.5rem);
  width: min(58vw, 250px);
  height: 72px;
  background: url("../img/logo-completo.png") left center / contain no-repeat;
  filter: drop-shadow(0 8px 18px rgba(2, 18, 31, 0.22));
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu a {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  min-height: 54px;
  color: #dff8ff;
  font-size: clamp(1rem, 4.4vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-shell {
  position: relative;
  overflow: hidden;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background: url("../img/hero-bg.jpg") center/cover no-repeat;
}

.hero-overlay {
  background:
    radial-gradient(circle at 20% 28%, rgba(220, 250, 255, 0.78), rgba(148, 226, 245, 0.34) 32%, transparent 56%),
    linear-gradient(90deg, rgba(225, 250, 255, 0.86), rgba(147, 222, 243, 0.42) 42%, rgba(50, 159, 185, 0.18) 70%),
    linear-gradient(180deg, rgba(230, 252, 255, 0.34) 0%, rgba(117, 217, 239, 0.28) 52%, rgba(18, 111, 139, 0.52) 83%, rgba(4, 55, 74, 0.84) 100%);
  mix-blend-mode: normal;
}

.hero-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(93, 222, 244, 0.18);
  backdrop-filter: saturate(0.96) contrast(0.96);
}

.eyebrow {
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-title,
.page-title,
.section-title {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-title {
  margin-top: 1.1rem;
  max-width: 760px;
  color: var(--title);
  font-size: clamp(3.2rem, 5.05vw, 6rem);
  line-height: 1.04;
}

.hero-copy {
  margin-top: 1.6rem;
  max-width: 600px;
  color: #0d243a;
  font-size: clamp(1.175rem, 1.48vw, 1.475rem);
  line-height: 1.6;
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
  font-weight: 700;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 0.55rem;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.primary-link {
  border: 1px solid rgba(110, 168, 255, 0.55);
  background: rgba(2, 39, 64, 0.42);
  color: #fff;
  box-shadow: 0 18px 55px rgba(47, 112, 210, 0.2);
}

.secondary-link {
  border: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.82);
}

.primary-link:hover,
.secondary-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.36);
}

.home-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.45rem;
  align-self: center;
  width: min(100%, 1080px);
  border: 0;
  background: transparent;
}

.service-grid {
  margin-top: 3rem;
}

.institutional-card {
  min-height: 250px;
  border: 1px solid var(--box-border);
  border-radius: 8px;
  padding: 1.75rem 2rem;
  background: var(--box-blue);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 22px 65px rgba(0, 14, 25, 0.24);
  backdrop-filter: blur(16px);
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.service-card {
  display: block;
  min-height: 190px;
  color: inherit;
  text-decoration: none;
}

.institutional-card:hover {
  transform: translateY(-4px);
  background: var(--box-blue-hover);
  box-shadow: inset 0 0 0 1px rgba(110, 213, 255, 0.22), 0 24px 80px rgba(18, 110, 170, 0.22);
}

.institutional-card h2 {
  position: relative;
  margin-top: 1.1rem;
  max-width: 13rem;
  color: #fff;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.45;
  text-transform: uppercase;
}

.institutional-card h2::after {
  content: "";
  display: block;
  width: 38px;
  height: 2px;
  margin-top: 0.9rem;
  background: var(--blue);
}

.institutional-card p {
  margin-top: 1.35rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  line-height: 1.75;
}

.line-icon {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  color: #f4fbff;
}

.line-icon svg {
  width: 50px;
  height: 50px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.content-band {
  border-top: 1px solid rgba(122, 194, 232, 0.35);
  background:
    radial-gradient(circle at 18% 0%, rgba(205, 235, 249, 0.7), transparent 42%),
    linear-gradient(180deg, #b7dceb 0%, #74a9c5 52%, #2e6487 82%, #031b2d 100%);
}

.contact-band {
  border-top: 1px solid var(--line);
  background: radial-gradient(circle at 70% 0%, rgba(61, 126, 213, 0.2), transparent 36%), #031b2d;
}

.contact-card {
  width: min(100%, 520px);
  border: 1px solid var(--box-border);
  border-radius: 8px;
  padding: 1.15rem;
  color: #fff;
  background: var(--box-blue);
  box-shadow: 0 18px 55px rgba(0, 16, 27, 0.28);
}

.contact-card h3 {
  margin-bottom: 1rem;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.contact-actions a {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.contact-actions a:hover {
  transform: translateY(-2px);
  border-color: rgba(110, 213, 255, 0.52);
  background: rgba(110, 213, 255, 0.16);
}

.contact-card p {
  margin-top: 1rem;
  color: rgba(220, 237, 247, 0.76);
  font-size: 0.76rem;
  line-height: 1.65;
  text-align: center;
}

.section-title {
  font-size: clamp(2.4rem, 5vw, 5.4rem);
  line-height: 0.98;
}

.method-link {
  display: block;
  width: min(100%, 430px);
  justify-self: end;
  align-self: center;
  border: 1px solid var(--box-border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  color: rgba(236, 247, 252, 0.92);
  background: var(--box-blue);
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.45;
  box-shadow: 0 22px 48px rgba(3, 29, 48, 0.34), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.method-link:hover {
  transform: translateY(-3px);
  border-color: rgba(110, 213, 255, 0.6);
  background: var(--box-blue-hover);
}

.latest-band {
  border-top: 1px solid rgba(122, 194, 232, 0.22);
  background: #031b2d;
}

.latest-list {
  display: grid;
  gap: 0.8rem;
}

.latest-list a {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--box-border);
  border-radius: 8px;
  padding: 1rem 1.15rem;
  color: #fff;
  background: var(--box-blue);
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.latest-list a:hover {
  transform: translateY(-2px);
  border-color: rgba(210, 247, 255, 0.64);
  background: var(--box-blue-hover);
}

.latest-list time,
.latest-list strong {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.methodology-copy {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.1rem;
  color: rgba(226, 240, 248, 0.84);
  font-size: 1.08rem;
  line-height: 1.85;
}

.access-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 2.5rem 0 1.5rem;
  border: 1px solid var(--box-border);
  border-radius: 8px;
  padding: 1.25rem;
  background: var(--box-blue);
}

.access-panel h2,
.login-box h2 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
}

.access-panel p,
.login-box p {
  margin-top: 0.55rem;
  color: rgba(226, 240, 248, 0.76);
  line-height: 1.7;
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(3, 13, 22, 0.24);
  backdrop-filter: blur(1.5px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.login-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.login-box {
  position: relative;
  width: min(100%, 680px);
  border: 1px solid var(--box-border);
  border-radius: 8px;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--box-blue);
  box-shadow: 0 20px 60px rgba(0, 16, 27, 0.26);
}

.login-box [data-login-close] {
  position: absolute;
  top: 0.8rem;
  right: 0.9rem;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
}

.access-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.access-form label {
  display: grid;
  gap: 0.45rem;
}

.access-form span {
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.access-form input {
  min-height: 44px;
  border: 1px solid rgba(122, 194, 232, 0.3);
  border-radius: 8px;
  padding: 0 1rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.access-form .primary-link,
.access-form .secondary-link {
  min-height: 42px;
  padding: 0.65rem 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.access-form .primary-link {
  width: 100%;
  margin-top: 0.15rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-top: 1px solid rgba(139, 207, 241, 0.2);
  padding: 0.45rem clamp(1rem, 3vw, 2rem);
  color: rgba(244, 251, 255, 0.72);
  background: rgba(3, 27, 45, 0.62);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.site-footer img {
  display: none !important;
}

.subpage {
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 4%, rgba(210, 247, 255, 0.5), transparent 32%),
    radial-gradient(circle at 88% 16%, rgba(95, 217, 242, 0.36), transparent 36%),
    linear-gradient(180deg, rgba(211, 248, 255, 0.78), rgba(84, 181, 204, 0.76) 46%, rgba(3, 49, 70, 0.94)),
    linear-gradient(90deg, rgba(135, 224, 245, 0.34), rgba(7, 24, 38, 0.58)),
    url("../img/hero-bg.jpg") center/cover no-repeat,
    #081421;
  background-attachment: scroll, scroll, scroll, scroll, fixed, scroll;
}

body[data-page="repo"] .subpage,
body[data-page="registro"] .subpage,
body[data-page="contacto"] .subpage {
  background:
    radial-gradient(circle at 20% 28%, rgba(205, 248, 255, 0.68), rgba(70, 198, 226, 0.28) 32%, transparent 56%),
    linear-gradient(90deg, rgba(205, 249, 255, 0.58), rgba(57, 178, 210, 0.34) 42%, rgba(7, 78, 104, 0.12) 70%),
    linear-gradient(180deg, rgba(215, 251, 255, 0.24) 0%, rgba(44, 175, 208, 0.24) 52%, rgba(2, 88, 119, 0.48) 83%, rgba(2, 43, 65, 0.72) 100%),
    url("../img/Fondo_Radigrafias_Registr_Contacto.png") center/cover no-repeat,
    url("../img/hero-bg.jpg") center/cover no-repeat,
    #06314a;
  background-attachment: scroll, scroll, scroll, fixed, fixed, scroll;
}

.repository-hero {
  border-bottom: 1px solid var(--line);
}

body[data-page="repo"] .repository-hero p,
body[data-page="registro"] .registration-layout > div > p:not(.eyebrow),
body[data-page="admin"] main .text-slate-300,
body[data-page="contacto"] .section-title {
  color: #06264a !important;
}

.page-title {
  max-width: 900px;
  font-size: clamp(2.6rem, 5.4vw, 6rem);
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.repo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0;
  color: #06264a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.repo-toolbar strong,
.repo-toolbar small,
.repo-toolbar [data-count] {
  color: #06264a;
}

.repo-toolbar small {
  margin-left: auto;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}

body[data-page="servicios"] .subpage {
  background:
    linear-gradient(35deg, rgba(2, 31, 49, 0.8) 0%, rgba(5, 62, 86, 0.56) 34%, rgba(83, 207, 235, 0.2) 68%, rgba(222, 250, 255, 0.1) 100%),
    radial-gradient(circle at 18% 8%, rgba(210, 247, 255, 0.38), transparent 34%),
    linear-gradient(180deg, rgba(211, 248, 255, 0.58), rgba(84, 181, 204, 0.56) 46%, rgba(3, 49, 70, 0.9)),
    url("../img/hero-bg.jpg") center/cover no-repeat,
    #06314a;
  background-attachment: scroll, scroll, scroll, fixed, scroll;
}

.repo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.report-card,
.skeleton-card {
  min-height: 280px;
  border: 1px solid var(--box-border);
  border-radius: 8px;
  background: var(--box-blue);
}

.report-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.report-card:hover {
  transform: translateY(-4px);
  border-color: rgba(210, 247, 255, 0.64);
  background: var(--box-blue-hover);
}

.report-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.report-card h2 {
  margin-top: 2rem;
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(1.65rem, 2.5vw, 2.35rem);
  font-weight: 400;
  line-height: 1.08;
}

.download-link {
  margin-top: 2rem;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  margin-top: 2rem;
}

.report-actions .download-link {
  margin-top: 0;
}

.request-link {
  color: rgba(190, 219, 237, 0.78);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}

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

.empty-state {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2rem;
  color: var(--muted);
  background: var(--box-blue);
}

.skeleton-card {
  position: relative;
  overflow: hidden;
}

.skeleton-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

.admin-form {
  display: grid;
  align-content: start;
  gap: 1.25rem;
  border: 1px solid var(--box-border);
  border-radius: 8px;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--box-blue);
  backdrop-filter: blur(18px);
}

.admin-dashboard {
  display: grid;
  gap: 1rem;
  border: 1px solid var(--box-border);
  border-radius: 8px;
  padding: clamp(1rem, 2.4vw, 1.5rem);
  background: rgba(8, 54, 74, 0.82);
  backdrop-filter: blur(18px);
}

.admin-dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-dashboard h2 {
  margin-top: 0.35rem;
  color: #fff;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 800;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-metrics article,
.admin-data-grid article {
  border: 1px solid rgba(139, 207, 241, 0.28);
  border-radius: 8px;
  background: rgba(3, 27, 45, 0.58);
}

.admin-metrics article {
  display: grid;
  gap: 0.2rem;
  min-height: 86px;
  align-content: center;
  padding: 1rem;
}

.admin-metrics span {
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
}

.admin-metrics small,
.admin-list small {
  color: rgba(226, 240, 248, 0.66);
}

.admin-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.admin-data-grid article {
  min-height: 260px;
  overflow: hidden;
}

.admin-data-grid h3 {
  border-bottom: 1px solid rgba(139, 207, 241, 0.22);
  padding: 0.9rem 1rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-list {
  display: grid;
  gap: 0.65rem;
  max-height: 340px;
  overflow: auto;
  padding: 0.85rem 1rem 1rem;
}

.admin-list-item {
  display: grid;
  gap: 0.28rem;
  border-bottom: 1px solid rgba(139, 207, 241, 0.14);
  padding-bottom: 0.65rem;
  color: rgba(244, 251, 255, 0.9);
  font-size: 0.88rem;
}

.admin-list-item strong {
  color: #fff;
  font-size: 0.95rem;
}

.admin-list-empty {
  color: rgba(226, 240, 248, 0.68);
  font-size: 0.9rem;
}

.admin-form label,
.registration-form label {
  display: grid;
  gap: 0.6rem;
}

.admin-form label span,
.registration-form label span {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-form input,
.registration-form input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 1rem;
  color: #fff;
  background: rgba(3, 7, 12, 0.68);
  outline: none;
}

.admin-form input:focus,
.registration-form input:focus {
  border-color: rgba(110, 168, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(110, 168, 255, 0.12);
}

.registration-layout {
  align-items: center;
}

.registration-form {
  display: grid;
  align-content: start;
  gap: 1.25rem;
  border: 1px solid var(--box-border);
  border-radius: 8px;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--box-blue);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(0, 14, 25, 0.3);
}

.access-mode-tabs,
.social-login-grid {
  display: grid;
  gap: 0.6rem;
}

.access-mode-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0.25rem;
  border: 1px solid rgba(122, 194, 232, 0.25);
  border-radius: 8px;
  background: rgba(3, 7, 12, 0.38);
}

.access-mode-tabs button,
.social-login-grid button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(226, 240, 248, 0.88);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.access-mode-tabs button.is-active,
.social-login-grid button:hover {
  border-color: rgba(110, 213, 255, 0.42);
  background: rgba(110, 213, 255, 0.13);
  color: #fff;
}

.phone-verification,
.social-login-panel {
  display: grid;
  gap: 0.85rem;
  border: 1px solid var(--box-border);
  border-radius: 8px;
  padding: 1rem;
  background: var(--box-blue-hover);
}

.phone-verification span,
.social-login-panel span {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.phone-verification p {
  margin-top: 0.3rem;
  color: rgba(226, 240, 248, 0.72);
  font-size: 0.86rem;
  line-height: 1.5;
}

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

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

.checkbox-field {
  grid-template-columns: 20px 1fr;
  align-items: start;
}

.checkbox-field input {
  min-height: 20px;
  height: 20px;
  margin-top: 0.1rem;
  accent-color: #6ed5ff;
}

.checkbox-field span {
  color: rgba(226, 240, 248, 0.76);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.55;
  text-transform: none;
}

.admin-note {
  margin-top: 2rem;
  max-width: 560px;
  border-left: 1px solid rgba(110, 168, 255, 0.55);
  padding-left: 1rem;
  color: var(--muted);
  line-height: 1.8;
}

.admin-note span {
  color: #fff;
  font-weight: 700;
}

.form-status {
  min-height: 1.5rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .site-header {
    height: 82px;
    padding: 0 clamp(1.35rem, 6vw, 2rem);
    justify-content: space-between;
  }

  .brand {
    flex: 0 0 auto;
    min-width: 78px;
    width: 78px;
    height: 68px;
    justify-content: flex-start;
  }

  .brand-full {
    display: none !important;
    max-width: min(68vw, 300px);
  }

  .brand-mark {
    display: block !important;
    width: 58px;
    height: 58px;
  }

  .menu-toggle {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
  }

  .site-header.is-scrolled .brand {
    min-width: 78px;
  }

  .desktop-nav a::after {
    display: none;
  }

  .mobile-menu a {
    border-color: rgba(122, 194, 232, 0.24);
    background: rgba(218, 238, 249, 0.08);
  }

  .home-card-grid,
  .repo-grid {
    grid-template-columns: 1fr;
  }

  .repository-hero .page-title,
  .registration-layout .page-title {
    font-size: clamp(2.35rem, 8.5vw, 4.6rem);
    line-height: 1.02;
  }

  .repository-hero p,
  .registration-layout p {
    max-width: 100%;
  }

  .report-card,
  .skeleton-card {
    min-height: 220px;
  }

  .institutional-card {
    min-height: 210px;
  }

  .hero-bg {
    background-position: 62% center;
  }

  .hero-overlay {
    background:
      radial-gradient(circle at 28% 24%, rgba(219, 242, 252, 0.72), rgba(163, 216, 242, 0.32) 34%, transparent 58%),
      linear-gradient(90deg, rgba(221, 240, 250, 0.84), rgba(169, 213, 239, 0.46) 55%, rgba(20, 72, 108, 0.18)),
      linear-gradient(180deg, rgba(230, 243, 250, 0.28), rgba(74, 147, 189, 0.28) 54%, rgba(4, 31, 51, 0.92) 100%);
  }
}

@media (max-width: 640px) {
  .page-title {
    font-size: clamp(2.15rem, 11vw, 3.45rem);
    max-width: 100%;
  }

  .section-title {
    font-size: clamp(2.5rem, 16vw, 4.8rem);
  }

  .hero-shell .max-w-7xl {
    justify-content: flex-end;
    padding-bottom: 1.4rem;
    padding-top: 6.2rem;
  }

  .hero-title {
    font-size: clamp(2.35rem, 11.6vw, 4rem);
    color: #08223b;
    max-width: 96%;
  }

  .repository-hero .page-title,
  .registration-layout .page-title {
    font-size: clamp(2.2rem, 10.5vw, 3.35rem);
    line-height: 1.04;
  }

  .hero-copy {
    font-size: 1.075rem;
    max-width: 94%;
    line-height: 1.5;
    margin-top: 1.15rem;
  }

  .home-card-grid {
    gap: 0.85rem;
  }

  .institutional-card {
    min-height: 154px;
    padding: 1.05rem 1.15rem;
  }

  .service-card {
    min-height: 146px;
  }

  .institutional-card p {
    font-size: 0.9rem;
    line-height: 1.48;
    margin-top: 0.9rem;
  }

  .institutional-card h2 {
    margin-top: 0.7rem;
    font-size: 0.95rem;
  }

  .institutional-card h2::after {
    margin-top: 0.55rem;
  }

  .line-icon {
    width: 42px;
    height: 42px;
  }

  .line-icon svg {
    width: 38px;
    height: 38px;
  }

  .primary-link,
  .secondary-link {
    min-height: 42px;
    padding: 0.72rem 1.05rem;
    font-size: 0.68rem;
  }

  .site-footer {
    min-height: 32px;
    padding: 0.4rem 0.8rem;
    font-size: 0.62rem;
    line-height: 1.35;
  }

  .contact-actions {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 1rem;
  }

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

  .method-link {
    justify-self: start;
    width: min(100%, 360px);
  }

  .latest-list a {
    grid-template-columns: 1fr;
  }

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

  .report-card h2 {
    font-size: clamp(1.55rem, 8vw, 2.25rem);
  }

  .registration-form,
  .admin-form {
    padding: 1rem;
  }

  .admin-dashboard-header,
  .admin-data-grid {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

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