:root {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei UI", system-ui, sans-serif;
  color: #24313a;
  --os-win: rgba(249, 250, 250, .97);
  --os-line: #ced4d8;
  --os-ink-2: #34414a;
  --i-bg: #f4f5f8;
  --i-line: #d7dce1;
  --i-blue: #175e9b;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  overflow: hidden;
  background: linear-gradient(180deg, #172a3625, transparent 65%, #0c192847), url("./dawn.webp") center / cover no-repeat, #28444e;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:where(a,button):focus-visible { outline: 3px solid #ffbd65; outline-offset: 3px; }
.menubar {
  height: 36px; padding: 0 22px; display: flex; align-items: center; gap: 28px;
  color: #fff; background: rgba(21,31,39,.52);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  font-size: .89rem;
}
.brand, .menu { display: flex; align-items: center; gap: 9px; }
.brand strong { font-weight: 680; }
.menu { gap: 4px; }
.menu a { padding: 5px 9px; border-radius: 5px; }
.menu a:hover { background: #ffffff26; }
.menubar time { margin-left: auto; font-variant-numeric: tabular-nums; }
.desktop { position: relative; height: calc(100% - 36px); isolation: isolate; }
.home { display: flex; align-items: flex-start; gap: 12px; padding: 18px; }
.grid, .files { display: grid; gap: 12px; width: 108px; }
.app, .shortcut {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 6px 2px; border-radius: 12px; text-align: center;
  color: white; font-size: .85rem; font-weight: 580;
  text-shadow: 0 1px 4px #10222d, 0 2px 10px #11253799;
}
.files:empty { display: none; }
.home a:hover, .home a:focus-visible { background-color: #ffffff1c; }
.shortcut > span:last-child { overflow-wrap: anywhere; }
.app-icon {
  position: relative; display: inline-grid; place-items: center; flex-shrink: 0;
  width: 52px; height: 52px; border-radius: 24%;
  color: #fff; text-shadow: none;
  background: linear-gradient(145deg, var(--light), var(--deep));
  box-shadow: inset 0 1px 1px #ffffff9e, inset 0 -2px 2px #0002, 0 5px 12px #05182343;
}
.app-icon i, .app-icon i::before, .app-icon i::after { position: absolute; display: block; }
.app-icon i::before, .app-icon i::after { content: ""; }
.icon-projects { --light: #63d5ff; --deep: #326be3; }
.icon-projects i { width: 63%; height: 42%; top: 37%; border-radius: 12%; background: linear-gradient(#faffff,#bde5ff); box-shadow: 0 2px 2px #154c9b49; }
.icon-projects i::before { top: -15%; left: 0; width: 40%; height: 28%; border-radius: 4px 4px 0 0; background: #f9ffff; }
.icon-videos { --light: #ff966c; --deep: #d84679; }
.icon-videos i { width: 58%; height: 58%; border: 2px solid white; border-radius: 50%; }
.icon-videos i::before { inset: 22% 20% 22% 33%; background: white; clip-path: polygon(0 0,100% 50%,0 100%); }
.icon-docs { --light: #ffe778; --deep: #e7a62f; }
.icon-docs i { width: 50%; height: 65%; border-radius: 4px; background: #fffdf4; box-shadow: 2px 3px 1px #926e3238; }
.icon-docs i::before { left: 18%; right: 18%; top: 30%; height: 6%; background: #c39549; box-shadow: 0 5px #c39549, 0 10px #c39549; }
.icon-about { --light: #ffcd86; --deep: #e78b48; }
.icon-about i { inset: 20%; background: url("./favicon.png") center / contain no-repeat; }
.icon-home { --light: #74d9c6; --deep: #27777a; }
.icon-home i { width: 62%; height: 59%; background: #f0fff7; clip-path: polygon(50% 0,100% 48%,86% 48%,86% 100%,58% 100%,58% 68%,42% 68%,42% 100%,14% 100%,14% 48%,0 48%); }
.icon-code { --light: #72849c; --deep: #33445b; }
.icon-code i::before { content: "‹/›"; font: 700 23px/1 ui-monospace, monospace; white-space: nowrap; transform: translate(-50%,-55%); }
.widgets, .dockbar, .scr { display: none; }
.dock { -webkit-backdrop-filter: blur(20px); }
.dock-icon { width: 50px; height: 50px; }
.dock-item:focus-visible .tip { opacity: 1; }
.window { outline: none; }
.win-bar { padding: 13px 15px; touch-action: none; }
.win-body { flex-direction: row; min-height: 0; overflow: hidden; }
.sidebar {
  flex: 0 0 145px; display: flex; flex-direction: column; align-items: stretch; gap: 3px;
  padding: 23px 11px; border-right: 1px solid var(--os-line); background: #e8edf0;
}
.sidebar strong { padding: 0 10px 8px; color: #596976; font-size: .83rem; }
.side-link { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 7px; font-size: .9rem; }
.side-link:hover, .side-link[aria-current] { background: #cddbe4; }
.side-link .app-icon { width: 22px; height: 22px; box-shadow: none; }
.side-link .icon-docs i::before { box-shadow: 0 3px #c39549; }
.pane, .mobile-body { min-width: 0; flex: 1; padding: 25px; overflow: auto; background: #fafbfc; }
.pane-title { margin: 0 0 18px; font-size: 1.58rem; letter-spacing: -.03em; }
.resource-list { border-block: 1px solid #dce2e7; }
.resource { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 14px 4px; }
.resource + .resource { border-top: 1px solid #dce2e7; }
.resource-copy h3 { margin: 0 0 4px; font-size: 1rem; }
.resource-copy p { margin: 0; color: #53636f; font-size: .9rem; line-height: 1.65; }
.resource-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.resource-link {
  display: inline-flex; align-items: center; min-height: 36px; padding: 6px 10px;
  color: #175c8c; background: #e6eff6; border: 1px solid #c9dce8; border-radius: 8px;
  font: inherit; font-size: .875rem; font-weight: 600;
}
.resource-link:hover { background: #d3e5f2; }
.player-host { grid-column: 1/-1; }
.player-host iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; background: #111c26; }
.about-role { color: #28688a; }
.about-copy, .empty-state { line-height: 1.85; color: #475c67; }
noscript { background: #fff; padding: 8px; }

@media (max-width: 759px) {
  body { background-position: center, 66% center; }
  .menubar { position: relative; z-index: 15; height: calc(49px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 25px 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .menubar .menu, .menubar .brand img, .dock, .files { display: none; }
  .menubar .brand { font-size: .9rem; }
  .menubar time { font-weight: 650; }
  .desktop { height: calc(100% - 49px - env(safe-area-inset-top)); }
  .home { position: absolute; inset: 0; display: block; padding: 17px 20px 144px; }
  .widgets { display: grid; grid-template-columns: .85fr 1.15fr; gap: 13px; margin: 0 auto 29px; max-width: 500px; }
  .widgets > * {
    min-width: 0; min-height: 135px; border-radius: 24px; padding: 17px; display: flex; flex-direction: column;
    justify-content: center; box-shadow: 0 7px 22px #17263636, inset 0 1px 0 #ffffff78;
  }
  .date-widget { color: #362f29; background: linear-gradient(140deg,#fff9ec,#f2ebd8); }
  .date-widget span:first-child { font-weight: 700; color: #a54828; }
  .date-widget b { font-size: 3.1rem; font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1.12; }
  .date-widget span, .site-widget span { font-size: .86rem; }
  .site-widget { color: #fff; background: linear-gradient(140deg,#243f4cef,#31444acb); }
  .site-widget .widget-mark { width: 27px; height: 27px; margin-bottom: 9px; background: url("./favicon.png") center / contain; font-size: 0; }
  .site-widget strong { font-size: 1.38rem; margin-bottom: 4px; }
  .site-widget span:last-child { line-height: 1.5; color: #e5eef1; }
  .grid { display: grid; width: 100%; max-width: 500px; margin: auto; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px 7px; }
  .app { padding: 0; border-radius: 12px; justify-content: start; }
  .app .ic { width: clamp(50px,15vw,66px); height: clamp(50px,15vw,66px); border-radius: 24%; }
  .app .lb { font-size: .89rem; font-weight: 580; }
  .dockbar { display: flex; inset-inline: max(12px, calc(50vw - 225px)); height: 87px; padding: 5px; color: #fff; border: 1px solid #ffffff42; -webkit-backdrop-filter: blur(22px); }
  .dockbar .shortcut { width: 31%; font-size: .76rem; line-height: 1.2; padding: 1px; gap: 4px; }
  .dockbar .app-icon { width: 44px; height: 44px; }
  .dockbar .shortcut > span:last-child { max-width: 100%; min-height: 2.3em; line-height: 1.15; white-space: normal; }
  .scr { display: flex; color: #24313a; }
  .scr .nav { padding: calc(10px + env(safe-area-inset-top)) 14px 8px; align-items: center; min-height: 54px; }
  .nav .back { min-height: 44px; }
  .nav .ttl { position: absolute; left: 50%; transform: translateX(-50%); font-weight: 680; }
  .mobile-body { padding: 25px 20px max(26px,env(safe-area-inset-bottom)); outline: 0; }
  .resource { grid-template-columns: minmax(0,1fr); }
  .resource-link { min-height: 44px; }
  .desktop .window { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
