:root {
  color-scheme: dark;
  --accent: #f97350;
  --rgb: 249, 115, 80;
  --glass: rgba(13, 20, 34, 0.76);
  --strong: rgba(10, 16, 29, 0.94);
  --text: #f8fafc;
  --muted: #aab7c9;
  --icon: 56px;
  --label: 13px;
  --desktop-item-width: 96px;
  --desktop-item-height: 120px;
  --gx: 108px;
  --gy: 128px;
  --blur: 30px;
  --wallpaper:
    radial-gradient(circle at 72% 27%, #30405d 0, transparent 25%),
    linear-gradient(135deg, #07101e, #151c32 55%, #090d18);
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
body,
button,
input,
select {
  font:
    400 15px/1.45 "Segoe UI Variable",
    "Segoe UI",
    system-ui,
    sans-serif;
  color: var(--text);
}
button,
input,
select {
  outline: none;
}
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.desktop {
  position: relative;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  background: #07101e;
  isolation: isolate;
  user-select: none;
}
.desktop:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -5;
  background: var(--wallpaper);
  background-size: cover;
  background-position: center;
  transition: 0.45s;
}
.desktop:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -4;
  background: linear-gradient(
    180deg,
    rgba(2, 6, 23, 0.02),
    rgba(2, 6, 23, 0.24)
  );
  pointer-events: none;
}
.ambient {
  position: absolute;
  z-index: -2;
  width: 62vmin;
  height: 62vmin;
  right: 6vw;
  top: 14vh;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 44% 56% 57% 43%;
  transform: rotate(24deg);
  filter: drop-shadow(0 0 65px rgba(var(--rgb), 0.25));
  pointer-events: none;
}
.ambient:before,
.ambient:after {
  content: "";
  position: absolute;
  inset: 11%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 57% 43% 38% 62%;
}
.ambient:after {
  inset: 27%;
  border-color: rgba(var(--rgb), 0.35);
}
.motion .ambient {
  animation: drift 16s ease-in-out infinite alternate;
}
.effect-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.effect-canvas[hidden] {
  display: none;
}
.motion[data-effect="aurora"]:before,
.motion[data-effect="prism"]:before,
.motion[data-effect="tide"]:before {
  background-size: 180% 180%;
  animation: gradientflow 14s ease-in-out infinite alternate;
}
.motion[data-effect="liquid"] .ambient {
  width: 48vmin;
  height: 48vmin;
  border: 0;
  background: rgba(var(--rgb), 0.12);
  box-shadow:
    -35vw 28vh 0 6vmin #22d3ee19,
    18vw 38vh 0 4vmin #c084fc20;
  filter: blur(8px);
  animation: liquidfloat 11s ease-in-out infinite alternate;
}
.motion[data-effect="orbits"] .ambient {
  border-radius: 50%;
  border-color: rgba(var(--rgb), 0.36);
  box-shadow:
    0 0 0 7vmin #ffffff08,
    0 0 0 15vmin rgba(var(--rgb), 0.08);
  animation: orbitspin 24s linear infinite;
}
.motion[data-effect="ribbon"] .ambient {
  width: 74vmin;
  height: 23vmin;
  top: 35vh;
  right: 1vw;
  border-radius: 50%;
  border-color: #f0abfc44;
  box-shadow: -30vw -16vh 0 -2vmin #22d3ee18;
  animation: ribbonwave 9s ease-in-out infinite alternate;
}
.motion[data-effect="pulse"] .ambient {
  background: rgba(var(--rgb), 0.09);
  animation: neonpulse 4.5s ease-in-out infinite;
}
.motion[data-effect="clouds"] .ambient {
  width: 34vmin;
  height: 18vmin;
  border: 0;
  background: #ffffff0d;
  box-shadow:
    -28vw 18vh 0 6vmin #ffffff0b,
    12vw 34vh 0 4vmin #ffffff0b;
  border-radius: 50%;
  filter: blur(14px);
  animation: clouddrift 20s linear infinite alternate;
}
.motion[data-effect="waves"] .ambient {
  width: 84vw;
  height: 36vh;
  right: -15vw;
  top: 54vh;
  border-radius: 50%;
  border-color: #67e8f933;
  box-shadow:
    0 -5vmin 0 -1px #38bdf821,
    0 -10vmin 0 -1px #60a5fa18;
  animation: waveroll 7s ease-in-out infinite alternate;
}
.motion[data-effect="frost"] .ambient {
  border-color: #ffffff2f;
  box-shadow:
    inset 0 0 50px #e0f2fe22,
    0 0 80px #bae6fd26;
  animation: frostbreathe 7s ease-in-out infinite alternate;
}
.glass {
  background: linear-gradient(150deg, var(--strong), var(--glass));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(var(--blur)) saturate(145%);
}
.topbar {
  height: 74px;
  padding: 17px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.brand,
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}
.assistant-pill {
  gap: 8px;
  cursor: pointer;
  border-color: rgba(var(--rgb), 0.42);
  background: linear-gradient(135deg, rgba(var(--rgb), 0.22), rgba(15, 23, 42, 0.68));
}
.assistant-pill i { color: color-mix(in srgb, var(--accent), white 28%); font-size: 18px; }
.assistant-admin-form { display: grid; gap: 12px; margin-top: 12px; }
.assistant-admin-form > label:not(.toggle-row) { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
.assistant-admin-form input:not(.switch),
.assistant-admin-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(2,6,23,.46);
  color: var(--text);
  resize: vertical;
}
.assistant-window { width: min(460px, calc(100vw - 24px)); height: min(650px, calc(100dvh - 100px)); }
.assistant-shell { height: 100%; display: grid; grid-template-rows: auto 1fr auto; min-height: 0; }
.assistant-welcome { padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.1); color: var(--muted); }
.assistant-welcome strong { color: var(--text); display: block; }
.assistant-messages { overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; user-select: text; }
.assistant-message { max-width: 88%; display: grid; gap: 8px; }
.assistant-message.user { align-self: flex-end; }
.assistant-message.assistant { align-self: flex-start; }
.assistant-bubble { padding: 11px 13px; border-radius: 15px; background: rgba(255,255,255,.09); line-height: 1.45; }
.assistant-bubble p { margin: 0; }
.assistant-bubble p + p,
.assistant-bubble p + ul,
.assistant-bubble p + ol,
.assistant-bubble ul + p,
.assistant-bubble ol + p { margin-top: 9px; }
.assistant-bubble strong { color: #fff; font-weight: 700; }
.assistant-bubble em { color: color-mix(in srgb, var(--text), var(--accent) 22%); }
.assistant-bubble code { padding: 1px 5px; border-radius: 5px; background: rgba(2,6,23,.58); color: #e2e8f0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .92em; }
.assistant-bubble ul,
.assistant-bubble ol { margin: 0; padding-left: 20px; }
.assistant-bubble li + li { margin-top: 4px; }
.assistant-bubble h3,
.assistant-bubble h4 { margin: 0 0 7px; color: #fff; font-size: 1em; }
.assistant-message.user .assistant-bubble { background: rgba(var(--rgb),.28); border-bottom-right-radius: 4px; }
.assistant-message.assistant .assistant-bubble { border-bottom-left-radius: 4px; }
.assistant-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.assistant-actions button { border: 1px solid rgba(var(--rgb),.5); background: rgba(var(--rgb),.16); color: var(--text); border-radius: 9px; padding: 7px 10px; cursor: pointer; }
.assistant-compose { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px; border-top: 1px solid rgba(255,255,255,.1); }
.assistant-compose input { min-width: 0; border: 1px solid rgba(255,255,255,.14); border-radius: 11px; background: rgba(2,6,23,.5); color: var(--text); padding: 10px 12px; }
.assistant-compose button { border: 0; border-radius: 11px; background: var(--accent); color: white; padding: 0 15px; cursor: pointer; }
.assistant-typing { color: var(--muted); font-size: 13px; padding: 0 16px 8px; }
.brand-badge,
.auth-logo {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(
    145deg,
    var(--accent),
    color-mix(in srgb, var(--accent), #000 34%)
  );
  box-shadow:
    0 10px 23px #0005,
    inset 0 1px #fff5;
  font-weight: 850;
}
.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-shadow: 0 1px 8px #000;
}
.brand-copy small {
  margin-top: 5px;
  font-size: 11px;
  letter-spacing: 0.13em;
  color: #d5deea;
}
.pill {
  height: 41px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid #ffffff20;
  background: #08102166;
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  box-shadow: 0 8px 24px #0002;
}
.pill:hover {
  background: #ffffff18;
  border-color: #ffffff36;
}
.pill-mark,
.pill-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 23px;
  height: 23px;
  border-radius: 7px;
  background: linear-gradient(
    145deg,
    var(--accent),
    color-mix(in srgb, var(--accent), #000 28%)
  );
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  box-shadow: inset 0 1px #fff5;
}
.pill-avatar {
  border-radius: 50%;
  background: #ffffff16;
  border: 1px solid #ffffff25;
  font-size: 11px;
}
.pill-chevron {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--muted);
  transition: 0.16s;
}
.tenant-pill[aria-expanded="true"] .pill-chevron {
  transform: rotate(180deg);
}
.tenant-control {
  position: relative;
}
.tenant-menu {
  position: absolute;
  z-index: 80;
  right: 0;
  top: 49px;
  width: 290px;
  padding: 10px;
  border-radius: 14px;
}
.tenant-menu[hidden] {
  display: none;
}
.tenant-menu header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 5px 10px;
  border-bottom: 1px solid #ffffff12;
}
.tenant-menu header > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tenant-menu header small {
  font-size: 11px;
  letter-spacing: 0.13em;
  color: var(--accent);
}
.tenant-menu header button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
}
.tenant-menu header button:hover {
  background: #ffffff12;
  color: var(--text);
}
.tenant-menu-list {
  display: grid;
  gap: 4px;
  padding: 8px 0;
  max-height: 268px;
  overflow: auto;
}
.tenant-option {
  min-height: 50px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  text-align: left;
  cursor: pointer;
}
.tenant-option:hover,
.tenant-option:focus-visible {
  background: #ffffff11;
  border-color: #ffffff18;
}
.tenant-option.current {
  background: rgba(var(--rgb), 0.13);
  border-color: rgba(var(--rgb), 0.32);
}
.tenant-option .pill-mark {
  width: 29px;
  height: 29px;
  border-radius: 8px;
}
.tenant-option > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.tenant-option small {
  color: var(--muted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tenant-check {
  color: var(--accent);
  font-weight: 800;
}
.tenant-manage {
  width: 100%;
  height: 38px;
  border: 1px solid #ffffff18;
  border-radius: 9px;
  background: #ffffff0a;
  color: var(--text);
  cursor: pointer;
}
.tenant-manage:hover {
  background: #ffffff14;
  border-color: #ffffff2b;
}
.icon-layer {
  position: absolute;
  left: 0;
  right: 0;
  top: 74px;
  bottom: 74px;
}
.desktop-icon {
  position: absolute;
  width: var(--desktop-item-width);
  height: var(--desktop-item-height);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 7px 4px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: default;
  text-shadow: 0 1px 5px #000;
  transition: 0.14s;
}
.desktop-icon:hover,
.desktop-icon:focus-visible,
.desktop-icon.selected {
  background: #ffffff1b;
  border-color: #ffffff28;
}
.desktop-icon:focus-visible {
  box-shadow: 0 0 0 2px var(--accent);
}
.desktop-icon.dragging {
  opacity: 0.58;
  transform: scale(0.96);
  z-index: 8;
  pointer-events: none;
}
.desktop-icon.drop-target {
  background: rgba(var(--rgb), 0.24);
  border-color: var(--accent);
  box-shadow:
    0 0 0 3px rgba(var(--rgb), 0.22),
    0 12px 30px #0005;
  transform: scale(1.06);
}
.glyph {
  --app: #64748b;
  position: relative;
  width: var(--icon);
  height: var(--icon);
  display: grid;
  place-items: center;
  border-radius: 15px;
  font:
    750 27px/1 "Segoe UI Symbol",
    "Segoe UI";
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--app) 76%, white),
    color-mix(in srgb, var(--app) 78%, black)
  );
  border: 1px solid #ffffff4a;
  box-shadow:
    0 11px 21px #0005,
    inset 0 1px #fff6;
  flex: 0 0 var(--icon);
}
.glyph:after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  top: 5px;
  height: 36%;
  border-radius: 10px;
  background: linear-gradient(#ffffff3d, transparent);
}
.icon-ri {
  display: inline-grid;
  place-items: center;
  color: currentColor;
  font-size: 24px;
  line-height: 1;
}
.glyph .icon-ri {
  font-size: calc(var(--icon) * 0.49);
  color: #fff;
  filter: drop-shadow(0 1px 2px #0008);
  position: relative;
  z-index: 1;
}
.searchbox svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.folder-glyph {
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--app) 85%, white),
    color-mix(in srgb, var(--app) 72%, black)
  );
  border-radius: 9px 13px 13px 13px;
}
.folder-glyph:before {
  content: "";
  position: absolute;
  left: 2px;
  top: -5px;
  width: 25px;
  height: 10px;
  border-radius: 5px 5px 0 0;
  background: color-mix(in srgb, var(--app) 82%, white);
}
.icon-label {
  width: 100%;
  max-width: 94px;
  text-align: center;
  font-size: var(--label);
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
  word-break: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.density-compact {
  --icon: 47px;
  --desktop-item-width: 84px;
  --desktop-item-height: 108px;
  --gx: 92px;
  --gy: 116px;
}
.density-compact .desktop-icon {
  width: var(--desktop-item-width);
  height: var(--desktop-item-height);
}
.density-cozy {
  --icon: 61px;
  --desktop-item-width: 104px;
  --desktop-item-height: 124px;
  --gx: 118px;
  --gy: 132px;
}
.taskbar {
  position: absolute;
  z-index: 30;
  left: 12px;
  right: 12px;
  bottom: 10px;
  height: 58px;
  border-radius: 15px;
  display: grid;
  grid-template-columns: minmax(96px, 1fr) minmax(0, auto) minmax(96px, 1fr);
  align-items: center;
  padding: 6px 9px;
}
.task-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  max-width: calc(100vw - 230px);
  overflow: visible;
}
.task-system,
.task-apps {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.running-windows:empty {
  display: none;
}
.running-windows {
  border-left-color: rgba(var(--rgb), 0.3);
}
.task-window {
  color: var(--text);
}
.task-window > i {
  font-size: 20px;
}
.task-window-indicator {
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 2px;
  height: 3px;
  border-radius: 4px;
  background: var(--accent);
  opacity: 0.8;
}
.task-window.minimized {
  color: var(--muted);
}
.task-window.minimized .task-window-indicator {
  right: 17px;
  background: var(--muted);
  opacity: 0.55;
}
.task-system {
  flex: none;
}
.task-apps {
  padding-left: 8px;
  margin-left: 2px;
  border-left: 1px solid #ffffff20;
  overflow: hidden;
}
.task-right {
  justify-self: end;
}
.task-btn {
  position: relative;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 21px;
}
.task-btn:hover,
.task-btn.active {
  background: #ffffff16;
  border-color: #ffffff18;
}
.task-btn:active {
  transform: translateY(1px);
  background: #ffffff20;
}
.task-app-icon {
  width: 35px;
  height: 35px;
  border: 1px solid #ffffff38;
  border-radius: 9px;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--app) 78%, white),
    color-mix(in srgb, var(--app) 72%, black)
  );
  display: grid;
  place-items: center;
  box-shadow:
    0 5px 11px #0005,
    inset 0 1px #fff5;
  color: #fff;
}
.task-btn > i {
  font-size: 23px;
  line-height: 1;
}
.task-app-icon .icon-ri {
  font-size: 20px;
}
.task-btn[data-tooltip]:after,
.power[data-tooltip]:after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  translate: -50% 5px;
  padding: 6px 9px;
  border-radius: 7px;
  background: #101827f2;
  color: #fff;
  border: 1px solid #ffffff24;
  box-shadow: 0 8px 24px #0008;
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.14s;
  z-index: 120;
}
.task-btn[data-tooltip]:hover:after,
.task-btn[data-tooltip]:focus-visible:after,
.power[data-tooltip]:hover:after,
.power[data-tooltip]:focus-visible:after {
  opacity: 1;
  visibility: visible;
  translate: -50% 0;
}
.searchbox svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.clock {
  height: 43px;
  min-width: 92px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
}
.panel {
  position: absolute;
  z-index: 45;
  border-radius: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(22px) scale(0.975);
  transition: 0.22s;
}
.panel.open {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.start {
  left: 50%;
  translate: -50%;
  bottom: 78px;
  width: min(650px, calc(100vw - 28px));
  height: min(650px, calc(100dvh - 92px));
  padding: 28px 34px 0;
  display: flex;
  flex-direction: column;
}
.searchbox {
  height: 50px;
  border: 1px solid #ffffff30;
  border-radius: 12px;
  background: #020711ad;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 9px 0 15px;
  box-shadow:
    inset 0 -2px var(--accent),
    0 8px 24px #0002;
  cursor: text;
}
.searchbox:focus-within {
  border-color: rgba(var(--rgb), 0.72);
  box-shadow:
    0 0 0 3px rgba(var(--rgb), 0.16),
    inset 0 -2px var(--accent);
}
.searchbox input {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  background: transparent !important;
  padding: 0;
  height: 46px;
  box-shadow: none !important;
}
.searchbox button {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 8px !important;
  color: var(--muted);
}
.searchbox button:hover {
  background: #ffffff12;
  color: var(--text);
}
.searchbox button,
.panel-title button,
.window header button,
dialog header button {
  border: 0;
  background: transparent;
  font-size: 21px;
  cursor: pointer;
}
.section-head {
  display: flex;
  justify-content: space-between;
  padding: 24px 5px 13px;
  font-size: 13px;
}
.section-head small {
  color: var(--muted);
}
.app-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
  overflow: auto;
}
.start-item {
  height: 96px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  cursor: pointer;
}
.start-item:hover,
.start-item:focus-visible {
  background: #ffffff16;
}
.start-item .glyph {
  --icon: 43px;
  font-size: 21px;
}
.start-footer {
  margin: auto -34px 0;
  padding: 11px 34px;
  min-height: 69px;
  background: #00000024;
  border-top: 1px solid #ffffff0e;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(38px, 1fr);
  align-items: center;
  gap: 12px;
}
.usercard {
  display: flex;
  align-items: center;
  gap: 10px;
}
.usercard {
  min-width: 0;
}
.usercard > span:last-child {
  min-width: 0;
}
.usercard strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.usercard > span:last-child {
  display: flex;
  flex-direction: column;
}
.usercard small {
  color: var(--muted);
  font-size: 12px;
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  font-size: 12px;
  font-weight: 800;
}
.avatar img,
.pill-avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  display: block;
}
.start-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  color: var(--muted);
  line-height: 1.25;
  text-align: center;
}
.start-meta strong {
  font-size: 12px;
  color: var(--text);
  font-weight: 650;
}
.start-meta small {
  font-size: 11px;
  white-space: nowrap;
}
.start-footer .power {
  justify-self: end;
}
.power {
  position: relative;
  width: 38px;
  height: 38px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--text);
}
.power svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.power:hover {
  background: #ef444424;
  border-color: #f8717180;
  color: #fecaca;
  box-shadow: 0 0 0 2px #ef444418;
}
.side-panel,
.admin {
  right: 12px;
  bottom: 78px;
  width: min(430px, calc(100vw - 24px));
  max-height: calc(100dvh - 92px);
  overflow: auto;
  padding: 22px;
}
.admin {
  left: 12px;
  right: auto;
  width: min(480px, calc(100vw - 24px));
}
.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}
.panel-title small,
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.panel-title h2 {
  font-size: 22px;
  margin: 4px 0;
}
.side-panel section,
.admin section {
  margin-top: 19px;
}
.side-panel h3 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.theme-library {
  display: grid;
  gap: 13px;
}
.theme-group {
  display: grid;
  gap: 7px;
}
.theme-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
}
.theme-group-head strong {
  font-size: 12px;
  letter-spacing: 0.04em;
}
.theme-group-head small {
  font-size: 11px;
}
.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.theme {
  height: 58px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--preview);
  position: relative;
  cursor: pointer;
}
.theme {
  overflow: hidden;
  text-align: left;
  color: #fff;
}
.theme:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, #020617a8);
}
.theme span {
  position: absolute;
  left: 7px;
  right: 6px;
  bottom: 5px;
  font-size: 11px;
  font-weight: 600;
  text-shadow: 0 1px 4px #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.theme b {
  position: absolute;
  right: 5px;
  top: 5px;
  padding: 2px 5px;
  border-radius: 999px;
  background: #020617a8;
  border: 1px solid #ffffff28;
  font-size: 11px;
  line-height: 1.2;
}
.theme.selected {
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--accent);
}
.theme-hidden {
  display: none;
}
.theme-more {
  width: 100%;
  height: 36px;
  margin-top: 8px;
  border: 1px solid #ffffff18;
  border-radius: 8px;
  background: #ffffff08;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.theme-more:hover {
  background: #ffffff12;
  color: var(--text);
  border-color: #ffffff2a;
}
.option-drop {
  border: 1px solid #ffffff18;
  border-radius: 9px;
  background: #0002;
}
.option-drop summary {
  height: 42px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  list-style: none;
}
.option-drop summary b {
  margin-left: auto;
}
.accent-preview {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
}
.colors {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px;
  border-top: 1px solid #ffffff12;
}
.color-dot {
  width: 30px;
  height: 30px;
  border: 3px solid transparent;
  border-radius: 50%;
  background: var(--c);
  cursor: pointer;
}
.color-dot.selected {
  border-color: #fff;
  box-shadow: 0 0 0 2px #94a3b8;
}
.color-picker-label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.color-picker-label legend {
  padding: 0;
  margin: 0 0 6px;
}
.color-choice-grid {
  display: grid;
  grid-template-columns: repeat(6, 32px);
  gap: 7px;
  padding: 8px 0;
}
.color-choice {
  position: relative;
  width: 32px;
  height: 32px;
  display: block;
}
.color-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.color-choice span {
  display: block;
  width: 30px;
  height: 30px;
  border: 2px solid #ffffff42;
  border-radius: 9px;
  background: var(--swatch);
  box-shadow: inset 0 1px #fff5;
  cursor: pointer;
}
.color-choice input:checked + span {
  border-color: #fff;
  box-shadow:
    0 0 0 3px rgba(var(--rgb), 0.42),
    inset 0 1px #fff5;
}
.color-choice input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}
.form-grid .full {
  grid-column: 1/-1;
}
input,
select {
  height: 44px;
  border: 1px solid #ffffff1d;
  border-radius: 8px;
  background: #02060f63;
  padding: 0 12px;
  font-size: 15px;
}
input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(var(--rgb), 0.22);
}
.icon-picker {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 8px;
}
.icon-picker-preview {
  width: 44px;
  height: 44px;
  border: 1px solid #ffffff1d;
  border-radius: 8px;
  background: #ffffff0d;
  display: grid;
  place-items: center;
  color: var(--text);
}
.icon-picker-preview .icon-ri {
  font-size: 24px;
}
.icon-picker select {
  width: 100%;
}
.availability-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}
.availability-row > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.availability-row small {
  color: var(--muted);
  font-size: 12px;
}
.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid #ffffff12;
}
.toggle-row span {
  display: flex;
  flex-direction: column;
}
.toggle-row small,
.hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}
.switch {
  appearance: none;
  width: 39px;
  min-width: 39px;
  flex: 0 0 39px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: #475569;
  position: relative;
  padding: 0;
  cursor: pointer;
}
.switch:after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  transition: 0.18s;
}
.switch:checked {
  background: var(--accent);
}
.switch:checked:after {
  transform: translateX(17px);
}
.primary,
.secondary,
.danger {
  min-height: 42px;
  border-radius: 8px;
  padding: 0 15px;
  border: 1px solid #ffffff20;
  font-weight: 650;
  cursor: pointer;
}
.primary:disabled,
.secondary:disabled,
.danger:disabled {
  opacity: 0.55;
  cursor: wait;
}
.primary {
  background: var(--accent);
}
.secondary {
  background: #ffffff0e;
}
.danger {
  background: #dc2626;
}
.wide {
  width: 100%;
  margin-top: 12px;
}
.button-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.button-row > * {
  flex: 1 1 150px;
  justify-content: center;
}
.upload {
  display: inline-flex;
  align-items: center;
}
.upload input {
  display: none;
}
.note,
.secure-note,
.requirement {
  padding: 12px 13px;
  border: 1px solid #f59e0b30;
  border-radius: 9px;
  background: #f59e0b12;
  color: #fde68a;
  font-size: 12px;
  line-height: 1.5;
}
.admin-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  padding: 4px;
  border-radius: 9px;
  background: #0003;
}
.admin-tabs button {
  height: 38px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-size: 13px;
}
.admin-tabs button.active {
  background: #ffffff18;
}
.admin-page {
  margin-top: 14px;
}
.tenant-current {
  margin-top: 12px;
  padding: 13px;
  border: 1px solid #ffffff18;
  border-radius: 11px;
  background: #ffffff09;
  display: grid;
  gap: 5px;
}
.tenant-current strong {
  font-size: 15px;
}
.tenant-current small {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.tenant-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 10px;
  border: 1px solid #ffffff12;
  border-radius: 10px;
  background: #ffffff08;
  min-width: 0;
}
.tenant-row > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.tenant-row small {
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tenant-actions {
  display: flex;
  gap: 6px;
}
.tenant-actions button {
  min-height: 34px;
  padding: 0 10px;
}
.section-head.compact {
  padding: 20px 2px 4px;
}
.login-area {
  display: grid;
  gap: 8px;
}
.tenant-choice {
  text-align: left;
  text-decoration: none !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
}
.list {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}
.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #ffffff12;
  border-radius: 9px;
  background: #ffffff08;
  text-align: left;
  color: var(--text);
}
.list-row span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.list-row small {
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.list-row > b {
  flex: none;
}
.app-tip {
  position: fixed;
  z-index: 75;
  width: 250px;
  padding: 13px 14px;
  border-radius: 12px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: 0.14s;
}
.app-tip.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.app-tip strong {
  font-size: 14px;
}
.app-tip p {
  margin: 6px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.tip-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.tip-tags span {
  padding: 3px 7px;
  border-radius: 5px;
  background: #ffffff14;
  color: var(--muted);
  font-size: 11px;
}
.context-menu {
  position: fixed;
  z-index: 80;
  width: 205px;
  padding: 6px;
  border-radius: 11px;
  display: none;
}
.context-menu.open {
  display: block;
}
.context-menu button {
  width: 100%;
  height: 38px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  text-align: left;
  padding: 0 11px;
  font-size: 13px;
}
.context-menu button:hover {
  background: #ffffff17;
}
.context-menu [hidden] {
  display: none;
}
.context-menu hr {
  border: 0;
  border-top: 1px solid #ffffff14;
}
.toast-stack {
  position: absolute;
  z-index: 100;
  right: 18px;
  bottom: 81px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  width: min(330px, calc(100vw - 36px));
  padding: 11px 13px;
  border-radius: 11px;
  display: flex;
  gap: 10px;
  animation: toastin 0.22s;
}
.toast b {
  color: var(--accent);
}
.toast span {
  display: flex;
  flex-direction: column;
}
.toast small {
  color: var(--muted);
}
.window {
  position: fixed;
  z-index: 50;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: min(620px, calc(100vw - 30px));
  height: min(430px, calc(100dvh - 110px));
  border-radius: 17px;
  display: none;
  min-width: 340px;
  min-height: 240px;
  max-width: calc(100vw - 12px);
  max-height: calc(100dvh - 78px);
  resize: both;
  overflow: hidden;
}
.window.minimized {
  display: none !important;
}
.window-layer {
  position: fixed;
  inset: 0;
  z-index: 49;
  pointer-events: none;
}
.window-layer > .window {
  pointer-events: auto;
}
.window-titlebar {
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.window-dragging .window-titlebar {
  cursor: grabbing;
}
.window.window-active {
  border-color: rgba(var(--rgb), 0.42);
  box-shadow:
    0 34px 110px #000c,
    0 0 0 1px rgba(var(--rgb), 0.14),
    inset 0 1px #ffffff18;
}
.window.maximized {
  left: 8px !important;
  top: 58px !important;
  right: 8px !important;
  bottom: 72px !important;
  width: auto !important;
  height: auto !important;
  translate: none !important;
  border-radius: 12px;
  resize: none;
}
.window.open {
  display: flex;
  flex-direction: column;
  animation: windowin 0.2s;
}
.window header {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px 7px 13px;
  border-bottom: 1px solid #ffffff13;
}
.window header strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.folder-titlebar strong {
  flex: 1;
}
.folder-close {
  margin-left: auto;
}
.window-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.window-action {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #ffffff18 !important;
  border-radius: 8px;
  background: #ffffff0b !important;
  color: var(--text);
  font-size: 12px !important;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.window-action:hover {
  background: #ffffff16 !important;
  border-color: #ffffff2b !important;
}
.window-icon-action {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid transparent !important;
  border-radius: 8px;
  background: transparent !important;
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 18px !important;
}
.window-icon-action:hover {
  background: #ffffff12 !important;
  border-color: #ffffff18 !important;
  color: var(--text);
}
.window-icon-action.danger-action:hover {
  background: #ef444424 !important;
  border-color: #f8717166 !important;
  color: #fecaca;
}
.folder-mini {
  flex: none;
  font-size: 21px;
  color: #ffd054;
}
.folder-toolbar {
  min-height: 52px;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #ffffff13;
  background: #ffffff04;
}
.folder-action {
  min-width: 0;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #ffffff18;
  border-radius: 9px;
  background: #ffffff0b;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1;
  cursor: pointer;
  white-space: nowrap;
}
.folder-action i {
  font-size: 17px;
  line-height: 1;
}
.folder-action:hover,
.folder-action:focus-visible {
  background: #ffffff17;
  border-color: rgba(var(--rgb), 0.55);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(var(--rgb), 0.11);
}
.folder-action-danger {
  margin-left: auto;
  color: #fecaca;
  border-color: #f8717130;
  background: #ef44440c;
}
.folder-action-danger:hover,
.folder-action-danger:focus-visible {
  background: #ef444424;
  border-color: #f8717166;
  color: #fff;
}
.folder-grid {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  grid-auto-rows: 138px;
  align-content: start;
  gap: 10px;
  overflow: auto;
}
.folder-entry {
  min-width: 0;
  height: 138px;
  border: 1px solid #ffffff0d;
  border-radius: 11px;
  background: #ffffff05;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 30px;
  padding: 4px;
  overflow: hidden;
}
.folder-entry .start-item {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 7px 5px;
  overflow: hidden;
}
.folder-entry .start-item > span:last-child {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.folder-remove {
  height: 26px;
  margin: 0 4px 3px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}
.folder-remove:hover,
.folder-remove:focus-visible {
  background: #ffffff12;
  border-color: #ffffff1c;
  color: var(--text);
}
.window footer {
  margin-top: auto;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid #ffffff12;
}
.terminal-mini {
  flex: none;
  font-size: 21px;
  color: #a7f3d0;
}
.command-window {
  width: min(720px, calc(100vw - 30px));
  height: min(470px, calc(100dvh - 110px));
  background: linear-gradient(155deg, #07100cf5, #020805f0);
  border-color: #86efac33;
  box-shadow:
    0 30px 100px #000b,
    inset 0 1px #ffffff0b;
  color: #dcfce7;
}
.command-window header {
  background: #07140fb8;
  border-color: #86efac20;
}
.command-window header strong {
  color: #f0fdf4;
}
.command-version {
  margin-left: auto;
  color: #86efac99;
  font:
    500 11px/1.2 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
}
.command-output {
  flex: 1;
  overflow: auto;
  padding: 15px 17px;
  color: #bbf7d0;
  font:
    400 13px/1.55 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  white-space: pre-wrap;
  user-select: text;
}
.command-line {
  margin: 0 0 7px;
}
.command-line.command-input-line {
  color: #f0fdf4;
}
.command-line.command-error {
  color: #fda4af;
}
.command-line.command-muted {
  color: #86efac99;
}
.command-form {
  height: 48px;
  padding: 0 12px 0 16px;
  border-top: 1px solid #86efac22;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #86efac;
  font:
    500 13px/1 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
}
.command-form input {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f0fdf4;
  font:
    400 13px/1 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  box-shadow: none !important;
}
.command-form button {
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid #86efac2b;
  border-radius: 8px;
  background: #86efac10;
  color: #a7f3d0;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.command-form button:hover,
.command-form button:focus-visible {
  background: #86efac20;
  border-color: #86efac66;
  color: #f0fdf4;
}
.command-glyph {
  --app: #111827;
}
.command-result .command-glyph .icon-ri {
  color: #a7f3d0;
}
.app-grid > .command-result {
  grid-column: 1/-1;
  width: 100%;
  height: 68px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 22px;
  align-items: center;
  justify-items: start;
  gap: 11px;
  padding: 8px 13px;
  border: 1px solid #86efac2b;
  background: linear-gradient(110deg, #052e1d8c, #07140f66);
}
.command-result:hover,
.command-result:focus-visible {
  background: linear-gradient(110deg, #064e3bb3, #07140f88);
  border-color: #86efac66;
}
.command-result .glyph {
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 10px;
}
.command-result-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-align: left;
}
.command-result-copy strong {
  font-size: 14px;
  color: #f0fdf4;
}
.command-result-copy small {
  font-size: 11px;
  color: #86efacb5;
}
.command-result-arrow {
  justify-self: end;
  color: #86efac;
  font-size: 18px;
}
.auth-screen,
.setup-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  background:
    radial-gradient(circle at 73% 25%, #f9735060, transparent 28%),
    linear-gradient(145deg, #07101e, #18223a);
  display: grid;
  place-items: center;
}
.auth-screen[hidden],
.setup-screen[hidden] {
  display: none;
}
.auth-card {
  width: min(500px, calc(100vw - 28px));
  padding: 45px;
  border-radius: 26px;
}
.auth-logo {
  width: 54px;
  height: 54px;
  font-size: 20px;
}
.auth-card h1,
.setup-shell h1 {
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin: 14px 0;
}
.auth-card > p:not(.eyebrow) {
  color: var(--muted);
}
.setup-shell {
  width: min(1100px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  border-radius: 28px;
  display: grid;
  grid-template-columns: 360px 1fr;
  overflow: auto;
}
.setup-shell aside {
  padding: 42px;
  background: #0003;
}
.setup-shell aside ol {
  display: grid;
  gap: 18px;
  margin: 36px 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: 15px;
}
.setup-shell aside li.active {
  color: #fff;
}
.secure-note {
  margin-top: 38px;
  color: #bbf7d0;
  border-color: #22c55e33;
  background: #22c55e12;
}
.setup-shell form,
.setup-shell > #sealStep {
  padding: 42px 48px;
}
.setup-shell h2 {
  font-size: 30px;
  margin: 0 0 16px;
}
.setup-shell p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.requirement {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.requirement code {
  font-size: 16px;
  color: #fff;
}
.error {
  min-height: 16px;
  color: #fda4af;
}
.setup-shell label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
code {
  padding: 2px 5px;
  border-radius: 4px;
  background: #0004;
  color: #dbeafe;
}
dialog {
  width: min(470px, calc(100vw - 26px));
  padding: 0;
  border: 1px solid #ffffff22;
  border-radius: 18px;
  color: var(--text);
  background: linear-gradient(150deg, #111a2bf5, #0b1220eb);
  box-shadow: 0 30px 100px #000a;
}
dialog::backdrop {
  background: #0206178a;
  backdrop-filter: blur(5px);
}
dialog form {
  padding: 22px;
}
dialog header {
  display: flex;
  justify-content: space-between;
}
dialog h2 {
  margin: 4px 0 15px;
}
dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
  align-items: center;
  flex-wrap: wrap;
}
dialog footer button {
  white-space: nowrap;
}
#modalDanger {
  margin-right: auto;
}
.modal-spacer {
  display: none;
}
.light-glass {
  --glass: #eef4fbc7;
  --strong: #fbfdfff2;
  --text: #152033;
  --muted: #526176;
  color-scheme: light;
}
.light-glass .topbar,
.light-glass .desktop-icon {
  color: #fff;
  text-shadow: 0 1px 5px #000;
}
.light-glass .brand-copy small {
  color: #e7eef8;
}
.light-glass .glass {
  border-color: #ffffff99;
  box-shadow:
    0 24px 65px #07101e38,
    inset 0 1px #fff;
}
.light-glass .panel,
.light-glass .taskbar,
.light-glass .window,
.light-glass .app-tip,
.light-glass .context-menu {
  color: var(--text);
  text-shadow: none;
}
.light-glass .pill {
  color: #fff;
  background: #07101e78;
  border-color: #ffffff32;
}
.light-glass .pill:hover {
  background: #07101e99;
}
.light-glass .tenant-menu {
  color: #152033;
  background: linear-gradient(150deg, #fbfdfff2, #e9f0f8ed);
  border-color: #ffffff;
  box-shadow: 0 24px 70px #02061755;
}
.light-glass .tenant-menu header {
  border-color: #33415520;
}
.light-glass .tenant-menu header button {
  color: #475569;
}
.light-glass .tenant-menu header button:hover,
.light-glass .tenant-option:hover,
.light-glass .tenant-option:focus-visible {
  color: #152033;
  background: #0f172a0c;
  border-color: #3341551c;
}
.light-glass .tenant-option {
  color: #152033;
}
.light-glass .tenant-option.current {
  background: rgba(var(--rgb), 0.12);
  border-color: rgba(var(--rgb), 0.28);
}
.light-glass .tenant-manage {
  color: #152033;
  background: #ffffff7d;
  border-color: #33415526;
}
.light-glass .tenant-manage:hover {
  background: #fff;
  border-color: #33415538;
}
.light-glass .searchbox,
.light-glass input,
.light-glass select {
  color: #152033;
  background: #ffffffbd;
  border-color: #33415538;
}
.light-glass .searchbox input {
  background: transparent;
  border: 0;
}
.light-glass .searchbox input::placeholder {
  color: #64748b;
}
.light-glass .secondary,
.light-glass .list-row,
.light-glass .admin-tabs,
.light-glass .option-drop {
  background: #ffffff73;
  border-color: #33415522;
  color: #152033;
}
.light-glass .task-btn:hover,
.light-glass .task-btn.active,
.light-glass .start-item:hover,
.light-glass .start-item:focus-visible,
.light-glass .admin-tabs button.active,
.light-glass .context-menu button:hover {
  background: #0f172a12;
}
.light-glass .searchbox {
  background: #ffffffe8;
  box-shadow:
    inset 0 -2px var(--accent),
    0 8px 24px #33415518;
}
.light-glass .searchbox button:hover,
.light-glass .folder-remove:hover {
  background: #0f172a10;
}
.light-glass .power:hover {
  background: #fee2e2;
  border-color: #dc262666;
  color: #991b1b;
}
.light-glass .start-footer {
  background: #ffffff5c;
  border-color: #33415518;
}
.light-glass .toggle-row,
.light-glass .window header,
.light-glass .window footer,
.light-glass .colors {
  border-color: #3341551f;
}
.light-glass .window-action {
  color: #152033;
  background: #ffffff70 !important;
  border-color: #33415524 !important;
}
.light-glass .folder-toolbar {
  background: #ffffff52;
  border-color: #3341551f;
}
.light-glass .folder-action {
  color: #152033;
  background: #ffffff78;
  border-color: #33415524;
}
.light-glass .folder-action:hover,
.light-glass .folder-action:focus-visible {
  color: #152033;
  background: #fff;
  border-color: rgba(var(--rgb), 0.5);
}
.light-glass .folder-action-danger {
  color: #991b1b;
  background: #fee2e299;
  border-color: #dc262633;
}
.light-glass .folder-action-danger:hover,
.light-glass .folder-action-danger:focus-visible {
  color: #7f1d1d;
  background: #fecaca;
  border-color: #dc262666;
}
.light-glass .command-window {
  color: #dcfce7;
  background: linear-gradient(155deg, #07100cf5, #020805f0);
  border-color: #86efac33;
}
.light-glass .command-form input {
  color: #f0fdf4;
  background: transparent;
}
.light-glass .task-apps {
  border-color: #33415530;
}
.light-glass .task-app-icon {
  border-color: #ffffffaa;
}
.light-glass .tenant-current,
.light-glass .tenant-row {
  background: #ffffff78;
  border-color: #33415524;
}
.light-glass .theme span {
  color: #fff;
  text-shadow: 0 1px 4px #000;
}
.light-glass .theme.selected,
.light-glass .color-dot.selected {
  border-color: #152033;
}
.light-glass .theme-more {
  color: #475569;
  background: #ffffff73;
  border-color: #33415522;
}
.light-glass .theme-more:hover {
  color: #152033;
  background: #fff;
  border-color: #33415538;
}
.light-glass .note,
.light-glass .requirement {
  color: #713f12;
  background: #fef3c7cc;
  border-color: #f59e0b66;
}
.light-glass .requirement code {
  color: #152033;
  background: #ffffff9c;
}
.ui-light dialog {
  color: #152033;
  background: linear-gradient(150deg, #fbfdfff8, #e9f0f8f4);
  border-color: #ffffff;
  box-shadow: 0 30px 100px #02061766;
}
.ui-light dialog input,
.ui-light dialog select {
  color: #152033;
  background: #fff;
  border-color: #33415538;
}
.ui-light dialog .secondary {
  color: #152033;
  background: #e2e8f0;
  border-color: #cbd5e1;
}
.ui-light dialog::backdrop {
  background: #0f172a66;
}
.contrast {
  --glass: #02060ff5;
  --strong: #030712;
  --text: #fff;
  --muted: #d8e0ea;
}
.no-blur {
  --blur: 0px;
}
.large-text {
  --label: 16px;
}
.no-motion * {
  animation: none !important;
  transition: none !important;
}
.disabled {
  opacity: 0.38;
  pointer-events: none;
}
@keyframes drift {
  to {
    transform: translate(-2vw, 2vh) rotate(18deg) scale(1.06);
  }
}
@keyframes toastin {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
}
@keyframes windowin {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
}
@keyframes gradientflow {
  to {
    background-position: 100% 80%;
  }
}
@keyframes liquidfloat {
  to {
    transform: translate(-11vw, 8vh) rotate(46deg) scale(1.18);
  }
}
@keyframes orbitspin {
  to {
    transform: rotate(384deg);
  }
}
@keyframes ribbonwave {
  to {
    transform: translate(-8vw, -5vh) rotate(-10deg) scaleY(1.35);
  }
}
@keyframes neonpulse {
  50% {
    transform: rotate(30deg) scale(1.12);
    filter: drop-shadow(0 0 100px rgba(var(--rgb), 0.62));
  }
}
@keyframes clouddrift {
  to {
    transform: translate(-24vw, 5vh) scale(1.08);
  }
}
@keyframes waveroll {
  to {
    transform: translate(-5vw, -4vh) rotate(-3deg) scaleY(1.18);
  }
}
@keyframes frostbreathe {
  to {
    transform: rotate(32deg) scale(1.07);
    opacity: 0.66;
  }
}
@media (max-width: 760px) {
  .desktop {
    overflow: hidden;
  }
  .desktop:after {
    background: linear-gradient(
      180deg,
      rgba(2, 6, 23, 0.08),
      rgba(2, 6, 23, 0.34)
    );
  }
  .topbar {
    height: 62px;
    padding: 10px 12px;
    gap: 8px;
  }
  .brand {
    gap: 8px;
    min-width: 0;
  }
  .brand-badge {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 12px;
  }
  .brand-copy {
    min-width: 0;
  }
  .brand-copy small {
    display: none;
  }
  .brand-copy strong {
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .top-actions {
    gap: 6px;
  }
  .pill > span:not(.pill-mark):not(.pill-avatar) {
    display: none;
  }
  .pill {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    box-shadow: 0 5px 18px #0003;
  }
  .pill-mark,
  .pill-avatar {
    width: 24px;
    height: 24px;
  }
  .tenant-menu {
    position: fixed;
    left: 10px;
    right: 10px;
    top: 58px;
    width: auto;
    max-height: calc(100dvh - 132px);
    overflow: auto;
  }
  .pill-chevron {
    display: none;
  }
  .icon-layer {
    top: 62px;
    bottom: 68px;
    overflow-y: auto;
    overscroll-behavior: contain;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 106px;
    align-content: start;
    gap: 4px;
    padding: 10px 8px 24px;
  }
  .desktop-icon {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: 102px !important;
    padding: 7px 2px;
    touch-action: manipulation;
  }
  .desktop-icon .glyph {
    --icon: 48px;
  }
  .desktop-icon:hover {
    background: transparent;
    border-color: transparent;
  }
  .desktop-icon:active,
  .desktop-icon.selected {
    background: #ffffff19;
    border-color: #ffffff25;
  }
  .icon-label {
    max-width: 82px;
    font-size: 12px;
  }
  .large-text .icon-layer {
    grid-auto-rows: 114px;
  }
  .large-text .desktop-icon {
    height: 110px !important;
  }
  .large-text .icon-label {
    font-size: 15px;
  }
  .app-tip {
    display: none !important;
  }
  .taskbar {
    position: fixed;
    left: 6px;
    right: 6px;
    bottom: 5px;
    height: 58px;
    display: block;
    padding: 6px 8px;
    border-radius: 16px;
  }
  .task-spacer,
  .task-right,
  .task-apps {
    display: none !important;
  }
  .task-center {
    width: 100%;
    height: 100%;
    max-width: none;
    display: block;
    overflow: visible;
  }
  .task-system {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-evenly;
    gap: 2px;
  }
  .task-btn {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 11px;
  }
  .task-btn:hover {
    background: transparent;
    border-color: transparent;
  }
  .task-btn:active,
  .task-btn.active {
    background: #ffffff1b;
    border-color: #ffffff20;
  }
  .task-btn[data-tooltip]:after {
    display: none;
  }
  .panel {
    position: fixed;
    left: 8px !important;
    right: 8px !important;
    bottom: 69px !important;
    translate: none !important;
    width: auto !important;
    max-height: calc(100dvh - 78px) !important;
    border-radius: 20px 20px 14px 14px;
    transform: translateY(24px) scale(0.99);
  }
  .panel.open {
    transform: none;
  }
  .start {
    height: calc(100dvh - 82px);
    padding: 18px 16px 0;
  }
  .searchbox {
    height: 48px;
  }
  .section-head {
    padding: 18px 3px 10px;
  }
  .section-head small {
    display: none;
  }
  .app-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
  }
  .start-item {
    height: 92px;
    min-width: 0;
    padding: 5px 2px;
  }
  .start-item > span:last-child {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .start-footer {
    margin-left: -16px;
    margin-right: -16px;
    padding: 10px 16px;
    min-height: 64px;
  }
  .start-meta small {
    display: none;
  }
  .start-meta strong {
    font-size: 11px;
  }
  .side-panel,
  .admin {
    top: 70px;
    overflow: auto;
    padding: 18px;
  }
  .panel-title {
    position: sticky;
    top: -18px;
    z-index: 2;
    margin: -18px -18px 14px;
    padding: 18px;
    background: linear-gradient(180deg, var(--strong) 75%, transparent);
  }
  .admin-tabs {
    position: sticky;
    top: 54px;
    z-index: 2;
    background: color-mix(in srgb, var(--strong) 92%, transparent);
  }
  .theme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .theme {
    height: 64px;
  }
  .colors {
    gap: 10px;
  }
  .color-dot {
    width: 34px;
    height: 34px;
  }
  .window {
    position: fixed;
    left: 8px;
    right: 8px;
    top: auto;
    bottom: 69px;
    translate: none;
    width: auto;
    height: min(68dvh, 540px);
    border-radius: 20px 20px 14px 14px;
  }
  .window header {
    height: 52px;
  }
  .folder-toolbar {
    min-height: 54px;
    padding: 7px 9px;
    gap: 6px;
  }
  .folder-action {
    flex: 1 1 0;
    padding: 0 7px;
    font-size: 12px;
  }
  .folder-action-danger {
    margin-left: 0;
  }
  .folder-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 132px;
    padding: 12px;
    gap: 7px;
  }
  .folder-entry {
    height: 132px;
  }
  .window footer {
    display: none;
  }
  .command-window {
    height: min(72dvh, 560px);
  }
  .command-window header {
    height: 52px;
  }
  .command-output {
    padding: 13px;
    font-size: 12px;
  }
  .command-form {
    padding: 0 12px;
  }
  .command-version {
    display: none;
  }
  .context-menu {
    width: min(240px, calc(100vw - 16px));
    padding: 8px;
  }
  .context-menu button {
    height: 44px;
    font-size: 14px;
  }
  .toast-stack {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 72px;
    align-items: stretch;
  }
  .toast {
    width: 100%;
  }
  .setup-shell {
    grid-template-columns: 1fr;
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 20px;
  }
  .setup-shell aside {
    display: none;
  }
  .setup-shell form,
  .setup-shell > #sealStep {
    padding: 24px 20px;
  }
  .setup-shell h2 {
    font-size: 25px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: auto;
  }
  .auth-card {
    padding: 28px 22px;
    border-radius: 20px;
  }
  .auth-card h1 {
    font-size: 34px;
  }
  dialog {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 24px);
    margin: auto 8px 8px;
    border-radius: 20px 20px 14px 14px;
  }
  dialog form {
    max-height: calc(100dvh - 34px);
    overflow: auto;
  }
  dialog footer {
    position: sticky;
    bottom: -18px;
    margin: 18px -18px -18px;
    padding: 12px 18px 18px;
    background: linear-gradient(0deg, var(--strong) 75%, transparent);
  }
}
@media (max-width: 560px) {
  .theme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-tabs button {
    font-size: 12px;
    padding: 0 5px;
  }
  .tenant-row {
    grid-template-columns: 1fr;
  }
  .tenant-actions button {
    width: 100%;
  }
  dialog form {
    padding: 18px;
  }
  dialog footer button:not([hidden]) {
    flex: 1 1 calc(50% - 4px);
  }
  #modalDanger:not([hidden]) {
    order: 3;
    flex-basis: 100%;
    margin-right: 0;
  }
  .folder-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 10px;
  }
}
@media (max-width: 420px) {
  .icon-layer,
  .app-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .task-btn {
    flex-basis: 42px;
    width: 42px;
  }
  .folder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1080px) {
  .task-app:nth-child(n + 4) {
    display: none;
  }
}
@media (max-width: 900px) {
  .task-app:nth-child(n + 3) {
    display: none;
  }
  .task-center {
    gap: 4px;
  }
  .task-apps {
    padding-left: 4px;
  }
}
@media (max-width: 650px) {
  .task-apps {
    display: none;
  }
  .task-center {
    max-width: calc(100vw - 155px);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dashboard window manager and built-in utilities */
.dashboard-app-window {
  width: min(860px, calc(100vw - 32px));
  height: min(610px, calc(100dvh - 118px));
  overflow: hidden;
  background: color-mix(in srgb, var(--strong) 94%, transparent);
}
.dashboard-app-window > header {
  flex: 0 0 auto;
  background: color-mix(in srgb, var(--strong) 88%, transparent);
}
.window-app-icon {
  flex: none;
  font-size: 20px;
  color: var(--accent);
}
.window-drag-hint {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.dashboard-window-body {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.embedded-app-window {
  width: min(1080px, calc(100vw - 32px));
  height: min(720px, calc(100dvh - 108px));
}
.embedded-toolbar {
  min-height: 47px;
  padding: 7px 10px;
  border-bottom: 1px solid #ffffff12;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff05;
}
.embedded-address {
  min-width: 0;
  flex: 1;
  height: 31px;
  padding: 0 11px;
  border: 1px solid #ffffff16;
  border-radius: 8px;
  background: #0002;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.embedded-address i {
  color: #86efac;
}
.embedded-toolbar button,
.embedded-toolbar a {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #ffffff18;
  border-radius: 8px;
  background: #ffffff09;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  font: 600 11px/1 inherit;
  cursor: pointer;
}
.embedded-stage {
  position: relative;
  min-height: 0;
  flex: 1;
  background: #f8fafc;
}
.embedded-stage iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
.embedded-help {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 12px;
  translate: -50% 0;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 8px 11px;
  border: 1px solid #33415533;
  border-radius: 9px;
  background: #0f172ae8;
  color: #cbd5e1;
  box-shadow: 0 8px 24px #0005;
  font-size: 11px;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.embedded-help.show {
  opacity: 1;
}
.utility-shell {
  min-height: 100%;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.utility-intro {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}
.utility-intro > i {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(var(--rgb), 0.14);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 20px;
}
.utility-intro span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.utility-intro small,
.utility-muted {
  color: var(--muted);
}
.utility-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.utility-card,
.utility-row {
  min-width: 0;
  padding: 12px;
  border: 1px solid #ffffff12;
  border-radius: 11px;
  background: #ffffff06;
}
.utility-task-row,
.app-inspector-row {
  display: grid;
  grid-template-columns: 42px minmax(150px, 1fr) auto auto;
  align-items: center;
  gap: 10px;
}
.utility-row-icon {
  width: 38px;
  height: 38px;
  border: 1px solid #ffffff18;
  border-radius: 10px;
  background: rgba(var(--rgb), 0.12);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 20px;
}
.utility-row-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.utility-row-copy strong,
.utility-row-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.window-state {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.window-state.is-running {
  color: #86efac;
  background: #22c55e18;
  border: 1px solid #22c55e35;
}
.window-state.is-minimized {
  color: #cbd5e1;
  background: #94a3b818;
  border: 1px solid #94a3b835;
}
.utility-row-actions {
  display: flex;
  gap: 6px;
}
.utility-row-actions button,
.app-inspector-row > button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #ffffff18;
  border-radius: 8px;
  background: #ffffff09;
  color: var(--text);
  cursor: pointer;
}
.utility-form-grid label,
.utility-shell > label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}
.utility-form-grid input,
.utility-form-grid select,
.utility-shell > label input,
.utility-shell > label select,
.utility-line-input {
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid #ffffff18;
  border-radius: 9px;
  background: #0003;
  color: var(--text);
}
.utility-editor,
.checksum-output {
  width: 100%;
  min-height: 190px;
  padding: 12px;
  border: 1px solid #ffffff18;
  border-radius: 10px;
  resize: vertical;
  background: #0003;
  color: var(--text);
  font: 500 13px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
}
.checksum-output {
  min-height: 90px;
  resize: none;
  overflow-wrap: anywhere;
}
.validation-status {
  padding: 9px 11px;
  border-radius: 8px;
  background: #ffffff08;
  color: var(--muted);
}
.validation-status.valid { color: #86efac; background: #22c55e12; }
.validation-status.invalid { color: #fca5a5; background: #ef444412; }
.compact-toggle {
  min-height: 68px;
  padding: 10px;
  border: 1px solid #ffffff12;
  border-radius: 10px;
  background: #ffffff05;
}
.contrast-preview {
  min-height: 140px;
  padding: 24px;
  border-radius: 13px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}
.contrast-preview strong { font-size: 24px; }
.connection-meter {
  min-height: 72px;
  padding: 14px;
  border: 1px solid #ffffff14;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  background: #ffffff06;
}
.connection-meter i { font-size: 25px; }
.spin { animation: spin 0.9s linear infinite; }
.support-output { min-height: 340px; }
.tenant-connect-list {
  display: grid;
  gap: 8px;
}
.tenant-connect-option {
  min-height: 58px;
  padding: 8px 10px;
  border: 1px solid #ffffff16;
  border-radius: 10px;
  display: grid;
  grid-template-columns: auto 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  cursor: pointer;
}
.tenant-connect-option:has(input:checked) {
  border-color: rgba(var(--rgb), 0.45);
  background: rgba(var(--rgb), 0.12);
}
.tenant-connect-option > span:last-child {
  display: flex;
  flex-direction: column;
}
.tenant-connect-option small { color: var(--muted); }
@keyframes spin { to { transform: rotate(1turn); } }
.utility-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.utility-card small {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.utility-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.utility-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.utility-row > span {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.utility-row small {
  color: var(--muted);
}
.utility-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.utility-actions button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #ffffff18;
  border-radius: 8px;
  background: #ffffff0a;
  color: var(--text);
  cursor: pointer;
}
.calculator-display {
  width: 100%;
  height: 72px;
  padding: 10px 14px;
  border: 1px solid #ffffff18;
  border-radius: 12px;
  background: #0004;
  color: var(--text);
  text-align: right;
  font: 500 28px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}
.calculator-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.calculator-grid button {
  min-height: 48px;
  border: 1px solid #ffffff14;
  border-radius: 10px;
  background: #ffffff09;
  color: var(--text);
  font: 600 16px/1 inherit;
  cursor: pointer;
}
.calculator-grid button[data-calc-op] {
  background: rgba(var(--rgb), 0.15);
  color: var(--accent);
}
.calculator-grid .calculator-equals {
  background: var(--accent);
  color: #fff;
}
.notepad-area {
  min-height: 280px;
  flex: 1;
  resize: none;
  padding: 15px;
  border: 1px solid #ffffff16;
  border-radius: 10px;
  background: #05091499;
  color: var(--text);
  font: 400 14px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
}
.notepad-shell {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
}
.notepad-sidebar {
  min-width: 0;
  border-right: 1px solid #ffffff12;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.notepad-sidebar-head {
  padding: 13px;
  border-bottom: 1px solid #ffffff12;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.notepad-sidebar-head .utility-intro > i {
  display: none;
}
.notepad-list {
  min-height: 0;
  flex: 1;
  padding: 7px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.notepad-entry {
  width: 100%;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  cursor: pointer;
}
.notepad-entry:hover,
.notepad-entry.active {
  border-color: rgba(var(--rgb), 0.3);
  background: rgba(var(--rgb), 0.12);
}
.notepad-entry strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notepad-entry small {
  color: var(--muted);
  font-size: 10px;
}
.notepad-editor {
  min-width: 0;
  min-height: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.notepad-title {
  height: 42px;
  padding: 0 12px;
  border: 1px solid #ffffff16;
  border-radius: 9px;
  background: #ffffff07;
  color: var(--text);
  font: 650 17px/1 inherit;
}
.notepad-statusbar {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.notepad-statusbar > span {
  min-width: 0;
  flex: 1;
}
.converter-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}
.converter-controls label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}
.converter-controls button {
  align-self: end;
  min-height: 42px;
}
.converter-result {
  min-height: 130px;
  margin-top: auto;
  padding: 20px;
  border: 1px solid rgba(var(--rgb), 0.24);
  border-radius: 14px;
  background: rgba(var(--rgb), 0.09);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.converter-result small,
.text-stats {
  color: var(--muted);
}
.converter-result strong {
  font-size: clamp(25px, 5vw, 44px);
  overflow-wrap: anywhere;
}
.password-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.password-options label {
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #ffffff12;
  border-radius: 8px;
  background: #ffffff06;
  display: flex;
  align-items: center;
  gap: 8px;
}
.password-output {
  width: 100%;
  min-height: 96px;
  padding: 14px;
  resize: none;
  border: 1px solid rgba(var(--rgb), 0.25);
  border-radius: 11px;
  background: #0004;
  color: var(--text);
  font: 500 17px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-wrap: anywhere;
}
.text-tools-area {
  min-height: 250px;
}
.focus-clock {
  margin: auto;
  font: 700 clamp(54px, 12vw, 110px)/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: -0.08em;
  color: var(--text);
  text-shadow: 0 0 42px rgba(var(--rgb), 0.28);
}
.focus-status {
  text-align: center;
  color: var(--muted);
}
.diagnostic-pass { color: #86efac; }
.diagnostic-warn { color: #fde68a; }
.event-time {
  flex: 0 0 86px;
  color: var(--muted);
  font: 500 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

@media (max-width: 760px) {
  .window {
    min-width: 0;
    min-height: 0;
    resize: none;
  }
  .window-titlebar {
    cursor: default;
    touch-action: auto;
  }
  .window-drag-hint,
  .dashboard-window-maximize,
  .dashboard-window-minimize {
    display: none !important;
  }
  .dashboard-app-window,
  .embedded-app-window {
    width: auto;
    height: min(74dvh, 620px);
  }
  .utility-grid {
    grid-template-columns: 1fr;
  }
  .utility-task-row,
  .app-inspector-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }
  .utility-task-row .window-state {
    grid-column: 2;
    justify-self: start;
  }
  .utility-row-actions,
  .app-inspector-row > button {
    grid-column: 1 / -1;
    justify-self: stretch;
  }
  .utility-row-actions button,
  .app-inspector-row > button {
    flex: 1;
  }
  .notepad-shell {
    grid-template-columns: 1fr;
    grid-template-rows: 170px minmax(0, 1fr);
  }
  .notepad-sidebar {
    border-right: 0;
    border-bottom: 1px solid #ffffff12;
  }
  .notepad-sidebar-head .utility-intro {
    display: none;
  }
  .notepad-sidebar-head {
    padding: 8px;
  }
  .notepad-list {
    flex-direction: row;
    overflow-x: auto;
  }
  .notepad-entry {
    flex: 0 0 170px;
  }
  .notepad-statusbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .converter-controls {
    grid-template-columns: 1fr;
  }
  .embedded-address {
    display: none;
  }
  .embedded-toolbar span {
    display: none;
  }
}

.studio-launch {
  width: 100%;
  min-height: 70px;
  padding: 10px 12px;
  border: 1px solid #ffffff20;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(var(--rgb), 0.2), #ffffff08);
  color: var(--text);
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  text-align: left;
  cursor: pointer;
}
.studio-launch:hover {
  border-color: rgba(var(--rgb), 0.55);
  background: linear-gradient(135deg, rgba(var(--rgb), 0.3), #ffffff0d);
}
.studio-launch > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.studio-launch strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.studio-launch small {
  color: var(--muted);
  margin-top: 3px;
}
.studio-launch-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: white;
  font-size: 23px;
  box-shadow:
    inset 0 1px #fff5,
    0 8px 20px #0005;
}
.mini-app-list {
  display: grid;
  gap: 6px;
}
.mini-shortcut {
  min-height: 44px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  border: 1px solid #ffffff14;
  border-radius: 9px;
  background: #ffffff08;
}
.mini-shortcut > i {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--shortcut);
  color: #fff;
}
.mini-shortcut span {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.mini-shortcut strong,
.mini-shortcut small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini-shortcut small {
  color: var(--muted);
  font-size: 11px;
}
.mini-shortcut button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.mini-shortcut button:hover {
  color: var(--text);
  background: #ffffff14;
}
.customization-window {
  z-index: 52;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: min(1240px, calc(100vw - 24px));
  height: min(820px, calc(100dvh - 24px));
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 52px minmax(0, 1fr);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.97);
  transition: 0.2s;
}
.customization-window.open {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.customization-window > header {
  height: 52px;
  padding: 0 12px 0 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid #ffffff15;
  background: #02061752;
}
.customization-window > header strong {
  font-size: 14px;
}
.customization-window > header button {
  margin-left: auto;
  width: 34px;
  height: 34px;
  color: var(--text);
}
.studio-body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 326px;
  grid-template-rows: auto minmax(0, 1fr);
}
.studio-toolbar {
  grid-column: 1;
  padding: 16px 18px 11px;
  display: grid;
  gap: 12px;
  border-right: 1px solid #ffffff12;
}
.theme-spotlight {
  min-height: 126px;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid #ffffff18;
  border-radius: 15px;
  background: linear-gradient(145deg, #ffffff0c, #02061726);
  box-shadow: inset 0 1px #ffffff0a;
}
.theme-spotlight-preview {
  align-self: stretch;
  min-height: 100px;
  position: relative;
  overflow: hidden;
  border-radius: 11px;
  background: var(--spotlight);
  background-size: 150% 150%;
  box-shadow: inset 0 0 0 1px #ffffff20;
}
.theme-spotlight-preview:not([data-effect="none"]) {
  animation: spotlightDrift 8s ease-in-out infinite alternate;
}
.theme-spotlight-preview:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 49%, #ffffff08 50%, transparent 51%),
    linear-gradient(transparent 49%, #ffffff08 50%, transparent 51%);
  background-size: 24px 24px;
  opacity: 0.35;
}
.theme-spotlight-preview span {
  position: absolute;
  left: 9px;
  bottom: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #020617aa;
  border: 1px solid #ffffff26;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.theme-spotlight-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.theme-spotlight-copy > small {
  color: var(--accent);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.11em;
}
.theme-spotlight-copy > strong {
  margin-top: 2px;
  font-size: 20px;
  line-height: 1.2;
}
.theme-spotlight-copy p {
  max-width: 560px;
  margin: 5px 0 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.theme-spotlight-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.theme-spotlight-tags span {
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(var(--rgb), 0.15);
  border: 1px solid rgba(var(--rgb), 0.28);
  color: #fff;
  font-size: 10px;
}
.theme-action {
  min-width: 128px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
}
.studio-discovery {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.studio-search {
  height: 42px;
  border: 1px solid #ffffff20;
  border-radius: 10px;
  background: #02061770;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
}
.studio-search input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.theme-filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.theme-filter {
  flex: none;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid #ffffff16;
  border-radius: 999px;
  background: #ffffff08;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.theme-filter small {
  min-width: 20px;
  padding: 1px 5px;
  border-radius: 999px;
  background: #ffffff0e;
  color: inherit;
  font-size: 9px;
  text-align: center;
}
.theme-filter.active {
  background: rgba(var(--rgb), 0.24);
  color: var(--text);
  border-color: rgba(var(--rgb), 0.55);
}
.studio-library {
  grid-column: 1;
  padding: 4px 18px 22px;
  overflow: auto;
  border-right: 1px solid #ffffff12;
}
.studio-library .theme-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.studio-library .theme {
  height: 106px;
  border-radius: 12px;
}
.studio-library .theme:before {
  background: linear-gradient(180deg, transparent 20%, #020617e8 88%);
}
.studio-library .theme-card-copy {
  left: 9px;
  right: 9px;
  bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.studio-library .theme-card-copy strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.studio-library .theme-card-copy small {
  overflow: hidden;
  color: #dbe5f3c4;
  font-size: 10px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.studio-library .theme[data-category="Interactive"] {
  border-style: dashed;
}
.studio-library .theme[data-category="Ambient"] b {
  color: #a7f3d0;
}
.studio-controls {
  grid-column: 2;
  grid-row: 1 / 3;
  padding: 18px;
  overflow: auto;
  background: linear-gradient(180deg, #02061754, #02061725);
}
.studio-controls-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #ffffff12;
}
.studio-controls-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 11px;
  background: rgba(var(--rgb), 0.18);
  color: var(--accent);
  font-size: 18px;
}
.studio-controls-head > span:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.studio-controls-head strong {
  font-size: 14px;
}
.studio-controls-head small {
  color: var(--muted);
  font-size: 11px;
}
.studio-controls section {
  margin: 0 0 24px;
  padding: 14px;
  border: 1px solid #ffffff12;
  border-radius: 13px;
  background: #ffffff05;
}
.studio-controls h3 {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.studio-controls input[type="range"] {
  width: 100%;
  padding: 0;
  accent-color: var(--accent);
}
.audio-note {
  display: flex;
  gap: 9px;
  margin: 11px 0 14px;
  padding: 10px;
  border: 1px solid #ffffff10;
  border-radius: 10px;
  background: #02061745;
  color: var(--muted);
}
.audio-note i {
  color: var(--accent);
  font-size: 17px;
}
.audio-note span {
  display: flex;
  flex-direction: column;
}
.audio-note strong {
  color: var(--text);
  font-size: 11px;
}
.audio-note small {
  font-size: 10px;
  line-height: 1.35;
}
@keyframes spotlightDrift {
  to {
    background-position: 100% 100%;
  }
}

.screensaver {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background: #020617;
  opacity: 0;
  transition: opacity 0.2s;
  cursor: default;
  display: grid;
  place-items: center;
}
.screensaver:not(.active) {
  pointer-events: none;
}
.screensaver.active {
  opacity: 1;
}
.screensaver[data-style="current"] {
  background: var(--screen-theme);
  background-size: 150% 150%;
  animation: screenPan 14s ease-in-out infinite alternate;
}
.screensaver[data-style="starfield"] {
  background: radial-gradient(circle at 50% 120%, #312e81, #020617 55%);
}
.screensaver[data-style="starfield"] .screensaver-field i {
  width: 4px;
  height: 4px;
  min-width: 4px;
  min-height: 4px;
  background: #fff;
  box-shadow:
    8vw 12vh #fff,
    18vw -22vh #bae6fd,
    31vw 8vh #fff,
    -21vw 28vh #c4b5fd,
    -36vw -17vh #fff,
    11vw 34vh #fff;
}
.screensaver[data-style="clock"] {
  background: radial-gradient(circle at 50% 50%, #172554, #020617 62%);
}
.screensaver[data-style="clock"] .screensaver-field {
  display: none;
}
.screensaver[data-style="matrix"] {
  background: repeating-linear-gradient(
    90deg,
    #020b08 0 17px,
    #052e1b 18px,
    #020b08 19px
  );
}
.screensaver[data-style="matrix"] .screensaver-field i {
  width: 2px;
  min-width: 2px;
  height: 42vh;
  min-height: 220px;
  border-radius: 0;
  background: linear-gradient(transparent, #4ade80, transparent);
  box-shadow:
    9vw -18vh #22c55e,
    -12vw 26vh #86efac;
}
.screensaver[data-style="ribbons"] {
  background: linear-gradient(
    125deg,
    #020617,
    #312e81,
    #0e7490,
    #701a75,
    #020617
  );
  background-size: 400% 400%;
  animation: screenPan 7s ease-in-out infinite;
}
.screensaver[data-style="ribbons"] .screensaver-field i {
  width: 45vw;
  min-width: 320px;
  height: 3px;
  min-height: 3px;
  border-radius: 50%;
  background: linear-gradient(
    90deg,
    transparent,
    #67e8f9,
    #f0abfc,
    transparent
  );
  box-shadow: 0 0 26px #22d3ee;
}
.screensaver-field {
  position: absolute;
  inset: 0;
}
.screensaver-field i {
  position: absolute;
  width: 9vmax;
  height: 9vmax;
  min-width: 70px;
  min-height: 70px;
  border-radius: 50%;
  background: #ffffff16;
  box-shadow: 0 0 70px rgba(var(--rgb), 0.45);
  animation: screenFloat 12s linear infinite;
}
.screensaver-field i:nth-child(1) {
  left: 8%;
  top: 14%;
}
.screensaver-field i:nth-child(2) {
  left: 76%;
  top: 12%;
  animation-delay: -3s;
}
.screensaver-field i:nth-child(3) {
  left: 28%;
  top: 72%;
  animation-delay: -6s;
}
.screensaver-field i:nth-child(4) {
  left: 63%;
  top: 65%;
  animation-delay: -9s;
}
.screensaver-field i:nth-child(5) {
  left: 46%;
  top: 32%;
  animation-delay: -4s;
}
.screensaver-field i:nth-child(6) {
  left: 88%;
  top: 78%;
  animation-delay: -8s;
}
.screensaver-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-shadow: 0 6px 30px #000;
  animation: screenWander 18s ease-in-out infinite alternate;
}
.screensaver-card strong {
  font-size: clamp(64px, 11vw, 150px);
  font-weight: 250;
  letter-spacing: -0.05em;
}
.screensaver-card span {
  font-size: clamp(18px, 2vw, 30px);
}
.screensaver-card small {
  margin-top: 18px;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #ffffffa8;
}
.screensaver > p {
  position: absolute;
  bottom: 28px;
  margin: 0;
  color: #ffffff80;
  font-size: 12px;
}
@keyframes screenFloat {
  50% {
    transform: translate(14vw, 10vh) scale(1.55);
  }
  100% {
    transform: translate(-8vw, 20vh) scale(0.75);
  }
}
@keyframes screenPan {
  to {
    background-position: 100% 100%;
  }
}
@keyframes screenWander {
  to {
    transform: translate(11vw, -8vh);
  }
}

@media (max-width: 820px) {
  .customization-window {
    left: 8px;
    right: 8px;
    top: auto;
    bottom: 70px;
    translate: 0;
    width: auto;
    height: min(82dvh, 740px);
    border-radius: 18px;
  }
  .studio-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(260px, 1fr) auto;
    overflow: auto;
  }
  .theme-spotlight {
    grid-template-columns: 132px minmax(0, 1fr);
  }
  .theme-action {
    grid-column: 1 / -1;
    width: 100%;
  }
  .studio-discovery {
    grid-template-columns: 1fr;
  }
  .studio-toolbar,
  .studio-library {
    grid-column: 1;
    border-right: 0;
  }
  .studio-library {
    overflow: visible;
  }
  .studio-library .theme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .studio-controls {
    grid-column: 1;
    grid-row: 3;
    border-top: 1px solid #ffffff12;
  }
}
@media (max-width: 520px) {
  .studio-library .theme-grid {
    grid-template-columns: 1fr;
  }
  .customization-window {
    bottom: 66px;
    height: calc(100dvh - 78px);
  }
  .studio-toolbar {
    padding: 12px;
  }
  .theme-spotlight {
    grid-template-columns: 1fr;
  }
  .theme-spotlight-preview {
    min-height: 84px;
  }
  .theme-spotlight-copy p {
    max-height: 34px;
    overflow: hidden;
  }
  .studio-library {
    padding-inline: 12px;
  }
  .studio-library .theme {
    height: 94px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .theme-spotlight-preview,
  .screensaver-field,
  .screensaver-card {
    animation: none !important;
  }
}

/* v1.0.19 utility workspace */
.utility-window {
  width: min(900px, calc(100vw - 32px));
  height: min(680px, calc(100dvh - 108px));
}
.utility-calculator,
.utility-unit-converter,
.utility-password-generator,
.utility-focus-timer,
.utility-timestamp-converter,
.utility-random-picker {
  width: min(660px, calc(100vw - 32px));
}
.utility-dashboard-tools,
.utility-diff-checker,
.utility-table-tools,
.utility-environment-inspector,
.utility-troubleshooting-guide,
.utility-tenant-support-overview {
  width: min(1040px, calc(100vw - 32px));
  height: min(760px, calc(100dvh - 100px));
}
.utility-intro {
  padding: 2px 0 12px;
  border-bottom: 1px solid #ffffff10;
}
.utility-intro > span { flex: 1; }
.utility-intro > span > strong { font-size: 16px; }
.utility-meta {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 5px !important;
  margin-top: 5px;
}
.utility-meta b {
  padding: 3px 7px;
  border: 1px solid #ffffff12;
  border-radius: 999px;
  background: #ffffff07;
  color: var(--muted);
  font: 650 9px/1.2 inherit;
  letter-spacing: .025em;
}
.utility-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.metric-card {
  min-width: 0;
  min-height: 82px;
  padding: 13px;
  border: 1px solid #ffffff12;
  border-radius: 12px;
  background: linear-gradient(145deg, #ffffff09, #ffffff04);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.metric-card strong {
  color: var(--text);
  font-size: 19px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.metric-card small { color: var(--muted); }
.detail-table {
  border: 1px solid #ffffff12;
  border-radius: 12px;
  overflow: hidden;
}
.detail-table > div {
  min-height: 42px;
  padding: 9px 12px;
  border-bottom: 1px solid #ffffff0d;
  display: grid;
  grid-template-columns: minmax(130px, 28%) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}
.detail-table > div:last-child { border-bottom: 0; }
.detail-table strong { font-size: 12px; }
.detail-table span {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.status-row > i { flex: none; font-size: 19px; }
.status-pill {
  flex: none;
  padding: 5px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font: 750 9px/1 inherit;
  letter-spacing: .06em;
}
.status-pass { color: #86efac !important; }
.status-warn { color: #fcd34d !important; }
.status-fail { color: #fca5a5 !important; }
.status-info { color: #93c5fd !important; }
.health-banner,
.identity-banner,
.support-safety,
.tenant-support-hero {
  min-height: 76px;
  padding: 13px 15px;
  border: 1px solid #ffffff14;
  border-radius: 13px;
  background: #ffffff06;
  display: flex;
  align-items: center;
  gap: 12px;
}
.health-banner > i,
.support-safety > i { flex: none; font-size: 27px; }
.health-banner > span,
.identity-banner > span,
.support-safety > span,
.tenant-support-hero > span { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.health-banner small,
.identity-banner small,
.support-safety small,
.tenant-support-hero small { color: var(--muted); }
.health-pass { border-color: #22c55e38; background: #22c55e0d; color: #86efac; }
.health-warn { border-color: #f59e0b42; background: #f59e0b0d; color: #fcd34d; }
.health-fail { border-color: #ef444442; background: #ef44440d; color: #fca5a5; }
.health-score {
  width: 58px;
  height: 58px;
  border: 4px solid currentColor;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 750 17px/1 inherit;
}
.health-score small { margin-left: 1px; font-size: 9px; }
.utility-empty {
  margin: 0;
  padding: 24px 14px;
  color: var(--muted);
  text-align: center;
}
.utility-callout,
.tool-documentation {
  margin: 0;
  padding: 11px 12px;
  border: 1px solid rgba(var(--rgb), .18);
  border-radius: 10px;
  background: rgba(var(--rgb), .07);
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 11px;
  line-height: 1.45;
}
.utility-callout i,
.tool-documentation > i { flex: none; color: var(--accent); font-size: 17px; }
.danger-soft { color: #fecaca !important; border-color: #ef44443d !important; background: #ef44440d !important; }
.utility-actions button:disabled,
.app-inspector-row button:disabled { opacity: .45; cursor: not-allowed; }
.utility-actions-sticky {
  position: sticky;
  bottom: -18px;
  margin: auto -18px -18px;
  padding: 11px 18px 18px;
  background: linear-gradient(0deg, var(--strong) 78%, transparent);
}
.selectable-value { user-select: text; }

/* Tools hub */
.tools-hub-toolbar { display: flex; align-items: center; gap: 10px; }
.tools-search {
  min-width: 220px;
  flex: 1;
  height: 42px;
  padding: 0 11px;
  border: 1px solid #ffffff16;
  border-radius: 10px;
  background: #0003;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tools-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); }
.tools-filter { display: flex; gap: 5px; }
.tools-filter button {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid #ffffff12;
  border-radius: 8px;
  background: #ffffff06;
  color: var(--muted);
  cursor: pointer;
}
.tools-filter button.active { border-color: rgba(var(--rgb), .35); background: rgba(var(--rgb), .15); color: var(--text); }
.tool-documentation span { display: flex; flex-direction: column; gap: 2px; }
.tool-group { margin-top: 16px; }
.tool-group > header { margin-bottom: 8px; }
.tool-group > header span { display: flex; align-items: baseline; gap: 8px; }
.tool-group > header small { color: var(--muted); }
.tool-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tool-card {
  min-width: 0;
  min-height: 91px;
  padding: 12px;
  border: 1px solid #ffffff12;
  border-radius: 12px;
  background: #ffffff05;
  color: var(--text);
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .15s, translate .15s;
}
.tool-card:hover { border-color: rgba(var(--rgb), .35); background: rgba(var(--rgb), .09); translate: 0 -1px; }
.tool-card-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(var(--rgb), .13); color: var(--accent); display: grid; place-items: center; font-size: 20px; }
.tool-card > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tool-card > span:nth-child(2) > small { color: var(--muted); line-height: 1.35; }

/* New utility apps */
.diff-editors { min-height: 220px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.diff-editors label { min-width: 0; display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 11px; }
.diff-editors textarea { min-height: 220px; flex: 1; }
.diff-result { min-height: 150px; border: 1px solid #ffffff12; border-radius: 10px; background: #05091488; overflow: auto; }
.diff-line { min-height: 24px; display: grid; grid-template-columns: 48px minmax(0, 1fr); font: 500 11px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; }
.diff-line > span { padding: 4px 8px; color: var(--muted); background: #ffffff05; text-align: right; user-select: none; }
.diff-line code { padding: 4px 9px; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.diff-added code { background: #22c55e12; color: #bbf7d0; }
.diff-removed code { background: #ef444412; color: #fecaca; }
.diff-changed code { background: #f59e0b12; color: #fde68a; }
.timestamp-hero,
.picker-result {
  min-height: 116px;
  padding: 18px;
  border: 1px solid rgba(var(--rgb), .25);
  border-radius: 14px;
  background: radial-gradient(circle at top right, rgba(var(--rgb), .18), transparent 50%), #ffffff05;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.timestamp-hero > span,
.picker-result small { color: var(--muted); }
.timestamp-hero strong,
.picker-result strong { color: var(--accent); font: 700 clamp(24px, 5vw, 38px)/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.timestamp-hero button { align-self: flex-start; min-height: 32px; border: 1px solid #ffffff16; border-radius: 8px; background: #ffffff08; color: var(--text); cursor: pointer; }
.utility-toolbar { display: flex; align-items: end; gap: 8px; }
.utility-toolbar label { min-width: 180px; display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 11px; }
.utility-toolbar select { min-height: 38px; border: 1px solid #ffffff16; border-radius: 8px; background: #111827; color: var(--text); }
.utility-toolbar button { min-height: 38px; padding: 0 12px; border: 1px solid #ffffff16; border-radius: 8px; background: #ffffff08; color: var(--text); cursor: pointer; }
.table-source { min-height: 150px; }
.table-preview-wrap { min-height: 130px; border: 1px solid #ffffff12; border-radius: 10px; overflow: auto; }
.data-preview-table { width: max-content; min-width: 100%; border-collapse: collapse; font: 500 11px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }
.data-preview-table th,
.data-preview-table td { max-width: 360px; padding: 7px 9px; border-right: 1px solid #ffffff0d; border-bottom: 1px solid #ffffff0d; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.data-preview-table th { position: sticky; top: 0; z-index: 1; background: color-mix(in srgb, var(--strong) 95%, black); color: var(--accent); }
.input-test-surface { min-height: 180px; border: 2px dashed #ffffff20; border-radius: 14px; outline: none; background: #ffffff04; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; text-align: center; touch-action: none; }
.input-test-surface:focus { border-color: rgba(var(--rgb), .65); background: rgba(var(--rgb), .08); box-shadow: 0 0 0 4px rgba(var(--rgb), .1); }
.input-test-surface i { color: var(--accent); font-size: 32px; }
.input-test-surface small { color: var(--muted); }
.event-stream { min-height: 120px; border: 1px solid #ffffff12; border-radius: 10px; overflow: auto; }
.event-stream > div { min-height: 34px; padding: 6px 9px; border-bottom: 1px solid #ffffff0d; display: grid; grid-template-columns: 74px 100px minmax(0, 1fr); gap: 8px; align-items: center; font-size: 10px; }
.event-stream time,
.event-stream span { color: var(--muted); }
.guide-topic select { width: 100%; min-height: 42px; padding: 0 10px; border: 1px solid #ffffff16; border-radius: 9px; background: #111827; color: var(--text); }
.guide-layout { min-height: 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); gap: 12px; }
.guide-steps { margin: 0; padding: 8px; border: 1px solid #ffffff12; border-radius: 12px; list-style: none; }
.guide-steps li + li { border-top: 1px solid #ffffff0d; }
.guide-steps label { min-height: 64px; padding: 10px; display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.guide-steps input { margin-top: 3px; accent-color: var(--accent); }
.guide-steps span { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.guide-steps b { color: var(--text); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
.guide-layout aside { padding: 12px; border: 1px solid #ffffff12; border-radius: 12px; background: #ffffff04; }
.guide-layout aside > small { display: block; margin-top: 10px; color: var(--muted); line-height: 1.4; }
.guide-tools { margin-top: 9px; display: grid; gap: 7px; }
.guide-tools button { min-height: 58px; padding: 8px; border: 1px solid #ffffff12; border-radius: 9px; background: #ffffff06; color: var(--text); display: flex; align-items: center; gap: 9px; text-align: left; cursor: pointer; }
.guide-tools button > i { color: var(--accent); font-size: 20px; }
.guide-tools button span { display: flex; flex-direction: column; gap: 2px; }
.guide-tools button small { color: var(--muted); }
.identity-avatar,
.tenant-avatar { width: 46px; height: 46px; border-radius: 13px; background: rgba(var(--rgb), .18); color: var(--accent); display: grid; place-items: center; font-weight: 800; }
.group-section { padding: 12px; border: 1px solid #ffffff12; border-radius: 12px; background: #ffffff04; }
.group-section header { margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.group-section header small { color: var(--muted); }
.chip-list { display: flex !important; flex-direction: row !important; flex-wrap: wrap; gap: 5px !important; }
.chip-list > span,
.chip-list > b { padding: 4px 7px; border: 1px solid #ffffff12; border-radius: 999px; background: #ffffff07; color: var(--muted); font-size: 10px; font-weight: 600; }
.support-safety > i { color: #86efac; }
.support-output { border-color: #ffffff14; line-height: 1.5; }
.connection-meter span { display: flex; flex-direction: column; gap: 3px; }
.connection-meter small { color: var(--muted); }
.app-inspector-row { grid-template-columns: 42px minmax(150px, 1fr) auto auto; }

@media (max-width: 760px) {
  .utility-window,
  .utility-dashboard-tools,
  .utility-diff-checker,
  .utility-table-tools,
  .utility-environment-inspector,
  .utility-troubleshooting-guide,
  .utility-tenant-support-overview { width: auto; height: min(78dvh, 680px); }
  .utility-shell { padding: 14px; }
  .utility-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools-hub-toolbar { align-items: stretch; flex-direction: column; }
  .tools-filter { overflow-x: auto; }
  .tool-card-grid,
  .diff-editors,
  .guide-layout { grid-template-columns: 1fr; }
  .diff-editors textarea { min-height: 150px; }
  .utility-task-row,
  .app-inspector-row { grid-template-columns: 38px minmax(0, 1fr) auto; }
  .utility-task-row .utility-row-actions,
  .app-inspector-row > button { grid-column: 2 / -1; }
  .utility-task-row .utility-row-actions button,
  .app-inspector-row > button { flex: 1; }
  .utility-actions-sticky { bottom: -14px; margin: auto -14px -14px; padding: 10px 14px 14px; }
}
@media (max-width: 480px) {
  .utility-summary-grid { grid-template-columns: 1fr 1fr; }
  .detail-table > div { grid-template-columns: 1fr; gap: 3px; }
  .tool-card { grid-template-columns: 38px minmax(0, 1fr); }
  .tool-card > i { display: none; }
  .health-banner,
  .identity-banner,
  .support-safety { align-items: flex-start; }
  .identity-banner .status-pill { display: none; }
  .utility-toolbar { align-items: stretch; flex-direction: column; }
  .utility-toolbar label { min-width: 0; }
  .event-stream > div { grid-template-columns: 70px minmax(0, 1fr); }
  .event-stream > div span { grid-column: 1 / -1; }
}
