:root {
  color-scheme: dark;
  --sidebar-width: 280px;
  --bg: #090914;
  --bg-soft: rgba(14, 14, 28, 0.82);
  --panel: rgba(19, 19, 36, 0.9);
  --panel-soft: rgba(24, 24, 44, 0.86);
  --panel-elevated: rgba(30, 30, 50, 0.92);
  --text: #e4e9ff;
  --text-soft: #aeb4d4;
  --text-muted: #767e9f;
  --line: rgba(160, 172, 255, 0.12);
  --line-strong: rgba(191, 166, 255, 0.26);
  --purple: #c79cff;
  --cyan: #6fd7ff;
  --blue: #5e8dff;
  --orange: #ff9a52;
  --green: #76e5a1;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

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

html,
body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  margin: 0;
  width: 100vw;
  max-width: 100vw;
  background: var(--bg);
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI Variable", "Segoe UI", sans-serif;
  overflow: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

body.window-open {
  overflow: hidden;
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.app-shell {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  min-height: 100vh;
  overflow: hidden;
}

.background-system {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.architecture-board {
  position: absolute;
  top: 5.8rem;
  left: calc(var(--sidebar-width) + 2rem);
  right: 1rem;
  bottom: 1rem;
  border: 1px solid rgba(160, 172, 255, 0.08);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(16, 16, 32, 0.16), rgba(11, 11, 23, 0.04)),
    rgba(8, 9, 20, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 0 0 1px rgba(111, 215, 255, 0.03);
}

.background-system::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
}

.grid-layer {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(155, 167, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 167, 255, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.56;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(58px);
  opacity: 0.28;
  animation: drift 22s ease-in-out infinite alternate;
}

.glow-orb-sun {
  width: 18rem;
  height: 18rem;
  left: calc(var(--china-x) - 9rem);
  top: calc(var(--china-y) - 9rem);
  background: radial-gradient(circle, rgba(255, 154, 82, 0.62), transparent 70%);
}

.glow-orb-nil {
  width: 22rem;
  height: 22rem;
  left: calc(var(--user-x) - 11rem);
  top: calc(var(--user-y) - 11rem);
  background: radial-gradient(circle, rgba(111, 215, 255, 0.52), transparent 72%);
}

.diagram-frame {
  position: absolute;
  top: 12%;
  left: 7%;
  width: 86%;
  height: 70%;
  border-radius: 28px;
  border: 1px solid rgba(125, 221, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(16, 20, 38, 0.1), rgba(8, 10, 24, 0.03));
  box-shadow:
    0 0 0 1px rgba(199, 156, 255, 0.08),
    0 0 24px rgba(111, 215, 255, 0.12),
    0 0 44px rgba(111, 215, 255, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.diagram-frame::before,
.diagram-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.diagram-frame::before {
  inset: -1px;
  border: 1px solid rgba(199, 156, 255, 0.18);
  filter: blur(4px);
  opacity: 0.65;
}

.diagram-frame::after {
  inset: 12px;
  border: 1px solid rgba(111, 215, 255, 0.08);
  border-radius: 20px;
}

.architecture-diagram {
  --china-x: 13%;
  --china-y: 16%;
  --jakarta-x: 41%;
  --jakarta-y: 45%;
  --sydney-x: 69%;
  --sydney-y: 70%;
  --user-x: 84%;
  --user-y: 84%;
  position: absolute;
  top: 12%;
  left: 7%;
  width: 86%;
  height: 70%;
  pointer-events: none;
}

.diagram-title-chip {
  position: absolute;
  top: 2.6%;
  left: 50%;
  transform: translateX(-50%);
  min-width: min(19rem, 70%);
  padding: 0.72rem 1.15rem;
  border: 1px solid rgba(160, 172, 255, 0.14);
  border-radius: 999px;
  background: rgba(14, 16, 32, 0.72);
  box-shadow: 0 0 18px rgba(111, 215, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.diagram-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.diagram-filament-aura,
.diagram-filament-core,
.diagram-filament-shimmer {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.diagram-signal-filament {
  mix-blend-mode: screen;
}

.diagram-filament-aura {
  stroke: rgba(111, 215, 255, 0.1);
  stroke-width: 1.9;
}

.diagram-filament-core {
  stroke: url(#diagram-route-gradient);
  stroke-width: 0.52;
  opacity: 0.72;
}

.diagram-filament-shimmer {
  stroke: rgba(245, 252, 255, 0.54);
  stroke-width: 0.18;
  stroke-dasharray: 0.18 5.6;
  animation: filamentShimmer 8.5s linear infinite;
}

.diagram-photon-burst {
  mix-blend-mode: screen;
  transform-box: fill-box;
  transform-origin: center;
}

.diagram-pulse,
.diagram-atom {
  transform-box: fill-box;
  transform-origin: center;
}

.diagram-pulse {
  animation: photonThrob 1.9s ease-in-out infinite alternate;
}

.diagram-atom {
  opacity: 0.88;
  animation: atomOrbit 2.2s linear infinite;
}

.diagram-atom-b {
  animation-duration: 1.75s;
  animation-direction: reverse;
}

.diagram-photon-orange {
  filter: drop-shadow(0 0 5px rgba(255, 154, 82, 0.72)) drop-shadow(0 0 10px rgba(255, 154, 82, 0.18));
}

.diagram-photon-orange .diagram-pulse,
.diagram-photon-orange .diagram-atom {
  fill: url(#diagram-photon-orange);
}

.diagram-photon-blue,
.diagram-photon-cyan {
  filter: drop-shadow(0 0 5px rgba(111, 215, 255, 0.72)) drop-shadow(0 0 10px rgba(111, 215, 255, 0.18));
}

.diagram-photon-blue .diagram-pulse,
.diagram-photon-blue .diagram-atom,
.diagram-photon-cyan .diagram-pulse {
  fill: url(#diagram-photon-blue);
}

.diagram-photon-purple {
  filter: drop-shadow(0 0 5px rgba(199, 156, 255, 0.7)) drop-shadow(0 0 10px rgba(199, 156, 255, 0.16));
}

.diagram-photon-purple .diagram-pulse,
.diagram-photon-purple .diagram-atom {
  fill: url(#diagram-photon-purple);
}

.diagram-node {
  position: absolute;
  transform: translate(-50%, -50%);
}

.diagram-node-meta {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: max-content;
  pointer-events: none;
}

.diagram-node-label,
.diagram-node-value {
  display: inline-flex;
  width: fit-content;
  max-width: 11rem;
  padding: 0.3rem 0.58rem;
  border-radius: 999px;
  border: 1px solid rgba(160, 172, 255, 0.14);
  background: rgba(11, 13, 27, 0.84);
  box-shadow: 0 0 14px rgba(111, 215, 255, 0.06);
  white-space: nowrap;
  text-transform: uppercase;
}

.diagram-node-label {
  color: var(--text-soft);
  font-size: clamp(0.55rem, 0.62vw, 0.68rem);
  letter-spacing: 0.16em;
}

.diagram-node-value {
  color: var(--text-muted);
  font-size: clamp(0.49rem, 0.54vw, 0.59rem);
  letter-spacing: 0.12em;
}

.diagram-node-shell {
  width: clamp(46px, 3.9vw, 60px);
  height: clamp(46px, 3.9vw, 60px);
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px solid rgba(160, 172, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(28, 27, 52, 0.92), rgba(10, 11, 23, 0.92));
  box-shadow:
    0 0 0 1px rgba(111, 215, 255, 0.05),
    0 10px 26px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.diagram-node-shell svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.diagram-node-china {
  top: var(--china-y);
  left: var(--china-x);
  color: #ffb067;
}

.diagram-node-china .diagram-node-meta {
  left: calc(100% + 0.85rem);
  top: 50%;
  transform: translateY(-50%);
  align-items: flex-start;
}

.diagram-node-jakarta {
  top: var(--jakarta-y);
  left: var(--jakarta-x);
  color: #83dfff;
}

.diagram-node-jakarta .diagram-node-meta {
  left: calc(100% + 0.9rem);
  top: 50%;
  transform: translateY(-50%);
  align-items: flex-start;
}

.diagram-node-sydney {
  top: var(--sydney-y);
  left: var(--sydney-x);
  color: #7ed7ff;
}

.diagram-node-sydney .diagram-node-meta {
  right: calc(100% + 0.85rem);
  top: 50%;
  transform: translateY(-50%);
  align-items: flex-end;
}

.diagram-node-user {
  top: var(--user-y);
  left: var(--user-x);
  color: #d2aeff;
}

.diagram-node-user .diagram-node-meta {
  right: calc(100% + 0.9rem);
  top: 50%;
  transform: translateY(-50%);
  align-items: flex-end;
}

.diagram-az-orbit,
.diagram-az-dot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.diagram-az-orbit {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(111, 215, 255, 0.26);
}

.diagram-az-orbit-outer {
  --az-ring-size: clamp(80px, 7vw, 104px);
  width: var(--az-ring-size);
  height: var(--az-ring-size);
  border-color: rgba(111, 215, 255, 0.28);
  animation: orbitSpin 12s linear infinite;
}

.diagram-az-orbit-inner {
  --az-ring-size: clamp(62px, 5.5vw, 82px);
  width: var(--az-ring-size);
  height: var(--az-ring-size);
  border-color: rgba(199, 156, 255, 0.22);
  animation: orbitSpinReverse 8s linear infinite;
}

.diagram-az-orbit-orange {
  --az-ring-size: clamp(96px, 8.2vw, 120px);
  width: var(--az-ring-size);
  height: var(--az-ring-size);
  border-color: rgba(255, 154, 82, 0.24);
  animation: orbitSpin 15s linear infinite;
}

.diagram-az-dot {
  --az-dot-size: 7px;
  --az-dot-angle: 0deg;
  --az-dot-radius: calc((var(--az-ring-size) - var(--az-dot-size)) / 2);
  left: 50%;
  top: 50%;
  width: var(--az-dot-size);
  height: var(--az-dot-size);
  background: radial-gradient(circle, rgba(111, 215, 255, 0.95), rgba(111, 215, 255, 0.15));
  box-shadow: 0 0 12px rgba(111, 215, 255, 0.42);
  transform: translate(-50%, -50%) rotate(var(--az-dot-angle)) translateX(var(--az-dot-radius));
  transform-origin: center;
  animation: azOrbit 5.2s linear infinite;
}

.diagram-az-dot-a {
  --az-ring-size: clamp(80px, 7vw, 104px);
  --az-dot-angle: 0deg;
}

.diagram-az-dot-b {
  --az-ring-size: clamp(62px, 5.5vw, 82px);
  --az-dot-angle: 120deg;
  background: radial-gradient(circle, rgba(199, 156, 255, 0.95), rgba(199, 156, 255, 0.15));
  box-shadow: 0 0 12px rgba(199, 156, 255, 0.38);
  animation-duration: 4.6s;
}

.diagram-az-dot-c {
  --az-ring-size: clamp(96px, 8.2vw, 120px);
  --az-dot-angle: 240deg;
  background: radial-gradient(circle, rgba(255, 154, 82, 0.95), rgba(255, 154, 82, 0.15));
  box-shadow: 0 0 12px rgba(255, 154, 82, 0.34);
  animation-duration: 5.9s;
}

.topbar {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 5;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.window-dots {
  display: inline-flex;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-soft);
  backdrop-filter: blur(14px);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  padding: 0;
  border: 0;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.dot:hover,
.dot:focus-visible {
  transform: scale(1.08);
  filter: brightness(1.08);
}

.dot-close {
  background: linear-gradient(180deg, #ffb074, #ff8a4d);
}

.dot-minimize {
  background: linear-gradient(180deg, #d7b8ff, #b58dff);
}

.dot-maximize {
  background: linear-gradient(180deg, #8ce6ff, #5fcfff);
}

.dot::before,
.dot::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.window-dots:hover .dot::before,
.window-dots:hover .dot::after,
.window-dots:focus-within .dot::before,
.window-dots:focus-within .dot::after {
  opacity: 0.72;
}

.dot-close::before {
  width: 5px;
  height: 1.4px;
  background: rgba(73, 28, 6, 0.92);
  transform: rotate(45deg);
}

.dot-close::after {
  width: 5px;
  height: 1.4px;
  background: rgba(73, 28, 6, 0.92);
  transform: rotate(-45deg);
}

.dot-minimize::before {
  width: 5px;
  height: 1.4px;
  background: rgba(46, 22, 78, 0.92);
}

.dot-maximize::before {
  width: 5px;
  height: 5px;
  border: 1.3px solid rgba(9, 52, 78, 0.92);
  border-radius: 1px;
}

.topbar-title {
  justify-self: center;
  max-width: min(34rem, 100%);
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-soft);
  backdrop-filter: blur(14px);
  color: var(--text-soft);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.clock-chip,
.menu-toggle {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-soft);
  backdrop-filter: blur(14px);
  color: var(--text-soft);
}

.clock-chip,
.menu-toggle {
  padding: 0.7rem 0.9rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.65rem;
  padding-inline: 1rem 1.1rem;
  border-color: rgba(199, 156, 255, 0.24);
  background: linear-gradient(180deg, rgba(37, 31, 64, 0.92), rgba(18, 17, 34, 0.9));
  color: var(--text);
  font-weight: 600;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(111, 215, 255, 0.03);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

.menu-toggle-icon {
  position: relative;
  width: 1rem;
  height: 0.75rem;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  border-radius: 1px;
  opacity: 0.92;
}

.menu-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% - 1px);
  border-top: 2px solid currentColor;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(199, 156, 255, 0.46);
  background: linear-gradient(180deg, rgba(56, 44, 92, 0.96), rgba(26, 22, 46, 0.92));
  color: var(--text);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.34),
    0 0 22px rgba(199, 156, 255, 0.2);
}

.workspace {
  position: relative;
  z-index: 2;
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  min-height: 0;
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  gap: 1rem;
  padding: 5.5rem 1rem 1rem;
}

.explorer-panel,
.content-window {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.explorer-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  min-height: calc(100vh - 6.5rem);
  border-radius: 20px;
  overflow: hidden;
}

.explorer-head,
.explorer-foot {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.explorer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.explorer-head p,
.explorer-head small,
.explorer-foot span {
  display: block;
}

.explorer-close {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: var(--text-soft);
  border: 1px solid rgba(160, 172, 255, 0.12);
  background: rgba(199, 156, 255, 0.08);
  transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

.explorer-close:hover,
.explorer-close:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(199, 156, 255, 0.34);
  background: rgba(199, 156, 255, 0.14);
  color: var(--text);
}

.explorer-head p,
.section-label,
.micro-label {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.explorer-head small,
.explorer-foot span {
  color: var(--text-soft);
  margin-top: 0.35rem;
}

.profile-mini {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0.8rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.profile-mini img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 50%;
  border: 0;
}

.profile-mini strong,
.profile-mini span {
  display: block;
}

.profile-mini span {
  color: var(--text-soft);
  font-size: 0.87rem;
  line-height: 1.4;
}

.file-list,
.panel-group {
  padding: 0.5rem 0.8rem;
}

.file-list {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.panel-group {
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
}

.file-item {
  width: 100%;
  display: grid;
  grid-template-columns: 1.7rem 1fr;
  gap: 0.55rem;
  align-items: center;
  padding: 0.82rem 0.9rem;
  border-radius: 12px;
  color: var(--text-soft);
  text-align: left;
  transition: background-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.file-item:hover,
.file-item:focus-visible,
.file-item.active {
  background: rgba(199, 156, 255, 0.14);
  color: var(--text);
  transform: translateX(2px);
}

.file-icon {
  color: var(--purple);
  font-family: "SFMono-Regular", "Consolas", monospace;
}

.file-item-terminal {
  border: 1px solid rgba(111, 215, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(20, 27, 43, 0.94), rgba(12, 16, 28, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 0 1px rgba(111, 215, 255, 0.03);
}

.file-item-quiz {
  border: 1px solid rgba(199, 156, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(40, 26, 56, 0.9), rgba(24, 18, 40, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 0 1px rgba(199, 156, 255, 0.04);
}

.file-item-terminal:hover,
.file-item-terminal:focus-visible,
.file-item-terminal.active {
  border-color: rgba(111, 215, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(25, 37, 58, 0.98), rgba(15, 22, 38, 0.94));
}

.file-item-quiz:hover,
.file-item-quiz:focus-visible,
.file-item-quiz.active {
  border-color: rgba(199, 156, 255, 0.3);
  background:
    linear-gradient(180deg, rgba(54, 34, 72, 0.96), rgba(30, 22, 48, 0.92));
}

.file-icon-terminal {
  color: #8fe5ff;
  text-shadow: 0 0 12px rgba(111, 215, 255, 0.25);
}

.file-icon-quiz {
  color: #d1a7ff;
  text-shadow: 0 0 12px rgba(199, 156, 255, 0.22);
}

.explorer-foot {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.social-mini {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.social-mini a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(199, 156, 255, 0.08);
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: lowercase;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.social-mini a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-mini a:hover,
.social-mini a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(199, 156, 255, 0.32);
  box-shadow: 0 0 18px rgba(199, 156, 255, 0.18);
}

.map-stage {
  position: relative;
  min-height: 0;
  height: 100%;
  border-radius: 24px;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--purple);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.terminal-fab {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(199, 156, 255, 0.9), rgba(111, 215, 255, 0.9));
  color: #171327;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16),
    0 0 24px rgba(199, 156, 255, 0.45),
    0 12px 34px rgba(0, 0, 0, 0.34);
  font-family: "SFMono-Regular", "Consolas", monospace;
  font-size: 1.2rem;
  isolation: isolate;
  z-index: 4;
  animation: terminalFloat 3.2s ease-in-out infinite;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.terminal-fab::before,
.terminal-fab::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.terminal-fab::before {
  inset: -7px;
  z-index: -1;
  border: 1px solid rgba(199, 156, 255, 0.34);
  border-radius: inherit;
  animation: terminalBeacon 1.8s ease-out infinite;
}

.terminal-fab::after {
  content: "Open terminal";
  right: calc(100% + 0.7rem);
  top: 50%;
  transform: translateY(-50%);
  width: max-content;
  padding: 0.42rem 0.65rem;
  border: 1px solid rgba(111, 215, 255, 0.16);
  border-radius: 999px;
  background: rgba(11, 13, 27, 0.9);
  color: var(--text-soft);
  box-shadow: 0 0 18px rgba(111, 215, 255, 0.12);
  font-family: "Avenir Next", "Segoe UI Variable", "Segoe UI", sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.terminal-fab:hover,
.terminal-fab:focus-visible {
  transform: translateY(-3px) scale(1.03);
  filter: brightness(1.06);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2),
    0 0 34px rgba(199, 156, 255, 0.56),
    0 18px 42px rgba(0, 0, 0, 0.4);
}

.window-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(7, 7, 16, 0.28);
  backdrop-filter: blur(10px);
  overflow: auto;
}

.window-overlay[hidden] {
  display: none !important;
}

.content-window {
  width: min(1120px, 100%);
  height: min(760px, calc(100dvh - 3rem));
  max-height: calc(100dvh - 3rem);
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.window-header,
.window-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background: var(--panel-soft);
}

.window-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  color: var(--text-muted);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

.window-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.window-switcher[hidden] {
  display: none !important;
}

.window-switch-button {
  padding: 0.42rem 0.62rem;
  border: 1px solid rgba(160, 172, 255, 0.14);
  border-radius: 999px;
  background: rgba(199, 156, 255, 0.06);
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

.window-switch-button:hover,
.window-switch-button:focus-visible,
.window-switch-button.is-active {
  transform: translateY(-1px);
  border-color: rgba(199, 156, 255, 0.3);
  background: rgba(199, 156, 255, 0.14);
  color: var(--text);
}

.window-title-group {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  margin-right: auto;
}

.window-title-group h2 {
  margin: 0;
  font-size: 0.88rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.window-icon {
  color: var(--purple);
  font-family: "SFMono-Regular", "Consolas", monospace;
}

.back-window {
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(160, 172, 255, 0.16);
  border-radius: 12px;
  background: rgba(111, 215, 255, 0.08);
  color: var(--text-soft);
  white-space: nowrap;
  transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

.back-window:hover,
.back-window:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(111, 215, 255, 0.32);
  background: rgba(111, 215, 255, 0.14);
  color: var(--text);
}

.close-window {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #ff92af;
  border: 1px solid transparent;
  flex: 0 0 auto;
}

.close-window:hover,
.close-window:focus-visible {
  border-color: rgba(255, 146, 175, 0.32);
  background: rgba(255, 146, 175, 0.08);
}

.window-body {
  padding: 1.5rem;
  background: rgba(23, 23, 39, 0.92);
  overflow: auto;
  min-height: 0;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.content-panel {
  display: none;
}

.content-panel.is-active {
  display: block;
}

.content-hero {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 1.4rem;
}

.content-badge {
  width: 112px;
  height: 112px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: rgba(199, 156, 255, 0.12);
  border: 1px solid var(--line);
  color: var(--purple);
  font-family: "SFMono-Regular", "Consolas", monospace;
  font-size: 2rem;
}

.content-panel h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.content-panel p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

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

.info-card,
.stack-card,
.contact-card {
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(16, 18, 35, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.info-card strong,
.stack-card strong,
.contact-card strong {
  display: block;
  margin: 0.4rem 0 0.5rem;
  font-size: 1.05rem;
}

.tag-board {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1rem 0 1.4rem;
}

.tag-board span {
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(199, 156, 255, 0.08);
  color: var(--text);
}

.stack-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
}

.contact-card {
  text-decoration: none;
}

.info-card:hover,
.stack-card:hover,
.contact-card:hover,
.info-card:focus-within,
.stack-card:focus-within,
.contact-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(199, 156, 255, 0.34);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18), 0 0 24px rgba(199, 156, 255, 0.14), 0 0 20px rgba(111, 215, 255, 0.08);
}

.stack-card a {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--cyan);
  text-decoration: none;
  word-break: break-word;
}

.content-panel-terminal {
  height: 100%;
}

.terminal-window {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  min-height: 620px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #141320;
}

.terminal-toolbar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
  font-family: "SFMono-Regular", "Consolas", monospace;
  font-size: 0.82rem;
}

.term-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.term-dot-close {
  background: linear-gradient(180deg, #ffb074, #ff8a4d);
}

.term-dot-minimize {
  background: linear-gradient(180deg, #d7b8ff, #b58dff);
}

.term-dot-maximize {
  background: linear-gradient(180deg, #8ce6ff, #5fcfff);
}

.terminal-output {
  padding: 1.25rem;
  font-family: "SFMono-Regular", "Consolas", monospace;
  color: #cfd6f4;
  overflow: auto;
  min-height: 0;
}

.terminal-input-bar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: center;
  padding: 0.95rem 1rem 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.terminal-prompt {
  font-family: "SFMono-Regular", "Consolas", monospace;
  color: #caa8ff;
  font-size: 0.92rem;
}

.terminal-input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #e5e9ff;
  font-family: "SFMono-Regular", "Consolas", monospace;
  font-size: 0.95rem;
}

.terminal-input::placeholder {
  color: #6e7596;
}

.terminal-line {
  margin: 0 0 0.8rem;
  white-space: pre-wrap;
  line-height: 1.7;
}

.terminal-line.command {
  color: #87f0c4;
}

.terminal-line.meta {
  color: #97b9ff;
}

.terminal-line.response {
  color: #d7dbef;
}

.terminal-commands {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 1rem;
  border-top: 1px solid var(--line);
}

.terminal-chip {
  padding: 0.56rem 0.82rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(199, 156, 255, 0.08);
}

.cursor {
  display: inline-block;
  width: 0.7ch;
  animation: blink 0.9s steps(1) infinite;
}

:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

@media (max-width: 1180px) {
  .architecture-board {
    left: calc(var(--sidebar-width) + 1.4rem);
    right: 0.8rem;
    bottom: 0.8rem;
  }

  .diagram-frame {
    top: 12%;
    left: 6%;
    width: 88%;
    height: 70%;
  }

  .architecture-diagram {
    top: 12%;
    left: 6%;
    width: 88%;
    height: 70%;
  }

  .diagram-title-chip {
    min-width: min(16rem, 74%);
    font-size: 0.64rem;
  }

  .diagram-node-label,
  .diagram-node-value {
    max-width: 9.5rem;
  }

  .topbar-title {
    max-width: 420px;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

}

@media (max-width: 980px) {
  body {
    overflow: hidden;
  }

  .app-shell {
    height: 100dvh;
    min-height: 100dvh;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  .topbar-title {
    display: block;
    max-width: min(43vw, 28rem);
    padding: 0.52rem 0.8rem;
    font-size: clamp(0.54rem, 1.25vw, 0.68rem);
    letter-spacing: 0.14em;
  }

  .workspace {
    grid-template-columns: 1fr;
    height: 100dvh;
    min-height: 0;
    gap: 0.8rem;
    padding: 5.35rem 0.8rem 0.8rem;
  }

  .explorer-panel {
    position: absolute;
    top: 5.8rem;
    left: 0.8rem;
    width: min(320px, calc(100vw - 2rem));
    min-height: auto;
    max-height: calc(100dvh - 6.6rem);
    z-index: 10;
    transform: translateX(-112%);
    transition: transform 0.28s ease;
  }

  .explorer-panel.is-open {
    transform: translateX(0);
  }

  .explorer-close {
    display: inline-grid;
    place-items: center;
  }

  .map-stage {
    height: 100%;
    min-height: 0;
  }

  .content-hero,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .content-hero {
    gap: 1rem;
    margin-bottom: 1.2rem;
  }

  .content-window {
    height: calc(100dvh - 1.8rem);
    max-height: calc(100dvh - 1.8rem);
    border-radius: 20px;
  }

  .architecture-board {
    top: 5.8rem;
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.8rem;
    border-radius: 24px;
  }

  .glow-orb-sun {
    width: 15rem;
    height: 15rem;
    left: calc(var(--china-x) - 7.5rem);
    top: calc(var(--china-y) - 7.5rem);
  }

  .glow-orb-nil {
    width: 18rem;
    height: 18rem;
    left: calc(var(--user-x) - 9rem);
    top: calc(var(--user-y) - 9rem);
  }

  .diagram-frame {
    top: 12%;
    left: 5%;
    width: 90%;
    height: 70%;
    border-radius: 24px;
  }

  .architecture-diagram {
    top: 12%;
    left: 5%;
    width: 90%;
    height: 70%;
  }

  .window-header,
  .window-footer {
    padding: 0.95rem 1rem;
  }

  .window-footer {
    justify-content: center;
  }

  .window-switcher {
    order: 3;
    width: 100%;
  }

  .back-window {
    padding: 0.5rem 0.72rem;
    font-size: 0.82rem;
  }

  .window-body {
    padding: 1.15rem;
  }

  .window-title-group h2 {
    font-size: 0.8rem;
    letter-spacing: 0.14em;
  }

  .content-badge {
    width: 84px;
    height: 84px;
    font-size: 1.55rem;
  }

  .content-panel h3 {
    font-size: clamp(1.45rem, 4.5vw, 2.2rem);
    line-height: 1.08;
  }

  .content-panel p {
    font-size: 0.95rem;
  }

  .info-card,
  .stack-card,
  .contact-card {
    padding: 0.9rem;
    border-radius: 16px;
  }

  .tag-board {
    gap: 0.55rem;
    margin: 0.9rem 0 1.2rem;
  }

  .tag-board span {
    padding: 0.52rem 0.72rem;
    font-size: 0.9rem;
  }

  .stack-list {
    gap: 0.85rem;
  }

  .diagram-title-chip {
    top: 3.4%;
    min-width: min(13rem, 74%);
    padding: 0.64rem 1rem;
    font-size: 0.6rem;
  }

  .diagram-network {
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .diagram-node-shell {
    width: 52px;
    height: 52px;
  }

  .diagram-node-label,
  .diagram-node-value {
    max-width: 8.8rem;
  }

}

@media (max-width: 640px) {
  .topbar {
    left: 0.7rem;
    right: 0.7rem;
    gap: 0.6rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .workspace {
    padding: 5.1rem 0.7rem 0.7rem;
  }

  .clock-chip {
    display: none;
  }

  .topbar-title {
    max-width: none;
    padding: 0.48rem 0.62rem;
    border-radius: 14px;
    font-size: 0.5rem;
    letter-spacing: 0.11em;
  }

  .topbar-actions {
    justify-self: end;
  }

  .menu-toggle {
    padding: 0.72rem 0.95rem;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }

  .explorer-head,
  .explorer-foot,
  .profile-mini {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .file-list,
  .panel-group {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }

  .profile-mini {
    grid-template-columns: 46px 1fr;
    gap: 0.65rem;
  }

  .profile-mini img {
    width: 46px;
    height: 46px;
  }

  .profile-mini span {
    font-size: 0.82rem;
  }

  .file-item {
    padding: 0.76rem 0.82rem;
    font-size: 0.95rem;
  }

  .architecture-board {
    top: 5.5rem;
    left: 0.45rem;
    right: 0.45rem;
    bottom: 0.45rem;
    border-radius: 20px;
  }

  .glow-orb-sun {
    width: 13rem;
    height: 13rem;
    left: calc(var(--china-x) - 6.5rem);
    top: calc(var(--china-y) - 6.5rem);
  }

  .glow-orb-nil {
    width: 15rem;
    height: 15rem;
    left: calc(var(--user-x) - 7.5rem);
    top: calc(var(--user-y) - 7.5rem);
  }

  .diagram-frame {
    top: 12%;
    left: 5%;
    width: 90%;
    height: 68%;
    border-radius: 28px;
    box-shadow:
      0 0 0 1px rgba(199, 156, 255, 0.08),
      0 0 18px rgba(111, 215, 255, 0.12),
      0 0 30px rgba(111, 215, 255, 0.06),
      inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  }

  .architecture-diagram {
    top: 12%;
    left: 5%;
    width: 90%;
    height: 68%;
  }

  .map-stage {
    height: 100%;
    min-height: 0;
  }

  .diagram-title-chip {
    top: 4%;
    min-width: min(9.8rem, 74%);
    padding: 0.52rem 0.8rem;
    font-size: 0.48rem;
    letter-spacing: 0.1em;
  }

  .diagram-network {
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .diagram-node-shell {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .diagram-node-label,
  .diagram-node-value {
    max-width: 7.8rem;
    padding: 0.24rem 0.46rem;
  }

  .diagram-node-label {
    font-size: 0.44rem;
    letter-spacing: 0.1em;
  }

  .diagram-node-value {
    font-size: 0.4rem;
    letter-spacing: 0.08em;
  }

  .diagram-node-shell svg {
    width: 19px;
    height: 19px;
  }

  .diagram-node-china .diagram-node-meta {
    right: auto;
    left: calc(100% + 0.55rem);
    align-items: flex-start;
  }

  .diagram-node-jakarta .diagram-node-meta {
    left: calc(100% + 0.55rem);
  }

  .diagram-node-sydney .diagram-node-meta,
  .diagram-node-user .diagram-node-meta {
    right: calc(100% + 0.55rem);
  }

  .diagram-az-orbit-outer {
    --az-ring-size: 70px;
    width: var(--az-ring-size);
    height: var(--az-ring-size);
  }

  .diagram-az-orbit-inner {
    --az-ring-size: 54px;
    width: var(--az-ring-size);
    height: var(--az-ring-size);
  }

  .diagram-az-orbit-orange {
    --az-ring-size: 82px;
    width: var(--az-ring-size);
    height: var(--az-ring-size);
  }

  .diagram-az-dot-a {
    --az-ring-size: 70px;
  }

  .diagram-az-dot-b {
    --az-ring-size: 54px;
  }

  .diagram-az-dot-c {
    --az-ring-size: 82px;
  }

  .terminal-fab {
    right: 1rem;
    bottom: 0.8rem;
    width: 60px;
    height: 60px;
    font-size: 1rem;
  }

  .terminal-fab::after {
    display: none;
  }

  .window-overlay {
    padding: 0.4rem;
    align-items: stretch;
  }

  .content-window {
    width: 100%;
    height: calc(100dvh - 0.8rem);
    max-height: calc(100dvh - 0.8rem);
    border-radius: 18px;
  }

  .window-header,
  .window-footer {
    padding: 0.9rem 1rem;
  }

  .window-footer {
    justify-content: center;
    gap: 0.7rem;
  }

  .window-switch-button {
    padding: 0.38rem 0.56rem;
    font-size: 0.62rem;
  }

  .back-window {
    padding: 0.46rem 0.64rem;
    font-size: 0.76rem;
  }

  .window-body {
    padding: 1rem;
  }

  .window-title-group {
    gap: 0.55rem;
  }

  .window-title-group h2 {
    font-size: 0.74rem;
    letter-spacing: 0.12em;
  }

  .close-window {
    width: 36px;
    height: 36px;
  }

  .content-badge {
    width: 72px;
    height: 72px;
    font-size: 1.3rem;
  }

  .content-panel h3 {
    font-size: 1.35rem;
    line-height: 1.12;
  }

  .content-panel p {
    font-size: 0.9rem;
    line-height: 1.65;
  }

  .info-card strong,
  .stack-card strong,
  .contact-card strong {
    font-size: 0.98rem;
  }

  .tag-board span {
    font-size: 0.82rem;
  }

  .terminal-window {
    min-height: 0;
    height: 100%;
  }

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

@media (max-width: 420px) {
  .topbar {
    top: 0.58rem;
    left: 0.55rem;
    right: 0.55rem;
    gap: 0.5rem;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .window-dots {
    display: none;
  }

  .topbar-title {
    justify-self: stretch;
    min-width: 0;
    padding: 0.58rem 0.7rem;
    font-size: clamp(0.5rem, 2.1vw, 0.58rem);
    letter-spacing: 0.12em;
  }

  .topbar-actions {
    min-width: max-content;
  }

  .clock-chip {
    display: none;
  }

  .menu-toggle {
    padding: 0.62rem 0.78rem;
    border-radius: 18px;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }

  .workspace {
    padding: 4.35rem 0.45rem 0.45rem;
  }

  .explorer-panel {
    top: 5.5rem;
    left: 0.45rem;
    width: calc(100vw - 0.9rem);
    max-height: calc(100dvh - 6rem);
    border-radius: 18px;
  }

  .explorer-head,
  .explorer-foot,
  .profile-mini {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  .file-list,
  .panel-group {
    padding-left: 0.55rem;
    padding-right: 0.55rem;
  }

  .file-item {
    padding: 0.72rem 0.76rem;
    font-size: 0.9rem;
  }

  .architecture-board {
    top: 4.8rem;
    left: 0.35rem;
    right: 0.35rem;
    bottom: 0.35rem;
    border-radius: 18px;
  }

  .glow-orb-sun {
    width: 11rem;
    height: 11rem;
    left: calc(var(--china-x) - 5.5rem);
    top: calc(var(--china-y) - 5.5rem);
  }

  .glow-orb-nil {
    width: 13rem;
    height: 13rem;
    left: calc(var(--user-x) - 6.5rem);
    top: calc(var(--user-y) - 6.5rem);
  }

  .diagram-frame,
  .architecture-diagram {
    top: 9%;
    left: 4%;
    width: 92%;
    height: 68%;
  }

  .diagram-title-chip {
    top: 4.2%;
    min-width: min(9.2rem, 78%);
    padding: 0.48rem 0.7rem;
    font-size: 0.45rem;
  }

  .diagram-network {
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .diagram-node-shell {
    width: 42px;
    height: 42px;
  }

  .diagram-node-shell svg {
    width: 18px;
    height: 18px;
  }

  .diagram-node-label,
  .diagram-node-value {
    max-width: 6.4rem;
    padding: 0.22rem 0.42rem;
  }

  .diagram-node-label {
    font-size: 0.41rem;
  }

  .diagram-node-value {
    font-size: 0.37rem;
  }

  .diagram-node-china .diagram-node-meta {
    right: auto;
    left: calc(100% + 0.4rem);
    align-items: flex-start;
  }

  .diagram-node-sydney .diagram-node-meta,
  .diagram-node-user .diagram-node-meta {
    left: auto;
    right: calc(100% + 0.4rem);
    align-items: flex-end;
  }

  .diagram-node-jakarta .diagram-node-meta {
    left: calc(100% + 0.4rem);
  }

  .diagram-az-orbit-outer {
    --az-ring-size: 64px;
    width: var(--az-ring-size);
    height: var(--az-ring-size);
  }

  .diagram-az-orbit-inner {
    --az-ring-size: 50px;
    width: var(--az-ring-size);
    height: var(--az-ring-size);
  }

  .diagram-az-orbit-orange {
    --az-ring-size: 74px;
    width: var(--az-ring-size);
    height: var(--az-ring-size);
  }

  .diagram-az-dot-a {
    --az-ring-size: 64px;
  }

  .diagram-az-dot-b {
    --az-ring-size: 50px;
  }

  .diagram-az-dot-c {
    --az-ring-size: 74px;
  }

  .content-window {
    height: calc(100dvh - 0.45rem);
    max-height: calc(100dvh - 0.45rem);
    border-radius: 16px;
  }

  .window-header,
  .window-footer,
  .window-body {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .window-switch-button {
    padding: 0.34rem 0.5rem;
    font-size: 0.58rem;
  }

  .back-window {
    padding: 0.42rem 0.58rem;
    font-size: 0.72rem;
  }

  .window-title-group h2 {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }

  .content-panel h3 {
    font-size: 1.22rem;
  }

  .content-panel p {
    font-size: 0.86rem;
  }

  .info-card,
  .stack-card,
  .contact-card {
    padding: 0.82rem;
  }

  .terminal-toolbar {
    padding: 0.72rem 0.8rem;
    font-size: 0.74rem;
  }

  .terminal-output {
    padding: 0.95rem 0.8rem;
    font-size: 0.84rem;
  }

  .terminal-input-bar {
    grid-template-columns: 1fr;
    gap: 0.42rem;
    padding: 0.8rem;
  }

  .terminal-prompt,
  .terminal-input {
    font-size: 0.82rem;
  }

  .terminal-commands {
    gap: 0.4rem;
    padding: 0.8rem;
  }

  .terminal-chip {
    padding: 0.46rem 0.62rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 1280px) and (max-height: 760px) and (pointer: coarse) {
  :root {
    --sidebar-width: 0px;
  }

  .topbar {
    top: 0.45rem;
    left: 0.55rem;
    right: 0.55rem;
    gap: 0.45rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .window-dots {
    padding: 0.42rem 0.62rem;
    border-radius: 14px;
  }

  .topbar-title {
    max-width: none;
    padding: 0.42rem 0.7rem;
    font-size: 0.5rem;
    letter-spacing: 0.12em;
  }

  .clock-chip {
    display: inline-flex;
    padding: 0.52rem 0.72rem;
    font-size: 0.6rem;
  }

  .menu-toggle {
    display: inline-flex;
    padding: 0.52rem 0.78rem;
    font-size: 0.62rem;
  }

  .workspace {
    grid-template-columns: 1fr;
    padding: 3.65rem 0.55rem 0.55rem;
  }

  .architecture-board {
    top: 3.7rem;
    left: 0.55rem;
    right: 0.55rem;
    bottom: 0.55rem;
    border-radius: 18px;
  }

  .diagram-frame,
  .architecture-diagram {
    top: 9%;
    left: 7%;
    width: 86%;
    height: 62%;
  }

  .diagram-title-chip {
    top: 3.2%;
    padding: 0.42rem 0.75rem;
    font-size: 0.44rem;
  }

  .diagram-node-shell {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .diagram-node-shell svg {
    width: 17px;
    height: 17px;
  }

  .diagram-node-label,
  .diagram-node-value {
    max-width: 7.6rem;
    padding: 0.2rem 0.42rem;
  }

  .diagram-node-label {
    font-size: 0.4rem;
    letter-spacing: 0.09em;
  }

  .diagram-node-value {
    font-size: 0.36rem;
    letter-spacing: 0.08em;
  }

  .terminal-fab {
    right: 0.9rem;
    bottom: 0.9rem;
    width: 52px;
    height: 52px;
    font-size: 0.92rem;
  }

  .terminal-fab::after {
    display: none;
  }

  .explorer-panel {
    position: absolute;
    top: 3.7rem;
    left: 0.55rem;
    width: min(300px, calc(100vw - 1.1rem));
    min-height: auto;
    max-height: calc(100dvh - 4.25rem);
    border-radius: 16px;
    z-index: 10;
    transform: translateX(-112%);
    transition: transform 0.28s ease;
  }

  .explorer-panel.is-open {
    transform: translateX(0);
  }

  .explorer-close {
    display: inline-grid;
    place-items: center;
  }

  .explorer-head,
  .profile-mini,
  .explorer-foot {
    padding: 0.62rem 0.8rem;
  }

  .explorer-head p,
  .section-label {
    font-size: 0.58rem;
    letter-spacing: 0.16em;
  }

  .explorer-head small,
  .explorer-foot span {
    font-size: 0.75rem;
  }

  .profile-mini {
    grid-template-columns: 36px 1fr;
    gap: 0.55rem;
  }

  .profile-mini img {
    width: 36px;
    height: 36px;
  }

  .profile-mini strong {
    font-size: 0.86rem;
  }

  .profile-mini span {
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .file-list,
  .panel-group {
    padding: 0.38rem 0.55rem;
  }

  .file-item {
    padding: 0.5rem 0.65rem;
    font-size: 0.82rem;
    border-radius: 10px;
  }

  .explorer-foot {
    display: none;
  }

  .content-window {
    height: calc(100dvh - 0.6rem);
    max-height: calc(100dvh - 0.6rem);
  }
}

@media (max-width: 760px) and (max-height: 560px) {
  .clock-chip {
    display: none;
  }

  .topbar-title {
    padding: 0.38rem 0.5rem;
    font-size: 0.42rem;
    letter-spacing: 0.08em;
  }

  .menu-toggle {
    padding: 0.48rem 0.62rem;
    font-size: 0.56rem;
  }

  .diagram-title-chip {
    max-width: 58%;
    min-width: 0;
  }

  .diagram-node-label,
  .diagram-node-value {
    max-width: 6.3rem;
  }

  .explorer-panel {
    width: min(280px, calc(100vw - 1.1rem));
  }

  .file-item {
    padding: 0.45rem 0.58rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 640px) {
  .clock-chip {
    display: none;
  }
}

@media (max-width: 420px) {
  .topbar {
    top: 0.58rem;
    left: 0.55rem;
    right: 0.55rem;
    gap: 0.5rem;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .window-dots {
    display: none;
  }

  .topbar-title {
    justify-self: stretch;
    min-width: 0;
    padding: 0.58rem 0.7rem;
    font-size: clamp(0.5rem, 2.1vw, 0.58rem);
    letter-spacing: 0.12em;
  }

  .topbar-actions {
    min-width: max-content;
  }

  .menu-toggle {
    padding: 0.62rem 0.78rem;
    border-radius: 18px;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }

  .workspace {
    padding: 4.35rem 0.45rem 0.45rem;
  }

  .architecture-board {
    top: 4.8rem;
    left: 0.35rem;
    right: 0.35rem;
    bottom: 0.35rem;
  }

  .diagram-frame,
  .architecture-diagram {
    top: 9%;
    left: 4%;
    width: 92%;
    height: 68%;
  }

  .terminal-fab {
    right: 1rem;
    bottom: 1.55rem;
    width: 56px;
    height: 56px;
  }
}

@media (min-width: 421px) and (max-width: 480px) {
  .topbar {
    top: 0.58rem;
    left: 0.65rem;
    right: 0.65rem;
    gap: 0.55rem;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .window-dots,
  .clock-chip {
    display: none;
  }

  .topbar-title {
    justify-self: stretch;
    min-width: 0;
    padding: 0.58rem 0.76rem;
    font-size: clamp(0.52rem, 2vw, 0.6rem);
    letter-spacing: 0.12em;
  }

  .menu-toggle {
    padding: 0.62rem 0.82rem;
    border-radius: 18px;
    font-size: 0.64rem;
  }

  .terminal-fab {
    bottom: 1.45rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(18px, -20px, 0) scale(1.05);
  }
}

@keyframes terminalFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -6px, 0);
  }
}

@keyframes terminalBeacon {
  0% {
    opacity: 0.55;
    transform: scale(0.9);
  }

  80%,
  100% {
    opacity: 0;
    transform: scale(1.45);
  }
}

@keyframes filamentShimmer {
  from {
    stroke-dashoffset: 0;
  }

  to {
    stroke-dashoffset: -34;
  }
}

@keyframes photonThrob {
  from {
    opacity: 0.68;
    transform: scale(0.88);
  }

  to {
    opacity: 1;
    transform: scale(1.18);
  }
}

@keyframes atomOrbit {
  from {
    transform: rotate(0deg) translateX(1.55px) rotate(0deg);
  }

  to {
    transform: rotate(360deg) translateX(1.55px) rotate(-360deg);
  }
}

@keyframes orbitSpin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes orbitSpinReverse {
  from {
    transform: translate(-50%, -50%) rotate(360deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(0deg);
  }
}

@keyframes azOrbit {
  0% {
    transform: translate(-50%, -50%) rotate(var(--az-dot-angle)) translateX(var(--az-dot-radius));
  }

  100% {
    transform: translate(-50%, -50%) rotate(calc(var(--az-dot-angle) + 360deg)) translateX(var(--az-dot-radius));
  }
}

@keyframes infraPulse {
  0%, 100% {
    opacity: 0;
    transform: scale(0.92) translateY(6px);
  }

  18%, 72% {
    opacity: 0.88;
    transform: scale(1) translateY(0);
  }

  84% {
    opacity: 0;
    transform: scale(1.04) translateY(-4px);
  }
}

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