:root {
  --ink: #111318;
  --muted: #7b818b;
  --line: #e3e5e8;
  --panel: #ffffff;
  --canvas: #f6f7f9;
  --desktop: #0a0f1c;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow: hidden;
}

body {
  background:
    radial-gradient(circle at 50% -20%, rgba(76, 81, 191, 0.22), transparent 45%),
    #07090e;
  color: #f4f4f5;
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  -webkit-user-drag: none;
  user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.desktop-page {
  width: 100%;
  height: 100dvh;
  min-height: 100vh;
  padding: 0;
}

.page-top {
  position: relative;
  width: min(1360px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
  color: #111318;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.back-link:hover {
  background: #f1f3f7;
  color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.back-link:active {
  transform: translateY(0);
}

.desktop-back {
  position: absolute;
  top: 2px;
  left: 0;
  right: 0;
  z-index: 60;
  width: max-content;
  margin: 0 auto;
}

.desktop-copy {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 54px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background: rgba(8, 10, 15, 0.48);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
  pointer-events: none;
  backdrop-filter: blur(18px);
}

.desktop-copy-hint {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.desktop-copy-note {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11.5px;
  text-align: right;
  white-space: nowrap;
}

.page-heading {
  display: flex;
  align-items: center;
  gap: 9px;
}

.page-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.page-heading h1 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.page-heading p {
  margin: 2px 0 0;
  color: #71717a;
  font-size: 10px;
}

.page-note {
  position: absolute;
  right: 11px;
  top: 50%;
  margin: 0;
  color: #71717a;
  font-size: 11px;
  transform: translateY(-50%);
}

.screen-shell {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.desktop {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  border-radius: 0;
  filter: contrast(var(--desktop-contrast, 1));
  background:
    radial-gradient(circle at 76% 20%, rgba(91, 91, 214, 0.32), transparent 31%),
    radial-gradient(circle at 16% 90%, rgba(15, 118, 110, 0.24), transparent 33%),
    linear-gradient(135deg, #0b1020 0%, #121a2b 48%, #0b1220 100%);
}

.wallpaper-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(70px);
}

.glow-one {
  width: 480px;
  height: 480px;
  right: -140px;
  top: -180px;
  background: rgba(91, 91, 214, 0.52);
}

.glow-two {
  width: 420px;
  height: 420px;
  left: 24%;
  bottom: -240px;
  background: rgba(13, 148, 136, 0.24);
}

.wallpaper-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

.desktop-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 10, 15, 0.28);
  backdrop-filter: blur(20px);
}

.desktop-brandline {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  max-width: 46%;
}

.desktop-brandline-mark {
  display: block;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
}

.desktop-brandline span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desktop-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
}

.desktop-brand-mark {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  object-fit: cover;
}

.desktop-hint {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
}

.desktop-clock {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.desktop-icons {
  position: absolute;
  z-index: 10;
  top: 58px;
  left: 22px;
  right: 22px;
  bottom: 55px;
  display: block;
  overflow: hidden;
  padding: 0;
  --cell-w: 108px;
  --cell-h: 116px;
  scrollbar-width: none;
}

.desktop-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 100px;
  min-height: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 8px 6px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #fff;
  text-align: center;
  cursor: grab;
  touch-action: none;
  user-select: none;
  transition:
    left 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    top 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background 160ms ease,
    transform 160ms ease;
}

.desktop-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.desktop-icon.is-dragging {
  z-index: 25;
  cursor: grabbing;
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.05);
  transition: background 160ms ease, transform 160ms ease;
  user-select: none;
}

.desktop-icon.is-snapping {
  transition:
    left 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    top 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background 160ms ease,
    transform 160ms ease;
}

.desktop-icon-art {
  width: 60px;
  height: 60px;
  flex: none;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.28);
}

.desktop-icon-art img {
  display: block;
  width: 100%;
  height: 100%;
}

.desktop-icon-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  line-height: 1.25;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  word-break: break-word;
}

.desktop-empty {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.window-layer {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

.app-window {
  position: absolute;
  z-index: 30;
  width: min(620px, calc(100% - 32px));
  max-height: calc(100% - 122px);
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.24);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  animation: windowIn 180ms ease both;
}

.app-window.is-dragging {
  animation: none;
  will-change: left, top;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.app-window.is-dragging .rotary-frame iframe {
  pointer-events: none;
}

.app-window.is-active {
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.52);
}

@keyframes windowIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.window-chrome {
  height: 42px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: #f5f5f7;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.is-dragging .window-chrome {
  cursor: grabbing;
}

.window-title {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.window-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex: none;
}

.window-control {
  width: 34px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #6b7280;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.window-control:hover {
  background: #e9eaee;
  color: #111318;
}

.window-control.close:hover {
  background: #e81123;
  color: #ffffff;
}

.window-title img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  flex: none;
}

.window-title strong {
  overflow: hidden;
  color: #25262b;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window-title span {
  color: #9a9da5;
  font-size: 10px;
  white-space: nowrap;
}

.window-content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 18px;
  background: var(--canvas);
}

.window-content.shot-content {
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.app-shot {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.rotary-frame {
  position: relative;
  overflow: hidden;
  background: #f7fafd;
}

.rotary-frame iframe {
  display: block;
  border: 0;
  transform-origin: top left;
}

.desktop-dim {
  position: absolute;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  background: #000;
  opacity: 0;
  transition: opacity 120ms ease;
}

.app-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.app-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.app-kicker {
  margin: 0 0 3px;
  color: #8a8f98;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.app-head h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.app-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.app-btn {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  transition: background 140ms ease, border-color 140ms ease;
}

.app-btn:hover {
  background: #f1f2f4;
}

.app-btn.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.app-btn.primary:hover {
  background: #2b2d33;
}

.app-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.app-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7f7f8;
  color: var(--muted);
  font-size: 11px;
}

.app-pill b {
  color: var(--ink);
}

.app-note {
  margin: 0;
  color: #8a8f98;
  font-size: 11px;
  line-height: 1.55;
}

.app-desc {
  margin: 0;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.65;
}

.app-empty {
  padding: 28px;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
  background: #fff;
  color: #8a8f98;
  font-size: 12px;
  text-align: center;
}

.app-meter {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.app-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--ink);
  transition: width 120ms linear;
}

.scan-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
}

.scan-stats b {
  color: var(--ink);
}

.scan-status {
  margin-left: auto;
  color: #6b7280;
}

.app-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 330px;
  overflow: auto;
  padding-right: 2px;
}

.scan-row {
  display: grid;
  grid-template-columns: 18px 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  font-size: 12px;
  cursor: default;
}

.scan-row:hover {
  background: #fbfbfc;
}

.scan-row input {
  accent-color: var(--ink);
}

.scan-badge {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f1f2f4;
  color: #4b5563;
  font-size: 11px;
  font-weight: 700;
}

.scan-name {
  min-width: 0;
  display: flex;
  flex-direction: column;
  color: #25262b;
  font-size: 12px;
}

.scan-name small {
  margin-top: 2px;
  color: #9a9da5;
  font-size: 10px;
}

.scan-row em,
.source-row em,
.rename-row em {
  color: #9a9da5;
  font-size: 10px;
  font-style: normal;
  white-space: nowrap;
}

.backup-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 230px;
  overflow: auto;
}

.backup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  font-size: 12px;
}

.backup-row span {
  display: flex;
  flex-direction: column;
}

.backup-row small {
  margin-top: 2px;
  color: #9a9da5;
  font-size: 10px;
}

.backup-row em {
  color: #6b7280;
  font-size: 10px;
  font-style: normal;
  white-space: nowrap;
}

.backup-row.is-new {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.clip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.clip-card {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  transition: border-color 140ms ease, transform 140ms ease;
}

.clip-card:hover {
  transform: translateY(-1px);
}

.clip-card.is-selected {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.clip-thumb {
  display: block;
  height: 84px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--clip-a), var(--clip-b));
}

.clip-card strong,
.clip-card small {
  display: block;
}

.clip-card strong {
  font-size: 12px;
}

.clip-card small {
  margin-top: 2px;
  color: #9a9da5;
  font-size: 10px;
}

.game-grid {
  width: min(340px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.game-cell {
  aspect-ratio: 1;
  border: 0;
  border-radius: 12px;
  font-size: 22px;
  font-weight: 800;
  transition: transform 120ms ease, filter 120ms ease;
}

.game-cell:hover {
  filter: brightness(0.97);
  transform: scale(1.03);
}

.card-workbench {
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr);
  gap: 14px;
}

.template-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.template-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.template-option.is-selected {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.template-option span:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.template-option strong {
  font-size: 11px;
}

.template-option small {
  margin-top: 1px;
  color: #9a9da5;
  font-size: 9px;
}

.template-swatch {
  width: 30px;
  height: 40px;
  flex: none;
  border-radius: 6px;
  background: linear-gradient(145deg, var(--swatch-a), var(--swatch-b));
}

.card-preview {
  min-height: 238px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--card-a), var(--card-b));
  color: #fff;
}

.card-eyebrow {
  color: rgba(255, 255, 255, 0.65);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-preview strong {
  display: block;
  margin-top: auto;
  font-size: 27px;
  letter-spacing: -0.04em;
}

.card-preview small {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

.timer-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  text-align: center;
}

.timer-caption {
  margin: 0;
  color: #9a9da5;
  font-size: 11px;
}

.timer-display {
  margin: 4px 0 14px;
  font-size: 46px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
}

.timer-presets {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.timer-preset {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #4b5563;
  font-size: 11px;
}

.timer-preset:hover {
  border-color: #b9bdc4;
  color: var(--ink);
}

.timer-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 16px 0;
}

.app-search input {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  outline: 0;
}

.app-search input:focus {
  border-color: #9ca3af;
}

.shortcut-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 300px;
  overflow: auto;
}

.shortcut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  text-align: left;
}

.shortcut-row:hover {
  background: #fbfbfc;
}

.shortcut-row kbd {
  flex: none;
  padding: 3px 6px;
  border: 1px solid #d1d5db;
  border-bottom-width: 2px;
  border-radius: 5px;
  background: #f7f7f8;
  color: #4b5563;
  font-family: inherit;
  font-size: 10px;
}

.sync-clock {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  text-align: center;
}

.sync-clock p {
  margin: 0;
  color: #9a9da5;
  font-size: 10px;
}

.sync-clock strong {
  display: block;
  margin: 2px 0;
  font-size: 38px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}

.sync-clock small {
  color: #9a9da5;
  font-size: 10px;
}

.source-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  font-size: 12px;
}

.rename-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.rename-bar label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4b5563;
  font-size: 11px;
}

.rename-bar input {
  width: 150px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  font-size: 11px;
  outline: 0;
}

.rename-bar input:focus {
  border-color: #9ca3af;
}

.rename-bar > span {
  color: #9a9da5;
  font-size: 10px;
}

.rename-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  font-size: 12px;
}

.reader-layout {
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr);
  gap: 12px;
}

.reader-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reader-item {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.reader-item span,
.reader-item small {
  display: block;
}

.reader-item span {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reader-item small {
  margin-top: 2px;
  color: #9a9da5;
  font-size: 9px;
}

.reader-item.is-selected {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.reader-preview {
  min-height: 238px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.reader-preview h3 {
  margin: 8px 0 10px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.reader-preview p {
  margin: 0;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.control-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.control-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  color: #4b5563;
  font-size: 11px;
}

.control-row output {
  color: var(--ink);
  font-size: 10px;
  text-align: right;
}

.control-row input[type="range"] {
  width: 100%;
  accent-color: var(--ink);
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4b5563;
  font-size: 11px;
}

.switch-row input {
  accent-color: var(--ink);
}

.control-preview {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 14px;
  background: linear-gradient(135deg, #5b5bd6, #0f766e);
  color: #fff;
  filter: brightness(var(--preview-brightness, 0.7));
  transition: filter 140ms ease;
}

.control-preview span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
}

.control-preview strong {
  font-size: 22px;
  letter-spacing: -0.03em;
}

.lottery-panel {
  padding: 24px;
  border-radius: 16px;
  background: #111318;
  color: #fff;
  text-align: center;
}

.lottery-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
}

.lottery-result {
  display: block;
  min-height: 46px;
  margin: 5px 0 16px;
  font-size: 31px;
  letter-spacing: -0.04em;
}

.name-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.name-list span {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #6b7280;
  font-size: 10px;
}

.order-table {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-row {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 0.8fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-size: 11px;
}

.order-head {
  padding-top: 0;
  padding-bottom: 2px;
  border: 0;
  background: transparent;
  color: #9a9da5;
  font-size: 9px;
}

.order-id {
  color: #6b7280;
  font-size: 10px;
}

.order-name {
  overflow: hidden;
  color: #25262b;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status {
  justify-self: start;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 9px;
  white-space: nowrap;
}

.status-new {
  background: #fef3c7;
  color: #92400e;
}

.status-doing {
  background: #dbeafe;
  color: #1e40af;
}

.status-done {
  background: #dcfce7;
  color: #166534;
}

.mini-button {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #4b5563;
  font-size: 9px;
}

.mini-button:hover {
  border-color: #b9bdc4;
  color: var(--ink);
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feature-grid span {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #6b7280;
  font-size: 10px;
}

.desktop-dock {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 40;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateX(-50%);
}

.dock-apps {
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: min(80vw, 900px);
  overflow-x: auto;
  scrollbar-width: none;
}

.dock-apps::-webkit-scrollbar {
  display: none;
}

.dock-button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
}

.dock-button:hover,
.dock-button.is-active {
  background: transparent;
}

.dock-button img {
  width: 27px;
  height: 27px;
  border-radius: 7px;
}

.dock-button span {
  max-width: 120px;
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desktop-toast {
  position: absolute;
  left: 50%;
  bottom: 76px;
  z-index: 60;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(17, 19, 24, 0.9);
  color: #fff;
  font-size: 11px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
  animation: toastIn 160ms ease both;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translate(-50%, 5px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.screen-note {
  width: min(1360px, 100%);
  margin: 0 auto;
  color: #52525b;
  font-size: 11px;
  text-align: center;
}


.virtual-picker {
  position: absolute;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
}

.virtual-picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 12, 0.42);
  backdrop-filter: blur(3px);
}

.virtual-picker-panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  padding: 20px;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.virtual-picker-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.virtual-picker-head p {
  margin: 0 0 2px;
  color: #9a9da5;
  font-size: 10px;
}

.virtual-picker-head h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.virtual-picker-close {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 18px;
  line-height: 1;
}

.virtual-picker-close:hover {
  background: #e5e7eb;
  color: var(--ink);
}

.virtual-picker-path {
  margin: 14px 0 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f9fa;
  color: #8a8f98;
  font-size: 10px;
}

.virtual-picker-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.virtual-folder,
.virtual-file {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.virtual-folder:hover,
.virtual-file:hover,
.virtual-folder.is-selected {
  border-color: #111318;
  box-shadow: 0 0 0 1px #111318;
}

.virtual-folder strong,
.virtual-file strong {
  margin-top: 5px;
  font-size: 12px;
}

.virtual-folder small,
.virtual-file small {
  color: #9a9da5;
  font-size: 10px;
}

.virtual-folder-icon {
  position: relative;
  display: block;
  width: 38px;
  height: 28px;
  margin-top: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, #f7cf65, #e9b83e);
}

.virtual-folder-icon::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 17px;
  height: 8px;
  border-radius: 4px 4px 0 0;
  background: #f7cf65;
}

.virtual-file img {
  display: block;
  width: 100%;
  height: 84px;
  border-radius: 7px;
  object-fit: cover;
  background: #f3f4f6;
}

.virtual-picker-note {
  margin: 12px 0 0;
  color: #9a9da5;
  font-size: 10px;
  line-height: 1.5;
}

.virtual-picker-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.virtual-picker-cancel,
.virtual-picker-choose {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}

.virtual-picker-cancel:hover {
  background: #f3f4f6;
}

.virtual-picker-choose {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.virtual-picker-choose:hover {
  background: #2b2d33;
}

.window-content.panel-content {
  padding: 0;
  overflow: auto;
  background: #f7fafd;
}

.xp-app {
  min-height: 360px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  color: #1f2937;
}

.xp-app-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.xp-kicker {
  margin: 0 0 2px;
  color: #8b95a5;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.xp-app-head h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.xp-btn {
  padding: 6px 10px;
  border: 1px solid #e2e6ed;
  border-radius: 8px;
  background: #fff;
  color: #364152;
  font-size: 11px;
  font-weight: 600;
}

.xp-btn:hover {
  background: #f3f6fb;
}

.xp-btn.xp-primary {
  border-color: #2b6cff;
  background: #2b6cff;
  color: #fff;
}

.xp-note {
  margin: 0;
  color: #98a2b3;
  font-size: 10px;
  line-height: 1.5;
}

.xp-empty {
  min-height: 130px;
  display: grid;
  place-items: center;
  border: 1px dashed #d8dee8;
  border-radius: 10px;
  background: rgba(255,255,255,.55);
  color: #98a2b3;
  font-size: 11px;
  text-align: center;
  padding: 18px;
}

.fast-panel {
  padding: 14px;
}

.fast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 124px);
  gap: 12px;
}

.fast-card {
  width: 124px;
  height: 66px;
  min-height: 66px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 10px;
  border: 1px solid #e2e6ed;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(30, 45, 80, 0.08);
  color: #2b2f38;
  text-align: center;
  transition: border-color 120ms ease, transform 120ms ease, background 120ms ease;
}

.fast-card:hover {
  border-color: #b9c8f0;
  transform: translateY(-1px);
}

.fast-card strong {
  font-size: 13px;
}

.fast-card small {
  color: #9aa1ad;
  font-size: 10px;
}

.fast-card.keys-hidden small {
  display: none;
}

.fast-card.keys-hidden strong {
  font-size: 12px;
}

.fast-add-card {
  border-style: dashed;
  border-color: #b9c8f0;
  background: #ffffff;
  box-shadow: none;
}

.fast-add-card span {
  color: #5b8def;
  font-size: 24px;
  line-height: 1;
}

.fast-add-card:hover {
  background: #eef3ff;
  border-color: #5b8def;
}

.fast-editor {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
}

.fast-editor[hidden],
.fast-menu[hidden] {
  display: none;
}

.fast-editor-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 18, 0.42);
  backdrop-filter: blur(3px);
}

.fast-editor-panel {
  position: relative;
  width: min(360px, calc(100vw - 32px));
  padding: 20px;
  border: 1px solid #e2e5ec;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
  color: #1f2937;
}

.fast-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.fast-editor-head p {
  margin: 0 0 2px;
  color: #8b93a1;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.fast-editor-head h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.fast-editor-close {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #e2e5ec;
  border-radius: 50%;
  background: #fff;
  color: #7b8492;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.fast-editor-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
  color: #5f6877;
  font-size: 11px;
}

.fast-editor-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dfe4ec;
  border-radius: 9px;
  background: #fff;
  color: #1f2937;
  font-size: 13px;
  outline: none;
}

.fast-editor-field input:focus {
  border-color: #2b6cff;
  box-shadow: 0 0 0 3px rgba(43, 108, 255, 0.12);
}

#fast-editor-keys {
  cursor: text;
  letter-spacing: 0.04em;
}

.fast-editor-note {
  margin: 10px 0 0;
  color: #98a2b3;
  font-size: 10px;
  line-height: 1.45;
}

.fast-editor-error {
  min-height: 16px;
  margin: 6px 0 0;
  color: #d92d20;
  font-size: 11px;
}

.fast-editor-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.fast-editor-foot button {
  padding: 8px 14px;
  border: 1px solid #dfe4ec;
  border-radius: 9px;
  background: #fff;
  color: #4b5563;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.fast-editor-foot button.primary {
  border-color: #2b6cff;
  background: #2b6cff;
  color: #fff;
}

.fast-menu {
  position: fixed;
  z-index: 130;
  min-width: 168px;
  padding: 5px;
  border: 1px solid #e2e5ec;
  border-radius: 11px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
}

.fast-menu button {
  display: flex;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #3f4754;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}

.fast-menu button:hover {
  background: #eef3ff;
  color: #2b668f;
}

.fast-menu button.danger {
  color: #b42318;
}

.xp-toolbar,
.dup-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.xp-path {
  flex: 1;
  min-width: 120px;
  padding: 8px 10px;
  border: 1px solid #e2e6ed;
  border-radius: 8px;
  background: #fff;
  color: #667085;
  font-size: 11px;
}

.folder-summary {
  color: #8b95a5;
  font-size: 10px;
}

.folder-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 150px;
}

.folder-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid #e2e6ed;
  border-radius: 10px;
  background: #fff;
  color: #2b2f38;
  text-align: left;
}

.folder-row:hover {
  border-color: #b9c8f0;
  background: #fbfcff;
}

.folder-row strong {
  font-size: 12px;
}

.folder-row em {
  color: #8b95a5;
  font-size: 10px;
  font-style: normal;
}

.folder-glyph {
  position: relative;
  width: 24px;
  height: 18px;
  border-radius: 4px;
  background: #f4c95d;
}

.folder-glyph::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 11px;
  height: 5px;
  border-radius: 3px 3px 0 0;
  background: #f4c95d;
}

.rename-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
}

.rename-controls label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #8b95a5;
  font-size: 9px;
}

.rename-controls input {
  width: 88px;
  padding: 6px 8px;
  border: 1px solid #e2e6ed;
  border-radius: 7px;
  background: #fff;
  color: #2b2f38;
  font-size: 11px;
  outline: 0;
}

.rename-controls input:focus {
  border-color: #2b6cff;
}

.rename-path {
  color: #7b8794;
  font-size: 10px;
}

.rename-list {
  max-height: 360px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.xp-file-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border: 1px solid #e7ebf1;
  border-radius: 8px;
  background: #fff;
  font-size: 11px;
}

.xp-file-row strong {
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xp-file-row small {
  color: #98a2b3;
  font-size: 9px;
}

.xp-file-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 24px;
  border-radius: 5px;
  background: #eef2f7;
  color: #6b7280;
  font-size: 8px;
  font-weight: 700;
}

.dup-toolbar {
  padding: 8px 10px;
  border: 1px solid #e7ebf1;
  border-radius: 9px;
  background: #fff;
}

.dup-toolbar > span {
  flex: 1;
  min-width: 120px;
  color: #8b95a5;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dup-list {
  max-height: 280px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dup-row {
  display: grid;
  grid-template-columns: 18px 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid #e7ebf1;
  border-radius: 8px;
  background: #fff;
  font-size: 11px;
}

.dup-row small {
  grid-column: 3 / -1;
  overflow: hidden;
  color: #98a2b3;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dup-row em {
  color: #8b95a5;
  font-size: 9px;
  font-style: normal;
}

.virtual-folder-modal {
  position: absolute;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 18px;
}

.vf-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 12, 0.42);
  backdrop-filter: blur(3px);
}

.vf-panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(86vh, 700px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: 18px;
  background: #fff;
  color: #1d1d1f;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.vf-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.vf-head p {
  margin: 0 0 2px;
  color: #9a9da5;
  font-size: 10px;
}

.vf-head h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.vf-close {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 18px;
}

.vf-path {
  padding: 7px 9px;
  border: 1px solid #e7ebf1;
  border-radius: 8px;
  background: #f8f9fa;
  color: #8b95a5;
  font-size: 10px;
}

.vf-list {
  min-height: 100px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vf-file {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid #eef1f5;
  border-radius: 8px;
  background: #fff;
}

.vf-file-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 24px;
  border-radius: 5px;
  background: #eef2f7;
  color: #6b7280;
  font-size: 8px;
  font-weight: 700;
}

.vf-file strong,
.vf-file small {
  display: block;
}

.vf-file strong {
  font-size: 11px;
}

.vf-file small {
  color: #98a2b3;
  font-size: 9px;
}

.vf-note {
  margin: 0;
  color: #98a2b3;
  font-size: 10px;
}

.vf-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.vf-cancel,
.vf-choose {
  padding: 7px 11px;
  border: 1px solid #e2e6ed;
  border-radius: 8px;
  background: #fff;
  color: #2b2f38;
  font-size: 11px;
  font-weight: 600;
}

.vf-choose {
  border-color: #2b6cff;
  background: #2b6cff;
  color: #fff;
}


@media (max-width: 900px) {
  .page-note {
    display: none;
  }
}

@media (max-width: 760px) {
  .desktop-page {
    padding: 0;
  }

  .page-top {
    gap: 10px;
  }

  .page-heading h1 {
    font-size: 14px;
  }

  .page-heading p {
    display: none;
  }

  .back-link {
    padding: 5px 9px;
    font-size: 11px;
  }

  .desktop-back {
    top: 4px;
  }

  .desktop-copy {
    left: 9px;
    right: 9px;
    bottom: 4px;
    gap: 10px;
    min-height: 44px;
    padding: 6px 9px;
  }

  .desktop-copy-hint {
    font-size: 10px;
  }

  .desktop-copy-note {
    font-size: 9px;
    white-space: normal;
    text-align: right;
  }

  .desktop-copy-title {
    font-size: 10px;
  }

  .desktop-copy-note {
    font-size: 9px;
    white-space: normal;
    text-align: right;
  }

  .desktop-copy-mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }

  .screen-shell {
    width: 100%;
    height: 100%;
    padding: 0;
    border-radius: 0;
  }

  .desktop {
    height: 100%;
    min-height: 0;
    border-radius: 0;
  }

  .desktop-bar {
    height: 44px;
    padding: 0 12px;
    gap: 10px;
  }

  .desktop-brandline {
    max-width: 42px;
  }

  .desktop-brandline span {
    display: none;
  }

  .desktop-brandline-mark {
    width: 26px;
    height: 26px;
  }

  .desktop-icons {
    top: 60px;
    left: 10px;
    right: 10px;
    bottom: 30px;
    --cell-w: 86px;
    --cell-h: 94px;
  }

  .desktop-icon {
    width: 80px;
    min-height: 88px;
    padding: 5px;
  }

  .desktop-icon-art {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .desktop-icon-label {
    font-size: 10.5px;
  }

  .app-window {
    left: 8px !important;
    top: 52px !important;
    width: calc(100% - 16px);
    max-height: calc(100% - 64px);
    border-radius: 14px;
  }

  .window-chrome {
    height: 38px;
    padding: 0 9px;
    gap: 9px;
  }

  .window-title span {
    display: none;
  }

  .window-title img {
    width: 20px;
    height: 20px;
  }

  .window-content {
    padding: 13px;
  }

  .app-head h2 {
    font-size: 20px;
  }

  .app-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .card-workbench,
  .reader-layout {
    grid-template-columns: 1fr;
  }

  .card-preview,
  .reader-preview {
    min-height: 180px;
  }

  .xp-app {
    padding: 13px;
    min-height: 0;
  }

  .fast-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rename-controls input {
    width: 70px;
  }

  .vf-panel {
    padding: 15px;
  }

  .virtual-picker {
    padding: 10px;
  }

  .virtual-picker-panel {
    padding: 16px;
  }

  .virtual-picker-body {
    grid-template-columns: 1fr;
  }

.desktop-dock {
    bottom: 8px;
    padding: 6px 8px;
  }

  .dock-button span {
    display: none;
  }

  .desktop-toast {
    bottom: 66px;
  }

  .screen-note {
    font-size: 10px;
  }
}

@media (max-width: 360px) {
  .desktop-icons {
    right: 8px;
    --cell-w: 72px;
    --cell-h: 88px;
  }

  .desktop-icon {
    width: 68px;
    min-height: 82px;
  }

  .desktop-icon-label {
    font-size: 9px;
  }

  .timer-display {
    font-size: 38px;
  }

  .order-row {
    grid-template-columns: 0.9fr 1.1fr 0.9fr auto;
    font-size: 10px;
  }
}

@media (max-width: 520px) {
  .desktop-icons {
    --cell-w: 104px;
    --cell-h: 108px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* 从官网进入产品体验：页面从下方升起 */
body.experience-enter .desktop-page {
  animation: experience-rise 820ms cubic-bezier(0.16, 1, 0.3, 1) both;
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}

@keyframes experience-rise {
  from {
    opacity: 0;
    transform: translateY(100vh) scale(0.985);
  }
  55% {
    opacity: 1;
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.experience-enter .desktop-page {
    animation: none;
  }
}


/* 向上滚动两次返回官网 */
body.leaving-desktop .desktop-page {
  animation: none !important;
  opacity: 0;
  transform: translateY(-10vh) scale(0.985);
  filter: blur(8px);
  transition:
    transform 400ms cubic-bezier(0.72, 0, 0.24, 1),
    opacity 300ms ease,
    filter 400ms ease;
}

@media (prefers-reduced-motion: reduce) {
  body.leaving-desktop .desktop-page {
    transition: none;
  }
}


.desktop-back {
  -webkit-tap-highlight-color: transparent;
}

.desktop-back:focus,
.desktop-back:focus-visible,
.desktop-back:active {
  outline: 0;
  outline-offset: 0;
}
