:root {
  --ink: #101827;
  --muted: #526079;
  --quiet: #71809a;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --line: rgba(64, 78, 116, 0.16);
  --blue: #2f80ff;
  --cyan: #25b8ff;
  --violet: #7a5cff;
  --green: #17a56b;
  --amber: #f59e0b;
  --shadow: 0 26px 80px rgba(30, 46, 88, 0.28);
  --soft-shadow: 0 14px 36px rgba(30, 46, 88, 0.18);
  --font: "Segoe UI Variable Display", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font);
  color: var(--ink);
  background: #cfddf2;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button,
input {
  color: inherit;
}

:where(button, input):focus-visible {
  outline: 2px solid rgba(47, 128, 255, 0.9);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(37, 184, 255, 0.16);
}

.shell {
  position: relative;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(18, 33, 61, 0.06), rgba(11, 22, 45, 0.22)),
    url("./x-os-assets/references/xos-dawn-lake.png") center / cover no-repeat,
    linear-gradient(135deg, #dbe9ff 0%, #c9d7ee 42%, #7892b9 100%);
}

.shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 35%, rgba(255,255,255,0.12) 36%, transparent 37% 100%),
    radial-gradient(circle at 54% 42%, rgba(255,255,255,0.24), transparent 22%),
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(28, 47, 82, 0.24));
  pointer-events: none;
}

.shell.is-comfort {
  --cyan: #1f9edb;
  --violet: #735ce8;
}

.topbar,
.dock,
.window,
.agent-panel {
  backdrop-filter: blur(22px) saturate(1.18);
}

.topbar {
  position: fixed;
  z-index: 80;
  top: max(10px, env(safe-area-inset-top));
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 12px;
  background: linear-gradient(135deg, rgba(255,255,255,0.76), rgba(245,249,255,0.58));
  border: 1px solid rgba(255,255,255,0.82);
  border-radius: 12px;
  box-shadow: var(--soft-shadow), inset 0 1px 0 rgba(255,255,255,0.92);
}

.brand-button,
.dock-brand,
.status-chip,
.category,
.view-switch button,
.approval-banner button,
.agent-panel button,
.dock-app,
.desktop-icon {
  border: 0;
  background: transparent;
}

.brand-button {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 114px;
  padding: 0;
  font-weight: 850;
  font-size: 19px;
}

.brand-x {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: white;
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
  background: linear-gradient(135deg, var(--cyan), var(--violet), #ff62d0);
  border-radius: 8px;
  transform: skewX(-7deg);
  box-shadow: 0 8px 22px rgba(70, 112, 245, 0.28);
}

.global-search,
.library-search,
.dock-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 38px;
  padding: 0 14px;
  color: #384762;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.global-search {
  flex: 0 1 320px;
}

.global-search input,
.library-search input,
.dock-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

.signal {
  flex: 0 0 72px;
  height: 22px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 20% 50%, var(--cyan), transparent 13%),
    linear-gradient(90deg, transparent 0 18%, rgba(37,184,255,0.75) 19% 21%, transparent 22% 34%, rgba(122,92,255,0.68) 35% 38%, transparent 39% 100%);
  opacity: 0.72;
}

.status-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  color: #16418c;
  background: rgba(255,255,255,0.68);
  border: 1px solid rgba(76, 112, 176, 0.16);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.status-chip.is-live {
  color: #075f3f;
  box-shadow: 0 0 0 1px rgba(37,184,255,0.1), 0 0 24px rgba(37,184,255,0.18);
}

.status-chip.is-safe {
  color: #0f704d;
}

.chip-icon {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  background: #f8fbff;
  border: 1px solid rgba(30, 50, 88, 0.14);
  border-radius: 7px;
}

.top-tray,
.dock-tray {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  color: #1c2940;
  font-weight: 800;
  white-space: nowrap;
}

.top-tray {
  margin-left: auto;
  min-width: 0;
}

.desktop {
  position: absolute;
  inset: 0;
  padding: 78px 18px 104px;
}

.desktop-icons {
  position: absolute;
  z-index: 3;
  top: 104px;
  left: 34px;
  display: grid;
  gap: 24px;
}

.desktop-icon {
  display: grid;
  justify-items: center;
  width: 74px;
  gap: 6px;
  color: white;
  text-shadow: 0 2px 8px rgba(8, 20, 46, 0.52);
  font-size: 14px;
  font-weight: 850;
}

.desktop-icon img {
  width: 58px;
  height: 58px;
  filter: drop-shadow(0 14px 18px rgba(13, 30, 66, 0.26));
}

.window {
  position: absolute;
  z-index: 12;
  left: clamp(132px, 9vw, 168px);
  right: clamp(314px, 22vw, 360px);
  top: 82px;
  bottom: 96px;
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(248,251,255,0.8)),
    rgba(255,255,255,0.82);
  border: 1px solid rgba(255,255,255,0.86);
  border-radius: 24px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.95);
}

.library-sidebar {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 18px;
  min-height: 0;
  padding: 24px 20px 18px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.58), rgba(247,250,255,0.3));
}

.library-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.library-brand img {
  width: 58px;
  height: 58px;
}

.library-brand h1,
.library-brand p {
  margin: 0;
}

.library-brand h1 {
  font-size: 24px;
}

.library-brand p {
  margin-top: 2px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.category-list {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(82, 96, 121, 0.28) transparent;
}

.category {
  min-height: 42px;
  padding: 0 14px;
  color: #17233a;
  border-radius: 13px;
  text-align: left;
  font-weight: 800;
}

@media (max-height: 860px) {
  .desktop {
    padding-top: 68px;
    padding-bottom: 92px;
  }

  .desktop-icons {
    top: 86px;
    gap: 16px;
  }

  .window {
    top: 72px;
    bottom: 82px;
  }

  .agent-panel {
    top: 80px;
    bottom: 92px;
  }

  .library-sidebar {
    gap: 10px;
    padding-top: 18px;
    padding-bottom: 14px;
  }

  .library-brand img {
    width: 48px;
    height: 48px;
  }

  .library-brand h1 {
    font-size: 22px;
  }

  .category-list {
    gap: 4px;
  }

  .category {
    min-height: 34px;
    padding-inline: 12px;
  }

  .status-card {
    padding: 12px;
  }

  .status-card header {
    margin-bottom: 8px;
  }

  .status-card label {
    margin: 6px 0 4px;
  }

  .user-card {
    align-items: center;
  }

  .avatar {
    width: 36px;
    height: 36px;
  }
}

.category.is-active {
  color: #6638df;
  background: linear-gradient(135deg, rgba(255,255,255,0.88), rgba(250,240,255,0.72));
  border: 1px solid rgba(169, 119, 255, 0.28);
}

.status-card {
  padding: 14px;
  background: rgba(255,255,255,0.62);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.status-card header,
.status-card label,
.user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.status-card header {
  margin-bottom: 12px;
}

.status-card header span {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.status-card label {
  margin: 9px 0 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.meter {
  height: 5px;
  overflow: hidden;
  background: rgba(55, 67, 106, 0.13);
  border-radius: 999px;
}

.meter i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  border-radius: inherit;
}

.user-card {
  gap: 10px;
}

.avatar {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, #7a5cff, #b986ff);
  border-radius: 999px;
  font-weight: 900;
}

.user-card div {
  flex: 1;
  min-width: 0;
}

.user-card strong,
.user-card small {
  display: block;
}

.user-card small {
  color: var(--muted);
  font-size: 11px;
}

.user-card button {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #263b65;
  background: rgba(255,255,255,0.68);
  border: 1px solid var(--line);
}

.library-main {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  padding: 24px 28px;
}

.library-header {
  display: grid;
  grid-template-columns: minmax(270px, 0.95fr) minmax(240px, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.library-header h2,
.library-header p {
  margin: 0;
}

.library-header h2 {
  font-size: 23px;
  line-height: 1.08;
}

.library-header p {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 700;
}

.smart-line {
  display: inline-flex;
  margin-top: 8px;
  color: #1b6aa9;
  font-weight: 800;
}

.view-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.view-switch button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: #263a62;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--line);
  font-weight: 850;
}

.view-switch button.is-active {
  color: #5a32e7;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 8px 18px rgba(47, 73, 132, 0.12);
}

.view-switch .round {
  width: 38px;
  padding: 0;
  font-size: 24px;
}

.approval-banner {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin: 20px 0 14px;
  padding: 0 14px;
  background: linear-gradient(90deg, rgba(255, 250, 240, 0.92), rgba(255,255,255,0.64));
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 12px;
}

.warn-dot {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: white;
  background: var(--amber);
  border-radius: 999px;
  font-weight: 950;
}

.approval-banner button {
  min-width: 78px;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 9px;
  background: rgba(255,255,255,0.74);
  border: 1px solid var(--line);
  color: #243454;
  font-weight: 850;
}

.approval-banner .review-button {
  color: #af5b00;
  border-color: rgba(245,158,11,0.52);
  box-shadow: 0 0 0 5px rgba(245,158,11,0.12);
}

.app-content {
  min-height: 0;
  overflow: auto;
  padding: 0 2px 14px;
}

.app-section {
  margin-bottom: 19px;
}

.app-section header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.app-section h3 {
  position: relative;
  margin: 0;
  padding-left: 14px;
  font-size: 17px;
}

.app-section h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 3px;
  border-radius: 99px;
  background: linear-gradient(var(--cyan), var(--violet));
}

.app-section header button {
  color: #1b5cff;
  font-weight: 850;
  border: 0;
  background: transparent;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 14px 22px;
}

.app-content.is-list .app-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px;
}

.app-content.is-list .app-card {
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  justify-items: start;
  min-height: 72px;
  padding: 7px 12px;
  background: rgba(255,255,255,0.42);
  text-align: left;
}

.app-content.is-list .app-card span {
  margin-top: 0;
}

.app-content.is-list .badge {
  margin-top: 0;
}

.app-card {
  position: relative;
  display: grid;
  justify-items: center;
  min-height: 104px;
  padding: 6px 4px 10px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.app-card:hover,
.app-card:focus-visible {
  background: rgba(255,255,255,0.5);
}

.app-card img {
  width: 58px;
  height: 58px;
  filter: drop-shadow(0 10px 14px rgba(22, 42, 86, 0.16));
}

.app-card span {
  margin-top: 6px;
  text-align: center;
}

.badge {
  margin-top: 6px;
  padding: 3px 7px;
  color: #0c704c;
  background: rgba(23,165,107,0.1);
  border: 1px solid rgba(23,165,107,0.2);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
}

.badge.ai {
  color: #4b3ad7;
  background: rgba(122,92,255,0.1);
  border-color: rgba(122,92,255,0.2);
}

.agent-panel {
  position: absolute;
  z-index: 20;
  top: 90px;
  right: 22px;
  bottom: 114px;
  width: clamp(282px, 20vw, 318px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  gap: 14px;
  padding: 20px 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.9), rgba(243,248,255,0.72)),
    rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.88);
  border-radius: 22px;
  box-shadow: var(--shadow), 0 0 38px rgba(37,184,255,0.18);
}

.agent-panel:not(.is-open) {
  display: none;
}

.agent-panel header {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: start;
  gap: 8px;
}

.agent-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.agent-title img {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 0 18px rgba(37,184,255,0.28));
}

.agent-title h2,
.agent-title p {
  margin: 0;
}

.agent-title h2 {
  font-size: 21px;
}

.agent-title p {
  margin-top: 5px;
  color: #526079;
  font-size: 13px;
  font-weight: 800;
}

.agent-panel header button {
  width: 30px;
  height: 30px;
  color: #20375f;
  background: rgba(255,255,255,0.58);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 850;
}

.intent-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.intent-chips button {
  min-height: 28px;
  padding: 0 10px;
  color: #17427c;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(47,128,255,0.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.agent-actions {
  display: grid;
  gap: 14px;
  min-height: 0;
  overflow: auto;
  padding: 2px 2px 6px;
}

.agent-action {
  padding: 14px;
  background: rgba(255,255,255,0.68);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(27, 45, 88, 0.08);
}

.agent-action header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.agent-action img {
  width: 46px;
  height: 46px;
}

.agent-action h3,
.agent-action p {
  margin: 0;
}

.agent-action h3 {
  font-size: 15px;
}

.agent-action p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.agent-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 13px;
}

.agent-buttons button,
.more-actions {
  min-height: 36px;
  color: #0f3d8e;
  background: rgba(255,255,255,0.66);
  border: 1px solid rgba(47,128,255,0.32);
  border-radius: 10px;
  font-weight: 850;
}

.agent-buttons button:last-child {
  color: #35506f;
  border-color: var(--line);
}

.agent-action.is-approved {
  border-color: rgba(23,165,107,0.36);
  box-shadow: 0 0 0 4px rgba(23,165,107,0.1);
}

.more-actions {
  background: transparent;
  border: 0;
}

.agent-panel footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  color: #0c704c;
  background: rgba(255,255,255,0.58);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 850;
}

.dock {
  position: fixed;
  z-index: 70;
  left: 20px;
  right: 20px;
  bottom: max(14px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: auto minmax(170px, 270px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 74px;
  padding: 9px 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.76), rgba(242,247,255,0.6));
  border: 1px solid rgba(255,255,255,0.84);
  border-radius: 24px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.92);
}

.dock-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 96px;
  font-size: 22px;
  font-weight: 950;
}

.dock-brand .brand-x {
  width: 42px;
  height: 42px;
  font-size: 32px;
  border-radius: 12px;
}

.dock-apps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-width: 0;
}

.dock-app {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: rgba(255,255,255,0.4);
}

.dock-app img {
  width: 46px;
  height: 46px;
}

.dock-app::after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(47, 128, 255, 0.48);
  transform: translateX(-50%);
}

.dock-app.is-active {
  background: rgba(255,255,255,0.82);
  box-shadow: 0 10px 22px rgba(30, 46, 88, 0.14);
}

.dock-app.is-agent {
  box-shadow: 0 0 0 1px rgba(37,184,255,0.22), 0 0 28px rgba(37,184,255,0.22);
}

.dock-app.is-agent::after {
  width: 38px;
  height: 5px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow: 0 0 12px rgba(37,184,255,0.5);
}

@media (max-width: 1180px) {
  .topbar {
    gap: 8px;
  }

  .signal,
  .topbar .status-chip:nth-of-type(n+4),
  .top-tray span:not(:last-child) {
    display: none;
  }

  .window {
    right: 22px;
  }

  .agent-panel {
    display: none;
  }

  .dock {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .dock-search {
    display: none;
  }
}

@media (max-width: 820px) {
  .topbar {
    left: 8px;
    right: 8px;
  }

  .topbar .status-chip,
  .top-tray {
    display: none;
  }

  .desktop-icons {
    top: 86px;
    left: 10px;
    grid-auto-flow: column;
    max-width: calc(100vw - 20px);
    overflow: hidden;
  }

  .window {
    left: 8px;
    right: 8px;
    top: 160px;
    bottom: 110px;
    grid-template-columns: 1fr;
  }

  .library-sidebar {
    display: none;
  }

  .library-main {
    padding: 16px;
  }

  .library-header {
    grid-template-columns: 1fr;
  }

  .approval-banner {
    grid-template-columns: auto 1fr auto;
  }

  .approval-banner button:nth-of-type(2) {
    display: none;
  }

  .dock {
    left: 8px;
    right: 8px;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .dock-brand,
  .dock-tray {
    display: none;
  }

  .dock-apps {
    width: 100%;
    justify-content: space-evenly;
  }
}

@media (max-width: 640px) {
  html,
  body {
    overflow: hidden;
    overscroll-behavior: none;
  }

  .shell {
    min-height: 100svh;
    background:
      linear-gradient(180deg, rgba(31, 48, 82, 0.02), rgba(16, 28, 56, 0.18)),
      url("./x-os-assets/references/xos-dawn-lake.png") center / cover no-repeat,
      linear-gradient(135deg, #dbe9ff 0%, #c9d7ee 42%, #7892b9 100%);
  }

  .shell::before {
    background:
      linear-gradient(115deg, transparent 0 35%, rgba(255,255,255,0.1) 36%, transparent 37% 100%),
      linear-gradient(180deg, rgba(255,255,255,0.04), rgba(22, 41, 75, 0.16));
  }

  .topbar,
  .window,
  .agent-panel {
    display: none;
  }

  .desktop {
    padding: 0 12px 118px;
  }

  .desktop-icons {
    top: max(28px, env(safe-area-inset-top));
    left: 50%;
    right: auto;
    width: min(calc(100vw - 28px), 300px);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-items: center;
    gap: 0;
    max-width: none;
    overflow: visible;
    transform: translateX(-50%);
  }

  .desktop-icon {
    width: 72px;
    min-width: 0;
    gap: 7px;
    font-size: 14px;
    line-height: 1.1;
    text-shadow: 0 2px 7px rgba(10, 21, 44, 0.52), 0 1px 1px rgba(0,0,0,0.28);
  }

  .desktop-icon img {
    width: clamp(54px, 14vw, 62px);
    height: clamp(54px, 14vw, 62px);
  }

  .desktop-icon span {
    max-width: 78px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dock {
    --dock-icon: 44px;
    left: 8px;
    right: 8px;
    bottom: max(10px, env(safe-area-inset-bottom));
    min-height: 112px;
    padding: 12px 16px 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 23px;
    background: linear-gradient(135deg, rgba(255,255,255,0.74), rgba(231,238,251,0.58));
    box-shadow: 0 20px 58px rgba(24, 43, 82, 0.28), inset 0 1px 0 rgba(255,255,255,0.92);
  }

  .dock-apps {
    width: 304px;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(6, var(--dock-icon));
    justify-content: center;
    align-content: center;
    gap: 12px 8px;
  }

  .dock-app {
    width: var(--dock-icon);
    height: var(--dock-icon);
    border-radius: 16px;
    background: rgba(255,255,255,0.46);
  }

  .dock-app img {
    width: 39px;
    height: 39px;
  }

  .dock-app::after {
    bottom: -8px;
    width: 6px;
    height: 6px;
    background: rgba(86, 128, 255, 0.58);
  }

  .dock-app.is-agent::after {
    width: 36px;
    height: 5px;
  }
}

@media (max-width: 390px) {
  .desktop-icons {
    width: min(calc(100vw - 24px), 292px);
  }

  .desktop-icon {
    font-size: 13px;
  }

  .dock {
    --dock-icon: 44px;
    min-height: 104px;
    padding-inline: 12px;
  }

  .dock-apps {
    width: 256px;
    grid-template-columns: repeat(5, var(--dock-icon));
    gap: 10px 9px;
  }
}
