:root {
  --bg: #0b0b0c;
  --text: #f2f2f3;
  --text-2: #a1a1a7;
  --text-3: #6c6c72;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.13);
  --fill: rgba(255, 255, 255, 0.05);
  --fill-2: rgba(255, 255, 255, 0.09);
  --fill-3: rgba(255, 255, 255, 0.14);
  --glass: rgba(32, 32, 34, 0.72);
  --glass-strong: rgba(28, 28, 30, 0.9);
  --pane: rgba(22, 22, 24, 0.82);
  --purple: #a78bfa;
  --purple-soft: rgba(167, 139, 250, 0.28);
  --gold: #e6c15c;
  --down: #e5604f;
  --menubar-h: 28px;
  --dock-h: 76px;
  --r-win: 12px;
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
  --spring: cubic-bezier(0.3, 1.35, 0.6, 1);
  --shadow-win: 0 0 0 0.5px rgba(0, 0, 0, 0.7), 0 22px 70px rgba(0, 0, 0, 0.55), 0 6px 18px rgba(0, 0, 0, 0.3);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.45;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

::selection {
  background: var(--purple-soft);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: default;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

kbd {
  font-family: var(--font);
  font-size: 12px;
  color: var(--text-3);
}

:focus-visible {
  outline: 2px solid rgba(167, 139, 250, 0.55);
  outline-offset: 1px;
}

[hidden] {
  display: none !important;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ic {
  display: block;
  width: 16px;
  height: 16px;
  flex: none;
  fill: currentColor;
  stroke: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.boot {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 44px;
  background: #000;
  transition: opacity 0.42s var(--ease), visibility 0.42s;
  animation: bootFailsafe 0.4s 6s forwards;
}

.boot.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-logo {
  width: 96px;
  height: 96px;
  animation: bootLogo 0.9s var(--ease) both;
}

.boot-track {
  width: 168px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
  animation: bootLogo 0.9s 0.25s var(--ease) both;
}

.boot-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #f2f2f3;
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}

@keyframes bootLogo { from { opacity: 0; } }
@keyframes bootFailsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }

@media (max-width: 760px) {
  .boot-track {
    width: 120px;
    height: 3px;
  }

  .boot-logo {
    width: 84px;
    height: 84px;
  }
}

.wallpaper {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(1100px 760px at 18% 8%, rgba(255, 255, 255, 0.075), transparent 62%),
    radial-gradient(900px 700px at 88% 92%, rgba(255, 255, 255, 0.045), transparent 60%),
    radial-gradient(760px 520px at 74% 18%, rgba(167, 139, 250, 0.05), transparent 65%),
    linear-gradient(165deg, #18181a 0%, #0f0f10 48%, #0a0a0b 100%);
}

.menubar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--menubar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  background: rgba(18, 18, 20, 0.55);
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  border-bottom: 0.5px solid var(--line);
  font-size: 13px;
}

.mb-left,
.mb-right {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.mb-item {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 9px;
  border-radius: 5px;
  color: var(--text);
  white-space: nowrap;
}

button.mb-item:hover,
button.mb-item.open {
  background: var(--fill-3);
}

.mb-logo {
  padding: 0 10px;
}

.mb-logo .ic {
  width: 19px;
  height: 19px;
}

.mb-app {
  padding: 0 9px 0 4px;
  font-weight: 700;
  white-space: nowrap;
}

.mb-icon .ic {
  width: 15px;
  height: 15px;
}

.mb-clock {
  font-variant-numeric: tabular-nums;
}

.mb-status .dot {
  width: 7px;
  height: 7px;
}

.mb-status span:last-child {
  color: var(--text-2);
  font-size: 12px;
}

.mb-np {
  max-width: 220px;
  color: var(--text-2);
  font-size: 12px;
}

.mb-np span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--text-3);
}

.dot[data-s="up"] { background: #d8d8dc; }
.dot[data-s="down"] { background: var(--down); }
.dot[data-s="pending"] { background: var(--gold); }
.dot[data-s="maint"] { background: var(--purple); }

.menu {
  position: fixed;
  z-index: 1001;
  min-width: 210px;
  padding: 5px;
  border-radius: 9px;
  background: rgba(34, 34, 36, 0.82);
  backdrop-filter: blur(40px) saturate(170%);
  -webkit-backdrop-filter: blur(40px) saturate(170%);
  border: 0.5px solid var(--line-2);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.6), 0 14px 40px rgba(0, 0, 0, 0.45);
  animation: menuIn 0.12s var(--ease) both;
}

.menu button,
.menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  height: 24px;
  padding: 0 10px;
  border-radius: 5px;
  text-align: left;
  font-size: 13px;
}

.menu button:hover,
.menu a:hover,
.menu button:focus-visible,
.menu a:focus-visible {
  background: var(--fill-3);
  outline: none;
}

.menu button[disabled] {
  color: var(--text-3);
  background: none;
}

.menu .ic {
  width: 13px;
  height: 13px;
  color: var(--text-3);
}

.menu .mark {
  display: inline-block;
  width: 14px;
  color: var(--text-2);
}

.menu .win-item {
  justify-content: flex-start;
  gap: 4px;
}

.menu hr {
  border: 0;
  height: 0.5px;
  margin: 5px 10px;
  background: var(--line-2);
}

.desktop {
  position: fixed;
  inset: var(--menubar-h) 0 0;
  z-index: 1;
  overflow: hidden;
}

.win {
  --x: 0px;
  --y: 0px;
  --w: 640px;
  --h: 440px;
  position: absolute;
  left: 0;
  top: 0;
  width: var(--w);
  height: var(--h);
  display: flex;
  flex-direction: column;
  transform: translate3d(var(--x), var(--y), 0);
  border-radius: var(--r-win);
  background: var(--glass);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 0.5px solid var(--line-2);
  box-shadow: var(--shadow-win);
  overflow: hidden;
}

.win.is-active {
  border-color: rgba(167, 139, 250, 0.26);
}

.win.is-anim {
  transition: transform 0.32s var(--ease), width 0.32s var(--ease), height 0.32s var(--ease), opacity 0.3s var(--ease);
}

body.is-dragging,
body.is-resizing {
  cursor: default;
}

body.is-dragging .win,
body.is-resizing .win {
  transition: none;
}

body.is-resizing * {
  cursor: inherit !important;
}

.win.is-opening {
  animation: winIn 0.22s var(--ease) both;
}

.win.is-closing {
  animation: winOut 0.16s var(--ease) both;
  pointer-events: none;
}

.win.is-minimizing {
  transition: transform 0.38s cubic-bezier(0.5, 0, 0.75, 0), opacity 0.38s var(--ease);
  transform: translate3d(var(--mx), var(--my), 0) scale(0.08);
  opacity: 0;
  pointer-events: none;
}

.win-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 38px;
  flex: none;
  padding: 0 12px 0 14px;
}

.win-finder .win-bar,
.win-music .win-bar,
.win-status .win-bar {
  height: 52px;
  border-bottom: 0.5px solid var(--line);
}

.win-term .win-bar {
  border-bottom: 0.5px solid var(--line);
}

.lights {
  display: flex;
  gap: 8px;
  flex: none;
}

.light {
  display: grid;
  place-items: center;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4a4a4d;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.25);
  color: rgba(0, 0, 0, 0.6);
  transition: background 0.12s, filter 0.12s;
}

.win.is-active .light.l-close,
.lights:hover .light.l-close { background: #ff5f57; box-shadow: inset 0 0 0 0.5px #e2463f; color: #7d0f0a; }
.win.is-active .light.l-min,
.lights:hover .light.l-min { background: #febc2e; box-shadow: inset 0 0 0 0.5px #dfa023; color: #8a5300; }
.win.is-active .light.l-max,
.lights:hover .light.l-max { background: #28c840; box-shadow: inset 0 0 0 0.5px #1aab29; color: #0a5d12; }

.light .ic {
  width: 8px;
  height: 8px;
  opacity: 0;
}

.lights:hover .light .ic {
  opacity: 1;
}

.light:active {
  filter: brightness(0.82);
}

.bar-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  line-height: 1.2;
}

.bar-title b {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-title span {
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.win:not(.is-active) .bar-title b {
  color: var(--text-2);
}

.bar-title-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.bar-title-center b {
  font-weight: 600;
  font-size: 12.5px;
}

.bar-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.seg {
  display: flex;
  padding: 2px;
  border-radius: 7px;
  background: var(--fill);
  border: 0.5px solid var(--line);
}

.seg button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 22px;
  border-radius: 5px;
  color: var(--text-2);
}

.seg button.on {
  background: var(--fill-3);
  color: var(--text);
}

.seg .ic {
  width: 14px;
  height: 14px;
}

.field {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 168px;
  height: 28px;
  padding: 0 8px;
  border-radius: 7px;
  background: var(--fill);
  border: 0.5px solid var(--line);
  color: var(--text-3);
  transition: border-color 0.15s, background 0.15s;
}

.field:focus-within {
  border-color: rgba(167, 139, 250, 0.45);
  background: var(--fill-2);
}

.field .ic {
  width: 13px;
  height: 13px;
}

.field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  background: none;
  border: 0;
  outline: none;
  font-size: 12.5px;
  color: var(--text);
  user-select: text;
  -webkit-user-select: text;
}

.field input::placeholder {
  color: var(--text-3);
}

.field input::-webkit-search-cancel-button {
  display: none;
}

.tool {
  display: grid;
  place-items: center;
  width: 30px;
  height: 26px;
  border-radius: 6px;
  color: var(--text-2);
}

.tool:hover {
  background: var(--fill-2);
  color: var(--text);
}

.tool .ic {
  width: 15px;
  height: 15px;
}

.tool.spin .ic {
  animation: spin 0.7s var(--ease);
}

.win-body {
  position: relative;
  flex: 1;
  min-height: 0;
}

.rz {
  position: absolute;
  z-index: 5;
  touch-action: none;
}

.rz-n { top: -3px; left: 10px; right: 10px; height: 7px; cursor: ns-resize; }
.rz-s { bottom: -3px; left: 10px; right: 10px; height: 7px; cursor: ns-resize; }
.rz-e { right: -3px; top: 10px; bottom: 10px; width: 7px; cursor: ew-resize; }
.rz-w { left: -3px; top: 10px; bottom: 10px; width: 7px; cursor: ew-resize; }
.rz-ne { top: -3px; right: -3px; width: 14px; height: 14px; cursor: nesw-resize; }
.rz-nw { top: -3px; left: -3px; width: 14px; height: 14px; cursor: nwse-resize; }
.rz-se { bottom: -3px; right: -3px; width: 14px; height: 14px; cursor: nwse-resize; }
.rz-sw { bottom: -3px; left: -3px; width: 14px; height: 14px; cursor: nesw-resize; }

.win.is-max .rz {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: var(--fill-2);
  border: 0.5px solid var(--line-2);
  white-space: nowrap;
  transition: background 0.12s;
}

.btn:hover {
  background: var(--fill-3);
}

.btn:active {
  background: rgba(255, 255, 255, 0.18);
}

.btn .ic {
  width: 13px;
  height: 13px;
}

.btn-primary {
  color: #111113;
  background: #ececee;
  border-color: transparent;
}

.btn-primary:hover {
  background: #ffffff;
}

.btn-primary:active {
  background: #d8d8dc;
}

.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 28px 26px;
  text-align: center;
  overflow: auto;
}

.about-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(160deg, #3a3a3e, #1d1d20);
  border: 0.5px solid var(--line-2);
  font-size: 34px;
  font-weight: 600;
  color: var(--text-2);
}

.about-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-name {
  margin-top: 16px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.about-role {
  margin-top: 2px;
  font-size: 13px;
  color: var(--text-2);
}

.about-meta {
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-3);
}

.about-specs {
  display: grid;
  gap: 5px;
  width: 100%;
  max-width: 300px;
  margin: 20px 0 22px;
  font-size: 12px;
}

.about-specs div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.about-specs dt {
  text-align: right;
  font-weight: 600;
  color: var(--text);
}

.about-specs dd {
  text-align: left;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.about-actions {
  display: flex;
  gap: 8px;
}

.about-social {
  display: flex;
  gap: 4px;
  margin-top: 18px;
}

.about-social a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--text-3);
  transition: color 0.12s, background 0.12s;
}

.about-social a:hover {
  color: var(--text);
  background: var(--fill-2);
}

.side {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 10px 8px;
  overflow: auto;
  border-right: 0.5px solid var(--line);
}

.side-h {
  margin: 10px 8px 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
}

.side-h:first-child {
  margin-top: 2px;
}

.side-i {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text);
  text-align: left;
  white-space: nowrap;
}

.side-i .ic {
  width: 15px;
  height: 15px;
  color: var(--text-2);
}

.side-i:hover {
  background: var(--fill);
}

.side-i.on {
  background: var(--fill-2);
}

.side-i span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.win-finder {
  container: finderwin / inline-size;
}

.finder {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 260px;
}

.finder-main {
  container: pane / inline-size;
  position: relative;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--pane);
}

.items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  align-content: start;
  gap: 6px 4px;
  padding: 16px;
}

.group-h {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 4px 2px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-2);
}

.group-h:first-child {
  margin-top: 0;
}

.group-h::after {
  content: "";
  flex: 1;
  height: 0.5px;
  background: var(--line);
}

.item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 8px 4px 6px;
  border-radius: 8px;
  text-align: center;
  min-width: 0;
}

.item-ic,
.ins-icon {
  --a: #6e6e73;
  --b: #48484c;
  display: grid;
  place-items: center;
  border-radius: 23%;
  background: linear-gradient(180deg, var(--a), var(--b));
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.22), 0 2px 6px rgba(0, 0, 0, 0.35);
  color: #fff;
}

.item-ic {
  width: 58px;
  height: 58px;
}

.item-ic .ic {
  width: 28px;
  height: 28px;
}

.item-name {
  max-width: 100%;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-sub {
  margin-top: -5px;
  max-width: 100%;
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-kind,
.item-loc {
  display: none;
}

.item.sel .item-ic {
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.22), 0 0 0 3px rgba(255, 255, 255, 0.16), 0 2px 6px rgba(0, 0, 0, 0.35);
}

.item.sel .item-name {
  background: rgba(167, 139, 250, 0.32);
  color: #fff;
}

.items.list {
  display: block;
  padding: 0 0 12px;
}

.list-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 180px;
  gap: 12px;
  height: 28px;
  align-items: center;
  padding: 0 16px 0 48px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-3);
  background: rgba(24, 24, 26, 0.96);
  border-bottom: 0.5px solid var(--line);
}

.items.list .group-h {
  margin: 14px 16px 4px;
}

.items.list .item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 110px 180px;
  align-items: center;
  gap: 12px;
  width: calc(100% - 16px);
  height: 30px;
  margin: 0 8px;
  padding: 0 8px;
  border-radius: 6px;
  text-align: left;
}

.items.list .item:nth-of-type(even) {
  background: rgba(255, 255, 255, 0.025);
}

.items.list .item-ic {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  box-shadow: none;
}

.items.list .item-ic .ic {
  width: 12px;
  height: 12px;
}

.items.list .item-name {
  padding: 0;
  font-weight: 400;
  font-size: 13px;
  background: none;
}

.items.list .item-sub {
  display: none;
}

.items.list .item-kind,
.items.list .item-loc {
  display: block;
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.items.list .item.sel {
  background: rgba(167, 139, 250, 0.26);
}

.items.list .item.sel .item-kind,
.items.list .item.sel .item-loc {
  color: var(--text);
}

@container pane (max-width: 480px) {
  .items.list .item {
    grid-template-columns: 20px minmax(0, 1fr) 96px;
  }

  .list-head {
    grid-template-columns: minmax(0, 1fr) 96px;
  }

  .items.list .item-loc,
  .list-head span:last-child {
    display: none;
  }
}

.finder-empty {
  padding: 40px 20px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-3);
}

.inspector {
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  border-left: 0.5px solid var(--line);
  padding: 16px;
  user-select: text;
  -webkit-user-select: text;
}

.ins-empty {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 120px;
  font-size: 12.5px;
  color: var(--text-3);
  text-align: center;
}

.ins-preview {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  border: 0.5px solid var(--line-2);
}

.ins-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ins-icon {
  width: 72px;
  height: 72px;
  margin: 6px auto 0;
}

.ins-icon .ic {
  width: 32px;
  height: 32px;
  stroke-width: 1.4;
}

.ins-center {
  text-align: center;
}

.ins-name {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 700;
}

.ins-sub {
  margin-top: 1px;
  font-size: 12px;
  color: var(--text-2);
  word-break: break-all;
}

.ins-desc {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-2);
}

.ins-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 0.5px solid var(--line);
  font-size: 12px;
}

.ins-info div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.ins-info dt {
  color: var(--text-3);
  flex: none;
}

.ins-info dd {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--text);
  white-space: nowrap;
}

.ins-info dd span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ins-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.ins-actions .btn {
  flex: 1;
}

@container finderwin (max-width: 760px) {
  .finder {
    grid-template-columns: minmax(0, 1fr) 240px;
  }

  .finder > .side {
    display: none;
  }
}

@container finderwin (max-width: 540px) {
  .finder {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) minmax(0, 46%);
  }

  .finder:has(.ins-empty) {
    grid-template-rows: minmax(0, 1fr);
  }

  .inspector {
    border-left: 0;
    border-top: 0.5px solid var(--line);
    background: var(--glass-strong);
  }

  .inspector:has(.ins-empty) {
    display: none;
  }

  .ins-preview {
    display: none;
  }

  .items.list .item {
    grid-template-columns: 20px minmax(0, 1fr) 110px;
  }

  .list-head {
    grid-template-columns: minmax(0, 1fr) 110px;
  }

  .items.list .item-loc,
  .list-head span:last-child {
    display: none !important;
  }
}

.music-bar {
  gap: 12px;
}

.transport {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: none;
}

.tp {
  display: grid;
  place-items: center;
  width: 32px;
  height: 30px;
  border-radius: 6px;
  color: var(--text-2);
  transition: color 0.12s, background 0.12s;
}

.tp:hover {
  color: var(--text);
  background: var(--fill);
}

.tp .ic {
  width: 17px;
  height: 17px;
}

.tp-play {
  color: var(--text);
}

.tp-play .ic {
  width: 20px;
  height: 20px;
}

.tp-sm {
  width: 28px;
  height: 28px;
}

.tp-sm .ic {
  width: 15px;
  height: 15px;
}

.tp[aria-pressed="true"] {
  color: var(--text);
  background: var(--fill-2);
}

.lcd {
  display: flex;
  flex: 1;
  min-width: 0;
  max-width: 480px;
  height: 38px;
  margin: 0 auto;
  border-radius: 7px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.045);
  border: 0.5px solid var(--line);
}

.lcd-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  background: var(--fill);
  color: var(--text-3);
  border-right: 0.5px solid var(--line);
}

.lcd-art .ic {
  width: 15px;
  height: 15px;
}

.lcd-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lcd-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
  padding: 0 10px;
}

.lcd-txt {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  font-size: 11.5px;
  line-height: 1.3;
}

.lcd-txt b {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lcd-txt span {
  color: var(--text-3);
  white-space: nowrap;
}

.lcd-prog {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  font-size: 9.5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.scrub {
  position: relative;
  flex: 1;
  height: 10px;
  touch-action: none;
}

.scrub::before,
.scrub-buf,
.scrub-fill {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 2px;
}

.scrub::before {
  background: var(--fill-2);
}

.scrub-buf,
.scrub-fill {
  transform-origin: left;
}

.scrub-buf {
  background: var(--fill-3);
  transform: scaleX(var(--b, 0));
}

.scrub-fill {
  background: #d4d4d8;
  transform: scaleX(var(--p, 0));
}

.m-tools {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: none;
}

.vol {
  display: flex;
  align-items: center;
  gap: 2px;
}

.range {
  --p: 80%;
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 16px;
  margin: 0;
  background: transparent;
}

.range::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #c8c8cc var(--p), var(--fill-2) var(--p));
}

.range::-moz-range-track {
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #c8c8cc var(--p), var(--fill-2) var(--p));
}

.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4.5px;
  border-radius: 50%;
  border: 0;
  background: #f2f2f3;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  background: #f2f2f3;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.win-music {
  container: musicwin / inline-size;
}

.music {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
}

.m-main {
  min-width: 0;
  overflow: auto;
  background: var(--pane);
}

.m-head {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  padding: 22px 22px 18px;
}

.m-cover {
  position: relative;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  flex: none;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(160deg, #303033, #1a1a1c);
  border: 0.5px solid var(--line-2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  color: var(--text-3);
}

.m-cover .ic {
  width: 36px;
  height: 36px;
  stroke-width: 1.3;
}

.m-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.m-info {
  min-width: 0;
}

.m-kicker {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.m-info h2 {
  margin-top: 2px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.m-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-2);
}

.m-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.tbl {
  padding: 0 12px 16px;
}

.tbl-head,
.trk {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 110px 52px 32px;
  align-items: center;
  gap: 10px;
}

.tbl-head {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 28px;
  padding: 0 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-3);
  background: rgba(22, 22, 24, 0.97);
  border-bottom: 0.5px solid var(--line);
}

.c-num,
.c-time {
  text-align: right;
}

.tracks {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
}

.trk {
  height: 44px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 13px;
}

.trk:nth-child(even) {
  background: rgba(255, 255, 255, 0.022);
}

.trk:hover {
  background: var(--fill);
}

.trk.on {
  background: var(--fill-2);
}

.trk-num {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  font-size: 12px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.trk-num .ic {
  display: none;
  width: 13px;
  height: 13px;
  color: var(--text);
}

.trk:hover .trk-num .n,
.trk.on .trk-num .n {
  display: none;
}

.trk:hover .trk-num .ic {
  display: block;
}

.trk-num .eq {
  display: none;
}

.trk.on .trk-num .eq {
  display: flex;
}

.trk.on:hover .trk-num .eq {
  display: none;
}

.trk-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  height: 100%;
  text-align: left;
}

.trk-title img {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 4px;
  object-fit: cover;
  background: var(--fill);
}

.trk-title span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trk.on .trk-title span {
  font-weight: 600;
}

.trk-date {
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
}

.trk-time {
  text-align: right;
  font-size: 12px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.trk-sc {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: var(--text-3);
  opacity: 0;
  transition: opacity 0.12s, color 0.12s, background 0.12s;
}

.trk:hover .trk-sc,
.trk.on .trk-sc,
.trk-sc:focus-visible {
  opacity: 1;
}

.trk-sc:hover {
  color: var(--text);
  background: var(--fill-2);
}

.trk-sc .ic {
  width: 15px;
  height: 15px;
}

.trk-skel {
  height: 44px;
  margin-bottom: 2px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--fill), var(--fill-2), var(--fill));
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

.m-error {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 40px 20px;
  font-size: 12.5px;
  color: var(--text-2);
}

.eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  width: 12px;
  height: 11px;
}

.eq i {
  flex: 1;
  height: 100%;
  border-radius: 1px;
  background: var(--text-2);
  transform-origin: bottom;
  transform: scaleY(0.35);
}

.trk .eq i {
  background: var(--purple);
}

.eq i:nth-child(2) { transform: scaleY(0.7); }
.eq i:nth-child(3) { transform: scaleY(0.5); }

body.is-playing .eq i {
  animation: eq 0.9s ease-in-out infinite alternate;
}

body.is-playing .eq i:nth-child(2) { animation-duration: 0.6s; animation-delay: -0.3s; }
body.is-playing .eq i:nth-child(3) { animation-duration: 0.75s; animation-delay: -0.5s; }

@container musicwin (max-width: 680px) {
  .music {
    grid-template-columns: minmax(0, 1fr);
  }

  .music > .side {
    display: none;
  }

  .tbl-head,
  .trk {
    grid-template-columns: 26px minmax(0, 1fr) 46px 30px;
  }

  .c-date,
  .trk-date {
    display: none;
  }
}

@container musicwin (max-width: 420px) {
  .m-head {
    align-items: center;
    gap: 14px;
    padding: 16px 14px 14px;
  }

  .m-cover {
    width: 84px;
    height: 84px;
  }

  .m-info h2 {
    font-size: 20px;
  }

  .tbl {
    padding: 0 6px 12px;
  }

  .tbl-head,
  .trk {
    grid-template-columns: minmax(0, 1fr) 42px 30px;
  }

  .c-num,
  .trk-num {
    display: none !important;
  }

  .trk-sc {
    opacity: 1;
  }
}

@container musicwin (max-width: 700px) {
  .m-tools {
    display: none;
  }
}

@container musicwin (max-width: 460px) {
  .lcd-txt span {
    display: none;
  }

  .music-bar {
    gap: 8px;
    padding-right: 8px;
  }

  .transport .tp:not(.tp-play) {
    width: 26px;
  }
}

.status {
  container: status / inline-size;
  overflow: auto;
  padding: 16px 18px 20px;
  background: var(--pane);
  user-select: text;
  -webkit-user-select: text;
}

.st-sum {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid var(--line);
}

.st-sum .dot {
  width: 10px;
  height: 10px;
}

.st-sum div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.st-sum b {
  font-size: 14px;
  font-weight: 600;
}

.st-sum span {
  font-size: 12px;
  color: var(--text-2);
}

.st-group h3 {
  margin: 20px 4px 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-3);
}

.st-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 0.5px solid var(--line);
  overflow: hidden;
}

.st-row {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) minmax(0, 180px) 56px 56px;
  align-items: center;
  gap: 14px;
  min-height: 46px;
  padding: 8px 14px;
}

.st-row + .st-row {
  border-top: 0.5px solid var(--line);
}

.st-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.st-name b {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.st-name span {
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.beats {
  display: flex;
  justify-content: flex-end;
  gap: 2px;
  height: 18px;
  overflow: hidden;
}

.beats i {
  flex: 0 0 3px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.beats i[data-s="up"] { background: rgba(255, 255, 255, 0.5); }
.beats i[data-s="down"] { background: var(--down); }
.beats i[data-s="pending"] { background: var(--gold); }
.beats i[data-s="maint"] { background: var(--purple); }

.st-val {
  text-align: right;
  font-size: 12px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.st-val small {
  display: block;
  font-size: 10px;
  color: var(--text-3);
}

.st-row[data-s="down"] .st-val:last-child {
  color: var(--down);
}

.st-empty {
  padding: 30px 16px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-3);
}

.st-source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 0.5px solid var(--line);
  transition: background 0.12s;
}

.st-source:hover {
  background: var(--fill-2);
}

.st-source span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.st-source b {
  font-size: 13px;
  font-weight: 600;
}

.st-source small {
  font-size: 11.5px;
  color: var(--text-3);
}

.st-source .ic {
  width: 14px;
  height: 14px;
  color: var(--text-2);
}

.st-empty a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 3px;
}

.st-skel {
  height: 46px;
  background: linear-gradient(90deg, var(--fill), var(--fill-2), var(--fill));
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

.st-skel + .st-skel {
  border-top: 0.5px solid var(--line);
}

@container status (max-width: 520px) {
  .st-row {
    grid-template-columns: 8px minmax(0, 1fr) 52px 52px;
  }

  .beats {
    display: none;
  }
}

.term {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.55;
  background: rgba(14, 14, 15, 0.9);
  cursor: text;
  user-select: text;
  -webkit-user-select: text;
}

.term-out {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.term-out .row {
  min-height: 1.55em;
}

.term-out .dim { color: var(--text-3); }
.term-out .mid { color: var(--text-2); }
.term-out .err { color: var(--down); }
.term-out b { font-weight: 500; color: #fff; }
.term-out a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 3px; }
.term-out a:hover { text-decoration-color: var(--purple); }

.term-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.prompt {
  color: var(--text-2);
  white-space: nowrap;
}

.term-line input {
  flex: 1;
  min-width: 0;
  height: 22px;
  background: transparent;
  border: 0;
  outline: none;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text);
  caret-color: var(--text);
}

.dock {
  position: fixed;
  left: 50%;
  bottom: calc(8px + env(safe-area-inset-bottom));
  z-index: 900;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 5px 6px;
  transform: translateX(-50%);
  border-radius: 22px;
  transition: transform 0.38s cubic-bezier(0.3, 0.8, 0.3, 1);
  background: rgba(60, 60, 64, 0.32);
  backdrop-filter: blur(36px) saturate(180%);
  -webkit-backdrop-filter: blur(36px) saturate(180%);
  border: 0.5px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(0, 0, 0, 0.35);
}

.dk {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 58px;
}

.dk-svg {
  display: block;
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
  transform-origin: 50% 100%;
  transition: transform 0.22s var(--spring);
}

.dk:hover .dk-svg {
  transform: translateY(-6px) scale(1.08);
}

.dk:active .dk-svg {
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35)) brightness(0.8);
}

.dk::before {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  opacity: 0;
  transition: opacity 0.2s;
}

.dk.run::before {
  opacity: 1;
}

.dk::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  color: var(--text);
  background: rgba(36, 36, 38, 0.9);
  border: 0.5px solid var(--line-2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 3px);
  transition: opacity 0.12s, transform 0.12s;
}

.dk:hover::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.dk.launch .dk-svg {
  animation: launch 0.7s var(--ease);
}

.dk-sep {
  align-self: center;
  width: 0.5px;
  height: 40px;
  margin: 0 5px;
  background: var(--line-2);
}

.toasts {
  position: fixed;
  top: calc(var(--menubar-h) + 10px);
  right: 10px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(320px, calc(100vw - 20px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(36, 36, 38, 0.82);
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  border: 0.5px solid var(--line-2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
  animation: toastIn 0.3s var(--ease) both;
}

.toast.out {
  animation: toastOut 0.25s var(--ease) both;
}

.toast-ic {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 8px;
  background: var(--fill-2);
  color: var(--text);
}

.toast-ic .ic {
  width: 15px;
  height: 15px;
}

.toast b {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
}

.toast p {
  font-size: 12px;
  color: var(--text-2);
}

.noscript {
  position: fixed;
  inset: 40px 16px auto;
  z-index: 2000;
  padding: 16px;
  border-radius: 12px;
  background: var(--glass-strong);
  border: 0.5px solid var(--line-2);
}

@keyframes winIn { from { opacity: 0; transform: translate3d(var(--x), var(--y), 0) scale(0.97); } }
@keyframes winOut { to { opacity: 0; transform: translate3d(var(--x), var(--y), 0) scale(0.97); } }
@keyframes menuIn { from { opacity: 0; transform: translateY(-2px); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(-6px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-6px); } }
@keyframes launch { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-12px); } 55% { transform: translateY(0); } 75% { transform: translateY(-4px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes eq { from { transform: scaleY(0.2); } to { transform: scaleY(1); } }

.springboard,
.home-bar {
  display: none;
}

body.dock-hidden .dock {
  transform: translate(-50%, calc(100% + 16px));
}

@keyframes iosIn { from { opacity: 0; transform: scale(0.14); border-radius: 44px; } }
@keyframes iosOut { to { opacity: 0; transform: scale(0.14); border-radius: 44px; } }

@media (max-width: 760px) {
  :root {
    --menubar-h: 0px;
  }

  .menubar,
  .menu {
    display: none !important;
  }

  .desktop {
    z-index: 2;
    pointer-events: none;
  }

  .springboard {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: block;
    overflow-y: auto;
    padding: calc(env(safe-area-inset-top) + 28px) 20px calc(150px + env(safe-area-inset-bottom));
  }

  .sb-widget {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto 28px;
    padding: 16px;
    border-radius: 24px;
    background: rgba(48, 48, 52, 0.5);
    backdrop-filter: blur(30px) saturate(170%);
    -webkit-backdrop-filter: blur(30px) saturate(170%);
    border: 0.5px solid rgba(255, 255, 255, 0.12);
    color: var(--text);
    text-align: left;
    transition: transform 0.15s var(--ease);
  }

  .sb-widget:active {
    transform: scale(0.98);
  }

  .sb-w-head {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .sb-avatar {
    position: relative;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: none;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(160deg, #3a3a3e, #1d1d20);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-2);
  }

  .sb-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .sb-w-id {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .sb-w-id b {
    font-size: 17px;
    font-weight: 700;
  }

  .sb-w-id small {
    font-size: 12.5px;
    color: var(--text-2);
  }

  .sb-w-rows {
    display: grid;
    gap: 9px;
    padding-top: 12px;
    border-top: 0.5px solid var(--line-2);
  }

  .sb-w-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 13px;
  }

  .sb-w-row .ic {
    width: 13px;
    height: 13px;
    color: #fd6b80;
  }

  .sb-w-row em {
    margin-left: auto;
    max-width: 58%;
    font-style: normal;
    color: var(--text-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sb-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px 8px;
    max-width: 420px;
    margin: 0 auto;
  }

  .sb-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-size: 11.5px;
    color: #fff;
    text-align: center;
  }

  .sb-app span {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  }

  .sb-svg {
    width: 62px;
    height: 62px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
    transition: transform 0.15s var(--ease), filter 0.15s;
  }

  .sb-app:active .sb-svg {
    transform: scale(0.88);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35)) brightness(0.8);
  }

  .win {
    --x: 0px !important;
    --y: 0px !important;
    position: fixed;
    width: 100vw !important;
    height: 100dvh !important;
    padding-top: env(safe-area-inset-top);
    padding-bottom: calc(26px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
    background: #101011;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    pointer-events: auto;
  }

  .win.is-active {
    border-color: transparent;
  }

  .win.is-opening,
  .win.is-closing,
  .win.is-minimizing {
    animation: none;
  }

  .win.ios-in {
    transform-origin: var(--ox, 50%) var(--oy, 60%);
    animation: iosIn 0.42s cubic-bezier(0.2, 0.9, 0.25, 1) both;
  }

  .win.ios-out {
    transform-origin: var(--ox, 50%) var(--oy, 60%);
    animation: iosOut 0.3s cubic-bezier(0.4, 0, 0.7, 0.2) both;
    pointer-events: none;
  }

  .lights,
  .rz {
    display: none;
  }

  .win-bar {
    height: 46px;
    padding: 0 14px;
    cursor: default;
  }

  .win-finder .win-bar,
  .win-music .win-bar,
  .win-status .win-bar {
    height: 54px;
  }

  .bar-title b {
    font-size: 17px;
  }

  .bar-title-center b {
    font-size: 15px;
  }

  .about {
    justify-content: center;
  }

  .field {
    width: 128px;
  }

  .field input,
  .term-line input {
    font-size: 16px;
  }

  .dock {
    bottom: calc(10px + env(safe-area-inset-bottom));
    justify-content: space-around;
    align-items: center;
    gap: 0;
    width: calc(100vw - 20px);
    max-width: 400px;
    padding: 12px 10px;
    border-radius: 34px;
    background: rgba(60, 60, 64, 0.36);
  }

  .dk-desk {
    display: none !important;
  }

  .dk {
    width: 62px;
    height: 62px;
  }

  .dk-svg {
    width: 62px;
    height: 62px;
  }

  .dk::after,
  .dk::before {
    display: none;
  }

  .dk:hover .dk-svg {
    transform: none;
  }

  .dk:active .dk-svg {
    transform: scale(0.88);
  }

  body.app-open .dock {
    transform: translate(-50%, calc(100% + 40px));
  }

  body.app-open .home-bar {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 950;
    display: grid;
    place-items: center;
    width: 180px;
    height: calc(26px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    transform: translateX(-50%);
    touch-action: none;
  }

  .home-bar i {
    width: 134px;
    height: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.8);
  }

  .toasts {
    top: calc(env(safe-area-inset-top) + 10px);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
}

@media (max-width: 400px) {
  .dk-sep,
  a.dk {
    display: none;
  }

  .mb-status span:last-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
