:root {
  color-scheme: dark;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #f5f6fc;
  background: #101422;
  --edge: #d4dcff24;
  --muted: #adb7cf;
  --accent: #c4c8ff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100svh;
  background: linear-gradient(180deg, #0e1524a8, #10152316 48%, #0a0d1c44), url("./wallpaper.webp") center 58% / cover no-repeat fixed, radial-gradient(ellipse at 73% 75%, #253771, #11172d 48%, #0d1020 80%);
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button, a { color: inherit; }
button { cursor: pointer; }
a { text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid #b5c1ff; outline-offset: 4px; }
[hidden] { display: none !important; }

.top {
  height: 37px;
  padding: 0 clamp(15px, 2vw, 35px);
  border-bottom: 1px solid #c9d2ff19;
  background: #121625b8;
  backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand, .top-right, .contact-trigger { display: flex; align-items: center; }
.brand, .contact-trigger {
  border: 0;
  padding: 0;
  background: none;
}
.brand { gap: 9px; font-size: 13px; font-weight: 700; }
.brand-mark {
  border-radius: 6px;
  box-shadow: 0 0 0 1px #b4c5ff37;
}
.top-right { gap: 24px; font-size: 13px; }
.contact-trigger { gap: 7px; min-height: 35px; }
.contact-trigger:hover { color: var(--accent); }
.person-glyph { position: relative; width: 16px; height: 16px; }
.person-glyph::before, .person-glyph::after, .contact-glyph::before, .contact-glyph::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 1.5px solid currentColor;
}
.person-glyph::before { top: 1px; width: 4px; height: 4px; border-radius: 50%; }
.person-glyph::after { bottom: 1px; width: 9px; height: 5px; border-radius: 8px 8px 4px 4px; }
#clock { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

.system-indicators { display: none; }
.workspace {
  width: calc(100% - clamp(36px, 8vw, 144px));
  height: calc(100dvh - 37px);
  margin: auto;
  display: flex;
  flex-direction: column;
  padding: clamp(10px, 2.2dvh, 24px) 0 84px;
}
#apps { flex: 1; min-height: 0; }
.page-track { height: 100%; }
.launcher {
  position: fixed;
  z-index: 6;
  top: 44px;
  right: 16px;
  width: min(340px, calc(100% - 32px));
  padding: 12px;
  border: 1px solid #9eaddb46;
  border-radius: 14px;
  background: #131b2ded;
  box-shadow: 0 18px 50px #070a18a0;
  backdrop-filter: blur(22px);
}
.launcher-search { display: flex; align-items: center; gap: 8px; }
.launcher .search { flex: 1; min-width: 0; width: 100%; }
.search-done {
  flex: none;
  min-height: 44px;
  padding: 0 9px;
  border: 0;
  border-radius: 8px;
  background: #8491fb31;
  font-size: 14px;
}
.launcher .filters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin: 8px 0 0; }
.launcher .filter { min-height: 32px; padding-inline: 4px; font-size: 13px; }
.search {
  display: flex;
  align-items: center;
  gap: 11px;
  width: min(260px, 100%);
  height: 44px;
  border: 1px solid var(--edge);
  border-radius: 10px;
  background: #151b30bb;
  padding-inline: 13px;
}
.search:focus-within { border-color: #8a9bfa9e; }
.search-glyph { position: relative; width: 13px; height: 13px; flex: 0 0 13px; border: 1.5px solid #bdc7dd; border-radius: 50%; }
.search-glyph::after { content: ""; position: absolute; height: 5px; width: 1.5px; background: #bdc7dd; transform: rotate(-45deg); right: -2px; bottom: -4px; }
.search input { min-width: 0; width: 100%; background: none; border: 0; color: inherit; font-size: 14px; padding: 7px 0; }
.search input:focus-visible { outline: none; }
.search input::placeholder { color: #a9b4ce; }
.filters { display: flex; gap: 6px; margin-bottom: 28px; }
.filter {
  min-height: 36px;
  padding: 6px 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #cbd4e8;
  font-size: 14px;
  white-space: nowrap;
}
.filter:hover { background: #9aaff619; }
.filter[aria-pressed="true"] {
  background: #8491fb31;
  border-color: #9daaff50;
  color: #f7f7ff;
}
.app-grid {
  display: grid;
  grid-template-columns: repeat(var(--page-columns), minmax(0, 1fr));
  grid-template-rows: repeat(var(--page-rows), minmax(0, 1fr));
  height: 100%;
  align-items: center;
  gap: 4px;
}
.app {
  display: flex;
  min-width: 0;
  min-height: 88px;
  flex-direction: column;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 7px 3px 5px;
  align-items: center;
  justify-content: start;
  gap: 6px;
  background: none;
  text-align: center;
  transition: background .15s, border-color .15s;
}
body:not(.mobile-desktop) .app { width: min(100%, 112px); justify-self: center; }
body:not(.mobile-desktop) .app .tile-icon { width: clamp(54px, 4.6vw, 64px); height: clamp(54px, 4.6vw, 64px); }
.app:hover, .app:focus-visible, .app.linked-product { background: #6077b425; border-color: #a5b5ff36; }
.app:active .tile-icon { transform: scale(.92); }
.tile-icon, .dock-glyph {
  display: grid;
  place-items: center;
  flex: none;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border-radius: 13px;
  background: var(--icon-bg, #353f69);
  box-shadow: inset 0 0 0 1px #f1f4ff30, inset 0 1px #fff3, 0 7px 14px #080b17a8;
  font-size: 24px;
  font-weight: 700;
  text-shadow: 0 2px 5px #0d163849;
  transition: transform .18s;
}
.tile-icon.product-symbol-shield { --icon-bg: radial-gradient(circle at 55% 32%, #143f46, #0d2631 63%, #061923); }
.symbol-shield {
  --shield-outline: polygon(50% 0, 94% 17%, 90% 68%, 74% 86%, 50% 100%, 26% 86%, 10% 68%, 6% 17%);
  position: relative;
  width: 62%;
  height: 69%;
  background: #61e9d5;
  clip-path: var(--shield-outline);
}
.symbol-shield::before, .symbol-shield::after { content: ""; position: absolute; }
.symbol-shield::before { inset: 9%; background: #0b2530; clip-path: var(--shield-outline); }
.symbol-shield::after {
  inset: 23%;
  background: #61e9d5;
  clip-path: polygon(54% 0, 100% 0, 68% 47%, 100% 47%, 29% 100%, 44% 57%, 8% 57%);
}
.tile-icon.product-symbol-layers { --icon-bg: linear-gradient(145deg, #355ad6, #1b2e79 78%); }
.symbol-layers {
  width: 54%;
  aspect-ratio: 1 / 1;
  background: #e8edff;
  clip-path: polygon(50% 1%, 100% 27%, 50% 53%, 0 27%, 50% 1%, 0 45%, 50% 71%, 100% 45%, 100% 57%, 50% 83%, 0 57%, 0 64%, 50% 90%, 100% 64%, 100% 76%, 50% 100%, 0 76%, 0 64%);
}
.tile-icon.product-symbol-chat { --icon-bg: linear-gradient(145deg, #36bd8e, #14655e 80%); }
.symbol-chat { position: relative; width: 58%; height: 56%; }
.symbol-chat::before, .symbol-chat::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.symbol-chat::before {
  inset: 1% 22% 32% 0;
  background: #eefff8;
}
.symbol-chat::after {
  inset: 38% 0 0 37%;
  background: #aef4d9;
  clip-path: polygon(0 0,100% 0,100% 100%,76% 83%,0 100%);
}
.tile-icon.product-symbol-bell { --icon-bg: linear-gradient(145deg, #3c88f9, #244998 80%); }
.symbol-bell {
  position: relative;
  width: 53%;
  height: 59%;
  background: #f2f7ff;
  clip-path: polygon(50% 0, 62% 6%, 70% 13%, 83% 23%, 90% 68%, 100% 79%, 100% 86%, 0 86%, 0 79%, 10% 68%, 17% 23%, 30% 13%, 38% 6%, 50% 0, 33% 91%, 67% 91%, 62% 98%, 50% 100%, 38% 98%, 33% 91%);
}
.tile-icon:has(img) { background: #263252; }
.tile-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tone-violet { --icon-bg: linear-gradient(145deg, #9b81d2, #5842a0 68%, #43367f); }
.tone-blue { --icon-bg: linear-gradient(145deg, #6e8cef, #395ba6 69%, #29437d); }
.tone-mint { --icon-bg: linear-gradient(145deg, #60aaad, #24696b 69%, #21575c); }
.tone-coral { --icon-bg: linear-gradient(145deg, #d88b99, #a34d74 69%, #7b3e61); }
.tone-gold { --icon-bg: linear-gradient(145deg, #e4ac79, #a26748 69%, #7e493a); }
.app-label {
  display: block;
  max-width: 100%;
  font-size: 13px;
  line-height: 1.3;
  text-wrap: balance;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 6px #000e;
}
.no-site .tile-icon { filter: saturate(.58) brightness(.83); }
.empty { position: fixed; inset: 42% 0 auto; margin: 0; text-align: center; color: var(--muted); pointer-events: none; }
.pagination { display: flex; flex: 0 0 28px; justify-content: center; align-items: center; }
.page-dots { display: flex; gap: 2px; align-items: center; }
.page-dot { border: 0; background: none; width: 19px; height: 28px; padding: 0; display: grid; place-items: center; }
.page-dot::after { content: ""; width: 5px; height: 5px; border-radius: 10px; background: #dce1ff7c; }
.page-dot[aria-current]::after { width: 13px; background: #d9dfff; }

.dock {
  position: fixed;
  z-index: 5;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  width: max-content;
  max-width: calc(100% - 22px);
  background: #162036c9;
  border: 1px solid #bacbff58;
  border-radius: 18px;
  box-shadow: 0 14px 46px #070a16b5, inset 0 1px #fafbff1a;
  backdrop-filter: blur(25px);
}
.dock-entry { position: relative; border: 0; background: transparent; padding: 0; border-radius: 11px; }
.dock .tile-icon, .dock-glyph { width: 47px; height: 47px; border-radius: 11px; box-shadow: inset 0 0 0 1px #f4f6ff38, 0 3px 7px #080b1680; font-size: 20px; }
.dock-entry:hover .tile-icon, .dock-entry:hover .dock-glyph { transform: translateY(-4px); }
.dock .app-label {
  position: absolute;
  pointer-events: none;
  left: 50%;
  bottom: calc(100% + 11px);
  transform: translateX(-50%);
  max-width: none;
  width: max-content;
  opacity: 0;
  color: #f7f8ff;
  background: #232a41;
  border: 1px solid var(--edge);
  border-radius: 7px;
  padding: 5px 8px;
  font-size: 12px;
}
.dock-entry:hover .app-label, .dock-entry:focus-visible .app-label { opacity: 1; }
.grid-glyph { --icon-bg: linear-gradient(145deg, #a1a5fb, #5d60d4); position: relative; }
.grid-glyph::after { content: ""; width: 6px; height: 6px; border-radius: 1.5px; background: white; box-shadow: 9px 0 white, 0 9px white, 9px 9px white; transform: translate(-4.5px,-4.5px); }
.contact-glyph { --icon-bg: linear-gradient(145deg, #6ba9cb, #355899); position: relative; }
.contact-glyph::before { top: 11px; width: 6px; height: 6px; border-radius: 50%; }
.contact-glyph::after { bottom: 11px; width: 13px; height: 7px; border-radius: 9px 9px 4px 4px; }
.browser-glyph { --icon-bg: linear-gradient(140deg, #8fe6fa, #446ceb 76%); position: relative; }
.browser-glyph::before { content: ""; position: absolute; inset: 10px; border: 1.7px solid #f1f8ff; border-radius: 50%; }
.browser-glyph::after { content: ""; position: absolute; width: 6px; height: 17px; background: linear-gradient(#fff 52%, #9ddfff 52%); clip-path: polygon(50% 0,100% 54%,50% 100%,0 46%); transform: rotate(39deg); }
.settings-glyph { --icon-bg: linear-gradient(145deg, #899ab9, #485a7a); color: #f0f5ff; }
.settings-glyph::before {
  content: "";
  width: 55%;
  aspect-ratio: 1;
  background: currentColor;
  mask: radial-gradient(circle, transparent 20%, #fff 21%);
  clip-path: polygon(40% 0, 60% 0, 64% 15%, 75% 20%, 88% 14%, 100% 31%, 90% 42%, 90% 58%, 100% 69%, 88% 86%, 75% 80%, 64% 85%, 60% 100%, 40% 100%, 36% 85%, 25% 80%, 12% 86%, 0 69%, 10% 58%, 10% 42%, 0 31%, 12% 14%, 25% 20%, 36% 15%);
}
.install-glyph {
  --icon-bg: linear-gradient(145deg, #65c9b5, #298879 82%);
  color: #f6fffc;
}
.install-glyph .install-plus-icon {
  width: 54%;
  aspect-ratio: 1;
  border: 1.7px solid currentColor;
  border-radius: 27%;
  box-shadow: 0 1px 3px #12483b36;
}
.install-plus-icon { display: inline-grid; place-items: center; }
.install-plus-icon::before, .install-plus-icon::after {
  content: "";
  grid-area: 1 / 1;
  width: 55%;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
}
.install-plus-icon::after { transform: rotate(90deg); }
.running-apps { display: flex; gap: 9px; padding-left: 11px; border-left: 1px solid var(--edge); max-width: 220px; overflow: auto; }
.running-app { border: 0; background: none; padding: 0 0 5px; position: relative; border-radius: 9px; flex: none; }
.running-app .tile-icon { width: 34px; height: 34px; border-radius: 9px; }
.running-app[data-visible]::after { content: ""; position: absolute; width: 4px; height: 4px; bottom: 0; left: calc(50% - 2px); border-radius: 50%; background: #b0baff; }

.windows { position: fixed; z-index: 4; inset: 0; pointer-events: none; }
.site-window {
  pointer-events: auto;
  position: absolute;
  display: grid;
  grid-template-rows: 40px 44px minmax(0, 1fr);
  overflow: hidden;
  max-width: calc(100vw - 16px);
  max-height: calc(100vh - 140px);
  border: 1px solid #576685;
  border-radius: 14px;
  background: #1b2337;
  box-shadow: 0 18px 74px #050811d9;
  transform-origin: top left;
}
.site-window.active-window { border-color: #8299d1; }
.site-window.maximized { inset: 42px 10px 77px !important; width: auto !important; height: auto !important; max-height: none; }
.window-bar, .window-address { display: flex; align-items: center; justify-content: space-between; padding-inline: 13px 8px; }
.window-bar { user-select: none; touch-action: none; background: #161d2e; }
.window-name, .window-controls { display: flex; align-items: center; gap: 8px; }
.window-name { align-self: end; min-height: 30px; min-width: 142px; gap: 7px; padding: 4px 12px; border-radius: 8px 8px 0 0; background: #242e46; font-size: 13px; }
.window-name .tile-icon { width: 17px; height: 17px; font-size: 10px; border-radius: 4px; box-shadow: none; }
.window-control { background: transparent; border: 0; width: 30px; height: 30px; border-radius: 7px; font-family: system-ui, sans-serif; font-size: 18px; line-height: 1; }
.window-control:hover { background: #61739757; }
.close-window:hover { background: #a74559; }
.window-address { background: #242e46; gap: 8px; font-size: 13px; }
.address-host {
  flex: 1;
  min-width: 0;
  padding: 6px 12px;
  border: 1px solid #9aafd62b;
  border-radius: 8px;
  background: #141e31;
  color: #dee7f6;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  font-family: system-ui, sans-serif;
}
.browser-control {
  border: 0;
  flex: 0 0 29px;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  padding: 0;
  border-radius: 7px;
  background: none;
  font-family: system-ui, sans-serif;
  font-size: 19px;
  line-height: 1;
}
.browser-home { font-size: 30px; }
.browser-control:hover { background: #6075a250; }
.browser-homebar { display: none; }
.browser-unavailable { display: grid; place-content: center; justify-items: center; gap: 16px; padding: 22px; text-align: center; background: #182137; font-size: 14px; }
.external-button { border: 1px solid #9cace07a; border-radius: 9px; padding: 8px 12px; background: #303f66; }
.external-button:hover { background: #3c507e; }
.contact-email:hover { text-decoration: underline; }
.website-frame { width: 100%; height: 100%; border: 0; background: white; }
.website-content { position: relative; min-height: 0; }
.website-content .website-frame { display: block; }
.website-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #151e30;
}
.website-loading::after {
  content: "";
  width: 32px;
  height: 32px;
  border: 3px solid #b2c2f342;
  border-top-color: #bfceff;
  border-radius: 50%;
  animation: website-spin .74s linear infinite;
}
@keyframes website-spin { to { transform: rotate(1turn); } }
[data-moving] .website-frame { pointer-events: none; }
.resizer { position: absolute; z-index: 2; touch-action: none; }
.resizer-left, .resizer-right { top: 10px; bottom: 19px; width: 6px; cursor: ew-resize; }
.resizer-left { left: 0; }
.resizer-right { right: 0; }
.resizer-bottom { bottom: 0; left: 19px; right: 19px; height: 6px; cursor: ns-resize; }
.resizer-bottom-left, .resizer-bottom-right { bottom: 0; width: 19px; height: 19px; }
.resizer-bottom-left { left: 0; cursor: nesw-resize; }
.resizer-bottom-right { right: 0; cursor: nwse-resize; background: linear-gradient(135deg, transparent 50%, #34435ffa 51%); }
.maximized .resizer { display: none; }

.sheet {
  width: min(380px, calc(100% - 40px));
  border: 1px solid #b6c4ff62;
  border-radius: 17px;
  padding: 0;
  color: #f5f6fc;
  background: #1e2941;
  box-shadow: 0 22px 100px #090a15b9;
}
.sheet::backdrop { background: #070b19a3; backdrop-filter: blur(5px); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--edge); padding: 12px 14px 12px 20px; }
.sheet-head h2 { font-size: 16px; margin: 0; }
.sheet-body { padding: 22px; }
.settings-sheet {
  width: min(438px, calc(100% - 36px));
  max-height: calc(100dvh - 32px);
  border-radius: 25px;
  background: #121b2d;
  overscroll-behavior: contain;
}
.desktop-settings { display: flex; min-height: 100%; flex-direction: column; }
.settings-footer, .modal-homebar {
  position: sticky;
  bottom: 0;
  z-index: 2;
  flex: none;
}
.settings-footer .homebar-hint { font-weight: 650; }
.modal-homebar { --homebar-inset: 0px; }
.settings-header {
  position: sticky;
  top: 0;
  z-index: 1;
  padding-top: env(safe-area-inset-top);
  background: #121b2df2;
}
.settings-status, .settings-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right));
}
.settings-status { height: 28px; font-size: 14px; font-weight: 650; }
.settings-toolbar { min-height: 47px; }
.settings-toolbar button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 0;
  padding: 0 3px;
  color: #c1cdff;
  background: transparent;
  font-size: 15px;
}
.settings-done { margin-left: auto; }
.settings-back::before {
  content: "";
  width: 8px;
  height: 8px;
  border: solid currentColor;
  border-width: 0 0 2px 2px;
  transform: rotate(45deg);
}
.settings-page {
  min-height: 244px;
  flex: 1;
  padding: 4px max(18px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  animation: settings-page-enter .19s ease-out both;
}
@keyframes settings-page-enter { from { opacity: .55; transform: translateX(8px); } }
.settings-page h2 { margin: 0 0 17px; font-size: 32px; letter-spacing: -.035em; }
.settings-page h2:focus { outline: none; }
.settings-group {
  display: grid;
  min-width: 0;
  border: 1px solid #c1ccfa23;
  border-radius: 16px;
  background: #202c46;
}
.settings-row {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 54px;
  padding: 7px 13px;
  border: 0;
  border-radius: 0;
  text-align: left;
  background: transparent;
  font-size: 15px;
}
.settings-row:first-child { border-radius: 15px 15px 0 0; }
.settings-row:last-child { border-radius: 0 0 15px 15px; }
.settings-row:only-child { border-radius: 15px; }
.settings-row + .settings-row { border-top: 1px solid #bccdff23; }
.settings-row:hover { background: #b7c9ff10; }
.settings-menu .settings-row::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: auto;
  border: solid #c0cbea9c;
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
}
.settings-item-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #5363a7;
}
.settings-about-mark { color: #f1f7ff; background: #3c756c; font-size: 19px; font-weight: 750; }
.settings-actions button {
  min-height: 36px;
  border: 0;
  border-radius: 7px;
  background: none;
  font-size: 14px;
}
.settings-actions button { background: #354266; }
.desktop-about { display: grid; gap: 13px; }
.desktop-about header { display: flex; align-items: center; gap: 9px; }
.desktop-about header img { border-radius: 12px; }
.version-row, .settings-server-hide { justify-content: space-between; touch-action: manipulation; }
.version-row span + span { color: var(--muted); font-variant-numeric: tabular-nums; }
.settings-server-hide span + span { color: #c1cdff; }
.desktop-about p { margin: 0; color: var(--muted); font-size: 13px; }
.privacy-settings { display: grid; gap: 18px; }
.privacy-heading { display: flex; gap: 12px; align-items: center; }
.privacy-heading h3, .privacy-heading p { margin: 0; }
.privacy-heading h3 { font-size: 16px; }
.privacy-heading p { margin-top: 4px; color: var(--muted); font-size: 13px; }
.privacy-mark { position: relative; display: grid; place-items: center; flex: none; width: 36px; height: 36px; color: #e2dcff; }
.privacy-mark::before, .privacy-mark::after { content: ""; position: absolute; }
.privacy-mark::before { top: 7px; width: 10px; height: 13px; border: 2px solid currentColor; border-radius: 7px; }
.privacy-mark::after { top: 16px; width: 19px; height: 14px; border-radius: 4px; background: currentColor; }
.privacy-heading .privacy-mark { border-radius: 10px; background: #48517d; }
.tile-icon.private-tile { --icon-bg: linear-gradient(145deg, #6f6498, #3a345c); }
.privacy-form { display: grid; gap: 11px; }
.privacy-form label { text-align: center; font-size: 14px; }
.privacy-pin { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.privacy-digit {
  display: grid;
  place-items: center;
  height: 49px;
  border: 1px solid #94a7d552;
  border-radius: 9px;
  background: #151d31;
}
.privacy-pin:focus-within .privacy-digit[data-current] { border-color: #becbff; }
.privacy-digit[data-filled]::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #eef2ff;
}
.privacy-pin input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: transparent;
  -webkit-text-fill-color: transparent;
  caret-color: transparent;
  font-size: 16px;
}
.privacy-pin input:focus-visible { outline: none; }
.privacy-pin:has(input:disabled) { opacity: .55; }
.privacy-form p { margin: 0; text-align: center; color: #ffc4c9; font-size: 13px; }
.privacy-action {
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  color: #172247;
  background: #c1cfff;
  font-weight: 650;
}
.privacy-action:disabled { opacity: .55; cursor: default; }
.private-site-form { display: grid; gap: 8px; font-size: 14px; }
.private-site-form input {
  width: 100%;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid var(--edge);
  border-radius: 9px;
  background: #151d31;
  color: inherit;
  font-size: 16px;
}
.private-site-form p { margin: 0; color: #ffc4c9; }
.private-site-list { display: grid; gap: 7px; max-height: 120px; margin: 0; padding-inline-start: 18px; overflow: auto; font-size: 14px; }
.settings-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.settings-actions button { padding: 0 9px; }
.install-guide {
  width: min(416px, calc(100% - 22px));
  max-height: calc(100dvh - 22px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  margin: auto auto max(11px, env(safe-area-inset-bottom));
  padding: 0;
  border: 1px solid #bdc9ff35;
  border-radius: 24px;
  color: #f4f6ff;
  background: #171f34;
  box-shadow: 0 20px 80px #070c1b9e;
  overscroll-behavior: contain;
}
.install-guide[open] { animation: install-guide-enter .28s cubic-bezier(.2,.8,.25,1) both; }
.install-guide::backdrop { background: #070b17a8; backdrop-filter: blur(6px); }
.install-guide-panel { padding: 15px clamp(14px, 5vw, 21px) 17px; }
.install-guide-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.install-guide-header h2 { margin: 0; font-size: 19px; letter-spacing: -.025em; }
.install-illustration {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 24px minmax(0, 1fr);
  align-items: center;
  gap: clamp(6px, 2vw, 11px);
  min-height: 159px;
  padding: 10px clamp(8px, 3vw, 16px);
  border: 1px solid #aebfff22;
  border-radius: 17px;
  background: radial-gradient(ellipse at 70% 18%, #333c65, #222b44 74%);
}
.install-browser {
  display: grid;
  gap: 6px;
  width: min(100%, 161px);
  justify-self: end;
}
.install-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 35px;
  padding: 4px 5px 4px 8px;
  border: 1px solid #b5c7ff29;
  border-radius: 10px;
  background: #182238;
}
.install-browser-address { flex: 1; height: 9px; border-radius: 9px; background: #42506e; }
.install-menu-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #b7c8ff;
  color: #202c52;
}
.install-share-icon::before {
  content: "";
  width: 9px;
  height: 8px;
  margin-top: 5px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}
.install-share-icon::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 10px;
  top: 4px;
  background: currentColor;
  clip-path: polygon(50% 0, 100% 40%, 85% 54%, 61% 36%, 61% 100%, 39% 100%, 39% 36%, 15% 54%, 0 40%);
}
.install-more-icon::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 -5px currentColor, 0 5px currentColor;
}
.install-browser-menu {
  display: grid;
  gap: 6px;
  padding: 8px 6px;
  border: 1px solid #b5c7ff34;
  border-radius: 11px;
  background: #303c59;
  box-shadow: 0 8px 16px #10172b56;
}
.install-menu-label { padding-inline: 3px; color: #dae2f6; font-size: 10px; font-weight: 650; }
.install-menu-line { width: 49%; height: 3px; margin-left: 4px; border-radius: 4px; background: #64708b; }
.install-menu-action {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 3px;
  border-radius: 6px;
  color: #232f51;
  background: #c4d3ff;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.install-menu-action .install-plus-icon {
  flex: 0 0 13px;
  height: 13px;
  border: 1px solid currentColor;
  border-radius: 3px;
}
.install-flow-arrow {
  position: relative;
  width: 18px;
  height: 1.5px;
  justify-self: center;
  background: #a9bbf2;
}
.install-flow-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -2.5px;
  width: 6px;
  height: 6px;
  border: solid #a9bbf2;
  border-width: 1.5px 1.5px 0 0;
  transform: rotate(45deg);
}
.install-phone {
  position: relative;
  width: min(100%, 99px);
  height: 137px;
  padding: 22px 6px 12px;
  border: 2px solid #a2b4e8;
  border-radius: 17px;
  background: linear-gradient(155deg, #11182c70, #25265aa0), url("./wallpaper.webp") center / cover;
  box-shadow: 0 7px 17px #11172c66, inset 0 0 0 2px #161f39;
}
.install-phone-camera, .install-phone-home {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 10px;
}
.install-phone-camera { top: 6px; width: 23px; height: 5px; background: #18203a; }
.install-phone-home { bottom: 6px; width: 24px; height: 2px; background: #e5edffb8; }
.install-phone-apps { display: grid; grid-template-columns: repeat(3, 1fr); justify-items: center; gap: 5px 3px; }
.install-phone-apps span { width: min(15px, 100%); aspect-ratio: 1; border-radius: 4px; background: #a1b6ed64; }
.install-phone-apps span:nth-child(3n + 2) { background: #a2e1db60; }
.install-phone-apps span:nth-child(3n) { background: #d0bef266; }
.install-phone-app {
  display: grid;
  justify-items: center;
  gap: 3px;
  margin-top: 8px;
  color: #fff;
  font-size: 9px;
  line-height: 1;
  font-weight: 650;
  text-shadow: 0 1px 4px #131a34;
}
.install-phone-app img { border-radius: 10px; box-shadow: 0 3px 9px #131a37a6; }
.install-guide[open] .install-menu-icon { animation: install-spotlight .58s ease-out .18s; }
.install-guide[open] .install-menu-action { animation: install-spotlight .58s ease-out .78s; }
.install-guide[open] .install-phone-app img { animation: install-icon-arrival .6s cubic-bezier(.22,.8,.36,1) 1.25s both; }
@keyframes install-guide-enter { from { opacity: 0; transform: translateY(18px); } }
@keyframes install-spotlight { 45% { box-shadow: 0 0 0 4px #b9c9ff55; } }
@keyframes install-icon-arrival {
  from { opacity: .35; transform: translate(-12px, 3px) scale(.74); }
  75% { opacity: 1; transform: scale(1.07); }
}
.install-steps {
  display: grid;
  gap: 7px;
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: install-step;
  color: #e7ecff;
  font-size: 13px;
  line-height: 1.4;
}
.install-steps li { display: flex; gap: 8px; align-items: center; counter-increment: install-step; }
.install-steps li::before {
  content: counter(install-step);
  display: grid;
  place-items: center;
  flex: 0 0 19px;
  height: 19px;
  border-radius: 6px;
  background: #324162;
  color: #d8e3ff;
  font-size: 11px;
  font-weight: 700;
}
.install-guide-note { margin: 8px 0 0 27px; color: #b6c3e0; font-size: 11px; line-height: 1.5; }
.install-guide-primary {
  width: 100%;
  min-height: 42px;
  margin-top: 13px;
  border: 0;
  border-radius: 12px;
  background: #c0d0ff;
  color: #152145;
  font-size: 14px;
  font-weight: 750;
}
.contact-body { display: grid; gap: 14px; }
.contact-profile { display: flex; align-items: center; gap: 13px; font-size: 20px; }
.avatar { display: grid; place-items: center; height: 48px; width: 48px; border-radius: 13px; background: linear-gradient(145deg, #a194ed, #6265b2); }
.contact-body p, .sheet-body > p { margin: 0; }
.muted { color: var(--muted); font-size: 14px; }
.wechat-qr { display: block; width: min(100%, 180px); border-radius: 8px; }
.contact-email { color: var(--accent); }

body.mobile-desktop {
  --homebar-height: 44px;
  --homebar-inset: env(safe-area-inset-bottom);
  background-position: center, 54% center, center;
}
body.mobile-desktop #root[data-viewport-zoomed] {
  position: fixed;
  top: var(--mobile-top);
  left: var(--mobile-left);
  width: var(--mobile-width);
  height: var(--mobile-height);
}
body.mobile-desktop #root[data-viewport-zoomed] .workspace {
  height: calc(100% - 40px - env(safe-area-inset-top));
}
body.mobile-desktop #root[data-viewport-zoomed] :is(.dock, .launcher, .windows) {
  position: absolute;
}
body.mobile-desktop #root[data-viewport-zoomed] :is(.sheet, .install-guide) {
  position: absolute;
  inset: var(--mobile-top) auto max(0px, calc(100dvh - var(--mobile-top) - var(--mobile-height)))
    calc(var(--mobile-left) + var(--mobile-width) / 2);
  translate: -50% 0;
  max-width: calc(var(--mobile-width) - 22px);
  max-height: calc(var(--mobile-height) - 22px);
}
body.mobile-desktop .settings-sheet, body.mobile-desktop #root[data-viewport-zoomed] .settings-sheet {
  inset: var(--mobile-top, 0px) auto auto var(--mobile-left, 0px);
  width: var(--mobile-width, 100%);
  height: var(--settings-height, var(--mobile-height, 100dvh));
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  translate: none;
}
body.mobile-desktop .top {
  height: calc(40px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 24px 0;
  border: 0;
  background: none;
  backdrop-filter: none;
}
body.mobile-desktop .brand, body.mobile-desktop .contact-trigger { display: none; }
body.mobile-desktop .top-right { width: 100%; justify-content: space-between; }
body.mobile-desktop #clock { color: #fbfcff; font-size: 14px; font-weight: 650; }
body.mobile-desktop .system-indicators { display: flex; align-items: center; gap: 6px; }
.signal {
  display: inline-block; width: 14px; height: 11px; background: #f3f6ff;
  clip-path: polygon(0 100%,0 74%,17% 74%,17% 100%,28% 100%,28% 48%,44% 48%,44% 100%,56% 100%,56% 24%,72% 24%,72% 100%,83% 100%,83% 0,100% 0,100% 100%);
}
.battery {
  width: 20px; height: 10px; border: 1px solid #ecf0ff90; border-radius: 3px; position: relative;
}
.battery::before, .battery::after { content: ""; position: absolute; background: #f3f6ff; }
.battery::before { inset: 1px 4px 1px 1px; border-radius: 1px; }
.battery::after { right: -3px; top: 2px; width: 1px; height: 4px; }
body.mobile-desktop .workspace {
  touch-action: pan-y;
  user-select: none;
  width: calc(100% - clamp(16px, 5vw, 64px));
  height: calc(100dvh - 40px - env(safe-area-inset-top));
  padding: clamp(2px, 1.3dvh, 14px) 0 max(80px, calc(68px + env(safe-area-inset-bottom)));
}
body.mobile-desktop #apps { overflow: clip; }
body.mobile-desktop .page-track {
  display: flex;
  transform: translateX(calc(var(--page-index, 0) * -100% + var(--page-drag, 0px)));
  transition: transform 270ms cubic-bezier(.22, .72, .24, 1);
}
body.mobile-desktop .page-track.dragging { transition: none; }
body.mobile-desktop .page-track > .app-grid { flex: 0 0 100%; }
body.mobile-desktop .app-grid { gap: 1px 3px; }
body.mobile-desktop .app { min-height: 0; padding: 4px 2px; gap: 6px; }
body.mobile-desktop .tile-icon { width: clamp(43px, 14vw, 58px); height: clamp(43px, 14vw, 58px); border-radius: 14px; font-size: 25px; }
body.mobile-desktop .app-label { font-size: 12px; }
body.mobile-desktop .launcher { top: auto; bottom: max(94px, calc(90px + env(safe-area-inset-bottom)), calc(var(--keyboard-inset, 0px) + 12px)); left: 50%; right: auto; transform: translateX(-50%); }
body.mobile-desktop .launcher .search input { font-size: 16px; }
body.mobile-desktop .dock {
  gap: clamp(6px, 2.55vw, 14px);
  padding: 9px 11px;
  border-radius: 21px;
  bottom: max(14px, calc(env(safe-area-inset-bottom) + 4px));
}
body.mobile-desktop .dock .tile-icon, body.mobile-desktop .dock-glyph { width: clamp(32px, 10.4vw, 45px); height: clamp(32px, 10.4vw, 45px); }
body.mobile-desktop .dock-entry:hover .tile-icon, body.mobile-desktop .dock-entry:hover .dock-glyph { transform: none; }
body.mobile-desktop .dock-entry:hover:not(:focus-visible) .app-label { opacity: 0; }
body.mobile-desktop .running-apps { display: none; }

body.mobile-desktop.browsing { overflow: hidden; }
body.mobile-desktop .windows { z-index: 7; }
body.mobile-desktop .site-window {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  max-height: none;
  border: 0;
  border-radius: 0;
  grid-template-rows: calc(30px + env(safe-area-inset-top)) 31px 43px minmax(0, 1fr) calc(var(--homebar-height) + var(--homebar-inset));
}
body.mobile-desktop .window-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: env(safe-area-inset-top) max(19px, env(safe-area-inset-right)) 0 max(19px, env(safe-area-inset-left));
  background: #161d2e;
}
body.mobile-desktop .window-status .status-time { color: #fbfcff; font-size: 14px; font-weight: 650; }
body.mobile-desktop .window-bar { justify-content: center; padding: 0 12px; }
body.mobile-desktop .window-name { min-height: 0; min-width: 0; align-self: center; padding: 2px 4px; border-radius: 5px; background: none; }
body.mobile-desktop .window-name .tile-icon { width: 15px; height: 15px; border-radius: 4px; font-size: 9px; }
body.mobile-desktop .window-controls, body.mobile-desktop .resizer { display: none; }
body.mobile-desktop .window-address { padding: 0 8px; gap: 5px; }
body.mobile-desktop .address-host { text-align: center; }
body.mobile-desktop .browser-homebar {
  display: grid;
  place-items: start center;
  width: 100%;
  min-height: calc(var(--homebar-height) + var(--homebar-inset));
  border: 0;
  background: #161d2e;
  padding: 17px 0 4px;
}
body.mobile-desktop .settings-footer .browser-homebar { background: #121b2d; }
body.mobile-desktop .browser-homebar::after { content: ""; background: #e5eaf8; width: 101px; height: 4px; border-radius: 9px; }
.homebar-hint {
  position: absolute;
  z-index: 2;
  inset: auto auto calc(var(--homebar-height) + var(--homebar-inset) + 6px) 50%;
  transform: translateX(-50%);
  padding: 8px 15px;
  border: 1px solid #e4e9ff53;
  border-radius: 16px;
  color: #fff;
  background: #1a2946f5;
  box-shadow: 0 6px 18px #080d1866;
  white-space: nowrap;
  font-size: 14px;
  pointer-events: none;
  animation: homebar-tip-in .24s ease-out .38s both;
}
.homebar-hint::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  left: calc(50% - 4px);
  bottom: -5px;
  border: solid #e4e9ff53;
  border-width: 0 1px 1px 0;
  background: #1a2946f5;
  transform: rotate(45deg);
}
body.mobile-desktop .homebar-highlight::after { animation: homebar-nudge .52s ease-in-out .38s 2; }
@keyframes homebar-tip-in {
  from { transform: translate(-50%, 6px); opacity: 0; }
}
@keyframes homebar-nudge {
  50% { transform: translateY(-4px) scaleX(1.12); background: #acbaff; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.experience-window {
  grid-template-rows: 36px minmax(0, 1fr);
  background: #141a26;
}
.experience-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 0 12px;
  user-select: none;
  touch-action: none;
}
.experience-title {
  color: #e4eaf6;
  font-size: 13px;
  font-weight: 650;
}
.experience-official {
  position: absolute;
  z-index: 1;
  right: 12px;
  bottom: 18px;
  min-height: 37px;
  padding: 5px 13px;
  border: 1px solid #f2f5ff75;
  border-radius: 999px;
  background: #16213deb;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  box-shadow: 0 4px 15px #09132766;
  backdrop-filter: blur(12px);
}
.experience-official:hover { background: #273861; }

body:not(.mobile-desktop) .phone-experience {
  grid-template-rows: 30px minmax(0, 1fr) 20px;
  border: 6px solid #283047;
  border-radius: 28px;
  box-shadow: 0 23px 65px #040712d8, 0 0 0 1px #94a5cf69;
}
body:not(.mobile-desktop) .phone-experience .experience-titlebar {
  justify-content: flex-end;
}
body:not(.mobile-desktop) .phone-experience .experience-title { display: none; }
body:not(.mobile-desktop) .phone-experience .experience-titlebar::before {
  content: "";
  position: absolute;
  top: 12px;
  left: calc(50% - 20px);
  width: 40px;
  height: 4px;
  border-radius: 6px;
  background: #56617c;
}
body:not(.mobile-desktop) .phone-experience .browser-homebar {
  display: grid;
  place-items: center;
  border: 0;
  background: #141a26;
}
body:not(.mobile-desktop) .phone-experience .browser-homebar::after {
  content: "";
  width: 84px;
  height: 4px;
  border-radius: 6px;
  background: #d5def1;
}
body:not(.mobile-desktop) .phone-experience .experience-official { bottom: 73px; }

body.mobile-desktop .experience-window {
  grid-template-rows: calc(30px + env(safe-area-inset-top)) minmax(0, 1fr) calc(var(--homebar-height) + var(--homebar-inset));
  transition: transform 300ms cubic-bezier(.24, .72, .26, 1), opacity 300ms ease;
}
body.mobile-desktop .experience-window.under-experience {
  transform: translateX(-5%) scale(.97);
  opacity: .82;
}
body.mobile-desktop .experience-titlebar { display: none; }
body.mobile-desktop .experience-official {
  bottom: calc(76px + env(safe-area-inset-bottom));
  right: max(12px, env(safe-area-inset-right));
}

body:not(.mobile-desktop) .experience-window:not(.phone-experience) .experience-official {
  top: 4px;
  right: 45px;
  bottom: auto;
  min-height: 27px;
  padding-block: 2px;
  box-shadow: none;
}

.download-links { display: flex; flex-wrap: wrap; gap: 10px; }
