:root {
  --paper: #ded3c8;
  --paper-light: #f4eee7;
  --paper-deep: #c9b9aa;
  --ink: #211914;
  --ink-soft: #322720;
  --panel: #171512;
  --panel-2: #24201c;
  --panel-3: #302923;
  --rust: #bd512d;
  --rust-bright: #e37549;
  --cyan: #79c8c2;
  --green: #9ccf82;
  --muted: #8d8178;
  --line: rgba(65, 48, 38, 0.18);
  --panel-line: rgba(238, 214, 195, 0.19);
  --font: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --expo: cubic-bezier(.16, 1, .3, 1);
  --overshoot: cubic-bezier(.34, 1.56, .64, 1);
  --topbar-h: 40px;
  --taskbar-h: 48px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

button,
a,
input,
textarea {
  font: inherit;
}

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

button {
  color: inherit;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 10000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--paper-light);
  background: var(--ink);
  transform: translateY(-150%);
  transition: transform 180ms var(--expo);
}

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

.os-shell,
.welcome-screen,
.boot-screen,
.desktop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
}

[hidden] {
  display: none !important;
}

/* Welcome */
.welcome-screen {
  z-index: 8000;
  display: grid;
  overflow: hidden;
  place-items: center;
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(77, 57, 45, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 57, 45, .08) 1px, transparent 1px),
    radial-gradient(circle at 50% 45%, rgba(255, 241, 226, .94), transparent 42%);
  background-size: 40px 40px, 40px 40px, 100% 100%;
}

.welcome-screen::before,
.welcome-screen::after {
  position: absolute;
  content: "";
  width: min(42vw, 540px);
  aspect-ratio: 1;
  border: 1px solid rgba(189, 81, 45, .22);
  border-radius: 50%;
  pointer-events: none;
}

.welcome-screen::before {
  top: -29%;
  left: -10%;
}

.welcome-screen::after {
  right: -13%;
  bottom: -33%;
}

.welcome-stack {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(568px, calc(100vw - 40px));
  flex-direction: column;
  align-items: stretch;
  padding: 24px;
}

.os-wordmark {
  display: flex;
  align-items: baseline;
  margin: 0 0 22px;
  font-size: clamp(48px, 7.4vw, 100px);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: .9;
  text-shadow: 3px 3px 0 var(--paper-light), 6px 6px 0 rgba(33, 25, 20, .18);
}

.os-wordmark em {
  margin-left: .14em;
  color: var(--rust);
  font-size: .7em;
  font-style: normal;
  letter-spacing: .02em;
}

.welcome-terminal {
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 14px;
  color: #f1e9e0;
  background: var(--panel);
  box-shadow: 0 30px 70px -38px rgba(37, 22, 15, .7), 0 0 0 2px rgba(189, 81, 45, .14);
}

.terminal-titlebar,
.window-titlebar {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--panel-line);
  color: #a99b90;
  background: var(--panel-2);
}

.terminal-titlebar {
  height: 40px;
  gap: 12px;
  padding: 0 14px;
  font-size: 13px;
  letter-spacing: .08em;
}

.terminal-lights,
.window-lights {
  display: inline-flex;
  gap: 6px;
}

.window-lights {
  min-width: 44px;
  align-items: center;
  align-self: stretch;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: inherit;
  background: transparent;
  cursor: pointer;
  transition: background 160ms ease;
}

.window-lights:hover {
  background: rgba(255, 255, 255, .07);
}

.window-lights:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -3px;
}

.terminal-lights i,
.window-lights i {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef8263;
}

.window-lights i:first-child::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #69261d;
  content: "×";
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  transition: opacity 120ms ease;
}

.window-lights:hover i:first-child::after,
.window-lights:focus-visible i:first-child::after {
  opacity: 1;
}

.terminal-lights i:nth-child(2),
.window-lights i:nth-child(2) {
  background: #e4bd61;
}

.terminal-lights i:nth-child(3),
.window-lights i:nth-child(3) {
  background: #94c87b;
}

.terminal-body {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 28px 30px 30px;
}

.terminal-body img {
  width: 104px;
  height: 104px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 16px;
  object-fit: cover;
  filter: saturate(.72) contrast(1.04);
}

.terminal-body dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.terminal-body dl div {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}

.terminal-body dt {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
}

.terminal-body dd {
  margin: 0;
  color: #e9ddd1;
  font-size: 14px;
  font-weight: 700;
}

.enter-button {
  align-self: flex-start;
  min-height: 48px;
  margin-top: 22px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  color: var(--paper-light);
  background: var(--ink);
  box-shadow: 5px 5px 0 var(--rust);
  font-weight: 800;
  cursor: pointer;
  transition: transform 260ms var(--expo), box-shadow 260ms var(--expo), background 180ms ease;
}

.enter-button:hover {
  background: var(--rust);
  box-shadow: 2px 2px 0 var(--ink);
  transform: translate(3px, 3px);
}

.enter-button:active {
  transform: translate(5px, 5px) scale(.98);
}

.welcome-hint {
  align-self: flex-start;
  margin: 14px 0 0;
  color: rgba(33, 25, 20, .55);
  font-size: 12px;
}

.welcome-screen.is-leaving .welcome-stack {
  animation: welcome-out 520ms var(--expo) both;
}

@keyframes welcome-out {
  to { opacity: 0; transform: translateY(-18px) scale(.97); filter: blur(5px); }
}

/* Boot */
.boot-screen {
  z-index: 7900;
  display: grid;
  place-items: center;
  color: #d9cfc4;
  background: #12100f;
}

.boot-screen.is-ending {
  animation: boot-out 480ms var(--expo) both;
}

@keyframes boot-out {
  to { opacity: 0; transform: scale(1.025); filter: blur(6px); }
}

.boot-console {
  width: min(560px, calc(100vw - 48px));
  padding: 28px;
}

.boot-brand {
  margin: 0 0 18px;
  color: var(--rust-bright);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .06em;
}

.boot-brand span {
  color: var(--green);
  font-size: 12px;
}

.boot-log {
  display: grid;
  gap: 10px;
  min-height: 152px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.5;
}

.boot-log li {
  opacity: 0;
  transform: translateY(6px);
}

.boot-log li.is-visible {
  animation: log-in 300ms var(--expo) both;
}

.boot-log b {
  color: var(--green);
}

@keyframes log-in {
  to { opacity: 1; transform: translateY(0); }
}

.boot-progress {
  height: 7px;
  overflow: hidden;
  margin-top: 20px;
  border-radius: 10px;
  background: #332d29;
}

.boot-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rust), var(--rust-bright));
  transition: width 340ms var(--expo);
}

/* Desktop */
.desktop {
  z-index: 1;
  display: grid;
  grid-template-rows: var(--topbar-h) minmax(0, 1fr) var(--taskbar-h);
  overflow: hidden;
  background: var(--paper);
}

.desktop.is-entering {
  animation: desktop-in 720ms var(--expo) both;
}

@keyframes desktop-in {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to { opacity: 1; transform: none; }
}

.topbar {
  position: relative;
  z-index: 5000;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-width: 0;
  padding: 0 14px;
  color: #eee4da;
  background: var(--ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .1);
}

.topbar-user {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: 8px;
  min-height: var(--topbar-h);
  padding: 0 6px;
  border: 0;
  color: inherit;
  background: transparent;
  font-size: 13px;
  cursor: pointer;
}

.online-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(156, 207, 130, .13);
}

.topbar-context {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 11px;
}

.topbar-context span {
  color: #8e8177;
}

.topbar-context b {
  overflow: hidden;
  max-width: 220px;
  color: #d8c9bc;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-clock {
  justify-self: end;
  color: var(--cyan);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: .06em;
}

.wallpaper {
  --mouse-x: 52%;
  --mouse-y: 45%;
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle 340px at var(--mouse-x) var(--mouse-y), rgba(255, 244, 231, .86), transparent 72%),
    linear-gradient(rgba(75, 57, 46, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75, 57, 46, .075) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
}

.wallpaper::after {
  position: absolute;
  right: -180px;
  bottom: -260px;
  width: 600px;
  height: 600px;
  border: 1px solid rgba(189, 81, 45, .17);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.desktop-statement {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: clamp(40px, 7vw, 140px);
  left: clamp(185px, 24vw, 440px);
  width: auto;
  max-width: 900px;
  padding: clamp(24px, 2.8vw, 40px) clamp(24px, 3.2vw, 48px);
  border: 1px solid rgba(70, 51, 40, .18);
  border-radius: 18px;
  background: rgba(244, 238, 231, .5);
  box-shadow: 14px 16px 0 rgba(33, 25, 20, .045), inset 0 1px 0 rgba(255, 255, 255, .5);
  backdrop-filter: blur(3px);
  transform: translateY(-51%);
  transition: opacity 500ms var(--expo), filter 500ms var(--expo), transform 500ms var(--expo), box-shadow 260ms var(--expo);
}

.desktop-statement:hover {
  box-shadow: 9px 11px 0 rgba(33, 25, 20, .075), inset 0 1px 0 rgba(255, 255, 255, .65);
}

.desktop.has-windows .desktop-statement {
  opacity: .28;
  filter: blur(1.5px);
  transform: translateY(-51%) scale(.98);
}

.desktop-statement > p {
  margin: 0 0 18px;
  color: var(--rust);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
}

.desktop-statement h2 {
  margin: 0;
  font-size: clamp(48px, 5.15vw, 88px);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1.06;
}

.desktop-statement h2 > span,
.desktop-statement h2 strong {
  display: block;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}

.desktop-statement h2 strong {
  color: var(--rust);
  font-weight: inherit;
}

.desktop-stats {
  display: flex;
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid rgba(33, 25, 20, .4);
  border-bottom: 1px solid rgba(33, 25, 20, .15);
}

.desktop-stats span {
  min-width: 135px;
  padding: 16px 20px 16px 0;
  color: #675b53;
  font-size: 13px;
}

.desktop-stats b {
  margin-right: 7px;
  color: var(--ink);
  font-size: 24px;
}

.desktop-statement small {
  display: block;
  margin-top: 18px;
  color: rgba(33, 25, 20, .55);
  font-size: 12px;
}

.desktop-icons {
  position: absolute;
  z-index: 80;
  top: 18px;
  left: 18px;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.desktop-icon {
  display: grid;
  width: 92px;
  min-height: 86px;
  place-items: center;
  gap: 5px;
  padding: 7px 5px;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  cursor: default;
  transition: color 160ms ease, transform 260ms var(--overshoot);
}

.desktop-icon:hover,
.desktop-icon.is-selected {
  transform: translateY(-2px);
}

.desktop-icon:active {
  transform: translate(1px, 1px);
}

.desktop-icon > span:last-child {
  padding: 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.desktop-icon.is-selected > span:last-child {
  color: var(--rust);
  background: transparent;
}

.icon-art {
  position: relative;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  transition: transform 260ms var(--overshoot);
}

.icon-art::before,
.icon-art::after {
  position: absolute;
  clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px);
  content: "";
}

.icon-art::after {
  z-index: 0;
  inset: 4px 0 0 4px;
  background: rgba(33, 25, 20, .22);
}

.icon-art::before {
  z-index: 1;
  inset: 0 4px 4px 0;
  background: var(--ink);
  box-shadow: inset 2px 2px 0 rgba(244, 238, 231, .14), inset -2px -2px 0 rgba(0, 0, 0, .24);
  transition: background 160ms ease, box-shadow 160ms ease;
}

.pixel-icon,
.task-pixel-icon {
  display: block;
  flex: 0 0 auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  pointer-events: none;
}

.icon-art .pixel-icon {
  position: relative;
  z-index: 2;
  width: 24px;
  height: 24px;
  transform: translate(-2px, -2px);
}

.desktop-icon:hover .icon-art,
.desktop-icon.is-selected .icon-art {
  transform: translate(-1px, -2px);
}

.desktop-icon:hover .icon-art::before {
  background: #30231d;
}

.desktop-icon.is-selected .icon-art::before {
  background: var(--rust);
  box-shadow: inset 2px 2px 0 rgba(255, 240, 226, .2), inset -2px -2px 0 rgba(74, 23, 10, .28);
}

/* Window manager */
.window-layer {
  position: absolute;
  z-index: 100;
  inset: 0;
  pointer-events: none;
}

.os-window {
  --window-x: 150px;
  --window-y: 68px;
  --window-width: 720px;
  --window-height: 520px;
  position: absolute;
  display: grid;
  width: min(var(--window-width), calc(100vw - 150px));
  height: min(var(--window-height), calc(100dvh - var(--topbar-h) - var(--taskbar-h) - 16px));
  grid-template-rows: 44px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(233, 196, 170, .52);
  border-radius: 14px;
  color: #e7dbd0;
  background: var(--panel);
  box-shadow: 0 32px 75px -32px rgba(30, 20, 14, .78), 0 0 0 3px rgba(189, 81, 45, .08);
  transform: translate3d(var(--window-x), var(--window-y), 0);
  pointer-events: auto;
  contain: layout paint;
}

.os-window.is-opening {
  animation: window-in 500ms var(--overshoot) both;
}

@keyframes window-in {
  from { opacity: 0; transform: translate3d(var(--window-x), calc(var(--window-y) + 18px), 0) scale(.94); filter: blur(3px); }
  to { opacity: 1; transform: translate3d(var(--window-x), var(--window-y), 0) scale(1); filter: none; }
}

.os-window.is-active {
  border-color: rgba(227, 117, 73, .85);
  box-shadow: 0 38px 88px -34px rgba(30, 20, 14, .84), 0 0 0 3px rgba(189, 81, 45, .12);
}

.os-window.is-dragging {
  cursor: grabbing;
  user-select: none;
  transition: none;
}

.window-titlebar {
  position: relative;
  min-width: 0;
  padding: 0 6px 0 14px;
  touch-action: none;
  cursor: grab;
}

.window-titlebar h2 {
  overflow: hidden;
  flex: 1;
  margin: 0 10px;
  color: #9e9085;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window-actions {
  display: flex;
  align-items: stretch;
  align-self: stretch;
}

.window-actions button {
  width: 42px;
  min-height: 42px;
  border: 0;
  color: #aa9a8d;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

.window-actions button:hover {
  color: var(--paper-light);
  background: rgba(255, 255, 255, .08);
}

.window-actions button:last-child:hover {
  background: #a23f2d;
}

.window-body {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  scrollbar-color: #5b4e45 transparent;
  scrollbar-width: thin;
}

.window-body::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

.window-body::-webkit-scrollbar-thumb {
  border: 2px solid var(--panel);
  border-radius: 10px;
  background: #5b4e45;
}

.app-kicker {
  margin: 0;
  color: var(--rust-bright);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
}

.os-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid rgba(239, 217, 199, .24);
  border-radius: 8px;
  color: #eadfd5;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 200ms var(--expo), border-color 160ms ease, background 160ms ease;
}

.os-button:hover {
  border-color: rgba(239, 217, 199, .55);
  background: rgba(255, 255, 255, .06);
  transform: translateY(-2px);
}

.os-button.primary {
  border-color: var(--rust);
  color: #fff3ea;
  background: var(--rust);
}

/* About app */
.about-app {
  display: grid;
  grid-template-columns: minmax(230px, .8fr) minmax(300px, 1.2fr);
  gap: 28px;
  padding: 28px;
}

.about-portrait {
  margin: 0;
}

.portrait-stage {
  position: relative;
  perspective: 900px;
}

.portrait-motion {
  --portrait-rx: 0deg;
  --portrait-ry: 0deg;
  --portrait-scale: 1;
  transform: rotateX(var(--portrait-rx)) rotateY(var(--portrait-ry)) scale3d(var(--portrait-scale), var(--portrait-scale), 1);
  transform-style: preserve-3d;
  transition: transform 200ms ease-out, box-shadow 300ms var(--expo);
  will-change: transform;
  aspect-ratio: 4 / 5;
}

.portrait-motion img {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px;
  object-fit: cover;
  filter: saturate(.7) contrast(1.05);
  pointer-events: none;
}

.portrait-stage:hover .portrait-motion {
  box-shadow: 0 26px 58px -30px rgba(0, 0, 0, .92);
}

.about-portrait figcaption {
  margin-top: 12px;
  color: #897b70;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}

.about-copy h3,
.contact-app h3,
.archive-app h3 {
  margin: 12px 0 14px;
  color: #f4eae1;
  font-size: clamp(25px, 3vw, 38px);
  letter-spacing: -.035em;
  line-height: 1.2;
  text-wrap: balance;
}

.about-copy > p:not(.app-kicker) {
  margin: 0;
  color: #bdb0a5;
  font-size: 13px;
  line-height: 1.78;
  text-wrap: pretty;
}

.about-copy > p:not(.app-kicker) + p:not(.app-kicker) {
  margin-top: 9px;
  color: #968a81;
}

.method-list {
  display: grid;
  margin: 18px 0;
  border-top: 1px solid var(--panel-line);
}

.method-list > div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--panel-line);
  color: #d7c9be;
  font-size: 11px;
}

.method-list > div > span {
  color: var(--rust-bright);
  font-size: 10px;
  font-weight: 900;
}

.method-list p {
  margin: 0;
}

.method-list b,
.method-list small {
  display: block;
}

.method-list b {
  margin-bottom: 2px;
  color: #e6d9cf;
  font-size: 12px;
}

.method-list small {
  color: #857970;
  font-size: 10px;
  line-height: 1.55;
}

.about-copy blockquote {
  margin: 0;
  padding-left: 14px;
  border-left: 2px solid var(--rust);
  color: #94877d;
  font-size: 12px;
  font-style: normal;
  line-height: 1.7;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

/* Finder apps */
.finder-app {
  display: grid;
  grid-template-rows: 54px minmax(0, 1fr);
  overflow: hidden;
}

.app-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 20px;
  border-bottom: 1px solid var(--panel-line);
  background: rgba(255, 255, 255, .025);
}

.app-toolbar p {
  margin: 0;
  color: #a99b90;
  font-size: 12px;
}

.app-toolbar p strong {
  color: var(--rust-bright);
  font-size: 18px;
}

.app-toolbar a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.finder-layout {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(260px, .86fr) minmax(320px, 1.14fr);
}

.file-list {
  min-height: 0;
  overflow: auto;
  padding: 8px;
  border-right: 1px solid var(--panel-line);
}

.file-row {
  display: grid;
  width: 100%;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 14px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #b9aba0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: border-color 170ms ease, color 170ms ease, background 170ms ease, transform 220ms var(--expo);
}

.file-row:hover {
  color: #eee2d7;
  background: rgba(255, 255, 255, .045);
  transform: translateX(3px);
}

.file-row.is-selected {
  border-color: rgba(227, 117, 73, .45);
  color: #f4e9df;
  background: rgba(189, 81, 45, .13);
}

.file-row > span:first-child {
  color: var(--rust-bright);
  font-size: 11px;
  font-weight: 900;
}

.file-row > span:last-child {
  min-width: 0;
}

.file-row b,
.file-row small {
  display: block;
}

.file-row b {
  margin-bottom: 5px;
  font-size: 13px;
  line-height: 1.45;
  text-wrap: pretty;
}

.file-row small {
  overflow: hidden;
  color: #766b63;
  font-size: 10px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.draft-row > span:first-child,
.draft-row b {
  color: #d2a866;
}

.file-preview {
  display: flex;
  min-height: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(28px, 5vw, 58px);
  background:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 24px 24px;
}

.preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--rust-bright);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}

.file-preview h3 {
  margin: 0;
  color: #f4e8dd;
  font-size: clamp(25px, 3.4vw, 40px);
  letter-spacing: -.04em;
  line-height: 1.25;
  line-break: strict;
  word-break: auto-phrase;
  overflow-wrap: normal;
  text-wrap: balance;
}

.file-preview > p:not(.preview-meta) {
  margin: 20px 0 24px;
  color: #a99b90;
  font-size: 13px;
  line-height: 1.85;
}

.draft-badge {
  padding: 9px 12px;
  border: 1px solid rgba(210, 168, 102, .44);
  border-radius: 6px;
  color: #d2a866;
  font-size: 11px;
  font-weight: 800;
}

/* GitHub app */
.repo-layout {
  grid-template-columns: minmax(250px, .75fr) minmax(390px, 1.25fr);
}

.repo-list i {
  color: var(--rust-bright);
  font-style: normal;
}

.repo-preview {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: minmax(150px, 1fr) auto auto auto auto;
  align-content: start;
  padding: 20px;
  overflow: auto;
}

.repo-image {
  position: relative;
  display: block;
  min-height: 0;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--panel-line);
  border-radius: 10px;
  background: var(--panel-3);
  color: inherit;
  text-decoration: none;
}

.repo-image::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 0;
  color: #c5b4a7;
  background:
    radial-gradient(circle at 78% 24%, rgba(189, 81, 45, .36), transparent 35%),
    linear-gradient(135deg, #302923, #1f1b18);
  content: "OPEN SOURCE\A PRODUCT LAB";
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1.5;
  text-align: center;
  white-space: pre;
  transition: opacity 240ms ease;
}

.repo-image.is-loaded::before {
  opacity: 0;
}

.repo-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 155px;
  object-fit: cover;
  object-position: var(--repo-image-position, center);
  opacity: 0;
  transition: transform 600ms var(--expo), filter 300ms ease, opacity 260ms ease;
}

.repo-image > span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 5px 7px;
  border: 1px solid rgba(244, 238, 231, .22);
  color: #f4eee7;
  background: rgba(22, 18, 15, .78);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 180ms ease, transform 220ms var(--expo);
}

.repo-image:hover > span,
.repo-image:focus-visible > span {
  opacity: 1;
  transform: none;
}

.repo-image.is-loaded img {
  opacity: 1;
}

.repo-preview:hover .repo-image img {
  transform: scale(1.018);
}

.repo-preview > p:first-of-type {
  margin: 0 0 8px;
  color: var(--rust-bright);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .11em;
}

.repo-preview h3 {
  margin: 0;
  color: #f2e7dc;
  font-size: 28px;
  letter-spacing: -.035em;
}

.repo-preview > p:last-of-type {
  margin: 10px 0 16px;
  color: #aa9d92;
  font-size: 12px;
  line-height: 1.7;
}

.repo-preview .os-button {
  justify-self: start;
}

/* Xiaohongshu app */
.xhs-app {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: 16px 18px;
  overflow: hidden;
  background: #1b1714;
}

.xhs-profile {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 18px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--panel-line);
}

.xhs-profile > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.xhs-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: #f2dfce;
  font-size: 22px;
}

.xhs-profile p {
  margin: 0;
}

.xhs-profile strong,
.xhs-profile small {
  display: block;
}

.xhs-profile strong {
  color: #f1e6dc;
  font-size: 13px;
}

.xhs-profile small {
  overflow: hidden;
  margin-top: 3px;
  color: #887b72;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xhs-profile > p {
  color: #95877d;
  font-size: 11px;
}

.xhs-profile > p b {
  color: var(--rust-bright);
  font-size: 20px;
}

.xhs-profile > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.xhs-coverflow {
  display: grid;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) 42px;
  gap: 4px;
}

.xhs-coverflow-viewport {
  position: relative;
  min-height: 0;
  overflow: hidden;
  perspective: 1700px;
  perspective-origin: 50% 47%;
  touch-action: pan-y;
  cursor: grab;
  contain: layout paint;
}

.xhs-coverflow-viewport:active {
  cursor: grabbing;
}

.xhs-coverflow-viewport::after {
  position: absolute;
  right: 18%;
  bottom: 7px;
  left: 18%;
  height: 26px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, .42), transparent 68%);
  content: "";
  filter: blur(9px);
  pointer-events: none;
}

.xhs-cover-card {
  --xhs-x: 0px;
  --xhs-y: 0px;
  --xhs-z: 0px;
  --xhs-rotate: 0deg;
  --xhs-scale: 1;
  --xhs-opacity: 0;
  --xhs-saturation: .65;
  --xhs-brightness: .72;
  position: absolute;
  z-index: var(--xhs-order, 1);
  top: 50%;
  left: 50%;
  width: clamp(205px, 27.5%, 242px);
  aspect-ratio: 3 / 4;
  margin: 0;
  opacity: var(--xhs-opacity);
  transform: translate(-50%, -50%) translate3d(var(--xhs-x), var(--xhs-y), var(--xhs-z)) rotateY(var(--xhs-rotate)) scale(var(--xhs-scale));
  transform-origin: center;
  transform-style: preserve-3d;
  pointer-events: none;
  transition: transform 780ms var(--expo), opacity 440ms ease, filter 440ms ease;
  will-change: transform, opacity;
}

.xhs-cover-card [data-xhs-select] {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 5px;
  overflow: hidden;
  border: 1px solid rgba(244, 230, 216, .24);
  border-radius: 15px;
  color: inherit;
  background: #f0e8dc;
  box-shadow: 0 20px 44px -30px rgba(0, 0, 0, .88);
  cursor: pointer;
  backface-visibility: hidden;
  transition: border-color 220ms ease, box-shadow 400ms var(--expo), transform 260ms var(--expo);
}

.xhs-cover-card.is-selectable {
  pointer-events: auto;
}

.xhs-cover-card.is-active [data-xhs-select] {
  border-color: rgba(244, 230, 216, .5);
  box-shadow: 0 34px 64px -34px rgba(0, 0, 0, .94), 0 0 0 1px rgba(227, 117, 73, .12);
  cursor: default;
  pointer-events: none;
}

.xhs-cover-card.is-selectable:hover [data-xhs-select] {
  border-color: rgba(244, 230, 216, .55);
  box-shadow: 0 28px 58px -32px rgba(0, 0, 0, .96);
  transform: translateY(-3px);
}

.xhs-cover-card img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
  filter: saturate(var(--xhs-saturation)) brightness(var(--xhs-brightness));
  transition: filter 440ms ease;
  pointer-events: none;
  user-select: none;
}

.xhs-cover-card.is-far {
  visibility: hidden;
}

.xhs-coverflow-controls {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 12px;
  align-items: center;
}

.xhs-coverflow-controls > button {
  width: 44px;
  height: 40px;
  border: 1px solid var(--panel-line);
  border-radius: 8px;
  color: #cbbdb2;
  background: rgba(255, 255, 255, .025);
  font-size: 18px;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 220ms var(--expo);
}

.xhs-coverflow-controls > button:hover {
  border-color: rgba(227, 117, 73, .55);
  color: #fff0e5;
  background: rgba(189, 81, 45, .12);
  transform: translateY(-2px);
}

.xhs-coverflow-controls p {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0;
  color: #776b63;
  font-size: 9px;
  letter-spacing: .04em;
}

.xhs-coverflow-controls b {
  color: var(--rust-bright);
  font-size: 10px;
  letter-spacing: .08em;
}

.xhs-detail {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 46px;
  padding-top: 10px;
  border-top: 1px solid var(--panel-line);
}

.xhs-detail span {
  color: var(--rust-bright);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
}

.xhs-detail p {
  margin: 0;
  overflow: hidden;
  color: #c7b9ae;
  font-size: 12px;
  line-height: 1.6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xhs-detail a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}

/* Contact and archive */
.contact-app,
.archive-app {
  padding: 28px;
}

.contact-app h3,
.archive-app h3 {
  font-size: 28px;
}

.contact-list,
.archive-list {
  display: grid;
  margin-top: 22px;
  border-top: 1px solid var(--panel-line);
}

.contact-list a,
.contact-list button {
  display: grid;
  min-height: 54px;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  padding: 0 4px;
  border: 0;
  border-bottom: 1px solid var(--panel-line);
  color: #d8cbc0;
  background: transparent;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: color 160ms ease, padding 240ms var(--expo), background 160ms ease;
}

.contact-list a:hover,
.contact-list button:hover {
  padding-right: 10px;
  padding-left: 10px;
  color: #fff0e5;
  background: rgba(255, 255, 255, .035);
}

.contact-list span {
  color: #82756c;
  font-size: 10px;
}

.contact-list b {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-list i {
  color: var(--cyan);
  font-size: 10px;
  font-style: normal;
}

.archive-list a {
  display: grid;
  min-height: 68px;
  grid-template-columns: 48px minmax(0, 1fr) 24px;
  grid-template-rows: 1fr 1fr;
  column-gap: 12px;
  align-items: end;
  padding: 9px 5px;
  border-bottom: 1px solid var(--panel-line);
  color: #d9ccc1;
  text-decoration: none;
  transition: padding 240ms var(--expo), background 160ms ease;
}

.archive-list a:hover {
  padding-right: 12px;
  padding-left: 12px;
  background: rgba(255, 255, 255, .035);
}

.archive-list span {
  grid-row: 1 / 3;
  align-self: center;
  color: var(--rust-bright);
  font-size: 14px;
  font-weight: 900;
}

.archive-list b {
  font-size: 12px;
}

.archive-list small {
  align-self: start;
  color: #786c64;
  font-size: 9px;
}

.archive-list i {
  grid-row: 1 / 3;
  grid-column: 3;
  align-self: center;
  color: var(--cyan);
  font-style: normal;
}

/* Taskbar and system menu */
.taskbar {
  position: relative;
  z-index: 5000;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 5px 8px;
  color: #d8ccc2;
  background: var(--ink);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .08);
}

.system-button {
  display: inline-flex;
  height: 38px;
  align-items: baseline;
  gap: 2px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  color: #f3e6db;
  background: #34271f;
  font-weight: 900;
  cursor: pointer;
}

.system-button span {
  color: var(--rust-bright);
  font-size: 15px;
}

.system-button b {
  font-size: 10px;
}

.taskbar-items {
  display: flex;
  min-width: 0;
  gap: 6px;
  overflow: auto hidden;
  scrollbar-width: none;
}

.taskbar-items::-webkit-scrollbar {
  display: none;
}

.task-button {
  display: inline-flex;
  min-width: 96px;
  max-width: 170px;
  height: 36px;
  flex: 0 1 auto;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 7px;
  color: #aa9c91;
  background: rgba(255, 255, 255, .035);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.task-button > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-pixel-icon {
  width: 24px;
  height: 24px;
}

.task-button::before {
  display: none;
}

.task-button.is-active {
  border-color: rgba(227, 117, 73, .45);
  color: #fff0e5;
  background: rgba(189, 81, 45, .14);
  box-shadow: inset 0 -3px 0 var(--rust-bright);
}

.task-button.is-minimized {
  opacity: .58;
}

.taskbar-state {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  color: #8e8177;
  font-size: 9px;
  letter-spacing: .1em;
}

.taskbar-state .online-dot {
  width: 6px;
  height: 6px;
}

.system-menu {
  position: fixed;
  z-index: 7000;
  bottom: calc(var(--taskbar-h) + 8px);
  left: 8px;
  display: grid;
  width: 250px;
  overflow: hidden;
  border: 1px solid rgba(233, 196, 170, .5);
  border-radius: 12px;
  color: #e7dbd0;
  background: var(--panel);
  box-shadow: 0 24px 60px -26px rgba(20, 12, 8, .9);
}

.system-menu p {
  margin: 0;
  padding: 18px;
  border-bottom: 1px solid var(--panel-line);
  background: var(--panel-2);
}

.system-menu p strong,
.system-menu p span {
  display: block;
}

.system-menu p strong {
  color: var(--rust-bright);
  font-size: 15px;
}

.system-menu p span {
  margin-top: 4px;
  color: #7e7168;
  font-size: 10px;
}

.system-menu button,
.system-menu a {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-bottom: 1px solid var(--panel-line);
  color: #d4c7bd;
  background: transparent;
  font-size: 11px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.system-menu a {
  display: flex;
  align-items: center;
}

.system-menu button:hover,
.system-menu a:hover {
  color: #fff0e4;
  background: rgba(255, 255, 255, .045);
}

.mobile-launcher {
  display: none;
}

.os-toast {
  position: fixed;
  z-index: 9000;
  top: calc(var(--topbar-h) + 12px);
  right: 14px;
  max-width: min(360px, calc(100vw - 28px));
  padding: 13px 16px;
  border: 1px solid rgba(233, 196, 170, .42);
  border-radius: 10px;
  color: #e9ddd2;
  background: var(--panel);
  box-shadow: 0 18px 42px -22px rgba(18, 10, 7, .9);
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(-12px) scale(.96);
  pointer-events: none;
  transition: opacity 260ms ease, transform 420ms var(--overshoot);
}

.os-toast.is-visible {
  opacity: 1;
  transform: none;
}

.noscript-note {
  position: relative;
  z-index: 10000;
  margin: 0;
  padding: 16px;
  color: white;
  background: #8b3524;
}

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

@media (max-width: 980px) {
  .desktop-statement {
    right: 28px;
    left: 174px;
    width: auto;
    padding: 28px 32px;
  }

  .desktop-statement h2 {
    font-size: clamp(44px, 6.5vw, 64px);
  }

  .os-window {
    width: min(var(--window-width), calc(100vw - 104px));
  }

  .about-app {
    gap: 20px;
    grid-template-columns: minmax(200px, .72fr) minmax(280px, 1.28fr);
    padding: 22px;
  }
}

@media (min-width: 721px) and (max-width: 820px) {
  .repo-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(176px, 42%) minmax(0, 1fr);
  }

  .repo-list {
    border-right: 0;
    border-bottom: 1px solid var(--panel-line);
  }

  .repo-preview {
    grid-template-rows: minmax(120px, 1fr) auto auto auto auto;
    padding: 14px;
  }

  .repo-image {
    margin-bottom: 12px;
  }

  .repo-image img {
    min-height: 120px;
  }
}

@media (max-width: 720px) {
  :root {
    --topbar-h: 44px;
    --taskbar-h: 0px;
  }

  .welcome-stack {
    padding: 16px;
  }

  .os-wordmark {
    margin-bottom: 20px;
    font-size: clamp(44px, 14vw, 60px);
  }

  .terminal-body {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 16px;
    padding: 22px 18px 24px;
  }

  .terminal-body img {
    width: 76px;
    height: 76px;
    border-radius: 12px;
  }

  .terminal-body dl {
    gap: 9px;
  }

  .terminal-body dl div {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 8px;
  }

  .terminal-body dt,
  .terminal-body dd {
    font-size: 11px;
  }

  .desktop {
    grid-template-rows: var(--topbar-h) minmax(0, 1fr);
  }

  .topbar {
    grid-template-columns: 1fr auto;
    padding: 0 10px;
  }

  .topbar-context {
    display: none;
  }

  .wallpaper {
    padding-bottom: 72px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .wallpaper::after {
    display: none;
  }

  .desktop-statement {
    right: 18px;
    bottom: 94px;
    left: 18px;
    top: auto;
    width: auto;
    max-width: none;
    padding: 20px 22px;
    border-radius: 15px;
    transform: none;
  }

  .desktop-statement > p,
  .desktop-statement small,
  .desktop-stats {
    display: none;
  }

  .desktop-statement h2 {
    font-size: clamp(27px, 7.4vw, 40px);
    line-height: 1.08;
  }

  .desktop.has-windows .desktop-statement {
    opacity: .12;
    transform: none;
  }

  .desktop-icons {
    top: 12px;
    left: 12px;
    grid-template-columns: repeat(2, 82px);
    gap: 6px;
  }

  .desktop-icon {
    width: 82px;
    min-height: 82px;
  }

  .icon-art {
    width: 48px;
    height: 48px;
    font-size: 25px;
  }

  .window-layer {
    position: fixed;
    z-index: 4000;
    top: var(--topbar-h);
    right: 0;
    bottom: 68px;
    left: 0;
  }

  .os-window {
    inset: 8px !important;
    width: calc(100% - 16px) !important;
    height: calc(100% - 16px) !important;
    max-width: none;
    max-height: none;
    grid-template-rows: 50px minmax(0, 1fr);
    border-radius: 12px;
    transform: none !important;
  }

  @keyframes window-in {
    from { opacity: 0; transform: translateY(18px) scale(.96); filter: blur(3px); }
    to { opacity: 1; transform: none; filter: none; }
  }

  .window-titlebar {
    padding-left: 12px;
    cursor: default;
  }

  .window-actions button {
    width: 46px;
    min-height: 48px;
  }

  .about-app {
    display: block;
    padding: 20px;
  }

  .about-portrait {
    float: left;
    width: 38%;
    margin: 0 18px 12px 0;
  }

  .about-copy h3 {
    font-size: clamp(25px, 8.3vw, 36px);
  }

  .about-copy > p:not(.app-kicker) {
    font-size: 13px;
  }

  .portrait-motion {
    transform: none !important;
  }

  .method-list {
    clear: both;
  }

  .finder-app {
    grid-template-rows: 52px minmax(0, 1fr);
  }

  .app-toolbar {
    padding: 0 14px;
  }

  .finder-layout,
  .repo-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(158px, 42%) minmax(0, 1fr);
  }

  .file-list {
    border-right: 0;
    border-bottom: 1px solid var(--panel-line);
  }

  .file-row {
    padding: 11px 9px;
  }

  .repo-list .file-row {
    grid-template-columns: 26px minmax(0, 1fr);
    padding: 7px 9px;
  }

  .repo-list .file-row b {
    margin-bottom: 2px;
    font-size: 12px;
  }

  .repo-list .file-row small {
    font-size: 9px;
  }

  .file-preview {
    justify-content: flex-start;
    padding: 22px;
    overflow: auto;
  }

  .file-preview h3 {
    font-size: clamp(23px, 7.2vw, 32px);
  }

  .repo-preview {
    grid-template-rows: minmax(116px, 1fr) auto auto auto auto;
    padding: 14px;
  }

  .repo-image {
    margin-bottom: 12px;
  }

  .repo-image img {
    min-height: 116px;
  }

  .xhs-app {
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 8px;
    padding: 12px;
  }

  .xhs-profile {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .xhs-profile > p {
    display: none;
  }

  .xhs-coverflow {
    grid-template-rows: minmax(0, 1fr) 44px;
  }

  .xhs-coverflow-viewport {
    perspective: 1250px;
  }

  .xhs-cover-card {
    width: min(56vw, 218px);
  }

  .xhs-coverflow-controls {
    gap: 8px;
  }

  .xhs-coverflow-controls p span {
    display: none;
  }

  .xhs-detail {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 48px;
    padding-top: 8px;
  }

  .xhs-detail > span {
    display: none;
  }

  .xhs-detail p {
    font-size: 11px;
  }

  .contact-app,
  .archive-app {
    padding: 22px;
  }

  .contact-app h3,
  .archive-app h3 {
    font-size: 26px;
  }

  .taskbar {
    display: none;
  }

  .mobile-launcher {
    position: fixed;
    z-index: 6500;
    right: max(8px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
    left: max(8px, env(safe-area-inset-left));
    display: grid;
    height: 58px;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    border: 1px solid rgba(233, 196, 170, .4);
    border-radius: 15px;
    background: rgba(28, 22, 18, .94);
    box-shadow: 0 18px 50px -22px rgba(18, 10, 7, .92);
    backdrop-filter: blur(14px);
  }

  .mobile-launcher button {
    display: grid;
    min-width: 0;
    place-items: center;
    align-content: center;
    gap: 2px;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, .08);
    color: #bfb1a6;
    background: transparent;
    cursor: pointer;
  }

  .mobile-launcher button:last-child {
    border-right: 0;
  }

  .mobile-launcher button.is-active {
    color: #fff0e5;
    background: rgba(189, 81, 45, .22);
  }

  .mobile-launcher .pixel-icon {
    width: 24px;
    height: 24px;
  }

  .mobile-launcher b {
    font-size: 9px;
  }

  .system-menu {
    right: 10px;
    bottom: 76px;
    left: 10px;
    width: auto;
  }

  .os-toast {
    top: 52px;
    right: 10px;
    left: 10px;
    text-align: center;
  }
}

@media (max-width: 390px) {
  .welcome-stack {
    width: calc(100vw - 20px);
  }

  .welcome-terminal {
    border-radius: 12px;
  }

  .terminal-titlebar {
    height: 36px;
  }

  .about-portrait {
    width: 42%;
  }

  .method-list {
    margin-top: 14px;
  }

  .app-actions {
    display: grid;
  }

  .app-actions .os-button {
    width: 100%;
  }

  .repo-preview {
    grid-template-rows: minmax(80px, 1fr) auto auto auto auto;
    padding: 10px;
  }

  .repo-image {
    margin-bottom: 8px;
  }

  .repo-image img {
    min-height: 80px;
  }

  .repo-preview > p:first-of-type {
    margin-bottom: 6px;
  }

  .repo-preview h3 {
    font-size: 24px;
  }

  .repo-preview > p:last-of-type {
    margin: 6px 0 10px;
    line-height: 1.5;
  }

  .xhs-profile small {
    max-width: 132px;
  }

  .xhs-cover-card {
    width: min(58vw, 190px);
  }

  .xhs-detail a {
    font-size: 9px;
  }

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

@media (max-height: 560px) and (max-width: 720px) {
  .desktop-statement {
    display: none;
  }

  .xhs-app {
    gap: 4px;
    padding: 8px;
  }

  .xhs-profile small,
  .xhs-detail {
    display: none;
  }

  .xhs-coverflow {
    grid-template-rows: minmax(0, 1fr) 40px;
  }

  .xhs-cover-card {
    width: min(48vw, max(76px, calc((100svh - 308px) * .75)));
  }
}

@media (max-height: 440px) and (max-width: 720px) {
  .xhs-app {
    grid-template-rows: minmax(0, 1fr);
  }

  .xhs-profile {
    display: none;
  }

  .xhs-cover-card {
    width: min(34vw, max(88px, calc((100svh - 240px) * .75)));
  }
}

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

  .portrait-motion,
  .desktop.has-windows .desktop-statement {
    transform: none !important;
  }
}
