/* Final presentation layer for the cyber portfolio refresh. */

.sidebar .avatar-box {
  position: relative;
  isolation: isolate;
  width: 136px;
  height: 136px;
  padding: 5px;
  border-radius: 50%;
  background: hsl(160, 70%, 4%);
  box-shadow:
    0 0 0 1px hsla(145, 100%, 82%, 0.2),
    0 22px 60px hsla(145, 100%, 42%, 0.2),
    0 18px 70px hsla(150, 100%, 2%, 0.5);
}

.sidebar .avatar-box::before {
  content: "";
  position: absolute;
  inset: -5px;
  z-index: 2;
  border-radius: inherit;
  padding: 3px;
  background: conic-gradient(from 150deg, var(--electric-cyan), var(--acid), hsla(145, 100%, 62%, 0.28), var(--electric-cyan));
  box-shadow: 0 0 30px hsla(145, 100%, 62%, 0.24);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.sidebar .avatar-box::after {
  content: "";
  position: absolute;
  inset: auto 3px 13px auto;
  z-index: 4;
  width: 20px;
  height: 20px;
  border: 4px solid hsl(160, 70%, 4%);
  border-radius: 50%;
  background: var(--acid);
  box-shadow:
    0 0 0 2px hsla(145, 100%, 62%, 0.28),
    0 0 20px hsla(145, 100%, 62%, 0.95);
}

.sidebar .avatar-box img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100% !important;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 52% 42%;
  filter: saturate(1.04) contrast(1.08) brightness(1.02);
  box-shadow:
    inset 0 0 0 1px hsla(0, 0%, 100%, 0.18),
    0 0 0 1px hsla(160, 70%, 4%, 0.7);
}

.sidebar-info {
  align-items: center;
}

.sidebar .info-content {
  text-align: center;
}

.contact-card-link {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  color: inherit;
}

.contact-card-link .contact-link {
  display: block;
}

.contact-card-link:hover .contact-link,
.contact-card-link:focus-visible .contact-link {
  color: var(--acid);
  text-shadow: 0 0 18px hsla(145, 100%, 62%, 0.44);
}

.main-content.is-switching article.active {
  animation: pageSwitch 0.34s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes pageSwitch {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.992);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-copy h3 {
  max-width: 600px;
  color: var(--white-1);
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
  line-height: 1.14;
  letter-spacing: -0.035em;
  text-transform: none;
  text-wrap: balance;
}

.hero-copy p:not(.eyebrow) {
  max-width: 620px;
  font-size: clamp(0.98rem, 1.2vw, 1.06rem);
}

.proof-grid li {
  display: flex;
  min-height: 158px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.proof-grid li::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, hsla(145, 100%, 62%, 0.12), transparent 42%),
    radial-gradient(circle at 88% 12%, hsla(185, 100%, 58%, 0.16), transparent 34%);
  opacity: 0.75;
  pointer-events: none;
}

.proof-grid span,
.proof-grid p {
  position: relative;
  z-index: 1;
}

.proof-grid span {
  color: var(--white-1);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
  text-shadow: 0 0 20px hsla(145, 100%, 62%, 0.22);
}

.proof-grid p {
  color: var(--light-gray);
  font-size: 13px;
}

.about-text {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3.4vw, 34px);
  border: 1px solid hsla(145, 100%, 62%, 0.24);
  border-radius: 24px;
  background:
    linear-gradient(135deg, hsla(145, 100%, 62%, 0.07), transparent 45%),
    hsla(160, 70%, 3%, 0.5);
  box-shadow:
    inset 0 1px 0 hsla(145, 100%, 86%, 0.08),
    0 18px 55px hsla(150, 100%, 2%, 0.28);
}

.about-text::before,
.about-text::after {
  content: "";
  position: absolute;
  width: 76px;
  height: 76px;
  pointer-events: none;
}

.about-text::before {
  top: 0;
  left: 0;
  border-top: 2px solid var(--acid);
  border-left: 2px solid var(--acid);
  border-radius: 22px 0 0 0;
  box-shadow: -10px -10px 30px hsla(145, 100%, 62%, 0.12);
}

.about-text::after {
  right: 0;
  bottom: 0;
  border-right: 2px solid var(--electric-cyan);
  border-bottom: 2px solid var(--electric-cyan);
  border-radius: 0 0 22px 0;
  box-shadow: 10px 10px 30px hsla(185, 100%, 58%, 0.1);
}

.about-text p {
  position: relative;
  z-index: 1;
  max-width: 92ch;
  color: hsla(164, 42%, 86%, 0.9);
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
  line-height: 1.82;
}

.testimonials {
  position: relative;
}

.testimonials-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 6px;
}

.testimonials-header .eyebrow {
  margin-bottom: 6px;
  font-size: 10px;
}

.testimonials-title {
  margin-bottom: 0;
}

.testimonial-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonial-nav {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid hsla(145, 100%, 62%, 0.32);
  border-radius: 999px;
  color: var(--acid);
  background:
    radial-gradient(circle at 30% 18%, hsla(145, 100%, 72%, 0.16), transparent 44%),
    linear-gradient(145deg, hsla(160, 70%, 5%, 0.95), hsla(160, 78%, 3%, 0.85));
  box-shadow:
    inset 0 1px 0 hsla(145, 100%, 86%, 0.1),
    0 12px 34px hsla(150, 100%, 2%, 0.34);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.testimonial-nav ion-icon {
  font-size: 20px;
  pointer-events: none;
}

.testimonial-nav:hover:not(:disabled),
.testimonial-nav:focus-visible:not(:disabled) {
  border-color: hsla(145, 100%, 62%, 0.68);
  box-shadow:
    0 0 0 4px hsla(145, 100%, 62%, 0.08),
    0 18px 44px hsla(145, 100%, 36%, 0.18);
  transform: translateY(-2px);
}

.testimonial-nav:disabled {
  cursor: not-allowed;
  opacity: 0.34;
}

.testimonials-list {
  align-items: stretch;
  margin: 0;
  padding: 30px 6px 32px;
  gap: 18px;
  scroll-padding-inline: 6px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: hsla(145, 100%, 62%, 0.9) hsla(160, 78%, 6%, 0.92);
}

.testimonials-list:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px hsla(145, 100%, 62%, 0.18);
  border-radius: 22px;
}

.testimonials-list.has-scrollbar::-webkit-scrollbar {
  height: 12px;
}

.testimonials-list.has-scrollbar::-webkit-scrollbar-track {
  border: 1px solid hsla(145, 100%, 62%, 0.12);
  border-radius: 999px;
  background: hsla(160, 78%, 6%, 0.92);
}

.testimonials-list.has-scrollbar::-webkit-scrollbar-thumb {
  border: 3px solid hsla(160, 78%, 6%, 0.92);
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--electric-cyan), var(--acid));
  box-shadow: 0 0 18px hsla(145, 100%, 62%, 0.38);
}

.testimonials-list.has-scrollbar::-webkit-scrollbar-button {
  width: 10px;
}

.testimonials-item {
  display: flex;
  flex: 0 0 100%;
  min-width: 100%;
  scroll-snap-align: start;
}

.testimonials-item .content-card {
  display: flex;
  width: 100%;
  min-height: 220px;
  flex-direction: column;
  border: 1px solid hsla(145, 100%, 62%, 0.16);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.testimonials-item .content-card:hover,
.testimonials-item .content-card:focus-within {
  border-color: hsla(145, 100%, 62%, 0.32);
  box-shadow: 0 20px 55px hsla(150, 100%, 2%, 0.28);
  transform: translateY(-3px);
}

.testimonials-item .testimonials-item-title {
  display: block;
  color: var(--white-1);
}

.testimonials-item .testimonials-text {
  display: -webkit-box;
  color: hsla(164, 42%, 86%, 0.9);
  line-height: 1.68;
  line-clamp: 6;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.testimonials-item .testimonials-text p {
  color: inherit;
}

.testimonial-read-more {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: auto;
  padding: 18px 0 0;
  border: 0;
  color: var(--acid);
  background: transparent;
  font-family: var(--ff-code);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.82;
  cursor: pointer;
  transition:
    color 0.2s ease,
    opacity 0.2s ease,
    text-shadow 0.2s ease,
    transform 0.2s ease;
}

.testimonial-read-more::after {
  content: ">";
  margin-left: 8px;
  transition: transform 0.2s ease;
}

.testimonial-read-more:hover,
.testimonial-read-more:focus-visible {
  color: var(--electric-cyan);
  opacity: 1;
  outline: none;
  text-shadow: 0 0 16px hsla(145, 100%, 62%, 0.44);
  transform: translateX(2px);
}

.testimonial-read-more:hover::after,
.testimonial-read-more:focus-visible::after {
  transform: translateX(4px);
}

.modal-container {
  z-index: 90;
}

.overlay {
  background:
    radial-gradient(circle at 50% 40%, hsla(145, 100%, 62%, 0.12), transparent 34%),
    hsla(160, 86%, 2%, 0.9);
  transition: opacity 0.14s ease, visibility 0.14s ease;
}

.testimonials-modal {
  border-color: hsla(145, 100%, 62%, 0.28);
  background:
    radial-gradient(circle at 0% 0%, hsla(145, 100%, 62%, 0.12), transparent 36%),
    hsl(160, 70%, 4%);
  box-shadow:
    0 0 0 1px hsla(145, 100%, 62%, 0.12),
    0 28px 90px hsla(150, 100%, 2%, 0.65);
  transform: translateY(10px) scale(0.985);
  transition:
    opacity 0.14s ease,
    transform 0.16s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal-container.active .testimonials-modal {
  transform: translateY(0) scale(1);
}

@media (min-width: 768px) {
  .testimonials-item {
    flex-basis: calc((100% - 18px) / 2);
    min-width: calc((100% - 18px) / 2);
  }
}

.contact-intro {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--panel-edge);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 10%, hsla(185, 100%, 58%, 0.12), transparent 30%),
    linear-gradient(145deg, hsla(145, 100%, 62%, 0.075), hsla(160, 70%, 3%, 0.6));
  box-shadow: 0 18px 48px hsla(150, 100%, 2%, 0.24);
}

.contact-intro h3 {
  max-width: 760px;
  color: var(--white-1);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.contact-intro p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 14px;
  color: var(--light-gray);
  font-size: var(--fs-6);
  line-height: 1.75;
}

.mapbox {
  isolation: isolate;
  overflow: hidden;
  height: clamp(320px, 42vw, 440px);
  min-height: 320px;
  border-color: hsla(145, 100%, 62%, 0.28);
  background:
    linear-gradient(hsla(145, 100%, 62%, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, hsla(145, 100%, 62%, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 26% 28%, hsla(185, 100%, 58%, 0.16), transparent 26%),
    hsl(160, 70%, 4%);
  background-size: 34px 34px, 34px 34px, auto, auto;
}

.mapbox::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, hsla(160, 80%, 3%, 0.04), hsla(160, 80%, 3%, 0.24)),
    radial-gradient(circle at 50% 50%, transparent 0 46%, hsla(160, 80%, 3%, 0.3) 100%);
}

.mapbox figure {
  position: relative;
}

.mapbox figure::before,
.mapbox figure::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.mapbox figure::before {
  background:
    linear-gradient(135deg, hsla(145, 100%, 58%, 0.2), hsla(185, 100%, 58%, 0.08) 42%, hsla(160, 90%, 5%, 0.22)),
    radial-gradient(circle at 24% 28%, hsla(145, 100%, 62%, 0.24), transparent 34%),
    radial-gradient(circle at 78% 72%, hsla(185, 100%, 58%, 0.16), transparent 32%);
  mix-blend-mode: color;
}

.mapbox figure::after {
  background:
    linear-gradient(180deg, transparent 0 62%, hsla(160, 90%, 3%, 0.42)),
    repeating-linear-gradient(0deg, hsla(145, 100%, 72%, 0.055) 0 1px, transparent 1px 6px);
  mix-blend-mode: soft-light;
  opacity: 0.72;
}

.mapbox figure,
.mapbox iframe {
  height: 100%;
}

.mapbox iframe {
  position: relative;
  z-index: 0;
  display: block;
  filter: grayscale(0.28) sepia(0.16) hue-rotate(82deg) saturate(1.28) contrast(1.08) brightness(0.82);
  opacity: 0.98;
}

.map-panel {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  left: 18px;
  max-width: 360px;
  padding: 18px;
  border: 1px solid hsla(145, 100%, 62%, 0.32);
  border-radius: 18px;
  background: hsla(160, 78%, 4%, 0.86);
  box-shadow: 0 18px 60px hsla(150, 100%, 2%, 0.44);
  backdrop-filter: blur(16px);
}

.map-panel .eyebrow {
  margin-bottom: 8px;
  font-size: 10px;
}

.map-panel strong {
  display: block;
  color: var(--white-1);
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.map-panel a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--acid);
  font-family: var(--ff-code);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.timeline-item details {
  position: relative;
}

.timeline,
.timeline-list,
.timeline-item {
  overflow-anchor: none;
}

.timeline-item details::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 18% 0%, hsla(145, 100%, 62%, 0.09), transparent 34%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.timeline-item details[open]::before {
  opacity: 1;
}

.timeline-item summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  border-radius: 14px;
  cursor: pointer;
}

.timeline-item summary:hover .timeline-item-title,
.timeline-item summary:hover span {
  color: var(--white-1);
}

.timeline-item summary span {
  transition: color var(--transition-1);
}

.timeline-item .timeline-text {
  margin-top: 0;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    height 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.3s ease,
    transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1),
    margin-top 0.3s ease;
  will-change: height, opacity, transform;
}

.timeline-item details[open] .timeline-text {
  margin-top: 18px;
  opacity: 1;
  transform: translateY(0);
}

.timeline-item details[open] .custom-list li {
  animation: listReveal 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.timeline-item details[open] .custom-list li:nth-child(2) { animation-delay: 0.03s; }
.timeline-item details[open] .custom-list li:nth-child(3) { animation-delay: 0.06s; }
.timeline-item details[open] .custom-list li:nth-child(4) { animation-delay: 0.09s; }
.timeline-item details[open] .custom-list li:nth-child(5) { animation-delay: 0.12s; }
.timeline-item details[open] .custom-list li:nth-child(6) { animation-delay: 0.15s; }
.timeline-item details[open] .custom-list li:nth-child(7) { animation-delay: 0.18s; }
.timeline-item details[open] .custom-list li:nth-child(8) { animation-delay: 0.21s; }
.timeline-item details[open] .custom-list li:nth-child(9) { animation-delay: 0.24s; }
.timeline-item details[open] .custom-list li:nth-child(10) { animation-delay: 0.27s; }
.timeline-item details[open] .custom-list li:nth-child(11) { animation-delay: 0.3s; }
.timeline-item details[open] .custom-list li:nth-child(12) { animation-delay: 0.33s; }

@keyframes listReveal {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (min-width: 1250px) {
  .hero-console {
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.85fr);
  }
}

@media (max-width: 579px) {
  .sidebar .avatar-box {
    width: 92px;
    height: 92px;
    padding: 3px;
  }

  .sidebar .avatar-box::after {
    inset: auto 1px 8px auto;
    width: 13px;
    height: 13px;
    border-width: 2px;
  }

  .hero-copy h3 {
    font-size: clamp(1.55rem, 7.6vw, 1.92rem);
    line-height: 1.02;
  }

  .proof-grid li {
    min-height: 128px;
  }

  .about-text p {
    font-size: 14px;
    line-height: 1.72;
  }

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

  .testimonial-controls {
    width: 100%;
    justify-content: space-between;
  }

  .testimonial-nav {
    width: 42px;
    height: 42px;
  }

  .map-panel {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .map-panel strong {
    font-size: 19px;
  }
}

.console-launcher {
  position: fixed;
  right: clamp(18px, 4vw, 34px);
  bottom: clamp(86px, 8vw, 34px);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid hsla(145, 100%, 62%, 0.42);
  border-radius: 999px;
  color: var(--acid);
  background:
    radial-gradient(circle at 20% 15%, hsla(145, 100%, 72%, 0.2), transparent 38%),
    hsla(160, 80%, 4%, 0.88);
  box-shadow:
    0 0 0 1px hsla(145, 100%, 62%, 0.1),
    0 18px 48px hsla(150, 100%, 2%, 0.5),
    0 0 34px hsla(145, 100%, 62%, 0.16);
  backdrop-filter: blur(16px);
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.console-launcher:hover,
.console-launcher:focus-visible {
  border-color: hsla(145, 100%, 62%, 0.78);
  outline: none;
  transform: translateY(-3px);
  box-shadow:
    0 0 0 4px hsla(145, 100%, 62%, 0.08),
    0 22px 60px hsla(145, 100%, 18%, 0.24);
}

.console-launcher__glyph {
  font-family: var(--ff-code);
  font-size: 16px;
  font-weight: 700;
}

.console-launcher__text {
  color: var(--white-1);
  font-family: var(--ff-code);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.console-mode-active {
  overflow: hidden;
}

.console-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(14px, 3vw, 36px);
  padding-bottom: max(clamp(14px, 3vw, 36px), env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 18% 14%, hsla(145, 100%, 62%, 0.14), transparent 32%),
    radial-gradient(circle at 82% 80%, hsla(185, 100%, 58%, 0.12), transparent 30%),
    hsla(220, 65%, 3%, 0.96);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.console-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.console-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.console-overlay.matrix-active .console-particles {
  z-index: 3;
  opacity: 0.82;
  mix-blend-mode: screen;
}

.console-overlay.matrix-active .console-window {
  box-shadow:
    inset 0 1px 0 hsla(145, 100%, 86%, 0.14),
    0 0 0 1px hsla(145, 100%, 62%, 0.16),
    0 28px 100px hsla(150, 100%, 2%, 0.72),
    0 0 78px hsla(145, 100%, 62%, 0.3);
}

.console-window {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  width: min(1180px, 100%);
  height: min(820px, 100%);
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px);
  min-height: min(720px, calc(100vh - 28px));
  min-height: min(720px, calc(100dvh - 28px));
  overflow: hidden;
  border: 1px solid hsla(145, 100%, 62%, 0.34);
  border-radius: 22px;
  background:
    linear-gradient(hsla(145, 100%, 62%, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, hsla(145, 100%, 62%, 0.025) 1px, transparent 1px),
    hsla(225, 58%, 6%, 0.72);
  background-size: 100% 6px, 44px 44px, auto;
  box-shadow:
    inset 0 1px 0 hsla(145, 100%, 86%, 0.1),
    0 0 0 1px hsla(145, 100%, 62%, 0.08),
    0 28px 100px hsla(150, 100%, 2%, 0.72),
    0 0 58px hsla(145, 100%, 62%, 0.18);
  backdrop-filter: blur(18px);
}

.console-window::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, hsla(145, 100%, 72%, 0.035) 0 1px, transparent 1px 5px);
  mix-blend-mode: screen;
  opacity: 0.36;
}

.console-chrome {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid hsla(145, 100%, 62%, 0.16);
  background: hsla(220, 80%, 3%, 0.74);
  color: hsla(164, 42%, 86%, 0.7);
  font-family: var(--ff-code);
}

.console-dots {
  display: flex;
  gap: 8px;
}

.console-dots span {
  width: 13px;
  height: 13px;
  border-radius: 50%;
}

.console-dots span:nth-child(1) { background: #ff5f57; }
.console-dots span:nth-child(2) { background: #ffbd2e; }
.console-dots span:nth-child(3) { background: #28c840; }

.console-secure,
.console-chrome time {
  color: var(--acid);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.console-chrome strong {
  justify-self: center;
  color: hsla(164, 42%, 86%, 0.72);
  font-size: 13px;
  letter-spacing: 0.16em;
}

.console-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid hsla(145, 100%, 62%, 0.16);
  border-radius: 10px;
  color: var(--white-1);
  background: hsla(160, 70%, 5%, 0.72);
  cursor: pointer;
}

.console-close:hover,
.console-close:focus-visible {
  color: var(--acid);
  outline: none;
}

.console-output {
  position: relative;
  z-index: 1;
  overflow: auto;
  padding: clamp(18px, 3vw, 28px);
  color: #d9f8e8;
  font-family: var(--ff-code);
  font-size: clamp(13px, 1.45vw, 16px);
  line-height: 1.65;
  scrollbar-color: hsla(145, 100%, 62%, 0.78) transparent;
}

.console-output a {
  color: var(--electric-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.console-output span,
.console-output strong,
.console-prompt span,
.console-prompt label {
  display: inline;
}

.console-line {
  margin: 0 0 6px;
  white-space: pre-wrap;
  animation: consoleLineIn 0.16s ease both;
}

.console-muted { color: hsla(164, 42%, 86%, 0.62); }
.console-ok { color: var(--acid); }
.console-cyan { color: var(--electric-cyan); }
.console-error { color: #ff6b7a; }
.console-command-echo { color: #8dffc0; }

.console-table {
  display: grid;
  grid-template-columns: minmax(120px, 0.32fr) 1fr;
  gap: 8px 18px;
  max-width: 760px;
  margin: 10px 0 14px;
}

.console-table strong {
  color: var(--electric-cyan);
}

.console-card {
  max-width: 820px;
  margin: 10px 0;
  padding: 14px;
  border: 1px solid hsla(145, 100%, 62%, 0.18);
  border-radius: 14px;
  background: hsla(160, 70%, 4%, 0.62);
}

.console-bar {
  color: var(--acid);
  letter-spacing: 0.04em;
}

.console-quick-commands {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px clamp(14px, 3vw, 24px);
  border-top: 1px solid hsla(145, 100%, 62%, 0.12);
}

.console-quick-commands button {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid hsla(145, 100%, 62%, 0.22);
  border-radius: 999px;
  color: var(--acid);
  background: hsla(145, 100%, 62%, 0.075);
  font-family: var(--ff-code);
  font-size: 12px;
  cursor: pointer;
}

.console-prompt {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px clamp(18px, 3vw, 28px) max(18px, env(safe-area-inset-bottom));
  border-top: 1px solid hsla(145, 100%, 62%, 0.12);
  color: var(--acid);
  background: hsla(220, 80%, 3%, 0.46);
  font-family: var(--ff-code);
}

.console-prompt label {
  flex: 0 0 auto;
  font-weight: 700;
}

.console-prompt input {
  flex: 1;
  min-width: 0;
  border: 0;
  color: #eafff2;
  background: transparent;
  font: inherit;
  outline: none;
}

.console-caret {
  width: 9px;
  height: 18px;
  background: var(--acid);
  animation: consoleBlink 1s steps(2, start) infinite;
}

.console-overlay.console-denied .console-window {
  animation: consoleDenied 0.18s ease 4;
}

@keyframes consoleLineIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes consoleBlink {
  50% { opacity: 0; }
}

@keyframes consoleDenied {
  50% { border-color: #ff4d5e; box-shadow: 0 0 42px hsla(350, 100%, 62%, 0.34); }
}

@media (min-width: 768px) {
  .console-quick-commands {
    display: none;
  }
}

@media (max-width: 700px) {
  .console-launcher {
    right: 14px;
    bottom: 82px;
    padding: 11px 13px;
  }

  .console-launcher__text {
    display: none;
  }

  .console-overlay {
    align-items: stretch;
    min-height: 100svh;
    min-height: 100dvh;
    padding: 8px 8px max(12px, env(safe-area-inset-bottom));
  }

  .console-window {
    width: 100%;
    height: auto;
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - max(20px, env(safe-area-inset-bottom)));
    min-height: 0;
    border-radius: 16px;
  }

  .console-chrome {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    padding: 10px 12px;
  }

  .console-secure,
  .console-chrome time {
    display: none;
  }

  .console-chrome strong {
    justify-self: start;
    font-size: 11px;
  }

  .console-output {
    padding: 14px;
    font-size: 12px;
    line-height: 1.55;
  }

  .console-quick-commands {
    padding: 8px 12px;
  }

  .console-prompt {
    gap: 7px;
    padding: 10px 12px max(12px, env(safe-area-inset-bottom));
    font-size: 12px;
  }

  .console-prompt label {
    max-width: 118px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .console-table {
    grid-template-columns: 1fr;
  }

}
