:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #eefaff;
  background: #031329;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
button, input { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

body {
  min-width: 320px;
  overflow-x: hidden;
  background: #031329;
}

#portal {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(1, 9, 25, .18), transparent 35% 65%, rgba(1, 9, 25, .18)),
    url("tower-control-portal-clean.webp") center / cover no-repeat;
}

#portal[data-extra-modules="true"] {
  min-height: calc(100svh + var(--module-extra-rows, 0) * 25.8vh);
}

#portal::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(42, 142, 237, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 142, 237, .07) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to bottom, #000 0 26%, transparent 76%);
}

.portal-topbar {
  position: absolute;
  inset: clamp(12px, 1.8vh, 22px) clamp(18px, 2.8vw, 46px) auto;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(250px, 330px) minmax(360px, 570px) minmax(250px, 28vw);
  align-items: start;
  justify-content: space-between;
  gap: 24px;
}

.backup-summary {
  grid-column: 1;
  width: 100%;
  min-height: 68px;
  padding: 10px 18px;
  border: 1px solid #2dd7ff;
  border-radius: 16px;
  background: rgba(2, 21, 49, .9);
  box-shadow: inset 0 0 22px rgba(20, 130, 239, .2), 0 0 22px rgba(0, 165, 255, .25);
  text-align: left;
  cursor: pointer;
}

.backup-summary strong {
  display: block;
  margin-bottom: 9px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.backup-lights {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: .7rem;
  font-weight: 700;
}

.backup-lights span { display: inline-flex; align-items: center; gap: 6px; }
.backup-lights i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #70ff83;
  box-shadow: 0 0 5px #70ff83, 0 0 14px rgba(112, 255, 131, .9);
}

.backup-lights i[data-health="stale"] {
  background: #ffb347;
  box-shadow: 0 0 5px #ffb347, 0 0 14px rgba(255, 179, 71, .85);
}

.backup-lights i[data-health="standby"] {
  background: #86a9c4;
  box-shadow: 0 0 5px #86a9c4, 0 0 12px rgba(134, 169, 196, .62);
}

.backup-lights i[data-health="error"],
.backup-lights i[data-health="unknown"] {
  background: #ff5364;
  box-shadow: 0 0 5px #ff5364, 0 0 14px rgba(255, 83, 100, .82);
}

.tech-center-entry {
  grid-column: 3;
  width: min(330px, 100%);
  justify-self: center;
}

.server-public-summary {
  position: relative;
  display: grid;
  width: clamp(210px, 16.5vw, 260px);
  height: clamp(210px, 16.5vw, 260px);
  place-items: center;
  color: #ff5d70;
  pointer-events: none;
  filter: drop-shadow(0 10px 12px rgba(0, 4, 14, .72));
}
.server-public-summary::before {
  content: "";
  position: absolute;
  inset: -4%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, currentColor 0, transparent 68%);
  opacity: .13;
  filter: blur(22px);
}
.server-public-summary.status-green { color: #64f4a6; }
.server-public-summary.status-orange { color: #ffc25b; }
.server-public-summary.status-red { color: #ff5d70; }
.server-public-summary.status-unknown,
.server-public-summary.status-stale { color: #91b2ce; }
.server-public-icon { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: screen; opacity: .94; filter: drop-shadow(0 0 13px rgba(93, 255, 159, .68)); transition: filter 180ms ease; }
.server-public-summary.status-orange .server-public-icon { filter: hue-rotate(-78deg) saturate(1.25) drop-shadow(0 0 5px rgba(255, 194, 91, .62)); }
.server-public-summary.status-red .server-public-icon { filter: hue-rotate(-118deg) saturate(1.4) drop-shadow(0 0 5px rgba(255, 83, 100, .64)); }
.server-public-summary.status-unknown .server-public-icon,
.server-public-summary.status-stale .server-public-icon { filter: grayscale(.78) sepia(.18) saturate(1.25) hue-rotate(160deg) opacity(.78) drop-shadow(0 0 4px rgba(112, 149, 183, .42)); }

.server-public-identity {
  display: grid;
  justify-items: center;
  gap: 2px;
}

.spain-standby-badge {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: -6px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 190, 78, .92);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(29, 31, 38, .94), rgba(9, 19, 36, .97));
  box-shadow: inset 0 0 14px rgba(255, 171, 45, .12), 0 0 15px rgba(255, 171, 45, .32);
  color: #ffd98b;
  font-size: clamp(.66rem, .8vw, .78rem);
  letter-spacing: .13em;
  line-height: 1;
  text-shadow: 0 0 8px rgba(255, 190, 78, .45);
  white-space: nowrap;
}

.spain-standby-badge span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffb33f;
  box-shadow: 0 0 5px #ffb33f, 0 0 11px rgba(255, 179, 63, .72);
}

body[data-portal-deployment="spain-standby"] .spain-standby-badge { display: inline-flex; }

.tech-center-summary {
  grid-column: auto;
  text-align: center;
}

.tech-center-summary:disabled { cursor: default; opacity: 1; }
.tech-center-summary strong { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px; font-size: .95rem; }
.tech-center-access-light {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5364;
  box-shadow: 0 0 5px #ff5364, 0 0 13px rgba(255, 83, 100, .8);
}
.tech-center-access-light[data-health="healthy"] {
  background: #70ff83;
  box-shadow: 0 0 5px #70ff83, 0 0 13px rgba(112, 255, 131, .88);
}
.tech-center-services { color: #a9d8ff; font-size: .72rem; font-weight: 700; letter-spacing: .12em; }
.tech-center-summary .portal-version {
  display: block;
  margin-top: 5px;
  color: rgba(200, 228, 250, .72);
  font-size: .55rem;
  font-weight: 600;
  letter-spacing: .09em;
}

.identity-entry {
  grid-column: 2;
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 100%;
}

.identity-bar {
  display: grid;
  grid-template-columns: 34px 1fr 48px;
  align-items: center;
  width: 100%;
  min-height: 60px;
  padding: 5px 7px 5px 18px;
  border: 1px solid #37bfff;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(5, 26, 62, .94), rgba(2, 16, 43, .96));
  box-shadow: inset 0 0 26px rgba(30, 92, 220, .2), 0 0 18px rgba(0, 151, 255, .35);
}

.identity-icon {
  position: relative;
  width: 18px;
  height: 18px;
  border: 2px solid #8ec7ff;
  border-radius: 50%;
}

.identity-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 18px;
  width: 24px;
  height: 13px;
  border: 2px solid #8ec7ff;
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  transform: translateX(-50%);
}

.identity-bar input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: clamp(1rem, 1.3vw, 1.22rem);
  font-weight: 600;
  text-transform: uppercase;
}

.identity-bar input::placeholder { color: #a8c6ed; text-transform: none; font-weight: 400; }
.identity-bar input:read-only { cursor: default; }

.password-reset-open {
  padding: 1px 8px;
  border: 0;
  background: transparent;
  color: #b9ddf8;
  font-size: .72rem;
  line-height: 1.35;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.password-reset-open:hover,
.password-reset-open:focus-visible { color: #fff; }

.round-action {
  width: 46px;
  height: 46px;
  border: 1px solid #47c9ff;
  border-radius: 50%;
  background: linear-gradient(145deg, #173985, #0c58b8);
  box-shadow: inset 0 0 13px rgba(111, 192, 255, .45), 0 0 15px rgba(41, 153, 255, .48);
  color: white;
  font-size: 1.6rem;
  cursor: pointer;
}

.tower-brand-cluster {
  position: absolute;
  top: 20.5vh;
  left: 50%;
  z-index: 3;
  display: grid;
  width: min(330px, 23vw);
  transform: translateX(-50%);
  justify-items: center;
  gap: clamp(18px, 3.2vh, 34px);
  pointer-events: none;
}

.tower-title {
  width: 100%;
  color: #dff8ff;
  font-size: clamp(.8rem, 1.35vw, 1.35rem);
  font-weight: 700;
  letter-spacing: .035em;
  text-align: center;
  text-shadow: 0 0 8px #45d3ff, 0 0 18px rgba(29, 126, 255, .8);
}

.theme-layout { position: absolute; inset: 0; z-index: 2; pointer-events: none; }

.theme-window {
  position: absolute;
  width: min(29vw, 500px);
  height: clamp(170px, 23vh, 232px);
  overflow: hidden;
  border: 2px solid #49bfff;
  border-radius: 22px;
  background-image: linear-gradient(180deg, rgba(0, 15, 41, .08), rgba(0, 15, 41, .95) 74%), url("portal-themes.webp");
  background-repeat: no-repeat;
  background-size: 200% 300%;
  box-shadow: inset 0 0 26px rgba(27, 105, 255, .28), 0 0 8px #3098ff, 0 0 24px rgba(20, 128, 255, .45);
  pointer-events: auto;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.theme-window[data-side="left"] { left: 3.5vw; }
.theme-window[data-side="right"] { right: 3.5vw; }
.theme-window { top: calc(13.5vh + var(--module-row, 0) * 25.75vh); }
.theme-window[data-visual="flights"] { background-position: left top; }
.theme-window[data-visual="crews"] { background-position: right top; }
.theme-window[data-visual="maintenance"] { background-position: left center; }
.theme-window[data-visual="administration"] { background-position: right center; }
.theme-window[data-visual="data"] { background-position: left bottom; }
.theme-window[data-visual="training"] { background-position: right bottom; }

.theme-window::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(2, 14, 39, .02) 0 22%, rgba(2, 14, 39, .66) 58%, rgba(2, 14, 39, .96) 100%);
}

.theme-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 18px 24px 17px;
}

.theme-window h2 {
  margin: 0;
  font-size: clamp(1.12rem, 1.65vw, 1.7rem);
  font-weight: 650;
  line-height: 1.05;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .8);
}

.theme-window p {
  margin: 5px 0 0;
  color: #c1dcff;
  font-size: clamp(.72rem, .88vw, .9rem);
  line-height: 1.25;
  text-shadow: 0 2px 7px rgba(0, 0, 0, .9);
}

.program-list {
  display: grid;
  gap: 6px;
  margin-top: auto;
}

.program-button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 8px 12px 8px 15px;
  border: 1px solid #2dbbff;
  border-radius: 10px;
  background: rgba(2, 24, 61, .91);
  box-shadow: inset 0 0 15px rgba(42, 107, 222, .18);
  color: #f5fbff;
  font-size: clamp(.88rem, 1.08vw, 1.05rem);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.application-light {
  width: 10px;
  height: 10px;
  margin-right: .4em;
  border-radius: 50%;
  background: #f04f58;
  box-shadow: 0 0 8px rgba(240, 79, 88, .9);
}
.program-button.is-authorized .application-light {
  background: #63ef75;
  box-shadow: 0 0 9px rgba(99, 239, 117, .95);
}
.program-button .program-label { display: grid; gap: 2px; color: #f5fbff; font-size: inherit; line-height: 1.15; }
.program-button .program-label strong { font: inherit; }
.program-button .program-label small { color: #a9c9e8; font-size: .72em; font-weight: 400; }
.program-button .program-arrow { color: #8fd3ff; font-size: 1.45rem; line-height: 1; }
.program-button:disabled { cursor: default; opacity: .72; border-color: rgba(122, 159, 190, .58); }
.program-button:hover, .program-button:focus-visible { background: rgba(7, 51, 105, .98); }
.program-button:disabled:hover { background: rgba(2, 24, 61, .91); }

#portal[data-stage="password"] .program-list { display: none; }
#portal[data-stage="password"] .theme-window:not(.is-selected) { opacity: .76; }
#portal[data-stage="password"] .theme-window.is-selected {
  transform: scale(1.018);
  box-shadow: inset 0 0 32px rgba(27, 105, 255, .38), 0 0 9px #60d9ff, 0 0 32px rgba(20, 151, 255, .72);
}

.application-login {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 7px;
  margin-top: auto;
  padding-top: 7px;
}

.application-login > strong { font-size: clamp(1rem, 1.2vw, 1.2rem); font-weight: 650; }

.password-input {
  display: grid;
  grid-template-columns: 22px 1fr 34px;
  align-items: center;
  min-height: 42px;
  padding: 3px 4px 3px 12px;
  border: 1px solid #2dbbff;
  border-radius: 10px;
  background: rgba(2, 24, 61, .95);
}

.password-input > span:first-child { color: #97d7ff; }
.password-input input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
}

.password-submit {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #4ad2ff;
  border-radius: 50%;
  background: linear-gradient(145deg, #173985, #0c58b8);
  box-shadow: 0 0 13px rgba(38, 151, 255, .45);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.back-action {
  justify-self: start;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: #c6e7ff;
  font-size: .77rem;
  cursor: pointer;
}

#status {
  position: absolute;
  z-index: 11;
  left: 50%;
  top: 9.2vh;
  width: min(540px, 92vw);
  min-height: 1.3rem;
  margin: 0;
  transform: translateX(-50%);
  color: #ffd684;
  font-size: .85rem;
  text-align: center;
}

.service-alert {
  position: absolute;
  z-index: 11;
  left: 50%;
  top: 12.2vh;
  width: min(620px, 92vw);
  margin: 0;
  padding: 7px 12px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 179, 71, .72);
  border-radius: 10px;
  background: rgba(53, 25, 5, .9);
  color: #ffd684;
  font-size: .78rem;
  text-align: center;
  box-shadow: 0 0 16px rgba(255, 139, 47, .22);
}

.tech-center {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 12px;
  overflow: auto;
  background: rgba(0, 7, 21, .82);
  backdrop-filter: blur(8px);
}

.tech-center-panel {
  width: min(1520px, 100%);
  height: min(860px, calc(100svh - 24px));
  max-height: calc(100svh - 24px);
  padding: clamp(14px, 1.3vw, 18px);
  overflow: auto;
  scrollbar-gutter: stable;
  border: 1px solid #32c8ff;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(3, 26, 61, .98), rgba(1, 12, 34, .99));
  box-shadow: inset 0 0 40px rgba(25, 106, 218, .16), 0 0 34px rgba(24, 163, 255, .38);
}

.tech-center-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid rgba(98, 194, 255, .32); }
.tech-center-header span { color: #73cbff; font-size: .72rem; font-weight: 700; letter-spacing: .15em; }
.tech-center-header h1 { margin: 5px 0 10px; font-size: clamp(1.55rem, 3vw, 2.4rem); }
.tech-center-header button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(91, 195, 255, .7);
  border-radius: 50%;
  background: rgba(5, 42, 83, .8);
  font-size: 1.7rem;
  cursor: pointer;
}

.tech-center-login { width: min(520px, 100%); margin: 38px auto 18px; }
.tech-center-login p { color: #c6def8; }
.tech-center-login label { display: block; margin: 18px 0 8px; }
.tech-password-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.tech-password-row input, .program-selector select {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #3dbdf6;
  border-radius: 10px;
  background: rgba(1, 15, 40, .94);
  color: #fff;
}
.tech-password-row button, .tech-center-tabs button {
  padding: 10px 12px;
  border: 1px solid #36c5ff;
  border-radius: 10px;
  background: rgba(5, 44, 91, .9);
  cursor: pointer;
}

.tech-center-tabs { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 8px; margin: 14px 0 10px; }
.tech-tab-group { display: grid; gap: 6px; }
.tech-tab-group > span { color: #7299b8; font-size: .56rem; font-weight: 800; letter-spacing: .14em; }
.tech-tab-group > div { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-center-tabs button { position: relative; display: inline-flex; align-items: center; gap: 8px; overflow: hidden; }
.tech-center-tabs button::before {
  content: '';
  position: absolute;
  right: 12px;
  bottom: 2px;
  left: 12px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(109, 219, 255, .68), transparent);
  opacity: .55;
}
.tech-tab-icon {
  position: relative;
  display: grid;
  width: 38px;
  height: 29px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid #4baee7;
  border-radius: 2px;
  clip-path: polygon(0 6px, 6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
  color: #8fe3ff;
  background: radial-gradient(circle at 50% 55%, rgba(47, 179, 255, .2), transparent 62%), #061d3e;
  box-shadow: inset 0 0 12px rgba(79, 196, 255, .2), 0 0 9px rgba(46, 176, 247, .17);
}
.tech-tab-icon::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-top: 1px solid rgba(139, 226, 255, .22);
  border-bottom: 1px solid rgba(139, 226, 255, .13);
  pointer-events: none;
}
.tech-tab-icon svg {
  position: relative;
  z-index: 1;
  width: 21px;
  height: 21px;
  overflow: visible;
  filter: drop-shadow(0 0 4px currentColor);
}
.tech-tab-icon-backup {
  background: radial-gradient(circle at 50% 70%, rgba(32, 206, 255, .3), transparent 58%), repeating-linear-gradient(90deg, transparent 0 5px, rgba(92, 214, 255, .07) 5px 6px), #061d3e;
}
.tech-tab-icon-health {
  border-color: #ec5770;
  color: #ff526a;
  background: radial-gradient(circle at 50% 50%, rgba(255, 38, 75, .24), transparent 58%), repeating-linear-gradient(0deg, transparent 0 5px, rgba(255, 77, 105, .06) 5px 6px), #201329;
  box-shadow: inset 0 0 13px rgba(255, 46, 76, .15), 0 0 10px rgba(255, 50, 82, .2);
}
.tech-tab-icon-versions {
  border-color: #8968d7;
  color: #c4a1ff;
  background: radial-gradient(circle at 52% 52%, rgba(151, 97, 255, .26), transparent 58%), #11183e;
  box-shadow: inset 0 0 13px rgba(154, 96, 255, .18), 0 0 10px rgba(142, 86, 255, .23);
}
.tech-tab-icon-applications {
  border-color: #3ecf92;
  color: #6dffba;
  background: radial-gradient(circle at 50% 50%, rgba(43, 255, 157, .2), transparent 62%), repeating-linear-gradient(90deg, transparent 0 5px, rgba(82, 255, 179, .06) 5px 6px), #062b31;
  box-shadow: inset 0 0 13px rgba(63, 255, 169, .16), 0 0 10px rgba(63, 255, 169, .2);
}
.tech-tab-icon-organization {
  width: 42px;
  flex-basis: 42px;
  border-color: #dd9e3b;
  color: #ffd76b;
  background: radial-gradient(circle at 50% 50%, rgba(255, 179, 47, .22), transparent 60%), #2c2315;
  box-shadow: inset 0 0 13px rgba(255, 186, 64, .16), 0 0 10px rgba(255, 183, 65, .22);
}
.tech-tab-icon-groups, .tech-tab-icon-users {
  border-color: #4da9ef;
  color: #8fd6ff;
  background: radial-gradient(circle at 50% 50%, rgba(66, 169, 255, .24), transparent 60%), #102647;
  box-shadow: inset 0 0 13px rgba(76, 179, 255, .16), 0 0 10px rgba(64, 163, 246, .2);
}
.tech-center-tabs button.is-active { background: linear-gradient(145deg, #1261bd, #168bc8); box-shadow: 0 0 14px rgba(48, 167, 255, .38); }
.tech-center-tabs button.is-external-permitted {
  border-color: #63efb0;
  background: linear-gradient(145deg, #087149, #0c9b68);
  box-shadow: 0 0 16px rgba(71, 234, 160, .36);
}
.tech-center-tabs button.is-external-readonly {
  border-color: rgba(68, 184, 242, .62);
  background: rgba(5, 44, 91, .9);
  box-shadow: inset 0 0 12px rgba(54, 176, 239, .08);
}
.tech-center-tabs button.is-external-readonly::after {
  content: 'LECTURE';
  color: #92c7e6;
  font-size: .48rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.tech-center-tabs button.is-external-locked {
  border-color: rgba(118, 151, 181, .35);
  color: #7f9ab1;
  background: rgba(12, 31, 53, .72);
  cursor: not-allowed;
  opacity: .7;
}
#tech-center-status { min-height: 1.5rem; color: #ffd684; }
#tech-center-status:empty { min-height: 0; margin: 0; }

.tech-backup-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tech-continuity-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 10px;
  padding: 15px 17px;
  border: 1px solid rgba(91, 222, 255, .72);
  border-radius: 15px;
  background: radial-gradient(circle at 80% 20%, rgba(101, 76, 224, .22), transparent 34%), linear-gradient(130deg, rgba(5, 34, 68, .96), rgba(8, 23, 55, .96));
  box-shadow: inset 0 0 30px rgba(59, 197, 255, .08), 0 12px 32px rgba(0, 5, 18, .28);
}
.tech-continuity-entry h2 { margin: 3px 0 5px; font-size: 1.05rem; }
.tech-continuity-entry p { max-width: 820px; margin: 0; color: #aac8e5; font-size: .76rem; line-height: 1.45; }
.tech-continuity-kicker { color: #70e7ff; font-size: .62rem; font-weight: 900; letter-spacing: .16em; }
.tech-continuity-entry a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid #77e8ff;
  border-radius: 10px;
  background: linear-gradient(135deg, #176db7, #6248c8);
  color: #fff;
  font-size: .76rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(64, 202, 255, .22);
}
.tech-restoration-test {
  margin-bottom: 10px;
  padding: 12px 14px;
  border: 1px solid #46c8ff;
  border-radius: 14px;
  background: linear-gradient(100deg, rgba(5, 29, 60, .94), rgba(11, 43, 77, .78));
}
.tech-restoration-test.health-stale { border-color: #ffb347; }
.tech-restoration-test.health-error { border-color: #ff5364; }
.tech-restoration-test header { display: flex; align-items: center; gap: 10px; }
.tech-restoration-test header > div { min-width: 0; flex: 1; }
.tech-restoration-test header span { display: block; color: #83cfff; font-size: .62rem; font-weight: 800; letter-spacing: .1em; }
.tech-restoration-test h2 { margin: 2px 0 0; font-size: 1.02rem; }
.tech-restoration-test header > strong { font-size: .78rem; }
.tech-restoration-facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px 14px; margin-top: 10px; }
.tech-restoration-facts p { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.tech-restoration-facts span, .tech-restoration-facts strong { display: block; }
.tech-restoration-facts span { margin-bottom: 2px; color: #98b8d4; font-size: .62rem; }
.tech-restoration-facts strong { font-size: .76rem; line-height: 1.18; }
.tech-restoration-message { margin: 9px 0 0; color: #cce8fa; font-size: .72rem; }
.tech-backup-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 9px 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #46c8ff;
  border-radius: 14px;
  background: rgba(5, 29, 60, .82);
}
.tech-backup-card.health-stale { border-color: #ffb347; }
.tech-backup-card.health-standby { border-color: #7899b4; }
.tech-backup-card.health-error, .tech-backup-card.health-unknown { border-color: #ff5364; }
.tech-backup-card header { display: flex; grid-column: 1 / -1; align-items: center; gap: 9px; min-height: 44px; padding-bottom: 9px; border-bottom: 1px solid rgba(130, 198, 239, .24); }
.tech-backup-card header span { display: block; color: #a6c3dc; font-size: .67rem; line-height: 1.2; }
.tech-backup-card h2 { margin: 3px 0 0; font-size: .98rem; line-height: 1.12; }
.tech-health-light { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; background: #70ff83; box-shadow: 0 0 11px #70ff83; }
.health-stale .tech-health-light { background: #ffb347; box-shadow: 0 0 13px #ffb347; }
.health-standby .tech-health-light { background: #86a9c4; box-shadow: 0 0 13px rgba(134, 169, 196, .68); }
.health-error .tech-health-light, .health-unknown .tech-health-light { background: #ff5364; box-shadow: 0 0 13px #ff5364; }
.tech-backup-card > p { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.tech-backup-card > p span, .tech-backup-card > p strong { display: block; }
.tech-backup-card > p span { margin-bottom: 2px; color: #98b8d4; font-size: .66rem; }
.tech-backup-card > p strong { font-size: .84rem; line-height: 1.18; }
.tech-backup-reference strong { font-size: .76rem; }
.tech-backup-help {
  margin-top: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(74, 192, 255, .35);
  border-radius: 11px;
  background: rgba(3, 24, 52, .64);
  color: #aac8e5;
  font-size: .76rem;
}
.tech-backup-help summary { color: #d9efff; font-weight: 700; cursor: pointer; }
.tech-backup-help p { max-width: 1050px; margin: 8px 0 1px; line-height: 1.45; }

.tech-versions-heading { margin-bottom: 18px; }
.tech-versions-heading > span { color: #65d5ff; font-size: .68rem; font-weight: 800; letter-spacing: .16em; }
.tech-versions-heading h2 { margin: 5px 0 3px; font-size: clamp(1.25rem, 2.4vw, 1.75rem); }
.tech-versions-heading p { max-width: 760px; margin: 0; color: #aac8e5; line-height: 1.45; }
.tech-version-toolbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px; border: 1px solid rgba(74, 192, 255, .32); border-radius: 14px; background: rgba(3, 24, 52, .66); }
.program-selector { display: grid; gap: 7px; margin: 0; color: #a9cae5; font-size: .76rem; font-weight: 800; letter-spacing: .04em; }
.program-selector select { width: 100%; min-height: 44px; padding: 9px 38px 9px 12px; border: 1px solid #46c8ff; border-radius: 10px; background: #061d3e; color: #f5fbff; font-size: .92rem; font-weight: 700; }
.program-selector select:focus-visible { outline: 3px solid rgba(101, 213, 255, .35); outline-offset: 2px; }
.tech-version-detail { margin-top: 16px; padding: 22px; overflow: hidden; border: 1px solid rgba(74, 192, 255, .68); border-radius: 16px; background: linear-gradient(145deg, rgba(8, 39, 77, .97), rgba(3, 20, 44, .94)); box-shadow: 0 16px 36px rgba(0, 8, 25, .26), inset 0 1px 0 rgba(166, 229, 255, .08); }
.tech-version-release-header { display: grid; grid-template-columns: minmax(145px, auto) minmax(220px, 1fr) auto; align-items: center; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid rgba(130, 198, 239, .25); }
.tech-version-identity { display: grid; gap: 2px; }
.tech-version-identity span { color: #89cdea; font-size: .61rem; font-weight: 900; letter-spacing: .15em; }
.tech-version-identity strong { color: #7ee7ff; font-size: clamp(1.75rem, 4vw, 2.65rem); line-height: 1; text-shadow: 0 0 18px rgba(62, 202, 255, .3); }
.tech-version-identity small { margin-top: 4px; color: #bad6e9; font-size: .72rem; font-weight: 700; }
.tech-version-release-header h2 { margin: 0; font-size: clamp(1.05rem, 2.2vw, 1.4rem); line-height: 1.25; }
.tech-version-state { justify-self: end; padding: 7px 10px; border: 1px solid #7594ad; border-radius: 999px; color: #c5d5e2; font-size: .62rem; font-weight: 900; letter-spacing: .06em; text-align: center; }
.tech-version-state.is-current { border-color: #70ffb0; background: rgba(40, 161, 104, .13); color: #82ffb9; box-shadow: 0 0 13px rgba(112, 255, 176, .12); }
.tech-version-deployments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0 20px; }
.tech-version-deployments p { display: grid; gap: 4px; min-width: 0; margin: 0; padding: 12px 14px; border: 1px solid rgba(74, 192, 255, .25); border-radius: 11px; background: rgba(4, 23, 50, .62); }
.tech-version-deployments span { color: #88b8d8; font-size: .62rem; font-weight: 900; letter-spacing: .12em; }
.tech-version-deployments strong { color: #f2f8ff; font-size: .86rem; overflow-wrap: anywhere; }
.tech-version-detail h3 { margin: 0 0 10px; color: #dff5ff; font-size: .92rem; }
.tech-version-changes { margin: 0; padding: 0; list-style: none; counter-reset: version-change; }
.tech-version-changes li { position: relative; min-height: 30px; margin: 8px 0; padding: 8px 10px 8px 44px; border-left: 2px solid rgba(70, 200, 255, .58); background: rgba(8, 48, 89, .42); line-height: 1.45; counter-increment: version-change; }
.tech-version-changes li::before { position: absolute; top: 8px; left: 12px; color: #71ddff; font-size: .72rem; font-weight: 900; content: counter(version-change, decimal-leading-zero); }

.organization-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 8px 0 12px;
}

.organization-toolbar > div:first-child { display: grid; gap: 4px; min-width: 210px; }
.organization-toolbar > div:first-child span { color: #8db9dc; font-size: .78rem; }
.organization-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.organization-actions button,
.organization-history-row button,
.portal-choice-dialog button,
.organization-remove,
.organization-order-buttons button {
  padding: 8px 12px;
  border: 1px solid #36c5ff;
  border-radius: 9px;
  background: rgba(5, 44, 91, .9);
  cursor: pointer;
}
.organization-actions button.primary,
.portal-choice-dialog button.primary { background: linear-gradient(145deg, #1261bd, #168bc8); }
.organization-actions button:disabled,
.organization-history-row button:disabled { cursor: default; opacity: .45; }
.organization-help { margin: 0 0 18px; color: #9fc3e2; font-size: .84rem; }

.organization-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.organization-module {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(69, 194, 255, .65);
  border-radius: 16px;
  background: rgba(4, 25, 55, .82);
  box-shadow: inset 0 0 18px rgba(28, 111, 220, .12);
}
.organization-module > header,
.organization-application > header,
.organization-application > footer,
.organization-module-options {
  display: flex;
  align-items: center;
  gap: 10px;
}
.organization-module > header { margin-bottom: 12px; }
.organization-module > header strong { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.drag-handle { color: #75d3ff; cursor: grab; font-size: 1.25rem; user-select: none; touch-action: none; }
.organization-order-buttons { display: inline-flex; gap: 4px; margin-left: auto; }
.organization-order-buttons button { min-width: 32px; padding: 4px 8px; }
.organization-module > label,
.organization-application > label { display: grid; gap: 5px; margin: 9px 0; }
.organization-module label > span,
.organization-application label > span { color: #9bc2df; font-size: .73rem; }
.organization-module input[type="text"],
.organization-module input:not([type]),
.organization-module textarea,
.organization-module select,
.organization-history-row select,
.portal-choice-dialog select {
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(61, 189, 246, .75);
  border-radius: 8px;
  outline: 0;
  background: rgba(1, 15, 40, .94);
  color: #fff;
}
.organization-module textarea { min-height: 58px; resize: vertical; font: inherit; }
.organization-module-options { flex-wrap: wrap; justify-content: space-between; margin: 12px 0; }
.organization-module-options select { width: auto; max-width: 240px; }
.organization-visibility { display: inline-flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 7px !important; margin: 0 !important; font-size: .8rem; }
.organization-visibility input { width: 17px; height: 17px; }
.organization-applications { display: grid; gap: 9px; min-height: 58px; padding: 10px 0; }
.organization-application { padding: 11px; border: 1px solid rgba(82, 157, 214, .45); border-radius: 11px; background: rgba(2, 17, 42, .8); }
.organization-application code { flex: 1; color: #70cfff; font-size: .72rem; }
.organization-application > footer { flex-wrap: wrap; justify-content: space-between; }
.organization-application > footer select { width: min(250px, 100%); }
.organization-empty { margin: 0; padding: 14px; color: #88a9c5; text-align: center; }
.organization-remove { margin-top: 7px; border-color: rgba(255, 102, 112, .65); color: #ffb7bc; background: rgba(96, 15, 30, .32); }
.organization-unclassified { grid-column: 1 / -1; border-style: dashed; }
.organization-unclassified > h2 { margin: 0 0 10px; font-size: 1.05rem; }
.organization-unclassified .organization-applications { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.organization-history-row { display: grid; grid-template-columns: auto minmax(220px, 1fr) auto; align-items: center; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(98, 194, 255, .28); }

.presentation-preview-banner {
  position: fixed;
  z-index: 45;
  left: 50%;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid #55d2ff;
  border-radius: 14px;
  transform: translateX(-50%);
  background: rgba(1, 18, 47, .96);
  box-shadow: 0 0 24px rgba(31, 161, 255, .45);
}
.presentation-preview-banner button { padding: 8px 12px; border: 1px solid #55d2ff; border-radius: 8px; background: #125baa; color: #fff; cursor: pointer; }

.portal-choice-dialog {
  width: min(560px, calc(100% - 28px));
  padding: 0;
  border: 1px solid #43c9ff;
  border-radius: 17px;
  background: #041a38;
  color: #eefaff;
  box-shadow: 0 0 32px rgba(22, 142, 235, .55);
}
.portal-choice-dialog::backdrop { background: rgba(0, 5, 18, .76); }
.portal-choice-dialog form { padding: 22px; }
.portal-choice-dialog h2 { margin-top: 0; }
.portal-choice-dialog p { color: #b6d1e8; line-height: 1.45; }
.portal-choice-dialog label { display: grid; gap: 7px; margin: 15px 0; }
#portal-choice-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 20px; }

.moving-plane {
  position: absolute;
  z-index: 1;
  color: rgba(185, 224, 255, .72);
  text-shadow: 0 0 9px rgba(113, 197, 255, .7);
  pointer-events: none;
  animation: fly-across 17s linear infinite;
}

.plane-one { top: 62%; left: -7%; font-size: 1.55rem; }
.plane-two { top: 82%; left: -7%; font-size: 1rem; animation-delay: -9s; animation-duration: 23s; }

@keyframes fly-across {
  from { transform: translateX(-5vw); }
  to { transform: translateX(112vw); }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1080px) {
  #portal, #portal[data-extra-modules="true"] { min-height: auto; padding: 120px 18px 40px; background-attachment: fixed; }
  .portal-topbar { position: absolute; grid-template-columns: minmax(190px, 280px) minmax(300px, 430px) minmax(190px, 280px); gap: 14px; }
  .identity-entry { grid-column: 2; }
  .tower-brand-cluster { position: relative; top: auto; left: auto; width: 100%; margin: 45px 0 28px; transform: none; gap: 24px; }
  .tower-title { font-size: 1.35rem; }
  .theme-layout { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .theme-window { position: relative; inset: auto; width: 100%; height: 220px; }
  .tech-backup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech-restoration-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .organization-editor { grid-template-columns: 1fr; }
  .organization-unclassified { grid-column: auto; }
}

@media (max-width: 720px) {
  #portal { padding: 166px 9px 22px; }
  .portal-topbar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .backup-summary { min-height: 54px; padding: 7px 10px; }
  .backup-summary strong { margin-bottom: 5px; font-size: .63rem; }
  .backup-lights { gap: 5px; font-size: .6rem; }
  .backup-lights span { gap: 3px; }
  .backup-lights i { width: 9px; height: 9px; }
  .tech-center-entry { grid-column: 2; }
  .tech-center-summary strong { font-size: .75rem; }
  .tech-center-services { font-size: .56rem; letter-spacing: .04em; }
  .identity-entry { grid-column: 1 / -1; grid-row: 2; }
  .tower-brand-cluster { margin: 21px 0 16px; gap: 15px; }
  .tower-title { font-size: 1.05rem; }
  .server-public-summary { width: clamp(108px, 30vw, 132px); height: clamp(108px, 30vw, 132px); }
  .spain-standby-badge { margin-top: -3px; padding: 6px 11px; font-size: .61rem; }
  .theme-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .theme-window { height: 138px; padding: 10px; border-radius: 13px; }
  .theme-content { gap: 3px; }
  .theme-content h2 { font-size: clamp(.78rem, 3.6vw, 1rem); }
  .theme-content > p { overflow: hidden; font-size: .64rem; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
  .program-list { gap: 4px; }
  .program-button { min-height: 40px; padding: 6px 7px; font-size: .76rem; }
  .application-light { width: 9px; height: 9px; }
  #portal[data-stage="password"] .theme-window.is-selected { grid-column: 1 / -1; height: 178px; }
  #status { top: 136px; font-size: .75rem; }
  .service-alert { top: 154px; font-size: .68rem; }
  .tech-center { padding: 0; place-items: stretch; }
  .tech-center-panel { width: 100%; height: auto; max-height: none; min-height: 100svh; padding: 16px 12px; border: 0; border-radius: 0; }
  .tech-center-tabs { position: sticky; top: -16px; z-index: 2; padding: 12px 0; background: #031731; }
  .tech-tab-group { flex: 1 1 100%; }
  .tech-tab-group > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech-center-tabs button { justify-content: flex-start; padding-inline: 8px; }
  .tech-backup-grid { grid-template-columns: 1fr; }
  .tech-continuity-entry { grid-template-columns: 1fr; }
  .tech-continuity-entry a { width: 100%; }
  .tech-restoration-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech-backup-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech-version-toolbar { grid-template-columns: 1fr; }
  .tech-version-release-header { grid-template-columns: 1fr; gap: 12px; }
  .tech-version-state { justify-self: start; }
  .tech-version-deployments { grid-template-columns: 1fr; }
  .tech-password-row { grid-template-columns: 1fr; }
  .tech-center-tabs { flex-wrap: wrap; }
  .organization-toolbar { display: grid; }
  .organization-actions { justify-content: stretch; }
  .organization-actions button { flex: 1 1 145px; }
  .organization-unclassified .organization-applications { grid-template-columns: 1fr; }
  .organization-history-row { grid-template-columns: 1fr; }
  .presentation-preview-banner { width: calc(100% - 20px); justify-content: space-between; }
  .tech-center-summary .portal-version { margin-top: 3px; font-size: .48rem; }
}

@media (max-width: 480px) {
  .tech-center-tabs { position: static; padding-top: 4px; }
  .tech-tab-group > div { grid-template-columns: 1fr; }
  .tech-center-tabs button { width: 100%; min-width: 0; }
  .tech-backup-card { grid-template-columns: 1fr; }
  .tech-backup-card header { grid-column: 1; }
  .tech-restoration-facts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .moving-plane { animation: none; display: none; }
  .theme-window { transition: none; }
}
