:root {
  color-scheme: dark;
  --wallpaper-navy: #080b18;
  --wallpaper-violet: #17142c;
  --xcode-toolbar: #303034;
  --xcode-tab: #252527;
  --xcode-sidebar: #232326;
  --xcode-editor: #1d1d1f;
  --xcode-border: rgba(255, 255, 255, 0.09);
  --text-primary: #f3f3f5;
  --text-secondary: #b5b5bb;
  --text-tertiary: #77777f;
  --selection: #0d65ad;
  --selection-soft: rgba(24, 126, 214, 0.72);
  --accent: #65adf3;
  --keyword: #fc5fa3;
  --type: #5dd8ff;
  --property: #d0a8ff;
  --string: #fc8f8f;
  --comment: #6c9f6f;
  --number: #d0bf69;
  --function: #67b7a4;
  --menu-height: 30px;
  --navigator-width: clamp(220px, 17vw, 254px);
  --font-sans: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-mono: "SF Mono", "SFMono-Regular", ui-monospace, Menlo, Monaco, Consolas, monospace;
  font-family: var(--font-sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--wallpaper-navy);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--wallpaper-navy);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

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

button {
  color: inherit;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid rgba(111, 187, 255, 0.95);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f5f5f7;
  color: #141416;
  font-size: 13px;
  font-weight: 650;
  transform: translateY(-150%);
  transition: transform 140ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.menu-bar {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  display: flex;
  height: var(--menu-height);
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 0;
  background: rgba(9, 11, 28, 0.38);
  box-shadow: none;
  -webkit-backdrop-filter: blur(26px) saturate(1.24);
  backdrop-filter: blur(26px) saturate(1.24);
  color: rgba(255, 255, 255, 0.94);
  font-size: 13px;
  letter-spacing: -0.01em;
  user-select: none;
}

.menu-bar__left,
.menu-bar__right,
.desktop-menus {
  display: flex;
  align-items: center;
}

.menu-bar__left {
  min-width: 0;
  gap: 18px;
}

.brand-mark {
  display: block;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  object-fit: contain;
}

.desktop-menus {
  gap: 1px;
}

.desktop-menus button {
  height: 24px;
  padding: 0 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  cursor: default;
  font-size: 13px;
}

.desktop-menus button:hover {
  background: rgba(255, 255, 255, 0.09);
}

.menu-bar__right {
  gap: 9px;
  font-variant-numeric: tabular-nums;
}

.status-icon {
  width: 17px;
  height: 17px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.wifi-icon circle {
  fill: currentColor;
  stroke: none;
}

.battery-icon {
  position: relative;
  display: block;
  width: 22px;
  height: 12px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 2.5px;
}

.battery-icon::after {
  position: absolute;
  top: 3px;
  right: -3px;
  width: 2px;
  height: 4px;
  border-radius: 0 1px 1px 0;
  background: rgba(255, 255, 255, 0.82);
  content: "";
}

.battery-icon i {
  position: absolute;
  inset: 2px 4px 2px 2px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.9);
}

.menu-clock {
  min-width: 34px;
}

.desktop-stage {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  overflow: hidden;
  background-color: #02034f;
  background-image: url("assets/images/bg.jpg");
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.desktop-stage::before,
.desktop-stage::after {
  content: none;
}

.mobile-intro {
  display: none;
}

.widgets-viewport {
  display: contents;
}

.desktop-widgets {
  position: absolute;
  z-index: 2;
  top: calc(var(--menu-height) + 48px);
  left: 2.25%;
  display: grid;
  width: 320px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  pointer-events: none;
}

.widget {
  position: relative;
  overflow: hidden;
  width: 100%;
  flex: 0 0 auto;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(37, 41, 63, 0.58), rgba(20, 22, 37, 0.4));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.19), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(26px) saturate(1.2);
  backdrop-filter: blur(26px) saturate(1.2);
  color: rgba(255, 255, 255, 0.96);
  animation: widget-enter 520ms both cubic-bezier(.2, .8, .2, 1);
}

.widget-label {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.15em;
}

.widget--media {
  height: 154px;
  grid-column: 1 / -1;
  padding: 17px 18px 13px;
  pointer-events: auto;
  background:
    radial-gradient(circle at 112% -12%, rgba(255, 45, 77, 0.2), transparent 46%),
    linear-gradient(145deg, rgba(34, 37, 57, 0.76), rgba(18, 21, 35, 0.58));
  animation-delay: 30ms;
  transition: background-color 220ms ease;
}

.widget--media.is-blog {
  background:
    radial-gradient(circle at 112% -12%, rgba(68, 150, 222, 0.24), transparent 46%),
    linear-gradient(145deg, rgba(31, 40, 61, 0.76), rgba(18, 24, 39, 0.58));
}

.media-pages {
  position: relative;
  height: 112px;
}

.media-page {
  position: absolute;
  inset: 0;
  display: none;
  padding-right: 96px;
}

.media-page.is-active {
  display: block;
  animation: media-page-enter 220ms ease both;
}

.media-heading {
  display: block;
  margin-bottom: 10px;
}

.media-heading .widget-label {
  margin: 0;
}

.media-icon {
  position: absolute;
  top: 0;
  right: 2px;
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border-radius: 20px;
  transform: rotate(2deg);
}

.media-icon svg {
  width: 36px;
  height: 36px;
}

.media-icon--youtube {
  background: #ff0033;
  box-shadow: 0 5px 15px rgba(255, 0, 51, 0.2);
}

.media-icon--youtube svg {
  width: 38px;
  height: 28px;
  fill: #fff;
}

.media-icon--youtube .media-icon-play {
  fill: #ff0033;
}

.media-icon--blog {
  background: linear-gradient(145deg, #459ad9, #315dba);
  box-shadow: 0 5px 15px rgba(62, 126, 207, 0.2);
}

.media-icon--blog svg {
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.media-page h2 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.media-summary {
  max-width: 190px;
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10.5px;
  line-height: 1.35;
}

.media-page a {
  color: rgba(255, 255, 255, 0.91);
  font-size: 10.5px;
  font-weight: 620;
  text-decoration: none;
}

.media-page a:hover {
  color: #fff;
}

.media-page a:focus-visible,
.media-pagination button:focus-visible {
  outline: 2px solid rgba(113, 184, 247, 0.88);
  outline-offset: 3px;
}

.media-pagination {
  position: absolute;
  right: 16px;
  bottom: 11px;
  left: 18px;
  display: flex;
  height: 18px;
  align-items: center;
  gap: 6px;
}

.media-dot,
.media-pause {
  margin: 0;
  border: 0;
  color: rgba(255, 255, 255, 0.54);
  cursor: pointer;
}

.media-dot {
  width: 5px;
  height: 5px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  transition: width 160ms ease, border-radius 160ms ease, background-color 160ms ease;
}

.media-dot.is-active {
  width: 16px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.78);
}

.media-pause {
  display: grid;
  width: 19px;
  height: 19px;
  margin-left: auto;
  padding: 0;
  place-items: center;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 8px;
}

.media-pause:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.widget--portrait {
  height: 154px;
  background: #11131d;
  animation-delay: 40ms;
}

.widget--portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
  filter: saturate(0.9) contrast(1.04);
  transition: opacity 180ms ease;
}

.widget--portrait::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(5, 7, 15, 0.16) 59%, rgba(5, 7, 15, 0.82) 100%);
  content: "";
}

.widget--portrait h2 {
  position: absolute;
  z-index: 1;
  right: 17px;
  bottom: 14px;
  left: 17px;
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 660;
  letter-spacing: -0.035em;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.46);
}

.xcode-window {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  display: flex;
  width: min(74vw, 1420px);
  height: min(76dvh, 880px);
  min-height: 480px;
  max-width: calc(100vw - 16px);
  max-height: calc(100dvh - var(--menu-height) - 94px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--xcode-border);
  border-radius: 13px;
  background: var(--xcode-editor);
  box-shadow: 0 38px 96px rgba(0, 0, 0, 0.48), 0 5px 18px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transform: translate(-50%, -50%);
  transform-origin: center bottom;
  transition: top 260ms cubic-bezier(.2, .8, .2, 1), left 260ms cubic-bezier(.2, .8, .2, 1), width 260ms cubic-bezier(.2, .8, .2, 1), height 260ms cubic-bezier(.2, .8, .2, 1), opacity 220ms ease, transform 260ms cubic-bezier(.2, .8, .2, 1), box-shadow 220ms ease;
  animation: xcode-enter 580ms both cubic-bezier(.2, .8, .2, 1);
}

.xcode-window.has-entered {
  animation: none;
}

.xcode-window.is-dragging {
  cursor: grabbing;
  box-shadow: 0 26px 66px rgba(0, 0, 0, 0.43), 0 4px 13px rgba(0, 0, 0, 0.26);
  transform: scale(0.998);
  transition: none;
  user-select: none;
}

.xcode-window.is-resizing {
  box-shadow: 0 30px 78px rgba(0, 0, 0, 0.46), 0 4px 15px rgba(0, 0, 0, 0.28);
  transition: none;
  user-select: none;
}

.xcode-resize-handle {
  position: absolute;
  z-index: 40;
  display: block;
  padding: 0;
  border: 0;
  appearance: none;
  background: transparent;
  touch-action: none;
}

.xcode-resize-handle--n,
.xcode-resize-handle--s {
  right: 14px;
  left: 14px;
  height: 7px;
  cursor: ns-resize;
}

.xcode-resize-handle--n {
  top: 0;
}

.xcode-resize-handle--s {
  bottom: 0;
}

.xcode-resize-handle--e,
.xcode-resize-handle--w {
  top: 14px;
  bottom: 14px;
  width: 7px;
  cursor: ew-resize;
}

.xcode-resize-handle--e {
  right: 0;
}

.xcode-resize-handle--w {
  left: 0;
}

.xcode-resize-handle--ne,
.xcode-resize-handle--nw,
.xcode-resize-handle--se,
.xcode-resize-handle--sw {
  width: 14px;
  height: 14px;
}

.xcode-resize-handle--ne {
  top: 0;
  right: 0;
  cursor: nesw-resize;
}

.xcode-resize-handle--nw {
  top: 0;
  left: 0;
  cursor: nwse-resize;
}

.xcode-resize-handle--se {
  right: 0;
  bottom: 0;
  cursor: nwse-resize;
}

.xcode-resize-handle--sw {
  bottom: 0;
  left: 0;
  cursor: nesw-resize;
}

.xcode-window.is-maximized .xcode-resize-handle,
.xcode-window.is-minimized .xcode-resize-handle {
  display: none;
}

.xcode-window.is-maximized {
  top: calc(var(--menu-height) + 8px) !important;
  left: 8px !important;
  width: calc(100vw - 16px) !important;
  height: calc(100dvh - var(--menu-height) - 94px) !important;
  min-height: 0;
  transform: none !important;
}

.xcode-window.is-minimized {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 28vh) scale(0.82) !important;
  transition: opacity 210ms ease, transform 260ms cubic-bezier(.4, 0, .8, .5), visibility 0s 260ms;
}

.xcode-window.is-focused {
  animation: window-focus 280ms ease;
}

.xcode-window.close-feedback {
  animation: close-feedback 300ms ease;
}

.xcode-toolbar {
  position: relative;
  display: flex;
  height: 52px;
  flex: 0 0 52px;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.5);
  background: linear-gradient(#37373a, #303033);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
  cursor: grab;
}

.traffic-lights {
  display: flex;
  min-width: 65px;
  align-items: center;
  gap: 8px;
  margin-right: 4px;
}

.traffic-light {
  position: relative;
  display: grid;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  padding: 0;
  place-items: center;
  border: 0.5px solid rgba(0, 0, 0, 0.23);
  border-radius: 50%;
  color: rgba(0, 0, 0, 0.62);
  cursor: default;
}

.traffic-light span {
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  opacity: 0;
}

.traffic-lights:hover .traffic-light span {
  opacity: 1;
}

.traffic-light--close { background: #ff5f57; }
.traffic-light--minimize { background: #febc2e; }
.traffic-light--maximize { background: #28c840; }

.toolbar-icon {
  display: grid;
  width: 29px;
  height: 28px;
  flex: 0 0 29px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #c8c8cc;
  cursor: default;
}

.toolbar-icon:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
}

.toolbar-icon:active:not(:disabled) {
  background: rgba(0, 0, 0, 0.16);
}

.toolbar-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
}

.toolbar-icon .run-triangle {
  fill: currentColor;
  stroke: none;
}

.toolbar-icon.stop-button {
  color: #7d7d82;
}

.toolbar-icon.stop-button svg rect {
  fill: currentColor;
  stroke: none;
}

.toolbar-separator {
  width: 1px;
  height: 20px;
  margin: 0 2px;
  background: rgba(0, 0, 0, 0.34);
  box-shadow: 1px 0 rgba(255, 255, 255, 0.06);
}

.mobile-nav-trigger {
  display: none;
}

.project-identity {
  position: absolute;
  left: 50%;
  display: flex;
  min-width: 150px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transform: translateX(-50%);
}

.project-identity strong {
  font-size: 12px;
  font-weight: 620;
  line-height: 1.2;
}

.project-identity span {
  color: #909096;
  font-size: 9px;
  line-height: 1.25;
}

.scheme-picker {
  display: flex;
  height: 34px;
  min-width: 174px;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 0 8px;
  border: 1px solid rgba(0, 0, 0, 0.36);
  border-radius: 6px;
  background: linear-gradient(rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.02));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
  color: #d2d2d4;
  cursor: default;
}

.scheme-icon {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 4px;
  background: linear-gradient(145deg, #5ec6f3, #1675d1);
  color: #fff;
  font-size: 9px;
  font-weight: 750;
}

.scheme-picker > span:nth-child(2) {
  display: flex;
  min-width: 104px;
  flex: 1;
  flex-direction: column;
}

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

.scheme-picker strong {
  font-size: 10px;
  font-weight: 610;
}

.scheme-picker small {
  color: #98989d;
  font-size: 9px;
}

.scheme-picker > svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: #8c8c91;
  stroke-width: 1.2;
}

.console-toggle {
  margin-left: 1px;
  font-family: var(--font-mono);
  font-size: 10px;
}

.console-toggle[aria-pressed="true"],
.navigator-toggle[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.1);
  color: #f2f2f4;
}

.xcode-body {
  display: flex;
  min-height: 0;
  flex: 1;
  background: var(--xcode-editor);
}

.project-navigator {
  position: relative;
  display: flex;
  width: var(--navigator-width);
  min-width: 0;
  flex: 0 0 var(--navigator-width);
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid rgba(0, 0, 0, 0.56);
  background: var(--xcode-sidebar);
  transition: width 180ms ease, flex-basis 180ms ease, opacity 140ms ease;
}

.xcode-window.navigator-hidden .project-navigator {
  width: 0;
  flex-basis: 0;
  opacity: 0;
}

.navigator-heading {
  display: flex;
  height: 34px;
  flex: 0 0 34px;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 0 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.33);
  color: #a4a4aa;
}

.navigator-heading > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.navigator-heading svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #77aee4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.15;
}

.navigator-heading span {
  font-size: 9px;
  font-weight: 680;
  letter-spacing: 0.09em;
}

.navigator-heading kbd {
  padding: 2px 5px;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
  color: #77777d;
  font-family: inherit;
  font-size: 8px;
}

.project-tree {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 6px 7px 10px;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
  scrollbar-width: thin;
}

.tree-item {
  display: flex;
  width: 100%;
  height: 28px;
  align-items: center;
  gap: 5px;
  padding: 0 7px 0 calc(5px + (var(--tree-level, 0) * 14px));
  overflow: hidden;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #c8c8cb;
  cursor: default;
  font-size: 11.5px;
  text-align: left;
  white-space: nowrap;
}

.tree-item:hover {
  background: rgba(255, 255, 255, 0.045);
  color: #ededee;
}

.tree-item.is-selected {
  background: linear-gradient(90deg, #126cb3, #0e62a4);
  color: #fff;
}

.tree-item.is-root {
  color: #e5e5e7;
  font-weight: 610;
}

.tree-chevron {
  width: 9px;
  flex: 0 0 9px;
  color: #a2a2a7;
  font-size: 9px;
  text-align: center;
  transform-origin: center;
  transition: transform 110ms ease;
}

.tree-chevron.is-expanded {
  transform: rotate(90deg);
}

.tree-chevron.is-empty {
  visibility: hidden;
}

.tree-icon {
  position: relative;
  display: grid;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  place-items: center;
}

.tree-icon--folder::before {
  width: 13px;
  height: 9px;
  border-radius: 1.5px;
  background: linear-gradient(#53a7e7, #337fc0);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.18);
  content: "";
}

.tree-icon--folder::after {
  position: absolute;
  top: 2px;
  left: 1px;
  width: 7px;
  height: 3px;
  border-radius: 1px 1px 0 0;
  background: #5dacdf;
  content: "";
}

.tree-icon--swift {
  border-radius: 3px;
  background: linear-gradient(145deg, #f6973f, #e86235);
  color: #fff;
  font-size: 8px;
  font-style: italic;
  font-weight: 760;
}

.tree-icon--swift::before {
  content: "S";
}

.tree-icon--project img {
  width: 15px;
  height: 15px;
  border-radius: 3.5px;
  object-fit: cover;
}

.tree-icon--settings,
.tree-icon--external {
  color: #8d8d94;
  font-size: 9px;
}

.tree-icon--settings {
  font-size: 8px;
}

.tree-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tree-item .tree-meta {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.38);
  font-size: 9px;
}

.navigator-scrim {
  display: none;
}

.editor-column {
  position: relative;
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  background: var(--xcode-editor);
}

.editor-tabs {
  display: flex;
  height: 34px;
  min-height: 34px;
  overflow-x: auto;
  overflow-y: hidden;
  border-bottom: 1px solid rgba(0, 0, 0, 0.48);
  background: #29292b;
  scrollbar-width: none;
}

.editor-tabs::-webkit-scrollbar {
  display: none;
}

.editor-tab {
  display: flex;
  min-width: 142px;
  max-width: 210px;
  height: 34px;
  flex: 0 1 190px;
  align-items: center;
  gap: 6px;
  padding: 0 7px 0 10px;
  overflow: hidden;
  border: 0;
  border-right: 1px solid rgba(0, 0, 0, 0.43);
  background: #2d2d2f;
  color: #919196;
  cursor: default;
  font-size: 10.5px;
}

.editor-tab:hover {
  color: #d2d2d5;
}

.editor-tab[aria-selected="true"] {
  background: var(--xcode-editor);
  color: #dedee0;
}

.tab-icon {
  display: grid;
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  place-items: center;
  border-radius: 2.5px;
  background: linear-gradient(145deg, #f6973f, #e86235);
  color: #fff;
  font-size: 7px;
  font-style: italic;
  font-weight: 750;
}

.editor-tab[data-file-type="project"] .tab-icon {
  overflow: hidden;
  background: transparent;
}

.editor-tab[data-file-type="project"] .tab-icon img {
  width: 100%;
  height: 100%;
  border-radius: 2.5px;
}

.tab-name {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tab-close {
  display: grid;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #727278;
  font-size: 13px;
  line-height: 1;
}

.editor-tab:hover .tab-close,
.editor-tab[aria-selected="true"] .tab-close {
  color: #a6a6ab;
}

.tab-close:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ededee;
}

.breadcrumb-bar {
  display: flex;
  height: 29px;
  min-height: 29px;
  align-items: center;
  justify-content: space-between;
  padding: 0 9px 0 13px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.43);
  background: #222224;
  color: #8e8e93;
  font-size: 9.5px;
}

.breadcrumb-bar nav {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  white-space: nowrap;
}

.breadcrumb-part {
  overflow: hidden;
  text-overflow: ellipsis;
}

.breadcrumb-separator {
  color: #56565c;
  font-size: 11px;
}

.editor-actions svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #737379;
  stroke-width: 1;
}

.editor-content {
  min-height: 0;
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 24px clamp(24px, 4vw, 68px) 52px;
  background: var(--xcode-editor);
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
  scrollbar-width: thin;
}

.editor-content.is-changing > * {
  animation: editor-change 170ms ease both;
}

.editor-content::-webkit-scrollbar,
.project-tree::-webkit-scrollbar,
.project-showcase__screenshots::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

.editor-content::-webkit-scrollbar-thumb,
.project-tree::-webkit-scrollbar-thumb,
.project-showcase__screenshots::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  background-clip: padding-box;
}

.editor-document {
  width: min(100%, 880px);
  margin: 0 auto;
  font-family: var(--font-mono);
}

.document-heading {
  display: flex;
  align-items: flex-start;
  gap: 17px;
  margin-bottom: 22px;
}

.document-heading__copy {
  min-width: 0;
  flex: 1;
}

.document-heading__logo {
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  object-fit: cover;
  opacity: 0.62;
  filter: saturate(0.35);
}

.editor-eyebrow,
.editor-mark {
  font-family: var(--font-mono);
}

.editor-eyebrow {
  margin: 0;
  color: #687a6a;
  font-size: clamp(11px, 1vw, 13px);
  line-height: 1.5;
}

.document-heading h1 {
  margin: 0;
  color: #f1f1f3;
  font-size: clamp(24px, 2.25vw, 36px);
  font-weight: 670;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.markdown-document-title::before {
  margin-right: 10px;
  color: #b48bea;
  content: "#";
  font-family: var(--font-mono);
  font-weight: 540;
}

.document-subtitle {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin: 0;
  color: #9fa0a9;
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.document-subtitle::before {
  color: #6faedb;
  content: ">";
  font-weight: 650;
}

.document-subtitle__value + .document-subtitle__value::before {
  margin-right: 14px;
  color: #4d4d52;
  content: "•";
}

.code-block {
  margin: 0 0 30px;
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.03vw, 14px);
  font-variant-ligatures: none;
  line-height: 1.7;
}

.code-line {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  min-height: 1.7em;
}

.markdown-editor-line {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  min-height: 1.7em;
}

.markdown-editor-line > .line-number {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 520;
  line-height: 1.7;
}

.line-number {
  padding-right: 11px;
  color: #7a7b85;
  font-size: 0.88em;
  text-align: right;
  user-select: none;
}

.line-code {
  min-width: 0;
  padding-left: 15px;
  border-left: 1px solid rgba(255, 255, 255, 0.045);
  color: #d8d8dc;
  white-space: pre-wrap;
}

.markdown-line__content {
  min-width: 0;
  padding-left: 15px;
  border-left: 1px solid rgba(255, 255, 255, 0.085);
}

.markdown-comment-line {
  margin-bottom: 7px;
}

.markdown-title-line {
  margin-bottom: 9px;
}

.syntax-keyword { color: var(--keyword); }
.syntax-type { color: var(--type); }
.syntax-property { color: var(--property); }
.syntax-string { color: var(--string); }
.syntax-comment { color: var(--comment); }
.syntax-number { color: var(--number); }
.syntax-function { color: var(--function); }
.syntax-muted { color: #9b9ba2; }

.editor-section {
  position: relative;
  margin: 36px 0 0;
  font-family: var(--font-mono);
}

.editor-mark {
  margin: 0;
  color: #dfc8f5;
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.markdown-mark-line {
  margin-bottom: 15px;
}

.editor-mark::before,
.markdown-subheading::before {
  display: inline-block;
  color: #a879dc;
  font-weight: 560;
}

.editor-mark::before {
  margin-right: 9px;
  content: "##";
}

.markdown-subheading {
  margin: 0;
  color: #d7d7de;
  font-size: clamp(14px, 1.15vw, 17px);
  font-weight: 620;
  letter-spacing: -0.015em;
  line-height: 1.5;
}

.markdown-subheading-line,
.markdown-paragraph-line {
  margin-bottom: 12px;
}

.markdown-subheading::before {
  margin-right: 8px;
  content: "###";
}

.editor-section .markdown-paragraph {
  max-width: 760px;
  margin: 0;
  color: #b9b9c2;
  font-size: clamp(13px, 1.03vw, 15px);
  letter-spacing: -0.01em;
  line-height: 1.72;
}

.editor-list {
  display: grid;
  gap: 11px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.editor-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
}

.markdown-list-item {
  display: grid;
  grid-template-columns: 13px minmax(0, 1fr);
  gap: 7px;
  color: #b9b9c2;
  font-size: clamp(13px, 1.03vw, 15px);
  line-height: 1.65;
}

.markdown-list-item::before {
  color: #70b3e1;
  content: "-";
  font-weight: 720;
}

.editor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
}

.markdown-tags-line {
  margin-top: 8px;
}

.editor-tag {
  padding: 3px 6px;
  border: 1px solid rgba(102, 185, 219, 0.14);
  border-radius: 4px;
  background: rgba(49, 114, 145, 0.1);
  color: #86c9dc;
  font-family: inherit;
  font-size: 10.5px;
}

.editor-tag::before,
.editor-tag::after {
  color: #77838c;
  content: "`";
}

.editor-links {
  display: grid;
  gap: 7px;
  margin-top: 7px;
}

.markdown-link-line .markdown-line__content {
  display: flex;
  justify-content: flex-start;
}

.editor-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #75b8e7;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 540;
  text-decoration: none;
}

.editor-link::before {
  color: #a879dc;
  content: "[";
}

.editor-link__label::after {
  color: #a879dc;
  content: "]";
}

.editor-link__target {
  color: #778995;
}

.editor-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.metric-line {
  display: flex;
  align-items: baseline;
  gap: 11px;
  margin: 0;
  padding-left: 10px;
  border-left: 2px solid rgba(112, 179, 225, 0.44);
}

.markdown-metric-line {
  margin-top: 6px;
}

.metric-line::before {
  color: #70b3e1;
  content: ">";
  font-weight: 700;
}

.metric-line strong {
  color: #7dc0f2;
  font-family: var(--font-mono);
  font-size: clamp(19px, 2vw, 27px);
  font-weight: 590;
}

.metric-line span {
  color: #a1a1a7;
  font-size: 13px;
}

.project-showcase {
  width: min(100%, 900px);
  margin: 0 auto;
}

.project-showcase__header {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 19px;
  align-items: center;
  margin-bottom: 26px;
}

.project-showcase__icon {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28), inset 0 0 0 0.5px rgba(255, 255, 255, 0.16);
}

.project-showcase__header h1 {
  margin: 0 0 4px;
  font-size: clamp(27px, 2.5vw, 38px);
  font-weight: 680;
  letter-spacing: -0.04em;
}

.project-showcase__header p {
  margin: 0;
  color: #929299;
  font-size: 13px;
}

.target-tabs {
  display: flex;
  gap: 22px;
  height: 35px;
  margin-bottom: 23px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.target-tab {
  position: relative;
  display: flex;
  align-items: flex-start;
  color: #8f8f95;
  font-size: 11px;
  font-weight: 550;
}

.target-tab.is-active {
  color: #e4e4e6;
}

.target-tab.is-active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: #238ee0;
  content: "";
}

.target-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 34px;
  margin: 0 0 25px;
}

.target-field {
  min-width: 0;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.target-field dt {
  margin-bottom: 6px;
  color: #717178;
  font-size: 9px;
  font-weight: 690;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.target-field dd {
  margin: 0;
  color: #c8c8cd;
  font-size: 13px;
  line-height: 1.55;
}

.target-field--wide {
  grid-column: 1 / -1;
}

.app-store-link {
  display: inline-flex;
  height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 7px;
  background: linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  color: #dedee0;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
  font-size: 11px;
  font-weight: 560;
  text-decoration: none;
}

.app-store-link:hover {
  border-color: rgba(110, 179, 237, 0.32);
  background: rgba(63, 135, 193, 0.15);
}

.project-showcase__screenshots {
  display: flex;
  gap: 13px;
  margin-top: 28px;
  overflow-x: auto;
  padding: 0 0 10px;
}

.project-showcase__screenshots img {
  width: min(29%, 180px);
  min-width: 132px;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 11px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
}

.empty-screenshots {
  margin: 28px 0 0;
  padding-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #73737a;
  font-size: 11px;
}

.file-not-found {
  padding-top: 8vh;
}

.file-not-found .code-block {
  margin-bottom: 24px;
}

.file-not-found button {
  height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.065);
  color: #dcdcdf;
  cursor: pointer;
  font-size: 11px;
}

.debug-console {
  display: none;
  height: 142px;
  min-height: 110px;
  flex: 0 0 142px;
  overflow: hidden;
  border-top: 1px solid rgba(0, 0, 0, 0.75);
  background: #1a1a1c;
  box-shadow: 0 -1px rgba(255, 255, 255, 0.035);
}

.debug-console.is-open {
  display: block;
  animation: console-open 160ms ease both;
}

.debug-console header {
  display: flex;
  height: 26px;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 0 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  color: #7e7e84;
  font-size: 9px;
}

.debug-console button {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #77777d;
  cursor: pointer;
}

.debug-console button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #c5c5c8;
}

.debug-console pre {
  height: calc(100% - 26px);
  margin: 0;
  overflow: auto;
  padding: 10px 13px;
  color: #b1b1b6;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.console-success {
  color: #83c68b;
}

.xcode-statusbar {
  display: flex;
  height: 23px;
  min-height: 23px;
  align-items: center;
  gap: 15px;
  padding: 0 11px;
  border-top: 1px solid rgba(0, 0, 0, 0.46);
  background: #252527;
  color: #77777d;
  font-size: 9px;
}

.branch-status {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #9b9ba1;
}

.branch-status svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
}

.build-status {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-status {
  margin-left: auto;
}

.quick-open {
  position: absolute;
  z-index: 30;
  top: 72px;
  left: 50%;
  width: min(540px, calc(100% - 48px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 11px;
  background: rgba(37, 37, 41, 0.94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), inset 0 1px rgba(255, 255, 255, 0.05);
  transform: translateX(-50%);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  backdrop-filter: blur(24px) saturate(1.3);
}

.quick-open:not([hidden]) {
  animation: quick-open-in 140ms ease both;
}

.quick-open > label {
  display: block;
  padding: 12px 14px 7px;
  color: #929298;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quick-open-field {
  display: flex;
  height: 39px;
  align-items: center;
  gap: 8px;
  margin: 0 10px 9px;
  padding: 0 10px;
  border: 1px solid #257dbe;
  border-radius: 6px;
  background: rgba(10, 10, 12, 0.55);
  box-shadow: 0 0 0 2px rgba(24, 115, 181, 0.2);
}

.quick-open-field svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #898990;
  stroke-linecap: round;
  stroke-width: 1.4;
}

.quick-open-field input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #efeff1;
  font-size: 12px;
}

.quick-open-field input::placeholder {
  color: #68686e;
}

.quick-open-field kbd {
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  color: #85858b;
  font-family: inherit;
  font-size: 8px;
}

.quick-open-results {
  max-height: 260px;
  overflow-y: auto;
  padding: 4px 6px 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.quick-empty {
  margin: 0;
  padding: 18px 10px;
  color: #77777d;
  font-size: 11px;
  text-align: center;
}

.quick-result {
  display: grid;
  width: 100%;
  min-height: 39px;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #d4d4d8;
  cursor: default;
  text-align: left;
}

.quick-result:hover,
.quick-result.is-active {
  background: #0e64a8;
  color: #fff;
}

.quick-result__icon {
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border-radius: 3px;
  background: linear-gradient(145deg, #f6973f, #e86235);
  color: #fff;
  font-size: 7px;
  font-weight: 700;
}

.quick-result__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.quick-result__copy strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 540;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-result__copy small {
  overflow: hidden;
  color: #77777d;
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-result.is-active .quick-result__copy small,
.quick-result:hover .quick-result__copy small {
  color: rgba(255, 255, 255, 0.67);
}

.dock {
  position: fixed;
  z-index: 12;
  bottom: max(13px, env(safe-area-inset-bottom));
  left: 50%;
  display: flex;
  height: 68px;
  align-items: flex-end;
  gap: 8px;
  padding: 8px 11px 7px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 21px;
  background: linear-gradient(145deg, rgba(61, 65, 83, 0.54), rgba(30, 32, 47, 0.44));
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.1);
  transform: translateX(-50%);
  -webkit-backdrop-filter: blur(32px) saturate(1.45);
  backdrop-filter: blur(32px) saturate(1.45);
  animation: dock-enter 580ms 60ms both cubic-bezier(.2, .8, .2, 1);
}

.dock-group {
  display: flex;
  height: 52px;
  align-items: flex-end;
  gap: 7px;
}

.dock-divider {
  width: 1px;
  height: 42px;
  margin: 0 1px 2px;
  background: rgba(255, 255, 255, 0.17);
  box-shadow: 1px 0 rgba(0, 0, 0, 0.12);
}

.dock-item {
  position: relative;
  display: grid;
  width: var(--dock-size, 50px);
  height: var(--dock-size, 50px);
  flex: 0 0 var(--dock-size, 50px);
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: default;
  text-decoration: none;
  transform: translateY(var(--dock-lift, 0px));
  transform-origin: center bottom;
  transition: width 90ms linear, height 90ms linear, flex-basis 90ms linear, transform 90ms linear;
}

.dock-icon {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  overflow: hidden;
  border-radius: 22%;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.32), inset 0 0 0 0.5px rgba(255, 255, 255, 0.22);
  object-fit: cover;
  transition: filter 120ms ease;
}

.dock-item:active .dock-icon {
  filter: brightness(0.82);
}

.dock-icon svg {
  width: 100%;
  height: 100%;
}

.dock-icon--xcode img {
  width: 110%;
  height: 110%;
  max-width: none;
  object-fit: cover;
}

.dock-icon--linkedin {
  background: linear-gradient(145deg, #2189c9, #0764a0);
  color: #fff;
  font-family: var(--font-sans);
  font-size: calc(var(--dock-size, 50px) * 0.6);
  font-weight: 780;
  letter-spacing: -0.08em;
}

.dock-icon--github {
  background: linear-gradient(145deg, #3a3a3e, #171719);
  color: #f4f4f5;
}

.dock-icon--github svg {
  width: 80%;
  height: 80%;
}

.dock-tooltip {
  position: absolute;
  bottom: calc(100% + 11px);
  left: 50%;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  background: rgba(31, 31, 36, 0.97);
  box-shadow: 0 7px 22px rgba(0, 0, 0, 0.38);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 610;
  letter-spacing: -0.01em;
  line-height: 1.15;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 3px);
  transition: opacity 100ms ease, transform 100ms ease;
  white-space: nowrap;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.dock-item:hover .dock-tooltip,
.dock-item:focus-visible .dock-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.dock-running-dot {
  position: absolute;
  bottom: -5px;
  left: 50%;
  display: none;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.76);
  transform: translateX(-50%);
}

.dock-running-dot.is-active {
  display: block;
}

.noscript-content {
  position: relative;
  z-index: 50;
  max-width: 720px;
  margin: 80px auto;
  padding: 32px;
  border-radius: 16px;
  background: #1d1d1f;
  color: #f3f3f5;
}

@keyframes xcode-enter {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 8px)) scale(.985); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes widget-enter {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes media-page-enter {
  from { opacity: 0; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes dock-enter {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes editor-change {
  from { opacity: .88; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes console-open {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes quick-open-in {
  from { opacity: 0; transform: translate(-50%, -5px) scale(.99); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

@keyframes window-focus {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.05); box-shadow: 0 38px 104px rgba(0, 0, 0, 0.54), 0 0 0 1px rgba(111, 182, 244, 0.17); }
}

@keyframes close-feedback {
  0%, 100% { filter: brightness(1); }
  45% { filter: brightness(.92); }
}

@media (max-width: 1240px) {
  .desktop-widgets {
    left: 15px;
    transform: scale(.9);
    transform-origin: top left;
  }

  .xcode-window {
    width: 68vw;
    left: 50%;
  }
}

@media (max-height: 800px) and (min-width: 821px) {
  .desktop-widgets {
    top: calc(var(--menu-height) + 38px);
    transform: scale(.86);
    transform-origin: top left;
  }
}

@media (max-width: 980px) and (min-width: 821px) {
  .desktop-widgets {
    display: none;
  }

  .xcode-window {
    top: 50%;
    left: 50%;
    width: calc(100vw - 28px);
    height: calc(100dvh - var(--menu-height) - 94px);
    min-height: 0;
  }

  .project-identity span {
    display: none;
  }
}

@media (max-width: 820px) {
  :root {
    --menu-height: 30px;
    overflow-x: clip;
  }

  body {
    min-height: 100dvh;
    max-width: 100%;
    overflow-x: clip;
    overflow-y: auto;
  }

  .menu-bar {
    right: auto;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 0 12px;
  }

  .menu-bar__left {
    gap: 10px;
  }

  .menu-bar__left strong,
  .desktop-menus,
  .menu-date,
  .battery-icon,
  .control-icon {
    display: none;
  }

  .menu-bar__right {
    margin-left: auto;
  }

  .desktop-stage {
    display: flex;
    min-height: 100dvh;
    flex-direction: column;
    gap: 14px;
    overflow: visible;
    padding: calc(var(--menu-height) + 18px) 0 102px;
  }

  .mobile-intro {
    display: block;
    order: 1;
    padding: 9px 18px 4px;
  }

  .mobile-intro .eyebrow {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.15em;
  }

  .mobile-intro h1 {
    margin: 0;
    font-size: clamp(25px, 8vw, 36px);
    font-weight: 670;
    letter-spacing: -0.045em;
    line-height: 1.04;
  }

  .mobile-intro h1 span {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 560;
  }

  .mobile-intro > p:last-child {
    margin: 12px 0 0;
    color: #88acd0;
    font-size: 11px;
  }

  .xcode-window {
    position: relative;
    top: auto;
    left: auto;
    width: calc(100% - 24px);
    height: min(680px, calc(100dvh - 158px));
    min-height: 560px;
    max-width: none;
    max-height: none;
    margin: 0 12px;
    order: 2;
    border-radius: 11px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.44), 0 4px 15px rgba(0, 0, 0, 0.26);
    transform: none;
    animation-name: xcode-enter-mobile;
  }

  .xcode-window.is-maximized {
    position: fixed;
    z-index: 30;
    top: calc(var(--menu-height) + 5px) !important;
    left: 5px !important;
    width: calc(100vw - 10px) !important;
    height: calc(100dvh - var(--menu-height) - 10px) !important;
    margin: 0;
  }

  .xcode-window.is-minimized {
    transform: translateY(42vh) scale(.82) !important;
  }

  .xcode-toolbar {
    height: 47px;
    flex-basis: 47px;
    padding: 0 9px;
    cursor: default;
  }

  .xcode-resize-handle {
    display: none;
  }

  .traffic-lights {
    min-width: 61px;
    gap: 7px;
    margin-right: 0;
  }

  .mobile-nav-trigger {
    display: grid;
  }

  .navigator-toggle,
  .toolbar-separator,
  .stop-button,
  .scheme-picker {
    display: none;
  }

  .run-button {
    margin-right: auto;
  }

  .project-identity {
    left: 50%;
    min-width: 110px;
  }

  .project-identity span {
    display: none;
  }

  .console-toggle {
    margin-left: auto;
  }

  .project-navigator,
  .xcode-window.navigator-hidden .project-navigator {
    position: absolute;
    z-index: 20;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(86vw, 340px);
    flex-basis: auto;
    border-radius: 0 9px 9px 0;
    box-shadow: 16px 0 44px rgba(0, 0, 0, 0.38);
    opacity: 1;
    pointer-events: none;
    transform: translateX(-103%);
    transition: transform 190ms cubic-bezier(.2, .8, .2, 1);
  }

  .project-navigator.is-open {
    pointer-events: auto;
    transform: translateX(0);
  }

  .navigator-heading {
    height: 45px;
    flex-basis: 45px;
    padding-left: 15px;
  }

  .tree-item {
    height: 31px;
    font-size: 12px;
  }

  .navigator-scrim {
    position: absolute;
    z-index: 19;
    inset: 0;
    display: block;
    border: 0;
    background: rgba(0, 0, 0, 0.34);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease;
  }

  .navigator-scrim.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .editor-tabs {
    height: 33px;
    min-height: 33px;
  }

  .editor-tab {
    min-width: 140px;
    height: 33px;
  }

  .editor-content {
    padding: 20px 15px 100px;
  }

  .document-heading__logo {
    width: 36px;
    height: 36px;
  }

  .document-heading h1 {
    font-size: 25px;
  }

  .document-subtitle {
    display: grid;
    gap: 3px;
  }

  .document-subtitle span + span::before {
    display: none;
  }

  .code-line,
  .markdown-editor-line,
  .editor-list li {
    grid-template-columns: 23px minmax(0, 1fr);
  }

  .line-number {
    padding-right: 6px;
  }

  .line-code,
  .markdown-line__content {
    padding-left: 9px;
  }

  .editor-section {
    margin-left: 0;
  }

  .target-fields {
    grid-template-columns: 1fr;
    gap: 14px;
  }

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

  .project-showcase__icon {
    width: 62px;
    height: 62px;
    border-radius: 14px;
  }

  .debug-console {
    height: 128px;
    flex-basis: 128px;
  }

  .xcode-statusbar {
    gap: 8px;
  }

  .build-status {
    display: none;
  }

  .quick-open {
    top: 59px;
    width: calc(100% - 20px);
  }

  .desktop-widgets {
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 100%;
    gap: 11px;
    overflow-x: auto;
    order: initial;
    padding: 4px 12px 17px;
    pointer-events: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    contain: layout paint;
    transform: none;
  }

  .widgets-viewport {
    display: block;
    width: 100%;
    max-width: 100%;
    order: 3;
    overflow: hidden;
  }

  .desktop-widgets::-webkit-scrollbar {
    display: none;
  }

  .widget,
  .widget--media,
  .widget--portrait {
    position: relative;
    inset: auto;
    display: block;
    width: 218px;
    min-width: 218px;
    min-height: 142px;
    scroll-snap-align: start;
  }

  .widget--media {
    width: min(320px, calc(100vw - 24px));
    min-width: min(320px, calc(100vw - 24px));
    height: 154px;
  }

  .widget--portrait {
    width: 154px;
    min-width: 154px;
    height: 154px;
  }

  .widget--media {
    padding-top: 16px;
  }

  .dock {
    bottom: max(8px, env(safe-area-inset-bottom));
    height: 60px;
    max-width: calc(100vw - 16px);
    gap: 5px;
    padding: 7px 8px 6px;
    border-radius: 19px;
  }

  .dock-group {
    height: 46px;
    gap: 5px;
  }

  .dock-divider {
    height: 36px;
    margin-inline: 0;
  }

  .dock-item {
    --dock-size: clamp(38px, 10.6vw, 46px) !important;
    transform: none !important;
    transition: none;
  }

  .dock-tooltip {
    display: none;
  }

  .dock-running-dot {
    bottom: -4px;
  }

  .dock-icon--linkedin {
    font-size: calc(var(--dock-size) * .6);
  }
}

@media (max-width: 470px) {
  .wifi-icon {
    display: none;
  }

  .xcode-window {
    height: max(570px, calc(100dvh - 170px));
  }

  .editor-content {
    padding-right: 12px;
    padding-left: 10px;
  }

  .code-block {
    font-size: 11.5px;
  }

  .target-tabs {
    gap: 15px;
  }

  .dock {
    gap: 4px;
    padding-inline: 7px;
  }

  .dock > .dock-divider:last-of-type,
  .dock > .dock-group:last-child {
    display: none;
  }

  .dock-group {
    gap: 4px;
  }
}

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

  .dock-item {
    --dock-size: 50px !important;
    transform: none !important;
  }
}

@keyframes xcode-enter-mobile {
  from { opacity: 0; transform: translateY(8px) scale(.99); }
  to { opacity: 1; transform: none; }
}
