:root {
  --page: #101014;
  --window: #1e1e1e;
  --window-2: #242427;
  --chrome: rgba(45, 45, 48, 0.9);
  --chrome-soft: rgba(37, 37, 41, 0.82);
  --navigator: #1d1d20;
  --editor: #1f1f22;
  --editor-deep: #19191c;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.13);
  --text: #e8e8ec;
  --text-soft: #b7bac4;
  --muted: #7f8591;
  --preview: #f5f5f7;
  --preview-text: #1d1d1f;
  --preview-muted: #6e6e73;
  --card: #ffffff;
  --accent: #3478f6;
  --accent-strong: #0a84ff;
  --green: #31d158;
  --orange: #ff9f0a;
  --pink: #ff7ab2;
  --red: #ff8170;
  --cyan: #6ac4dc;
  --purple: #dabafe;
  --shadow: none;
  --card-shadow: 0 1px 2px rgba(15, 23, 42, 0.035);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: clamp(10px, 1.8vw, 22px);
  overflow: hidden;
  background: #101014;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0;
}

body.is-launching {
  background: #000000;
}

body.is-launching .ide-frame {
  opacity: 0;
  transform: scale(0.985) translateY(10px);
}

body.app-ready .ide-frame {
  animation: appOpen 560ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button,
a {
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(10, 132, 255, 0.36);
  outline-offset: 2px;
}

a {
  color: inherit;
  text-decoration: none;
}

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

::selection {
  background: rgba(52, 120, 246, 0.34);
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(130, 137, 151, 0.42);
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(160, 166, 178, 0.58);
  background-clip: padding-box;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.launch-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(52, 120, 246, 0.16), transparent 28%),
    #000000;
  color: #ffffff;
}

.launch-loader.is-done {
  pointer-events: none;
  animation: launchAway 520ms ease forwards;
}

.launch-stage {
  position: relative;
  width: 260px;
  height: 220px;
  display: grid;
  place-items: center;
  transform: translateY(-10px);
}

.launch-app-icon {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    #111827;
  box-shadow:
    0 22px 70px rgba(10, 132, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: launchIcon 2400ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.launch-app-icon svg {
  width: 52px;
  height: 52px;
  fill: none;
  stroke: #f8fafc;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.2;
}

.launch-app-label {
  position: absolute;
  top: 156px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.72);
  font-family: "JetBrains Mono", "SF Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0;
  animation: launchLabel 2400ms ease both;
}

.launch-cursor {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  fill: rgba(255, 255, 255, 0.96);
  stroke: rgba(0, 0, 0, 0.55);
  stroke-linejoin: round;
  stroke-width: 1.5;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
  animation: launchCursor 2400ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.launch-click-ring {
  position: absolute;
  left: calc(50% + 30px);
  top: calc(50% + 22px);
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
  animation: launchClick 2400ms ease both;
}

@keyframes launchCursor {
  0% {
    opacity: 0;
    transform: translate(118px, 92px) scale(1);
  }

  16% {
    opacity: 1;
  }

  58% {
    opacity: 1;
    transform: translate(30px, 22px) scale(1);
  }

  66% {
    transform: translate(30px, 22px) scale(0.9);
  }

  74% {
    opacity: 1;
    transform: translate(30px, 22px) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(30px, 22px) scale(1);
  }
}

@keyframes launchClick {
  0%,
  58% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }

  66% {
    opacity: 0.88;
    transform: translate(-50%, -50%) scale(1);
  }

  88%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(3.2);
  }
}

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

  18%,
  58% {
    opacity: 1;
    transform: scale(1);
  }

  66% {
    transform: scale(0.94);
  }

  82% {
    transform: scale(1.08);
  }

  100% {
    opacity: 0;
    transform: scale(1.22);
  }
}

@keyframes launchLabel {
  0%,
  12% {
    opacity: 0;
    transform: translateX(-50%) translateY(4px);
  }

  24%,
  76% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-4px);
  }
}

@keyframes launchAway {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

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

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

.ide-frame {
  width: min(1440px, 100%);
  height: calc(100vh - clamp(20px, 3.6vw, 44px));
  max-height: 920px;
  min-height: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: var(--window);
  box-shadow: var(--shadow);
}

.ide-topbar {
  display: grid;
  grid-template-columns: 92px minmax(120px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.46);
  background: #2d2d2d;
  user-select: none;
}

.traffic-lights {
  display: flex;
  align-items: center;
  gap: 8px;
}

.window-control {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.window-control.close { background: #ff5f57; }
.window-control.minimize { background: #febc2e; }
.window-control.maximize { background: #28c840; }

.workspace-title {
  justify-self: center;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.workspace-title strong {
  max-width: 30ch;
  overflow: hidden;
  color: #d5d7de;
  font-size: 0.79rem;
  font-weight: 720;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-title span {
  max-width: 30ch;
  overflow: hidden;
  margin-top: 3px;
  color: #8a8f9d;
  font-family: "JetBrains Mono", "SF Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.66rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scheme-control {
  display: inline-grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 7px;
  min-height: 29px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 7px;
  background: rgba(20, 20, 23, 0.58);
}

.scheme-control strong,
.scheme-control small {
  font-size: 0.76rem;
  line-height: 1;
}

.scheme-control strong {
  color: #f0f1f4;
  font-weight: 720;
}

.scheme-control small {
  color: #8f96a4;
  font-family: "JetBrains Mono", "SF Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 650;
}

.run-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.top-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.top-actions a,
.top-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.055);
  color: #d8dbe2;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 680;
  white-space: nowrap;
}

.top-actions button {
  border-color: rgba(52, 120, 246, 0.72);
  background: #3478f6;
  color: #ffffff;
}

.top-actions a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.top-actions button:hover {
  background: #236fe8;
}

.top-actions .canvas-toggle {
  flex: 0 0 auto;
  min-width: auto;
  min-height: 26px;
  gap: 7px;
  padding: 0 12px 0 10px;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: #374151;
  color: #f3f4f7;
  font-size: 0.72rem;
}

.canvas-toggle-icon {
  width: 15px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.canvas-toggle-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.canvas-toggle-label {
  line-height: 1;
}

.top-actions .canvas-toggle:hover {
  background: #4b5563;
}

.top-actions .canvas-toggle[aria-pressed="false"] {
  background: #2f3440;
  color: #d8dbe2;
}

.ide-shell {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  overflow: hidden;
  background: var(--window);
}

.explorer {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  border-right: 1px solid rgba(0, 0, 0, 0.52);
  background: var(--navigator);
}

.explorer-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 15px 16px 2px;
}

.explorer-header span {
  color: #8a909d;
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.explorer-header strong {
  overflow: hidden;
  color: #d9dce4;
  font-size: 0.9rem;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-tree {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0 8px 4px;
}

.file-tree::before {
  content: "▾ PortfolioApp";
  display: flex;
  align-items: center;
  min-height: 27px;
  padding: 0 8px;
  color: #c6cad4;
  font-size: 0.8rem;
  font-weight: 700;
}

.file-folder {
  margin: 7px 0;
}

.file-folder-label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 25px;
  padding: 0 8px 0 18px;
  color: #c6cad4;
  font-size: 0.78rem;
  font-weight: 720;
}

.file-folder-label span {
  color: #8a909d;
  font-size: 0.72rem;
}

.file-folder .file-item {
  padding-left: 30px;
}

.file-folder .main-file {
  color: #d4d8e2;
}

.file-item {
  width: 100%;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-height: 36px;
  margin: 1px 0;
  padding: 4px 8px 4px 18px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #aaaebb;
  cursor: pointer;
  text-align: left;
}

.file-item:hover {
  background: rgba(255, 255, 255, 0.055);
  color: #f0f2f7;
}

.file-item.active {
  background: var(--accent);
  color: #ffffff;
}

.file-icon {
  width: 21px;
  height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  color: #8ec5ff;
  font-family: "JetBrains Mono", "SF Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1;
}

.file-icon.case { color: var(--orange); }
.file-icon.json { color: var(--cyan); }
.file-icon.pdf { color: #ff8170; }

.file-item.active .file-icon {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.file-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.file-copy strong,
.file-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-copy strong {
  font-size: 0.8rem;
  font-weight: 690;
  line-height: 1.05;
}

.file-copy small {
  color: inherit;
  opacity: 0.62;
  font-family: "JetBrains Mono", "SF Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.66rem;
}

.explorer-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  margin: 0 10px 12px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.status-dot {
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--green);
}

.explorer-card strong {
  display: block;
  color: #f2f4f8;
  font-size: 0.79rem;
  font-weight: 730;
  line-height: 1.2;
}

.explorer-card p {
  margin: 5px 0 0;
  color: #9096a4;
  font-size: 0.72rem;
  line-height: 1.45;
}

.workspace {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--editor);
}

.tab-bar {
  display: none;
  min-height: 36px;
  align-items: end;
  overflow-x: auto;
  overflow-y: hidden;
  border-bottom: 1px solid rgba(0, 0, 0, 0.45);
  background: #242428;
}

.tab {
  position: relative;
  flex: 0 0 auto;
  min-width: 112px;
  max-width: 170px;
  min-height: 35px;
  padding: 0 14px;
  border: 0;
  border-right: 1px solid rgba(0, 0, 0, 0.38);
  background: #232327;
  color: #9298a5;
  cursor: pointer;
  font-family: "JetBrains Mono", "SF Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 640;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tab:hover {
  background: #2a2a2f;
  color: #cbd0da;
}

.tab.active {
  background: var(--editor);
  color: #f2f4f8;
}

.tab.active::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--accent);
}

.editor-toolbar {
  display: none;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(25, 25, 28, 0.86);
}

.breadcrumbs {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  color: #8e95a3;
  font-family: "JetBrains Mono", "SF Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  font-weight: 650;
}

.breadcrumbs span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breadcrumbs span + span::before {
  content: "›";
  margin-right: 7px;
  color: #565d6b;
}

.editor-tools {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  color: #9da4b2;
  font-family: "JetBrains Mono", "SF Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  font-weight: 650;
  white-space: nowrap;
}

.editor {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  background: var(--editor);
}

.workspace:not(.canvas-hidden) .editor-doc.active,
.workspace:not(.canvas-hidden) .code-stage {
  display: none;
}

.workspace.canvas-hidden .preview-canvas {
  display: none;
}

.workspace.canvas-hidden .code-stage {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-column: 1 / -1;
}

.workspace.canvas-hidden .editor-doc.active {
  display: none;
}

.code-stage {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--editor);
}

.code-stage-content {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: clamp(28px, 5vw, 74px) clamp(22px, 5vw, 68px);
}

.swift-source {
  margin: 0;
  color: #d8dbe4;
  font-family: "JetBrains Mono", "SF Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(0.95rem, 1.55vw, 1.45rem);
  font-weight: 650;
  line-height: 1.62;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.swift-source .k { color: var(--pink); }
.swift-source .s { color: var(--red); }
.swift-source .t { color: var(--cyan); }
.swift-source .f { color: var(--purple); }
.swift-source .c { color: #7f8c98; }
.swift-source .v { color: #41a1c0; }

.editor-doc {
  min-width: 0;
  min-height: 0;
  display: none;
  overflow: hidden;
  background: var(--editor);
}

.editor-doc.active {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
}

.editor-gutter {
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.055);
  background: var(--editor-deep);
}

.editor-gutter::after {
  content: "1\A 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9\A 10\A 11\A 12\A 13\A 14\A 15\A 16\A 17\A 18\A 19\A 20\A 21\A 22\A 23\A 24\A 25\A 26\A 27\A 28\A 29\A 30\A 31\A 32\A 33\A 34\A 35\A 36";
  position: absolute;
  inset: 18px 8px auto 0;
  color: #5f6571;
  font-family: "JetBrains Mono", "SF Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.74rem;
  line-height: 1.82;
  text-align: right;
  white-space: pre;
}

.editor-content {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 18px 22px 34px;
  color: #d8dbe4;
  font-family: "JetBrains Mono", "SF Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.83rem;
  line-height: 1.7;
}

.editor-content h1,
.editor-content h2,
.editor-content h3,
.editor-content p {
  margin-top: 0;
}

.editor-content h1 {
  margin-bottom: 8px;
  color: #f4f6fb;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.08;
}

.editor-content h2 {
  margin-bottom: 7px;
  color: #f0f2f7;
  font-size: 1rem;
  line-height: 1.18;
}

.editor-content h3 {
  margin-bottom: 5px;
  color: #cfd4de;
  font-size: 0.84rem;
}

.lead {
  max-width: 64ch;
  margin-bottom: 20px;
  color: #a7adba;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 0.96rem;
  line-height: 1.55;
}

.token-comment {
  margin: 0 0 12px;
  color: #7f8c98;
  font-family: "JetBrains Mono", "SF Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
}

.token-key {
  margin: 0 0 6px;
  color: var(--purple);
  font-family: "JetBrains Mono", "SF Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.source-workbench {
  display: block;
}

.source-pane,
.json-block {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  background: #18181b;
}

.pane-bar,
.case-file-bar {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: #202024;
  color: #878e9d;
  font-family: "JetBrains Mono", "SF Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.66rem;
  font-weight: 700;
}

.source-lines {
  margin: 0;
  padding: 15px 18px 18px;
  list-style: none;
  color: #dfe2ea;
  overflow-x: hidden;
  white-space: normal;
}

.source-lines li {
  min-height: 1.62em;
  overflow-wrap: anywhere;
}

.code-heading {
  color: var(--cyan);
  font-weight: 760;
}

.code-key,
.json-block .indent {
  color: #41a1c0;
  font-weight: 720;
}

.code-string,
.json-block span:not(.indent) {
  color: var(--red);
}

.runtime-inspector {
  display: none;
}

.inspector-photo {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: cover;
  object-position: center 26%;
}

.intent-panel {
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(52, 120, 246, 0.22);
  border-radius: 8px;
  background: rgba(52, 120, 246, 0.08);
}

.intent-panel span {
  color: var(--cyan);
  font-size: 0.69rem;
  font-weight: 800;
  text-transform: uppercase;
}

.intent-panel p {
  margin: 6px 0 0;
  color: #b9bfcc;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 0.84rem;
  line-height: 1.5;
}

.prose-content > .intent-panel,
.prose-content > .detail-table {
  display: none;
}

.detail-table {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.detail-table article {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.detail-table article > span {
  color: #767d8c;
  font-size: 0.68rem;
  font-weight: 760;
  text-transform: uppercase;
}

.detail-table h2 {
  margin: 0 0 5px;
  color: #eef1f7;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 0.93rem;
}

.detail-table p {
  margin: 0;
  color: #9ea5b3;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 0.83rem;
  line-height: 1.5;
}

.doc-heading-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.project-list {
  display: grid;
  gap: 14px;
}

.case-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  background: #18181b;
}

.case-card.focused {
  border-color: rgba(52, 120, 246, 0.72);
}

.case-card img,
.code-preview {
  width: 100%;
  max-height: 190px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: #111114;
}

.case-card img.paper-thumb {
  max-height: 224px;
  padding: 16px;
  object-fit: contain;
  background:
    radial-gradient(circle at 20% 14%, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(145deg, #101114, #1d2027);
}

.case-action {
  text-decoration: none;
}

.code-preview {
  min-height: 144px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 28px;
}

.code-preview span {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.code-preview span:nth-child(1) { width: 74%; }
.code-preview span:nth-child(2) { width: 48%; }
.code-preview span:nth-child(3) { width: 62%; }

.code-preview strong {
  color: var(--cyan);
  font-size: 0.78rem;
}

.case-copy {
  padding: 16px;
}

.case-copy h2 {
  margin: 0 0 7px;
  color: #f5f6fb;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 1.06rem;
}

.case-copy > p:not(.token-key) {
  margin: 0 0 13px;
  color: #aeb5c2;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 0.88rem;
  line-height: 1.5;
}

.fact-list {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
}

.fact-list div {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 10px;
}

.fact-list dt {
  color: #737b8a;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fact-list dd {
  margin: 0;
  color: #c5cad4;
  font-size: 0.78rem;
}

.chip-row,
.preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  color: #c5cad4;
  font-size: 0.7rem;
  font-weight: 700;
}

.case-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 31px;
  margin-top: 13px;
  padding: 0 11px;
  border: 1px solid rgba(52, 120, 246, 0.46);
  border-radius: 6px;
  background: rgba(52, 120, 246, 0.13);
  color: #9ecbff;
  cursor: pointer;
  font-size: 0.73rem;
  font-weight: 760;
}

.case-action:hover {
  background: rgba(52, 120, 246, 0.2);
  color: #ffffff;
}

.case-details {
  display: none;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.case-card.expanded .case-details {
  display: block;
}

.case-details h3 {
  margin: 0 0 4px;
  color: var(--cyan);
}

.case-details p {
  margin: 0 0 10px;
  color: #aeb5c2;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 0.82rem;
  line-height: 1.5;
}

.json-block {
  padding: 16px;
  color: #dfe2ea;
}

.json-block p {
  margin: 0;
  overflow-x: auto;
  white-space: nowrap;
}

.document-list,
.contact-list {
  display: grid;
  gap: 9px;
}

.document-list a,
.document-list article,
.contact-list a {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  background: #18181b;
}

.contact-list a {
  grid-template-columns: 78px minmax(0, 1fr);
}

.document-list a:hover,
.contact-list a:hover {
  border-color: rgba(52, 120, 246, 0.46);
  background: #202027;
}

.document-list .cv-document-card {
  grid-template-columns: 72px minmax(0, 1fr);
  min-height: 116px;
  align-items: center;
}

.document-list a > span,
.document-list article > span,
.contact-list a > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border-radius: 6px;
  background: rgba(255, 129, 112, 0.12);
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 800;
}

.document-list .cv-document-thumb {
  min-height: 92px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.document-list .cv-document-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.contact-list a > span {
  background: rgba(52, 120, 246, 0.13);
  color: #9ecbff;
}

.document-list strong,
.contact-list strong {
  display: block;
  overflow-wrap: anywhere;
  color: #f2f4f8;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 0.9rem;
}

.document-list p {
  margin: 4px 0 0;
  color: #969dab;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 0.78rem;
  line-height: 1.42;
}

.preview-canvas {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
  border-left: 1px solid rgba(0, 0, 0, 0.22);
  background:
    linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 42%, #f2f3f6 100%);
  color: var(--preview-text);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
}

.preview-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(251, 251, 253, 0.94);
}

.preview-bar span,
.preview-bar strong {
  color: #6b7280;
  font-size: 0.66rem;
  font-weight: 780;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.preview-bar strong {
  max-width: 22ch;
  overflow: hidden;
  color: #454a54;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-canvas .preview-doc {
  display: none;
  width: min(860px, calc(100% - 72px));
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 64px) 0 72px;
  animation: previewIn 180ms ease both;
}

.preview-canvas .preview-doc.active {
  display: block;
}

@keyframes previewIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.preview-hero,
.preview-card,
.preview-facts,
.preview-mini-list {
  border: 1px solid #e6e7eb;
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--card-shadow);
}

.preview-hero {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 14px;
  align-items: center;
  padding: 22px 18px;
  text-align: center;
}

.preview-hero img {
  width: 92px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ffffff;
  outline: 1px solid #dfe1e6;
}

.preview-hero span,
.preview-card span {
  display: inline-flex;
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.preview-hero h2,
.preview-card h2 {
  margin: 0 0 7px;
  color: #1d1d1f;
  font-size: clamp(1.35rem, 2.2vw, 2.1rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.preview-hero p,
.preview-card p {
  max-width: 30ch;
  margin: 0;
  color: var(--preview-muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.preview-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 14px;
}

.preview-actions.vertical {
  flex-direction: column;
}

.preview-actions a,
.preview-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(10, 132, 255, 0.18);
  border-radius: 8px;
  background: #ffffff;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 740;
  box-shadow: none;
}

.preview-actions button:not(.secondary-action),
.preview-actions a:first-child {
  background: var(--accent);
  color: #ffffff;
}

.preview-actions .secondary-action {
  background: #ffffff;
  color: var(--accent);
}

.preview-actions a:hover,
.preview-actions button:hover {
  border-color: rgba(10, 132, 255, 0.32);
  background: #f7fbff;
  box-shadow: none;
}

.preview-actions button:not(.secondary-action):hover,
.preview-actions a:first-child:hover {
  background: #236fe8;
}

.preview-facts {
  display: grid;
  gap: 0;
  margin: 14px 0 0;
  overflow: hidden;
}

.preview-facts div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  padding: 13px;
}

.preview-facts div + div {
  border-top: 1px solid #ececf1;
}

.preview-facts dt {
  color: #8b8f98;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.preview-facts dd {
  margin: 0;
  color: #24262b;
  font-size: 0.88rem;
  font-weight: 680;
}

.preview-card {
  overflow: hidden;
  padding: 18px;
}

.preview-card img {
  width: calc(100% + 36px);
  max-width: none;
  height: 190px;
  margin: -18px -18px 16px;
  object-fit: cover;
  background: #e6e8ed;
}

.preview-card strong {
  display: inline-flex;
  margin-top: 13px;
  color: var(--accent);
  font-size: 0.88rem;
}

.preview-mini-list {
  display: grid;
  gap: 0;
  margin-top: 14px;
  overflow: hidden;
}

.preview-mini-list span {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 15px;
  color: #30333a;
  font-weight: 720;
}

.preview-mini-list span + span {
  border-top: 1px solid #ececf1;
}

.preview-tags {
  margin-top: 14px;
}

.preview-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #e1e3e8;
  border-radius: 8px;
  background: #ffffff;
  color: #4b505b;
  font-size: 0.84rem;
  font-weight: 730;
  box-shadow: none;
}

.preview-home-visual {
  width: 148px;
  aspect-ratio: 1;
  margin: 0 auto 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.preview-home-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
}

.preview-image-label {
  display: none;
}

.preview-page-title {
  max-width: 780px;
  margin: 0 0 12px;
  color: #111827;
  font-size: clamp(2.65rem, 5.4vw, 5rem);
  font-weight: 820;
  line-height: 0.95;
  letter-spacing: 0;
}

.preview-doc[data-preview="about"] .preview-page-title,
.preview-doc[data-preview="about"] .preview-lead {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.preview-lead {
  max-width: 660px;
  margin: 0 0 26px;
  color: #515966;
  font-size: clamp(1.08rem, 1.75vw, 1.35rem);
  line-height: 1.42;
}

.reference-actions {
  margin-bottom: 28px;
}

.preview-hero-shell {
  margin: 0 auto clamp(26px, 4vw, 42px);
  text-align: center;
}

.preview-kicker,
.preview-section-label {
  margin: 0 0 9px;
  color: #2563eb;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.preview-metrics article {
  min-height: 108px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(214, 219, 228, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.preview-metrics span {
  color: #7b8190;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.preview-metrics strong {
  color: #1d1d1f;
  font-size: clamp(0.98rem, 1.4vw, 1.12rem);
  line-height: 1.2;
}

.preview-profile,
.preview-panel,
.preview-project-card,
.preview-form {
  border: 1px solid rgba(214, 219, 228, 0.76);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--card-shadow);
}

.preview-profile {
  display: grid;
  justify-items: center;
  gap: 8px;
  max-width: 360px;
  margin: 0 auto 16px;
  padding: 22px;
  text-align: center;
}

.preview-avatar {
  width: 78px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  background: #f3f4f6;
}

.preview-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
}

.preview-profile h3,
.preview-panel h3,
.preview-card-body h3 {
  margin: 0;
  color: #111827;
  font-size: 1.18rem;
  font-weight: 780;
  line-height: 1.15;
}

.preview-profile span {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 720;
}

.preview-panel {
  max-width: none;
  margin: 0 auto;
  padding: clamp(22px, 3vw, 32px);
}

.preview-panel h3 + p,
.preview-card-body p,
.preview-panel p {
  margin: 9px 0 20px;
  color: #5b6472;
  font-size: 1.02rem;
  line-height: 1.55;
}

.preview-stack,
.preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preview-stack span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #dfe3ea;
  border-radius: 8px;
  background: #f7f8fa;
  color: #4b5563;
  font-size: 0.88rem;
  font-weight: 700;
}

.preview-projects {
  display: grid;
  gap: 24px;
}

.preview-project-card {
  overflow: hidden;
}

.preview-project-media {
  height: clamp(240px, 32vw, 340px);
  overflow: hidden;
  background: #e7e9ee;
}

.preview-project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-card-body {
  padding: clamp(22px, 3vw, 34px);
}

.preview-card-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.preview-status {
  flex: 0 0 auto;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 800;
}

.preview-status.warning {
  background: #fff3df;
  color: #b94a08;
}

.preview-status.success {
  background: #e9f8ef;
  color: #16783a;
}

.preview-card-body strong {
  color: #2563eb;
  font-size: 1rem;
}

.compact-profile {
  margin-bottom: 18px;
}

.preview-form {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.preview-form label {
  display: grid;
  gap: 7px;
}

.preview-form label span {
  color: #4b5563;
  font-size: 0.86rem;
  font-weight: 740;
}

.preview-form input,
.preview-form textarea {
  width: 100%;
  border: 1px solid #dfe3ea;
  border-radius: 8px;
  background: #f9fafb;
  color: #111827;
  padding: 12px;
  resize: vertical;
}

.preview-form a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
  font-weight: 780;
}

.preview-canvas .preview-doc.active > * {
  animation: previewRise 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.preview-canvas .preview-doc.active > *:nth-child(2) { animation-delay: 50ms; }
.preview-canvas .preview-doc.active > *:nth-child(3) { animation-delay: 100ms; }
.preview-canvas .preview-doc.active > *:nth-child(4) { animation-delay: 150ms; }
.preview-canvas .preview-doc.active > *:nth-child(5) { animation-delay: 200ms; }

@keyframes previewRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

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

.preview-section-head {
  max-width: 720px;
  margin-bottom: clamp(24px, 4vw, 38px);
}

.preview-section-head .preview-page-title {
  max-width: 720px;
  margin-bottom: 12px;
  font-size: clamp(2.25rem, 5vw, 4.45rem);
}

.preview-section-head .preview-lead {
  margin-bottom: 0;
}

.preview-identity-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 236px;
  gap: clamp(22px, 5vw, 52px);
  align-items: end;
  margin-bottom: clamp(24px, 5vw, 48px);
  text-align: left;
}

.preview-identity-copy {
  min-width: 0;
}

.preview-identity-copy .preview-page-title,
.preview-identity-copy .preview-lead {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.preview-identity-card {
  overflow: hidden;
  border: 1px solid rgba(214, 219, 228, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--card-shadow);
}

.preview-identity-card img {
  width: 100%;
  height: 238px;
  object-fit: cover;
  object-position: center 32%;
  background: #eef0f4;
}

.preview-identity-card div {
  display: grid;
  gap: 4px;
  padding: 14px;
}

.preview-identity-card strong {
  color: #111827;
  font-size: 0.98rem;
  line-height: 1.2;
}

.preview-identity-card span {
  color: #626a78;
  font-size: 0.86rem;
  font-weight: 650;
}

.preview-story-panel {
  margin-bottom: 18px;
}

.preview-story-panel p {
  max-width: 74ch;
}

.preview-timeline {
  display: grid;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid rgba(214, 219, 228, 0.76);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.preview-timeline article {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.preview-timeline article + article {
  border-top: 1px solid #eceef3;
}

.preview-timeline article > span {
  color: #2563eb;
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0.04em;
}

.preview-timeline h3 {
  margin: 0 0 5px;
  color: #111827;
  font-size: 1rem;
  line-height: 1.2;
}

.preview-timeline p {
  margin: 0;
  color: #5f6876;
  font-size: 0.92rem;
  line-height: 1.48;
}

.preview-hobby-grid,
.preview-learning-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.preview-hobby-grid article,
.preview-learning-grid article {
  display: grid;
  gap: 5px;
  min-height: 88px;
  align-content: center;
  padding: 16px;
  border: 1px solid rgba(214, 219, 228, 0.76);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
}

.preview-hobby-grid strong,
.preview-learning-grid h3 {
  margin: 0;
  color: #111827;
  font-size: 0.98rem;
  line-height: 1.2;
}

.preview-hobby-grid span,
.preview-learning-grid p,
.preview-learning-grid span {
  margin: 0;
  color: #67707f;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.38;
}

.preview-project-feature,
.preview-award-feature,
.preview-skill-card,
.preview-bot-card,
.preview-contact-grid a,
.preview-awards-grid a,
.preview-awards-grid article {
  border: 1px solid rgba(214, 219, 228, 0.76);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--card-shadow);
}

.preview-project-feature {
  overflow: hidden;
  margin-bottom: 20px;
}

.preview-project-feature .preview-project-media {
  height: clamp(260px, 38vw, 420px);
}

.preview-project-feature .preview-card-body {
  padding: clamp(24px, 4vw, 40px);
}

.preview-project-feature .preview-card-body > strong {
  display: block;
  margin-top: 18px;
}

.preview-project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.preview-project-grid .preview-project-card {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.preview-project-grid .preview-project-media {
  height: 184px;
}

.preview-project-card,
.preview-project-feature,
.preview-skill-card,
.preview-learning-grid article,
.preview-contact-grid a,
.preview-awards-grid a,
.preview-awards-grid article,
.preview-bot-card {
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.preview-project-card:hover,
.preview-project-feature:hover,
.preview-skill-card:hover,
.preview-learning-grid article:hover,
.preview-contact-grid a:hover,
.preview-awards-grid a:hover,
.preview-bot-card:hover {
  border-color: rgba(10, 132, 255, 0.32);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.09), 0 1px 2px rgba(15, 23, 42, 0.05);
  transform: translateY(-2px);
}

.preview-status.neutral {
  background: #eef2ff;
  color: #4338ca;
}

.preview-status.research {
  background: #f0f7ff;
  color: #0369a1;
}

.preview-code-media {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(31, 41, 55, 0.94));
  color: #dbeafe;
  font-family: "JetBrains Mono", "SF Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.preview-code-media span {
  color: #93c5fd;
  font-size: 0.74rem;
  font-weight: 720;
}

.preview-code-media strong {
  color: #ffffff;
  font-size: 1.04rem;
}

.preview-skill-groups {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 14px;
  margin-bottom: 18px;
}

.preview-skill-card {
  padding: clamp(20px, 3vw, 28px);
}

.preview-skill-card h3 {
  margin: 0 0 18px;
  color: #111827;
  font-size: 1.18rem;
  line-height: 1.2;
}

.preview-skill-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
  min-height: 32px;
}

.preview-skill-row + .preview-skill-row {
  margin-top: 10px;
}

.preview-skill-row span,
.preview-skill-row strong {
  color: #303846;
  font-size: 0.83rem;
  font-weight: 760;
}

.preview-skill-row strong {
  text-align: right;
}

.preview-skill-row div {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8ebf0;
}

.preview-skill-row i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0a84ff, #60a5fa);
}

.preview-doc.active .preview-skill-row i {
  animation: previewSkillFill 760ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes previewSkillFill {
  to {
    width: var(--w);
  }
}

.preview-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.preview-tool-grid span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid #e3e7ee;
  border-radius: 8px;
  background: #f8fafc;
  color: #3f4652;
  font-size: 0.82rem;
  font-weight: 720;
}

.preview-tool-grid strong {
  color: #2563eb;
  font-size: 0.78rem;
}

.preview-learning-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.preview-learning-grid article {
  align-content: start;
}

.preview-learning-grid article > span {
  color: #2563eb;
  letter-spacing: 0.06em;
}

.preview-award-feature {
  margin-bottom: 16px;
  padding: clamp(22px, 3vw, 34px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.9));
}

.preview-award-feature h3 {
  margin: 14px 0 8px;
  color: #111827;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.08;
}

.preview-award-feature p {
  max-width: 68ch;
  margin: 0;
  color: #596273;
  font-size: 1rem;
  line-height: 1.55;
}

.preview-awards-grid,
.preview-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.preview-awards-grid a,
.preview-awards-grid article,
.preview-contact-grid a {
  display: grid;
  gap: 8px;
  min-height: 142px;
  align-content: start;
  padding: 18px;
}

.preview-awards-grid span,
.preview-contact-grid span {
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-awards-grid strong,
.preview-contact-grid strong,
.preview-bot-card h3 {
  margin: 0;
  color: #111827;
  font-size: 1.02rem;
  line-height: 1.22;
}

.preview-awards-grid p,
.preview-contact-grid small,
.preview-bot-card p {
  margin: 0;
  color: #636d7b;
  font-size: 0.9rem;
  line-height: 1.45;
}

.preview-contact-grid {
  margin-bottom: 16px;
}

.preview-bot-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: clamp(20px, 3vw, 28px);
}

.preview-bot-card h3 {
  margin-bottom: 8px;
  font-size: 1.28rem;
}

.preview-bot-card p a {
  color: #2563eb;
  font-weight: 760;
}

.preview-bot-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 260px;
}

.preview-bot-chips button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #2563eb;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 760;
}

.preview-bot-chips button:hover {
  border-color: rgba(10, 132, 255, 0.32);
  background: #eff6ff;
}

/* Minimal preview refinement */
.preview-canvas {
  background: #f6f7f9;
}

.preview-bar {
  min-height: 36px;
  background: rgba(246, 247, 249, 0.92);
  backdrop-filter: blur(16px);
}

.preview-canvas .preview-doc {
  width: min(800px, calc(100% - 80px));
  max-width: 800px;
  padding: clamp(30px, 4vw, 52px) 0 64px;
}

.preview-page-title,
.preview-section-head .preview-page-title {
  max-width: 680px;
  font-size: clamp(2.1rem, 4.2vw, 3.8rem);
  font-weight: 780;
  line-height: 1;
}

.preview-lead {
  max-width: 620px;
  color: #4f5663;
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.48;
}

.preview-kicker,
.preview-section-label {
  color: #2563eb;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.preview-identity-hero {
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: clamp(20px, 4vw, 40px);
  margin-bottom: clamp(22px, 4vw, 34px);
}

.preview-identity-card,
.preview-metrics article,
.preview-panel,
.preview-project-card,
.preview-skill-card,
.preview-learning-grid article,
.preview-hobby-grid article,
.preview-award-feature,
.preview-awards-grid a,
.preview-awards-grid article,
.preview-contact-grid a,
.preview-bot-card,
.preview-timeline {
  border-color: #e2e5ea;
  background: #ffffff;
  box-shadow: none;
}

.preview-identity-card img {
  height: 208px;
}

.preview-metrics {
  gap: 8px;
  margin-bottom: 14px;
}

.preview-metrics article {
  min-height: 88px;
  padding: 14px;
}

.preview-metrics span,
.preview-awards-grid span,
.preview-contact-grid span,
.preview-timeline article > span {
  color: #6b7280;
}

.preview-metrics strong {
  font-size: 0.96rem;
}

.preview-panel,
.preview-skill-card,
.preview-bot-card,
.preview-award-feature {
  padding: clamp(18px, 2.4vw, 26px);
}

.preview-panel h3,
.preview-card-body h3,
.preview-skill-card h3,
.preview-bot-card h3 {
  font-size: 1.04rem;
  font-weight: 740;
}

.preview-panel h3 + p,
.preview-card-body p,
.preview-panel p,
.preview-award-feature p,
.preview-awards-grid p,
.preview-contact-grid small,
.preview-bot-card p,
.preview-timeline p {
  color: #5f6774;
  font-size: 0.92rem;
  line-height: 1.52;
}

.preview-stack {
  gap: 6px;
}

.preview-stack span,
.preview-tags span,
.preview-bot-chips button {
  min-height: 29px;
  border-color: #e2e6ec;
  background: #fafbfc;
  color: #475160;
  font-size: 0.8rem;
  font-weight: 650;
}

.preview-projects {
  gap: 12px;
}

.preview-project-grid {
  gap: 12px;
}

.preview-project-grid .preview-project-media,
.preview-project-media {
  height: clamp(154px, 20vw, 210px);
}

.preview-card-body {
  padding: clamp(16px, 2.4vw, 24px);
}

.preview-card-heading {
  margin-bottom: 8px;
}

.preview-status {
  min-height: 24px;
  padding: 0 9px;
  border-radius: 7px;
  font-size: 0.72rem;
}

.preview-code-media {
  background: #111827;
}

.preview-timeline {
  margin-bottom: 14px;
}

.preview-timeline article {
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  padding: 15px 16px;
}

.preview-hobby-grid,
.preview-learning-grid,
.preview-awards-grid,
.preview-contact-grid {
  gap: 8px;
}

.preview-hobby-grid article,
.preview-learning-grid article,
.preview-awards-grid a,
.preview-awards-grid article,
.preview-contact-grid a {
  min-height: auto;
  padding: 14px;
}

.preview-project-card:hover,
.preview-project-feature:hover,
.preview-skill-card:hover,
.preview-learning-grid article:hover,
.preview-contact-grid a:hover,
.preview-awards-grid a:hover,
.preview-bot-card:hover {
  border-color: #cfd6e1;
  box-shadow: none;
  transform: none;
}

.preview-actions {
  gap: 7px;
}

.preview-actions a,
.preview-actions button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.8rem;
  font-weight: 700;
}

.preview-actions .secondary-action,
.preview-actions a:not(:first-child) {
  border-color: #e1e6ee;
  background: #ffffff;
  color: #2563eb;
}

.status-bar {
  min-height: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 12px;
  overflow-x: auto;
  overflow-y: hidden;
  background: #007acc;
  color: #ffffff;
  font-family: "JetBrains Mono", "SF Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.66rem;
  font-weight: 680;
  white-space: nowrap;
}

.status-bar span:first-child {
  font-weight: 800;
}

@media (max-width: 1080px) {
  .ide-shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .editor {
    grid-template-columns: minmax(0, 1fr);
  }

  .editor-content {
    padding: 16px 18px 30px;
  }
}

@media (max-width: 820px) {
  body {
    overflow: auto;
  }

  .ide-frame {
    height: auto;
    min-height: calc(100vh - 20px);
    max-height: none;
  }

  .ide-topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: auto;
    padding: 10px;
  }

  .scheme-control {
    display: none;
  }

  .workspace-title {
    align-items: start;
    text-align: left;
  }

  .top-actions a,
  .top-actions button {
    min-width: 38px;
    min-height: 26px;
    padding: 0 8px;
  }

  .ide-shell {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .explorer {
    border-right: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.52);
  }

  .explorer-header {
    padding: 12px 12px 0;
  }

  .file-tree {
    display: flex;
    gap: 6px;
    padding: 8px 10px 12px;
    overflow-x: auto;
  }

  .file-tree::before {
    display: none;
  }

  .file-item {
    width: 150px;
    flex: 0 0 150px;
    padding-left: 8px;
  }

  .explorer-card {
    display: none;
  }

  .workspace {
    min-height: 680px;
  }
}

@media (max-width: 680px) {
  body {
    padding: 8px;
  }

  .ide-topbar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .top-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .top-actions a,
  .top-actions button {
    flex: 0 0 auto;
  }

  .editor {
    display: flex;
    flex-direction: column;
    overflow: visible;
  }

  .editor-doc.active {
    min-height: 420px;
    flex: 0 0 auto;
  }

  .preview-canvas {
    min-height: 460px;
    border-left: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.18);
  }

  .preview-canvas .preview-doc {
    width: calc(100% - 28px);
    padding-top: 28px;
  }

  .preview-metrics {
    grid-template-columns: 1fr;
  }

  .preview-metrics article {
    min-height: auto;
  }

  .preview-identity-hero,
  .preview-skill-groups,
  .preview-project-grid,
  .preview-awards-grid,
  .preview-contact-grid,
  .preview-bot-card {
    grid-template-columns: 1fr;
  }

  .preview-identity-card {
    max-width: 280px;
  }

  .preview-hobby-grid,
  .preview-learning-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .preview-bot-chips {
    justify-content: flex-start;
    max-width: none;
  }

  .preview-page-title {
    font-size: clamp(2.15rem, 12vw, 3.2rem);
  }

  .preview-project-media {
    height: 220px;
  }

  .status-bar {
    gap: 12px;
  }
}

@media (max-width: 440px) {
  .traffic-lights {
    gap: 6px;
  }

  .workspace-title strong,
  .workspace-title span {
    max-width: 22ch;
  }

  .editor-toolbar {
    align-items: start;
    flex-direction: column;
    min-height: auto;
    padding: 9px 12px;
  }

  .editor-doc.active {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .editor-gutter::after {
    right: 6px;
    font-size: 0.68rem;
  }

  .editor-content {
    padding: 14px 13px 26px;
    font-size: 0.78rem;
  }

  .preview-doc {
    padding: 16px 13px 24px;
  }

  .preview-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .preview-hero img {
    margin: 0 auto;
  }

  .preview-facts div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .preview-timeline article,
  .preview-skill-row {
    grid-template-columns: 1fr;
  }

  .preview-skill-row strong {
    text-align: left;
  }

  .preview-hobby-grid,
  .preview-learning-grid,
  .preview-tool-grid {
    grid-template-columns: 1fr;
  }
}

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

  .preview-project-card:hover,
  .preview-project-feature:hover,
  .preview-skill-card:hover,
  .preview-learning-grid article:hover,
  .preview-contact-grid a:hover,
  .preview-awards-grid a:hover,
  .preview-bot-card:hover {
    transform: none;
  }
}

/* Final clean preview pass */
body .preview-canvas {
  border-left-color: rgba(17, 24, 39, 0.14);
  background: #f6f7f9;
}

body .preview-bar {
  min-height: 34px;
  border-bottom-color: #e2e5ea;
  background: rgba(246, 247, 249, 0.92);
  backdrop-filter: saturate(160%) blur(18px);
}

body .preview-bar span,
body .preview-bar strong {
  color: #6b7280;
  font-size: 0.62rem;
  font-weight: 720;
  letter-spacing: 0.08em;
}

body .preview-canvas .preview-doc {
  width: min(760px, calc(100% - clamp(32px, 8vw, 88px)));
  max-width: 760px;
  padding-top: clamp(28px, 4.8vw, 54px);
  padding-bottom: clamp(48px, 7vw, 78px);
}

body .preview-doc[data-preview="projects"] {
  width: min(840px, calc(100% - clamp(32px, 8vw, 88px)));
  max-width: 840px;
}

body .preview-section-head {
  max-width: 660px;
  margin-bottom: clamp(20px, 3.6vw, 32px);
}

body .preview-page-title,
body .preview-section-head .preview-page-title {
  max-width: 660px;
  margin-bottom: 10px;
  color: #111827;
  font-size: clamp(2rem, 3.9vw, 3.45rem);
  font-weight: 760;
  line-height: 1.03;
}

body .preview-lead,
body .preview-section-head .preview-lead {
  max-width: 600px;
  color: #566071;
  font-size: clamp(0.98rem, 1.35vw, 1.12rem);
  line-height: 1.55;
}

body .preview-kicker,
body .preview-section-label {
  color: #4f77d8;
  font-size: 0.66rem;
  font-weight: 760;
  letter-spacing: 0.08em;
}

body .preview-profile,
body .preview-panel,
body .preview-project-card,
body .preview-project-feature,
body .preview-form,
body .preview-identity-card,
body .preview-metrics article,
body .preview-timeline,
body .preview-hobby-grid article,
body .preview-learning-grid article,
body .preview-award-feature,
body .preview-skill-card,
body .preview-contact-grid a,
body .preview-awards-grid a,
body .preview-awards-grid article,
body .preview-bot-card {
  border-color: #e1e5eb;
  background: #ffffff;
  box-shadow: none;
}

body .preview-profile,
body .preview-panel,
body .preview-form,
body .preview-award-feature,
body .preview-skill-card,
body .preview-bot-card {
  padding: clamp(16px, 2.5vw, 24px);
}

body .preview-panel,
body .preview-story-panel,
body .preview-timeline,
body .preview-award-feature,
body .preview-bot-card,
body .preview-contact-grid,
body .preview-awards-grid,
body .preview-skill-groups,
body .preview-hobby-grid,
body .preview-learning-grid,
body .preview-projects {
  margin-bottom: 14px;
}

body .preview-panel h3,
body .preview-profile h3,
body .preview-card-body h3,
body .preview-skill-card h3,
body .preview-award-feature h3,
body .preview-bot-card h3 {
  color: #111827;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  font-weight: 720;
  line-height: 1.22;
}

body .preview-panel h3 + p,
body .preview-card-body p,
body .preview-panel p,
body .preview-award-feature p,
body .preview-awards-grid p,
body .preview-contact-grid small,
body .preview-bot-card p,
body .preview-timeline p {
  margin-top: 8px;
  margin-bottom: 14px;
  color: #5e6877;
  font-size: 0.91rem;
  line-height: 1.55;
}

body .preview-identity-hero {
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: clamp(18px, 4vw, 34px);
  align-items: end;
  margin-bottom: clamp(18px, 4vw, 30px);
}

body .preview-identity-card img {
  height: 190px;
}

body .preview-identity-card div {
  padding: 12px;
}

body .preview-metrics {
  gap: 8px;
  margin-bottom: 14px;
}

body .preview-metrics article {
  min-height: 82px;
  padding: 13px;
  align-content: center;
}

body .preview-metrics span,
body .preview-awards-grid span,
body .preview-contact-grid span,
body .preview-timeline article > span {
  color: #6b7280;
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.07em;
}

body .preview-metrics strong,
body .preview-awards-grid strong,
body .preview-contact-grid strong {
  color: #111827;
  font-size: 0.96rem;
  font-weight: 720;
}

body .preview-project-grid,
body .preview-skill-groups,
body .preview-awards-grid,
body .preview-contact-grid,
body .preview-hobby-grid,
body .preview-learning-grid {
  gap: 10px;
}

body .preview-project-card {
  overflow: hidden;
}

body .preview-project-media,
body .preview-project-grid .preview-project-media,
body .preview-project-feature .preview-project-media {
  height: clamp(150px, 20vw, 214px);
  background: #eef1f5;
}

body .preview-code-media {
  background: #16181d;
}

body .preview-card-body,
body .preview-project-feature .preview-card-body {
  padding: clamp(15px, 2.4vw, 22px);
}

body .preview-card-heading {
  gap: 12px;
  margin-bottom: 8px;
}

body .preview-status {
  min-height: 22px;
  padding: 0 8px;
  border-radius: 7px;
  font-size: 0.68rem;
}

body .preview-stack,
body .preview-tags {
  gap: 6px;
}

body .preview-stack span,
body .preview-tags span,
body .preview-bot-chips button {
  min-height: 28px;
  border-color: #e3e7ed;
  background: #fafbfc;
  color: #4b5563;
  font-size: 0.78rem;
  font-weight: 640;
}

body .preview-timeline article {
  grid-template-columns: 106px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 16px;
}

body .preview-hobby-grid article,
body .preview-learning-grid article,
body .preview-awards-grid a,
body .preview-awards-grid article,
body .preview-contact-grid a {
  min-height: auto;
  padding: 14px;
}

body .preview-actions {
  gap: 7px;
  margin-top: 12px;
}

body .preview-actions a,
body .preview-actions button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: none;
}

body .preview-project-card:hover,
body .preview-project-feature:hover,
body .preview-skill-card:hover,
body .preview-learning-grid article:hover,
body .preview-contact-grid a:hover,
body .preview-awards-grid a:hover,
body .preview-bot-card:hover {
  border-color: #cfd6e1;
  box-shadow: none;
  transform: none;
}

@media (max-width: 680px) {
  body .preview-canvas .preview-doc,
  body .preview-doc[data-preview="projects"] {
    width: calc(100% - 28px);
    max-width: none;
    padding-top: 26px;
  }

  body .preview-identity-hero,
  body .preview-project-grid,
  body .preview-skill-groups,
  body .preview-awards-grid,
  body .preview-contact-grid,
  body .preview-bot-card {
    grid-template-columns: 1fr;
  }

  body .preview-identity-card {
    max-width: 260px;
  }

  body .preview-page-title,
  body .preview-section-head .preview-page-title {
    font-size: clamp(1.9rem, 9.5vw, 2.85rem);
  }

  body .preview-project-media,
  body .preview-project-grid .preview-project-media,
  body .preview-project-feature .preview-project-media {
    height: 196px;
  }

  body .preview-timeline article {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

/* Studio preview system */
body .preview-canvas {
  background:
    linear-gradient(180deg, #fbfbfa 0%, #f6f7f5 46%, #eef3f7 100%);
  color: #111827;
}

body .preview-bar {
  background: rgba(251, 251, 250, 0.78);
  border-bottom-color: rgba(17, 24, 39, 0.1);
  backdrop-filter: saturate(180%) blur(22px);
}

body .preview-bar span {
  color: #747985;
  font-weight: 680;
}

body .preview-canvas .preview-doc,
body .preview-doc[data-preview="projects"] {
  width: min(900px, calc(100% - clamp(34px, 8vw, 100px)));
  max-width: 900px;
  padding-top: clamp(34px, 5vw, 66px);
}

body .preview-section-head {
  max-width: 740px;
  margin-bottom: clamp(28px, 5vw, 54px);
}

body .preview-page-title,
body .preview-section-head .preview-page-title {
  max-width: 780px;
  color: #111827;
  font-size: clamp(2.45rem, 5.1vw, 5.15rem);
  font-weight: 780;
  line-height: 0.98;
  letter-spacing: 0;
}

body .preview-lead,
body .preview-section-head .preview-lead {
  max-width: 680px;
  color: #545d6b;
  font-size: clamp(1.02rem, 1.55vw, 1.24rem);
  line-height: 1.55;
}

body .preview-kicker,
body .preview-section-label {
  color: #50627a;
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.12em;
}

body .preview-actions {
  justify-content: flex-start;
  margin-top: 22px;
}

body .preview-actions a,
body .preview-actions button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: #172033;
  font-size: 0.82rem;
  font-weight: 720;
  backdrop-filter: blur(16px);
}

body .preview-actions button:not(.secondary-action),
body .preview-actions a:first-child {
  border-color: #111827;
  background: #111827;
  color: #ffffff;
}

body .preview-actions a:hover,
body .preview-actions button:hover,
body .preview-actions .secondary-action:hover {
  border-color: #111827;
  background: #ffffff;
  color: #111827;
}

body .preview-actions button:not(.secondary-action):hover,
body .preview-actions a:first-child:hover {
  background: #242936;
  color: #ffffff;
}

.studio-hero {
  position: relative;
  min-height: clamp(360px, 54vh, 540px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.42fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: center;
  padding-bottom: clamp(34px, 7vw, 82px);
}

.studio-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(17, 24, 39, 0.16), transparent);
}

.studio-hero-copy {
  min-width: 0;
}

.studio-hero-copy .preview-page-title {
  max-width: 780px;
  margin-bottom: 16px;
}

body .preview-doc[data-preview="about"] .studio-hero-copy .preview-page-title,
body .preview-doc[data-preview="about"] .studio-hero-copy .preview-lead {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

body .preview-doc[data-preview="about"] .studio-hero-copy .preview-actions {
  justify-content: flex-start;
}

.profile-device {
  position: relative;
  overflow: hidden;
  width: min(100%, 270px);
  align-self: center;
  justify-self: end;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.1);
  backdrop-filter: blur(24px);
}

.profile-device img {
  width: 100%;
  height: clamp(260px, 33vw, 360px);
  object-fit: cover;
  object-position: center 28%;
  filter: saturate(0.92);
}

.profile-device-copy {
  display: grid;
  gap: 5px;
  padding: 18px;
}

.profile-device-copy span,
.case-number,
.story-index span,
.proof-ledger span,
.contact-links span,
.capability-column > span,
.capability-core span,
.assistant-topline small {
  color: #6b7280;
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-device-copy strong {
  color: #111827;
  font-size: 1.05rem;
  line-height: 1.2;
}

.profile-device-copy small {
  color: #687285;
  font-size: 0.86rem;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid rgba(17, 24, 39, 0.12);
}

.signal-strip article {
  display: grid;
  gap: 8px;
  padding: clamp(18px, 3vw, 26px) 0;
}

.signal-strip article + article {
  padding-left: clamp(18px, 3vw, 28px);
  border-left: 1px solid rgba(17, 24, 39, 0.1);
}

.signal-strip strong {
  color: #111827;
  font-size: 1rem;
}

.signal-strip p,
.editorial-split p,
.story-chapter p,
.case-hero p,
.case-row p,
.capability-core p,
.soft-signal p,
.proof-ledger p,
.contact-primary h3,
.assistant-panel p {
  margin: 0;
  color: #5c6675;
  font-size: 0.95rem;
  line-height: 1.58;
}

.editorial-split {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 76px);
  padding: clamp(42px, 8vw, 92px) 0;
  border-bottom: 1px solid rgba(17, 24, 39, 0.12);
}

.editorial-split h3,
.story-chapter h3,
.contact-primary h3 {
  margin: 0;
  color: #111827;
  font-size: clamp(1.4rem, 2.3vw, 2.05rem);
  line-height: 1.08;
}

.moment-list {
  display: grid;
}

.moment-list article {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: clamp(18px, 4vw, 48px);
  padding: 20px 0;
  border-bottom: 1px solid rgba(17, 24, 39, 0.1);
}

.moment-list span {
  color: #6b7280;
  font-size: 0.76rem;
  font-weight: 760;
}

.moment-list h3,
.case-row h3,
.proof-ledger strong,
.capability-column h3,
.assistant-topline strong {
  margin: 0 0 6px;
  color: #111827;
  font-size: 1.05rem;
  line-height: 1.2;
}

.story-layout {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: clamp(34px, 7vw, 88px);
}

.story-index {
  position: sticky;
  top: 64px;
  align-self: start;
  display: grid;
  gap: 14px;
  padding-top: 8px;
}

.story-index span {
  color: #7a8190;
}

.story-body {
  min-width: 0;
}

.story-chapter {
  padding: clamp(24px, 4vw, 44px) 0;
  border-top: 1px solid rgba(17, 24, 39, 0.1);
}

.story-chapter h3 {
  max-width: 680px;
  margin: 8px 0 14px;
}

.story-chapter p {
  max-width: 72ch;
}

.story-chapter p + p {
  margin-top: 12px;
}

.story-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(17, 24, 39, 0.1);
  border-bottom: 1px solid rgba(17, 24, 39, 0.1);
}

.story-detail-grid article {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: clamp(18px, 3vw, 26px);
}

.story-detail-grid article + article {
  border-left: 1px solid rgba(17, 24, 39, 0.1);
}

.story-detail-grid span {
  color: #111827;
  font-size: 0.84rem;
  font-weight: 760;
}

.story-detail-grid p {
  margin: 0;
  color: #5c6675;
  font-size: 0.9rem;
  line-height: 1.52;
}

.language-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 0;
  border-top: 1px solid rgba(17, 24, 39, 0.1);
}

.language-ribbon span,
.case-meta span,
.capability-tags span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: #4b5563;
  padding: 0 11px;
  font-size: 0.78rem;
  font-weight: 680;
}

.case-study-page {
  min-width: 0;
}

.case-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.8fr);
  gap: clamp(24px, 5vw, 54px);
  align-items: stretch;
  padding: clamp(24px, 5vw, 42px) 0 clamp(32px, 6vw, 58px);
  border-top: 1px solid rgba(17, 24, 39, 0.12);
  border-bottom: 1px solid rgba(17, 24, 39, 0.12);
}

.case-hero-copy {
  display: grid;
  align-content: center;
  gap: 12px;
}

.case-hero h3 {
  margin: 0;
  color: #111827;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.98;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.case-meta span {
  background: rgba(255, 255, 255, 0.72);
}

.case-hero-visual {
  min-height: 260px;
  border-radius: 26px;
}

.case-rail {
  display: grid;
}

.case-row {
  display: grid;
  grid-template-columns: 42px minmax(130px, 190px) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 38px);
  align-items: center;
  padding: clamp(22px, 4vw, 34px) 0;
  border-bottom: 1px solid rgba(17, 24, 39, 0.1);
}

.case-row img {
  width: 100%;
  aspect-ratio: 1.45;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 18px;
  object-fit: cover;
  background: #e8ecf1;
}

.case-row strong {
  display: inline-flex;
  margin-top: 10px;
  color: #1f4f9b;
  font-size: 0.84rem;
}

.case-actions {
  justify-content: flex-start;
  margin-top: 16px;
}

.case-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.case-row-actions button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #1f4f9b;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 720;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.case-row-actions button:hover {
  border-color: rgba(37, 99, 235, 0.26);
  background: #ffffff;
  transform: translateY(-1px);
}

.case-image-visual {
  min-height: 260px;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 26px;
  background: #eef2f8;
}

.case-image-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.internship-visual {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.96), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(230, 237, 247, 0.72));
}

.internship-visual img {
  width: auto;
  max-width: 82%;
  height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(15, 23, 42, 0.14));
}

.learning-case-page {
  min-width: 0;
}

.learning-hero-shot {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.7fr);
  gap: clamp(24px, 5vw, 54px);
  align-items: center;
  padding: clamp(24px, 5vw, 42px) 0;
  border-top: 1px solid rgba(17, 24, 39, 0.12);
  border-bottom: 1px solid rgba(17, 24, 39, 0.12);
}

.learning-hero-shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 24px;
  object-fit: cover;
  background: #edf2f7;
}

.internship-hero-shot {
  align-items: stretch;
}

.internship-doc-preview {
  position: relative;
  min-height: clamp(360px, 58vw, 620px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 28px;
  background:
    radial-gradient(circle at 22% 14%, rgba(255, 255, 255, 0.98), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(232, 239, 248, 0.7));
  box-shadow:
    0 24px 70px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.internship-doc-preview img {
  width: auto;
  max-width: 74%;
  height: auto;
  max-height: 82%;
  aspect-ratio: auto;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 14px;
  object-fit: contain;
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);
}

.internship-doc-preview a {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #111827;
  font-size: 0.82rem;
  font-weight: 760;
  text-decoration: none;
  backdrop-filter: blur(18px) saturate(170%);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.internship-doc-preview a span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 26px;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
}

.dual-shot-grid {
  display: grid;
  gap: 12px;
}

.dual-shot-grid figure {
  display: grid;
  gap: 8px;
  margin: 0;
}

.dual-shot-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 20px;
  object-fit: cover;
  background: #edf2f7;
}

.dual-shot-grid figcaption {
  color: #5c6675;
  font-size: 0.78rem;
  font-weight: 680;
}

.case-media-deck {
  display: grid;
  gap: clamp(18px, 4vw, 34px);
  padding: clamp(28px, 6vw, 64px) 0;
  border-bottom: 1px solid rgba(17, 24, 39, 0.12);
}

.case-deck-head {
  position: sticky;
  top: 35px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-top: 1px solid rgba(17, 24, 39, 0.12);
  background: linear-gradient(180deg, rgba(246, 247, 249, 0.96), rgba(246, 247, 249, 0.72));
  backdrop-filter: saturate(160%) blur(18px);
}

.case-deck-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7a8392;
  font-size: 0.82rem;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
}

.case-deck-indicator strong {
  min-width: 2ch;
  color: #111827;
  font-size: 0.9rem;
}

.case-deck-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}

.case-deck-dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c8ced8;
  cursor: pointer;
  transition: width 220ms ease, background-color 220ms ease, transform 220ms ease;
}

.case-deck-dots button.is-active {
  width: 22px;
  background: #111827;
}

.case-deck-dots button:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.55);
  outline-offset: 4px;
}

.case-deck-card {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(220px, 0.58fr);
  gap: clamp(24px, 5vw, 54px);
  align-items: center;
  min-height: clamp(380px, 62vh, 560px);
  padding: clamp(22px, 5vw, 54px) 0;
  scroll-margin-top: 88px;
  opacity: 0.58;
  transform: scale(0.985) translateY(12px);
  transition: opacity 320ms ease, transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.case-deck-card + .case-deck-card {
  border-top: 1px solid rgba(17, 24, 39, 0.08);
}

.case-deck-card.is-active {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.case-deck-media {
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.13);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(235, 241, 248, 0.74));
  box-shadow:
    0 22px 60px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.case-deck-media img,
.case-deck-media video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: contain;
  background: #f3f6fa;
}

.case-deck-media video {
  object-fit: cover;
}

.case-deck-copy {
  display: grid;
  align-content: center;
  gap: 12px;
}

.case-deck-copy span {
  color: #6b7280;
  font-size: 0.7rem;
  font-weight: 780;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-deck-copy h3 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.case-deck-copy p {
  margin: 0;
  color: #566071;
  font-size: clamp(0.96rem, 1.35vw, 1.08rem);
  line-height: 1.58;
}

.learning-hero-shot h3,
.learning-architecture h3 {
  margin: 8px 0 12px;
  color: #111827;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1.08;
}

.learning-hero-shot p,
.learning-architecture p,
.learning-differentiators p,
.learning-gallery figcaption {
  margin: 0;
  color: #5c6675;
  font-size: 0.94rem;
  line-height: 1.55;
}

.learning-differentiators {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid rgba(17, 24, 39, 0.12);
}

.learning-differentiators article {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: clamp(18px, 3vw, 28px) 0;
}

.learning-differentiators article + article {
  padding-left: clamp(18px, 3vw, 28px);
  border-left: 1px solid rgba(17, 24, 39, 0.1);
}

.learning-differentiators span {
  color: #6b7280;
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.1em;
}

.learning-differentiators h3 {
  margin: 0;
  color: #111827;
  font-size: 1.04rem;
  line-height: 1.2;
}

.learning-architecture {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 1fr);
  gap: clamp(24px, 5vw, 54px);
  align-items: center;
  padding: clamp(34px, 6vw, 64px) 0;
  border-bottom: 1px solid rgba(17, 24, 39, 0.12);
}

.architecture-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.96), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(239, 245, 252, 0.64));
}

.architecture-map span {
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 10px;
  border: 1px solid rgba(17, 24, 39, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  color: #1f2937;
  font-size: 0.78rem;
  font-weight: 720;
  text-align: center;
}

.architecture-map span:nth-child(2) {
  grid-column: span 2;
  background: #111827;
  color: #ffffff;
}

.internship-folder {
  display: grid;
  gap: 18px;
  padding: clamp(30px, 6vw, 62px) 0;
  border-bottom: 1px solid rgba(17, 24, 39, 0.12);
}

.internship-folder .case-deck-head {
  position: static;
  background: transparent;
}

.folder-window {
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 28px;
  background:
    radial-gradient(circle at 22% 12%, rgba(255, 255, 255, 0.96), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(236, 243, 251, 0.64));
  box-shadow:
    0 24px 70px rgba(15, 23, 42, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.folder-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.1);
  background: rgba(255, 255, 255, 0.54);
}

.folder-titlebar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

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

.folder-titlebar strong {
  margin-left: 8px;
  color: #4b5563;
  font-size: 0.8rem;
  font-weight: 760;
}

.internship-file-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: clamp(14px, 3vw, 22px);
}

.internship-file-card {
  appearance: none;
  position: relative;
  min-height: 168px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
  color: #111827;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  text-align: left;
  transition: transform 220ms ease, background-color 220ms ease, border-color 220ms ease;
}

.internship-file-card.primary {
  grid-row: span 2;
  min-height: 346px;
  align-content: end;
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.02)),
    url("project-media/realisation-paper-marin-janushaj-thumb.png") center 18px / auto 62% no-repeat,
    rgba(255, 255, 255, 0.7);
}

.internship-file-card.plan-card {
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.04), rgba(17, 24, 39, 0.01)),
    url("project-media/project-plan-smart-nv-iq-puzzler-pro-marin-janushaj-thumb.png") right 14px top 12px / auto 52% no-repeat,
    rgba(255, 255, 255, 0.72);
}

.internship-file-card.reflection-card {
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.04), rgba(17, 24, 39, 0.01)),
    url("project-media/final-reflection-marin-janushaj-thumb.png") right 14px top 12px / auto 52% no-repeat,
    rgba(255, 255, 255, 0.72);
}

.internship-file-card:hover {
  border-color: rgba(37, 99, 235, 0.24);
  background-color: rgba(255, 255, 255, 0.86);
  transform: translateY(-2px);
}

.file-badge {
  width: fit-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 9px;
  background: #111827;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 780;
  letter-spacing: 0.08em;
}

.internship-file-card strong {
  color: #111827;
  font-size: 1rem;
  line-height: 1.2;
}

.internship-file-card small {
  color: #5c6675;
  font-size: 0.82rem;
  line-height: 1.48;
}

.internship-file-card em {
  width: fit-content;
  margin-top: 4px;
  color: #2563eb;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 760;
}

.learning-gallery {
  display: grid;
  gap: 18px;
  padding: clamp(32px, 6vw, 58px) 0;
  border-bottom: 1px solid rgba(17, 24, 39, 0.12);
}

.learning-gallery figure {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.36fr);
  gap: clamp(18px, 4vw, 36px);
  align-items: center;
  margin: 0;
}

.learning-gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 20px;
  object-fit: cover;
  background: #edf2f7;
}

.learning-gallery figcaption {
  color: #374151;
  font-weight: 680;
}

.learning-stack {
  display: grid;
  gap: 14px;
  padding-top: clamp(24px, 5vw, 42px);
}

.learning-stack div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.learning-stack div span {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: #374151;
  font-size: 0.8rem;
  font-weight: 680;
}

.capability-map {
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(244, 247, 250, 0.68));
}

.capability-core {
  display: grid;
  align-content: center;
  gap: 10px;
  min-height: 320px;
  padding: clamp(24px, 4vw, 38px);
  border-right: 1px solid rgba(17, 24, 39, 0.1);
}

.capability-core strong {
  color: #111827;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.98;
}

.capability-column {
  display: grid;
  gap: 12px;
  padding: clamp(18px, 3vw, 28px);
}

.capability-column + .capability-column {
  border-top: 1px solid rgba(17, 24, 39, 0.1);
}

.capability-column.primary {
  background: rgba(255, 255, 255, 0.46);
}

.capability-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.soft-signal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 4vw, 44px);
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(17, 24, 39, 0.12);
}

.soft-signal article {
  display: grid;
  gap: 8px;
}

.soft-signal span {
  color: #111827;
  font-weight: 740;
}

.proof-ledger {
  display: grid;
  border-top: 1px solid rgba(17, 24, 39, 0.12);
}

.proof-ledger > article,
.proof-ledger > a {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: clamp(18px, 4vw, 42px);
  padding: 18px 0;
  border-bottom: 1px solid rgba(17, 24, 39, 0.1);
}

.proof-ledger a {
  transition: background 160ms ease, padding 160ms ease;
}

.proof-ledger a:hover {
  padding-left: 10px;
  background: rgba(255, 255, 255, 0.48);
}

.proof-ledger > a.cv-ledger-card {
  grid-template-columns: minmax(110px, 148px) minmax(0, 1fr);
  align-items: center;
}

.cv-ledger-card > div {
  min-width: 0;
}

.cv-ledger-thumb {
  width: 100%;
  max-width: 132px;
  aspect-ratio: 0.78;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(17, 24, 39, 0.12);
}

.cv-ledger-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.proof-feature {
  padding: clamp(24px, 5vw, 42px) 0 !important;
}

.proof-feature h3 {
  margin: 0 0 10px;
  color: #111827;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.1;
}

.contact-studio {
  min-width: 0;
}

.contact-surface {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.66fr);
  gap: clamp(24px, 5vw, 56px);
  padding: clamp(24px, 5vw, 44px) 0;
  border-top: 1px solid rgba(17, 24, 39, 0.12);
  border-bottom: 1px solid rgba(17, 24, 39, 0.12);
}

.contact-primary {
  display: grid;
  align-content: center;
  gap: 14px;
}

.contact-main-link {
  width: fit-content;
  color: #111827;
  font-size: clamp(1.3rem, 3vw, 2.6rem);
  font-weight: 760;
  line-height: 1;
}

.contact-links {
  display: grid;
  border-top: 1px solid rgba(17, 24, 39, 0.1);
}

.contact-links a {
  display: grid;
  gap: 5px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(17, 24, 39, 0.1);
}

.contact-links strong {
  color: #111827;
  font-size: 1rem;
}

.assistant-panel {
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 24px;
  background: #111827;
  color: #f8fafc;
}

.assistant-topline {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.assistant-topline span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #31d158;
  box-shadow: 0 0 18px rgba(49, 209, 88, 0.55);
}

.assistant-topline strong {
  margin: 0;
  color: #ffffff;
  font-size: 0.9rem;
}

.assistant-topline small {
  justify-self: end;
  color: #8b95a6;
}

.assistant-panel p {
  padding: clamp(18px, 3vw, 26px);
  color: #dbe3ef;
}

body .assistant-panel .preview-bot-chips {
  max-width: none;
  justify-content: flex-start;
  padding: 0 clamp(18px, 3vw, 26px) clamp(18px, 3vw, 26px);
}

body .assistant-panel .preview-bot-chips button {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

body .assistant-panel .preview-bot-chips button:hover {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.14);
}

body .preview-code-media {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, #111827, #1f2937 62%, #172033);
}

body .preview-code-media::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
}

body .preview-code-media > * {
  position: relative;
}

body .preview-canvas .preview-doc.active > * {
  animation: studioRise 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes studioRise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

@media (max-width: 1080px) {
  .story-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .story-index {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding-top: 0;
  }
}

@media (max-width: 720px) {
  .studio-hero,
  .case-hero,
  .learning-hero-shot,
  .case-deck-card,
  .learning-architecture,
  .capability-map,
  .contact-surface {
    grid-template-columns: 1fr;
  }

  .profile-device {
    justify-self: start;
    max-width: 360px;
  }

  .capability-core {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(17, 24, 39, 0.1);
  }
}

@media (max-width: 680px) {
  body .preview-canvas .preview-doc,
  body .preview-doc[data-preview="projects"] {
    width: calc(100% - 28px);
    padding-top: 28px;
  }

  body .preview-page-title,
  body .preview-section-head .preview-page-title {
    font-size: clamp(2rem, 10vw, 3.25rem);
  }

  .studio-hero {
    min-height: auto;
  }

  .signal-strip,
  .editorial-split,
  .story-layout,
  .story-detail-grid,
  .soft-signal,
  .proof-ledger > article,
  .proof-ledger > a {
    grid-template-columns: 1fr;
  }

  .signal-strip article + article {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(17, 24, 39, 0.1);
  }

  .story-index {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
  }

  .story-detail-grid article + article {
    border-left: 0;
    border-top: 1px solid rgba(17, 24, 39, 0.1);
  }

  .case-row {
    grid-template-columns: 1fr;
  }

  .case-row img {
    max-width: 280px;
  }

  .learning-differentiators,
  .learning-gallery figure,
  .internship-file-grid {
    grid-template-columns: 1fr;
  }

  .internship-doc-preview {
    min-height: 430px;
  }

  .internship-file-card.primary {
    grid-row: auto;
    min-height: 300px;
    background-size: auto 54%;
  }

  .case-media-deck {
    gap: 10px;
  }

  .case-deck-head {
    top: 34px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .case-deck-card {
    min-height: auto;
    padding: 24px 0 30px;
    opacity: 1;
    transform: none;
  }

  .case-deck-media {
    border-radius: 22px;
  }

  .case-deck-copy h3 {
    font-size: clamp(1.35rem, 8vw, 2rem);
  }

  .learning-differentiators article + article {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(17, 24, 39, 0.1);
  }

  .architecture-map {
    grid-template-columns: 1fr;
  }

  .architecture-map span:nth-child(2) {
    grid-column: auto;
  }

  .assistant-topline {
    grid-template-columns: auto auto;
  }

  .assistant-topline small {
    display: none;
  }
}

/* Compact phone IDE */
@media (max-width: 680px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  body {
    min-height: 100dvh;
    padding: 0;
    background: var(--window);
  }

  body.is-launching {
    background: #000000;
  }

  .ide-frame {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .ide-topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 50px;
    padding: 7px 10px;
  }

  .traffic-lights {
    gap: 6px;
  }

  .window-control {
    width: 10px;
    height: 10px;
  }

  .workspace-title {
    justify-self: start;
    align-items: flex-start;
    text-align: left;
  }

  .workspace-title strong {
    max-width: 28ch;
    font-size: 0.74rem;
  }

  .workspace-title span {
    max-width: 28ch;
    font-size: 0.6rem;
  }

  .scheme-control {
    display: none;
  }

  .top-actions {
    grid-column: auto;
    justify-content: flex-end;
  }

  .top-actions .canvas-toggle {
    min-height: 30px;
    padding: 0 10px;
    border-radius: 8px;
  }

  .ide-shell {
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
  }

  .explorer {
    flex: 0 0 auto;
    gap: 0;
    overflow: hidden;
    border-right: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.52);
  }

  .explorer-header {
    display: none;
  }

  .file-tree {
    flex: 0 0 auto;
    display: flex;
    gap: 7px;
    min-height: 58px;
    padding: 8px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
  }

  .file-tree::before {
    display: none;
  }

  .file-item {
    width: 134px;
    flex: 0 0 134px;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 6px;
    min-height: 42px;
    margin: 0;
    padding: 6px 8px;
    scroll-snap-align: start;
  }

  .file-icon {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    font-size: 0.54rem;
  }

  .file-copy strong {
    font-size: 0.74rem;
  }

  .file-copy small {
    font-size: 0.58rem;
  }

  .workspace {
    min-height: 0;
    height: auto;
    overflow: hidden;
  }

  .tab-bar,
  .editor-toolbar {
    display: none;
  }

  .editor {
    min-height: 0;
    display: grid;
    overflow: hidden;
  }

  .preview-canvas {
    min-height: 0;
    height: 100%;
    overflow: auto;
    border-top: 0;
  }

  body .preview-canvas .preview-doc,
  body .preview-doc[data-preview="projects"] {
    width: calc(100% - 32px);
    max-width: none;
    padding-top: 26px;
    padding-bottom: 72px;
  }

  body .preview-page-title,
  body .preview-section-head .preview-page-title {
    font-size: clamp(2.05rem, 10vw, 3rem);
  }

  body .preview-lead,
  body .preview-section-head .preview-lead {
    font-size: 1rem;
  }

  .studio-hero {
    gap: 24px;
    padding-bottom: 34px;
  }

  .profile-device {
    width: min(100%, 260px);
  }

  .profile-device img {
    height: 300px;
  }

  .signal-strip article {
    padding: 17px 0;
  }

  .story-chapter {
    padding: 26px 0;
  }

  .case-hero {
    padding: 24px 0 34px;
  }

  .case-hero-visual {
    min-height: 230px;
  }

  .capability-map,
  .assistant-panel {
    border-radius: 20px;
  }

  .workspace.canvas-hidden .preview-canvas {
    display: none;
  }

  .workspace.canvas-hidden .code-stage {
    display: grid;
    height: 100%;
    min-height: 0;
    grid-template-columns: 36px minmax(0, 1fr);
    overflow: hidden;
  }

  .code-stage-content {
    min-height: 0;
    padding: 18px 14px 78px;
    overflow: auto;
  }

  .swift-source {
    font-size: 0.78rem;
    line-height: 1.55;
  }

  .editor-gutter::after {
    right: 7px;
    font-size: 0.64rem;
  }

  .status-bar {
    min-height: 23px;
    flex: 0 0 auto;
    gap: 12px;
    padding: 0 9px;
    font-size: 0.58rem;
  }
}

@media (max-width: 430px) {
  .canvas-toggle-label {
    display: none;
  }

  .top-actions .canvas-toggle {
    min-width: 36px;
    padding: 0 9px;
  }

  .workspace-title strong {
    max-width: 22ch;
  }

  .workspace-title span {
    max-width: 22ch;
  }

  .file-item {
    width: 126px;
    flex-basis: 126px;
  }
}

/* Preview-first mobile refinement */
@media (max-width: 680px) {
  .ide-topbar {
    position: relative;
    z-index: 5;
    min-height: 52px;
    border-bottom-color: rgba(255, 255, 255, 0.08);
    background: rgba(29, 29, 31, 0.92);
    backdrop-filter: saturate(180%) blur(20px);
  }

  .ide-shell {
    position: relative;
    display: block;
  }

  .workspace {
    height: 100%;
  }

  .explorer {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 6;
    display: block;
    width: auto;
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 22px;
    background: rgba(29, 29, 31, 0.72);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    backdrop-filter: saturate(180%) blur(24px);
  }

  .file-tree {
    min-height: 62px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(48px, 1fr);
    gap: 4px;
    padding: 7px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
  }

  .file-item {
    width: auto;
    min-width: 48px;
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 4px;
    min-height: 48px;
    padding: 6px 5px;
    border-radius: 16px;
    scroll-snap-align: center;
  }

  .file-item.active {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
  }

  .file-icon {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.11);
  }

  .file-item.active .file-icon {
    background: var(--accent);
  }

  .file-copy {
    align-items: center;
    width: 100%;
  }

  .file-copy strong {
    max-width: 9ch;
    color: currentColor;
    font-size: 0.58rem;
    font-weight: 720;
    line-height: 1;
    text-align: center;
  }

  .file-copy small {
    display: none;
  }

  .preview-canvas {
    background:
      linear-gradient(180deg, #fbfbfa 0%, #f6f7f5 52%, #edf3f7 100%);
  }

  body .preview-canvas .preview-doc,
  body .preview-doc[data-preview="projects"] {
    width: calc(100% - 30px);
    padding-top: 32px;
    padding-bottom: 128px;
  }

  body .preview-bar {
    min-height: 32px;
    background: rgba(251, 251, 250, 0.76);
  }

  body .preview-bar span {
    font-size: 0.58rem;
  }

  .status-bar {
    display: none;
  }

  .workspace.canvas-hidden .code-stage {
    padding-bottom: 82px;
  }

  .code-stage-content {
    padding-bottom: 126px;
  }
}

@media (max-width: 380px) {
  .file-copy strong {
    display: none;
  }

  .file-tree {
    grid-auto-columns: minmax(44px, 1fr);
    min-height: 56px;
  }

  .file-item {
    min-height: 42px;
    border-radius: 14px;
  }
}

/* Liquid glass mobile dock */
@media (max-width: 680px) {
  body {
    background: #f7f8fa;
  }

  .ide-topbar {
    border-bottom-color: rgba(17, 24, 39, 0.08);
    background: rgba(248, 249, 250, 0.74);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(22px);
  }

  .workspace-title strong {
    color: #161a22;
  }

  .workspace-title span {
    color: #6b7280;
  }

  .top-actions .canvas-toggle,
  .top-actions .canvas-toggle[aria-pressed="false"] {
    border-color: rgba(17, 24, 39, 0.08);
    background: rgba(255, 255, 255, 0.62);
    color: #172033;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    backdrop-filter: saturate(160%) blur(18px);
  }

  .top-actions .canvas-toggle:hover {
    background: rgba(255, 255, 255, 0.82);
  }

  .explorer {
    border-color: rgba(255, 255, 255, 0.62);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(247, 249, 252, 0.52));
    box-shadow:
      0 20px 56px rgba(15, 23, 42, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.88);
    backdrop-filter: saturate(190%) blur(30px);
    transition:
      left 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
      right 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
      width 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
      height 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
      border-radius 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
      transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
      background 260ms ease,
      box-shadow 260ms ease;
  }

  .file-tree {
    transition: padding 240ms ease;
  }

  .file-item {
    color: #4b5563;
    transition:
      background 180ms ease,
      color 180ms ease,
      opacity 180ms ease,
      transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .file-item.active {
    background: rgba(17, 24, 39, 0.07);
    color: #111827;
  }

  .file-icon {
    background: rgba(17, 24, 39, 0.06);
  }

  .file-item.active .file-icon {
    background: var(--accent);
    color: #ffffff;
  }

  body.dock-collapsed .explorer {
    left: 50%;
    right: auto;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow:
      0 18px 44px rgba(15, 23, 42, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.92);
    transform: translateX(-50%);
  }

  body.dock-collapsed .file-tree {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: grid;
    place-items: center;
    grid-auto-columns: auto;
    padding: 0;
    overflow: hidden;
  }

  body.dock-collapsed .file-item {
    display: none;
  }

  body.dock-collapsed .file-item.active {
    width: 48px;
    min-width: 48px;
    min-height: 48px;
    display: grid;
    padding: 0;
    border-radius: 999px;
    background: transparent;
  }

  body.dock-collapsed .file-item.active .file-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(52, 120, 246, 0.3);
  }

  body.dock-collapsed .file-copy {
    display: none;
  }
}

/* Aave-inspired mobile glass dock motion */
@media (max-width: 680px) {
  .ide-topbar {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(245, 248, 252, 0.58));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      0 1px 18px rgba(15, 23, 42, 0.06);
  }

  .explorer {
    left: 12px;
    right: auto;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: calc(100vw - 24px);
    height: 66px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.66);
    border-radius: 28px;
    background:
      radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.92), transparent 34%),
      linear-gradient(140deg, rgba(255, 255, 255, 0.7), rgba(235, 242, 251, 0.48) 52%, rgba(255, 255, 255, 0.62));
    box-shadow:
      0 24px 70px rgba(15, 23, 42, 0.18),
      0 8px 20px rgba(15, 23, 42, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.96),
      inset 0 -1px 0 rgba(255, 255, 255, 0.38);
    transform: translate3d(0, 0, 0);
    transform-origin: 30px 50%;
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    will-change: width, height, border-radius, transform;
    transition:
      width 520ms cubic-bezier(0.22, 1, 0.36, 1),
      height 520ms cubic-bezier(0.22, 1, 0.36, 1),
      border-radius 520ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 420ms ease,
      background 420ms ease;
  }

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

  .explorer::before {
    background:
      radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.9), transparent 26%),
      radial-gradient(circle at 78% 88%, rgba(124, 179, 255, 0.18), transparent 36%),
      linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent 42%, rgba(255, 255, 255, 0.22));
    opacity: 0.9;
    filter: blur(0.2px);
  }

  .explorer::after {
    inset: 1px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    box-shadow:
      inset 10px 12px 24px rgba(255, 255, 255, 0.34),
      inset -10px -12px 24px rgba(72, 95, 128, 0.08);
  }

  .file-tree {
    position: relative;
    z-index: 1;
    height: 100%;
    min-height: 0;
    padding: 7px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .file-folder {
    display: contents;
  }

  .file-folder-label {
    display: none;
  }

  .file-folder .file-item {
    padding: 6px 5px;
  }

  .file-item {
    position: relative;
    z-index: 1;
    color: rgba(30, 41, 59, 0.82);
    transform: scale(0.86) translateY(3px);
    opacity: 0.68;
    will-change: transform, opacity;
    transition:
      opacity 260ms ease,
      visibility 260ms ease,
      transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
      background 220ms ease,
      color 220ms ease;
  }

  .file-item.active {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.34));
    color: #111827;
    opacity: 1;
    transform: scale(1.06) translateY(-2px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.8),
      0 8px 20px rgba(15, 23, 42, 0.08);
  }

  .file-icon {
    width: 21px;
    height: 21px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.48);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
    transition:
      width 260ms cubic-bezier(0.22, 1, 0.36, 1),
      height 260ms cubic-bezier(0.22, 1, 0.36, 1),
      border-radius 260ms cubic-bezier(0.22, 1, 0.36, 1),
      background 220ms ease,
      box-shadow 220ms ease;
  }

  .file-item.active .file-icon {
    width: 29px;
    height: 29px;
    border-radius: 10px;
    background:
      radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.9), transparent 30%),
      var(--accent);
  }

  .file-item:not(.active) .file-copy strong {
    font-size: 0.52rem;
    opacity: 0.82;
  }

  .file-item.active .file-copy strong {
    font-size: 0.62rem;
    opacity: 1;
  }

  body.dock-collapsed .explorer {
    left: 16px;
    right: auto;
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background:
      radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.96), transparent 35%),
      linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(234, 241, 250, 0.62));
    box-shadow:
      0 24px 58px rgba(15, 23, 42, 0.22),
      0 8px 22px rgba(52, 120, 246, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.98),
      inset 0 -1px 0 rgba(255, 255, 255, 0.38);
    transform: translate3d(0, -2px, 0);
  }

  body.dock-collapsed .file-tree {
    display: block;
    padding: 0;
    overflow: hidden;
  }

  body.dock-collapsed .file-item {
    position: absolute;
    left: 8px;
    top: 8px;
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    display: grid;
    padding: 0;
    border-radius: 999px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.62);
  }

  body.dock-collapsed .file-item.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
    background: transparent;
    box-shadow: none;
  }

  body.dock-collapsed .file-item.active .file-icon {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    box-shadow:
      0 10px 22px rgba(52, 120, 246, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }

  body.dock-collapsed .file-copy {
    opacity: 0;
    transform: scale(0.8);
  }

body:not(.dock-collapsed) .file-copy {
    opacity: 1;
    transform: scale(1);
    transition:
      opacity 220ms ease 90ms,
      transform 260ms cubic-bezier(0.22, 1, 0.36, 1) 80ms;
  }
}

/* Shared floating navigator for tablet and phone */
@media (max-width: 1080px) {
  .ide-shell {
    position: relative;
    display: block;
    grid-template-columns: 1fr;
    overflow: hidden;
  }

  .workspace {
    height: 100%;
    min-height: 0;
  }

  .explorer {
    position: absolute;
    left: 14px;
    right: auto;
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 8;
    width: calc(100% - 28px);
    height: 88px;
    display: block;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.66);
    border-radius: 30px;
    background:
      radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.94), transparent 34%),
      linear-gradient(140deg, rgba(255, 255, 255, 0.72), rgba(235, 242, 251, 0.5) 52%, rgba(255, 255, 255, 0.64));
    box-shadow:
      0 24px 70px rgba(15, 23, 42, 0.18),
      0 8px 20px rgba(15, 23, 42, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.96),
      inset 0 -1px 0 rgba(255, 255, 255, 0.38);
    transform: translate3d(0, 0, 0);
    transform-origin: 32px 50%;
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    will-change: width, height, border-radius, transform;
    transition:
      width 520ms cubic-bezier(0.22, 1, 0.36, 1),
      height 520ms cubic-bezier(0.22, 1, 0.36, 1),
      border-radius 520ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 420ms ease,
      background 420ms ease;
  }

  .explorer-header,
  .explorer-card {
    display: none;
  }

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

  .explorer::before {
    background:
      radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.9), transparent 27%),
      radial-gradient(circle at 78% 88%, rgba(124, 179, 255, 0.18), transparent 36%),
      linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent 42%, rgba(255, 255, 255, 0.22));
    opacity: 0.9;
  }

  .explorer::after {
    inset: 1px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    box-shadow:
      inset 10px 12px 24px rgba(255, 255, 255, 0.34),
      inset -10px -12px 24px rgba(72, 95, 128, 0.08);
  }

  .file-tree {
    position: relative;
    z-index: 1;
    height: 100%;
    min-height: 0;
    display: flex;
    align-items: stretch;
    gap: 7px;
    padding: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
  }

  .file-tree::before {
    display: none;
  }

  .file-item {
    width: 64px;
    min-width: 64px;
    flex: 0 0 64px;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    align-content: center;
    gap: 5px;
    min-height: 64px;
    margin: 0;
    padding: 6px 8px;
    border-radius: 18px;
    color: rgba(30, 41, 59, 0.72);
    text-align: center;
    scroll-snap-align: center;
    transform: scale(0.9) translateY(2px);
    opacity: 0.72;
    transition:
      opacity 260ms ease,
      visibility 260ms ease,
      transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
      background 220ms ease,
      color 220ms ease;
  }

  .file-item.active {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.36));
    color: #111827;
    opacity: 1;
    transform: scale(1.04) translateY(-1px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.82),
      0 8px 20px rgba(15, 23, 42, 0.08);
  }

  .file-icon {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
    transition:
      width 260ms cubic-bezier(0.22, 1, 0.36, 1),
      height 260ms cubic-bezier(0.22, 1, 0.36, 1),
      border-radius 260ms cubic-bezier(0.22, 1, 0.36, 1),
      background 220ms ease,
      box-shadow 220ms ease;
  }

  .file-item.active .file-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background:
      radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.9), transparent 30%),
      var(--accent);
    color: #ffffff;
  }

  .file-copy {
    width: 100%;
    min-width: 0;
    align-items: center;
    opacity: 1;
    transform: scale(1);
  }

  .file-copy strong {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    color: currentColor;
    font-size: 0.64rem;
    font-weight: 740;
    line-height: 1.08;
    text-align: center;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .file-copy small {
    display: none;
  }

  .file-item:not(.active) .file-copy strong {
    font-size: 0.6rem;
    opacity: 0.92;
  }

  .file-item.active .file-copy strong {
    font-size: 0.66rem;
    opacity: 1;
  }

  .file-folder {
    position: relative;
    flex: 0 0 auto;
    min-width: max-content;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 64px;
    align-items: stretch;
    gap: 7px;
    margin: 0;
    padding: 18px 8px 6px;
    border: 1px solid rgba(52, 120, 246, 0.16);
    border-radius: 23px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.18));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
    scroll-snap-align: center;
  }

  .file-folder::before {
    content: "Internship";
    position: absolute;
    top: 4px;
    left: 13px;
    color: rgba(30, 41, 59, 0.58);
    font-size: 0.52rem;
    font-weight: 820;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
  }

  .file-folder-label {
    display: none;
  }

  .file-folder .file-item {
    width: 64px;
    min-width: 64px;
    flex-basis: 64px;
    min-height: 52px;
    padding: 4px 6px;
    gap: 3px;
  }

  .file-folder .file-icon {
    width: 22px;
    height: 22px;
    border-radius: 7px;
  }

  .file-folder .file-copy strong {
    font-size: 0.58rem;
    line-height: 1.05;
  }

  body .preview-canvas .preview-doc,
  body .preview-doc[data-preview="projects"] {
    padding-bottom: 134px;
  }

  .status-bar {
    display: none;
  }

  body.dock-collapsed .explorer {
    left: 16px;
    right: auto;
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background:
      radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.96), transparent 35%),
      linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(234, 241, 250, 0.62));
    box-shadow:
      0 24px 58px rgba(15, 23, 42, 0.22),
      0 8px 22px rgba(52, 120, 246, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.98),
      inset 0 -1px 0 rgba(255, 255, 255, 0.38);
    transform: translate3d(0, -2px, 0);
  }

  body.dock-collapsed .file-tree {
    display: block;
    padding: 0;
    overflow: hidden;
  }

  body.dock-collapsed .file-folder {
    display: contents;
  }

  body.dock-collapsed .file-folder::before {
    display: none;
  }

  body.dock-collapsed .file-item {
    position: absolute;
    left: 8px;
    top: 8px;
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    display: grid;
    padding: 0;
    border-radius: 999px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.62);
  }

  body.dock-collapsed .file-item.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
    background: transparent;
    box-shadow: none;
  }

  body.dock-collapsed .file-item.active .file-icon {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    box-shadow:
      0 10px 22px rgba(52, 120, 246, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }

  body.dock-collapsed .file-copy {
    opacity: 0;
    transform: scale(0.8);
  }
}

@media (max-width: 680px) {
  .explorer {
    left: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: calc(100vw - 24px);
    height: 88px;
    border-radius: 28px;
  }

  .file-tree {
    padding: 7px;
    gap: 6px;
  }

  .file-item,
  .file-folder .file-item {
    width: 78px;
    min-width: 78px;
    flex-basis: 78px;
  }

  .file-folder {
    grid-auto-columns: 78px;
    gap: 6px;
    padding-inline: 7px;
  }

  .file-folder .file-item {
    min-height: 50px;
    padding-block: 4px;
  }

  .file-copy strong,
  .file-item:not(.active) .file-copy strong,
  .file-item.active .file-copy strong {
    display: -webkit-box;
    font-size: 0.58rem;
  }
}

@media (max-width: 380px) {
  .file-item,
  .file-folder .file-item {
    width: 74px;
    min-width: 74px;
    flex-basis: 74px;
  }

  .file-folder {
    grid-auto-columns: 74px;
  }
}

/* Phone dock: keep every destination visible instead of hiding tabs in a carousel. */
@media (max-width: 680px) {
  body:not(.dock-collapsed) .explorer {
    left: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    width: calc(100vw - 20px);
    height: 154px;
    border-radius: 28px;
    overflow: hidden;
  }

  body:not(.dock-collapsed) .file-tree {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: 54px 74px;
    align-items: stretch;
    gap: 7px 5px;
    height: 100%;
    padding: 9px;
    overflow: hidden;
    scroll-snap-type: none;
  }

  body:not(.dock-collapsed) .file-tree > .file-item {
    width: auto;
    min-width: 0;
    height: 54px;
    min-height: 54px;
    flex: none;
    padding: 5px 3px;
    gap: 3px;
    border-radius: 16px;
    color: rgba(15, 23, 42, 0.88);
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    transform: none;
  }

  body:not(.dock-collapsed) .file-tree > .file-item.active {
    opacity: 1;
    transform: none;
  }

  body:not(.dock-collapsed) .file-tree > .file-item[data-open="about"] {
    grid-column: 1;
    grid-row: 1;
  }

  body:not(.dock-collapsed) .file-tree > .file-item[data-open="aboutme"] {
    grid-column: 2;
    grid-row: 1;
  }

  body:not(.dock-collapsed) .file-tree > .file-item[data-open="projects"] {
    grid-column: 3;
    grid-row: 1;
  }

  body:not(.dock-collapsed) .file-tree > .file-item[data-open="skills"] {
    grid-column: 4;
    grid-row: 1;
  }

  body:not(.dock-collapsed) .file-tree > .file-item[data-open="documents"] {
    grid-column: 5;
    grid-row: 1;
  }

  body:not(.dock-collapsed) .file-tree > .file-item[data-open="contact"] {
    grid-column: 6;
    grid-row: 1;
  }

  body:not(.dock-collapsed) .file-icon {
    width: 20px;
    height: 20px;
    border-radius: 7px;
    font-size: 0.54rem;
  }

  body:not(.dock-collapsed) .file-item.active .file-icon {
    width: 24px;
    height: 24px;
    border-radius: 9px;
  }

  body:not(.dock-collapsed) .file-copy strong,
  body:not(.dock-collapsed) .file-item:not(.active) .file-copy strong,
  body:not(.dock-collapsed) .file-item.active .file-copy strong {
    display: -webkit-box;
    font-size: clamp(0.53rem, 2vw, 0.6rem);
    line-height: 1.04;
    opacity: 1;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.72);
    -webkit-line-clamp: 2;
  }

  body:not(.dock-collapsed) .file-folder {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-flow: initial;
    grid-auto-columns: initial;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    height: 74px;
    margin: 0;
    padding: 17px 7px 7px;
    gap: 6px;
    border-radius: 21px;
    overflow: hidden;
  }

  body:not(.dock-collapsed) .file-folder::before {
    content: "Internship files";
    top: 5px;
    left: 12px;
    font-size: 0.48rem;
    color: rgba(30, 41, 59, 0.62);
  }

  body:not(.dock-collapsed) .file-folder .file-item {
    width: auto;
    min-width: 0;
    height: 49px;
    min-height: 49px;
    flex: none;
    padding: 3px 4px;
    gap: 2px;
    border-radius: 15px;
    color: rgba(15, 23, 42, 0.88);
    opacity: 1;
    background: rgba(255, 255, 255, 0.22);
    transform: none;
  }

  body:not(.dock-collapsed) .file-folder .main-file {
    color: rgba(15, 23, 42, 0.88);
  }

  body:not(.dock-collapsed) .file-folder .file-icon {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    font-size: 0.48rem;
  }

  body:not(.dock-collapsed) .file-folder .file-copy strong {
    color: rgba(15, 23, 42, 0.88);
    font-size: clamp(0.48rem, 1.82vw, 0.55rem);
  }

  body .preview-canvas .preview-doc,
  body .preview-doc[data-preview="projects"] {
    padding-bottom: 212px;
  }
}

@media (max-width: 380px) {
  body:not(.dock-collapsed) .explorer {
    height: 152px;
    border-radius: 25px;
  }

  body:not(.dock-collapsed) .file-tree {
    grid-template-rows: 52px 74px;
    gap: 6px 4px;
    padding: 8px;
  }

  body:not(.dock-collapsed) .file-tree > .file-item {
    height: 52px;
    min-height: 52px;
  }

  body:not(.dock-collapsed) .file-folder {
    height: 74px;
    padding-inline: 6px;
    gap: 4px;
  }
}
