:root {
  --tt-ink: #172033;
  --tt-ink-soft: #4d5a70;
  --tt-muted: #707b8e;
  --tt-line: #dbe2ed;
  --tt-line-strong: #c6d0df;
  --tt-canvas: #eef3f9;
  --tt-surface: #ffffff;
  --tt-surface-soft: #f6f8fc;
  --tt-blue: #1756d8;
  --tt-blue-dark: #0f3f9f;
  --tt-blue-soft: #e7efff;
  --tt-amber: #f2b63d;
  --tt-green: #1d8a68;
  --tt-coral: #d65b48;
  --tt-taskbar: #111b2d;
  --tt-radius: 8px;
  --tt-window-shadow: 0 18px 54px rgba(18, 31, 53, 0.22), 0 2px 8px rgba(18, 31, 53, 0.14);
  --tt-title-font: "Segoe UI Variable", "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  max-width: 100%;
  color-scheme: light;
  background: var(--tt-canvas);
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--tt-ink);
  background: var(--tt-canvas);
  font-family: var(--tt-title-font);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.icon {
  display: block;
  width: 20px;
  height: 20px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 6px;
  color: #ffffff;
  background: #111b2d;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.os-shell {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: #dce8f4;
}

body.tiantian-announcement-page-offset .os-shell {
  min-height: calc(100vh - var(--tiantian-announcement-offset));
  min-height: calc(100dvh - var(--tiantian-announcement-offset));
}

.wallpaper {
  position: absolute;
  z-index: -2;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.82) 0 19%, transparent 19% 100%),
    linear-gradient(155deg, #dcecff 0%, #f4f7fa 48%, #dce9f1 100%);
}

.wallpaper::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(21, 52, 91, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 52, 91, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000000 0 64%, transparent 100%);
}

.wallpaper-ribbon {
  position: absolute;
  display: block;
  border-radius: 2px;
  transform: rotate(-18deg);
  transform-origin: center;
}

.ribbon-one {
  top: 12%;
  right: -8%;
  width: 58vw;
  height: 120px;
  background: rgba(23, 86, 216, 0.14);
}

.ribbon-two {
  right: 4%;
  bottom: 7%;
  width: 42vw;
  height: 62px;
  background: rgba(242, 182, 61, 0.25);
}

.ribbon-three {
  bottom: 20%;
  left: -12%;
  width: 35vw;
  height: 54px;
  background: rgba(29, 138, 104, 0.13);
}

.desktop-header {
  position: relative;
  z-index: 12;
  display: flex;
  width: 100%;
  max-width: 100%;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px clamp(16px, 3vw, 36px);
  border-bottom: 1px solid rgba(24, 43, 69, 0.12);
  background: rgba(248, 251, 255, 0.8);
  backdrop-filter: blur(18px) saturate(1.25);
}

.os-brand {
  display: inline-flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  gap: 11px;
  overflow: hidden;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(8, 38, 91, 0.46);
  border-radius: 4px;
  color: #ffffff;
  background: var(--tt-blue);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.14);
  font-size: 13px;
  font-weight: 900;
}

.brand-copy {
  display: grid;
  min-width: 0;
  line-height: 1.2;
}

.brand-copy strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--tt-muted);
  font-size: 11px;
}

.header-actions {
  display: flex;
  min-width: 0;
  flex: 0 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  overflow: hidden;
}

.development-badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid #e4c473;
  border-radius: 4px;
  color: #72531b;
  background: #fff8df;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.development-badge span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d18b18;
  box-shadow: 0 0 0 3px rgba(209, 139, 24, 0.14);
}

.header-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 6px 11px;
  border-radius: 5px;
  color: #34435a;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.header-link:hover {
  background: rgba(255, 255, 255, 0.9);
}

.desktop-main {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(1220px, 100%);
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.36fr);
  grid-template-rows: auto 1fr;
  gap: 24px clamp(24px, 4vw, 56px);
  align-items: start;
  padding: clamp(34px, 6vh, 62px) clamp(22px, 4vw, 54px) 94px;
}

.desktop-intro {
  max-width: 610px;
}

.intro-kicker {
  margin: 0 0 10px;
  color: var(--tt-blue-dark);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.desktop-intro h1 {
  margin: 0;
  color: #14233c;
  font-size: clamp(42px, 6.2vw, 78px);
  font-weight: 820;
  line-height: 0.98;
}

.intro-copy {
  max-width: 580px;
  margin: 17px 0 0;
  color: #48566c;
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.75;
}

.intro-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.intro-flags span {
  padding: 6px 9px;
  border: 1px solid rgba(27, 53, 88, 0.14);
  border-radius: 4px;
  color: #536176;
  background: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  font-weight: 700;
}

.desktop-tiles {
  display: grid;
  max-width: 650px;
  grid-template-columns: repeat(4, minmax(116px, 1fr));
  gap: 10px;
  align-self: end;
}

.desktop-tile {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 134px;
  align-content: space-between;
  gap: 18px;
  overflow: hidden;
  padding: 15px;
  border: 0;
  border-radius: 3px;
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.13), 0 8px 18px rgba(25, 47, 75, 0.12);
}

.desktop-tile::after {
  position: absolute;
  right: 10px;
  bottom: 8px;
  width: 22px;
  height: 22px;
  border-right: 2px solid rgba(255, 255, 255, 0.25);
  border-bottom: 2px solid rgba(255, 255, 255, 0.25);
  content: "";
}

.tile-blue {
  background: #1756d8;
}

.tile-amber {
  color: #2d2416;
  background: #f2b63d;
}

.tile-green {
  background: #167b61;
}

.tile-coral {
  background: #c95643;
}

.tile-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
}

.tile-amber .tile-icon {
  border-color: rgba(45, 36, 22, 0.18);
  background: rgba(255, 255, 255, 0.2);
}

.tile-copy {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  align-content: end;
  gap: 4px;
}

.tile-copy strong {
  font-size: 14px;
  font-weight: 850;
  line-height: 1.25;
}

.tile-copy small {
  overflow-wrap: anywhere;
  font-size: 10.5px;
  line-height: 1.35;
  opacity: 0.76;
}

.tile-corner {
  position: absolute;
  top: 8px;
  right: 9px;
  font-size: 9px;
  font-weight: 800;
  opacity: 0.54;
}

.desktop-aside {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  margin-bottom: 4px;
  padding: 14px;
  border: 1px solid rgba(26, 52, 87, 0.12);
  border-radius: var(--tt-radius);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(14px);
}

.desktop-aside p {
  margin: 0 0 9px;
  color: #68768b;
  font-size: 10.5px;
  font-weight: 850;
  text-transform: uppercase;
}

.desktop-aside a {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 3px;
  border-top: 1px solid rgba(27, 53, 88, 0.1);
  color: #263850;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.desktop-aside a .icon {
  width: 15px;
  height: 15px;
  color: #718099;
}

.windows-layer {
  position: absolute;
  z-index: 20;
  inset: 64px 0 58px;
  min-width: 0;
  pointer-events: none;
}

.os-window {
  position: absolute;
  top: 56px;
  left: max(20px, calc(50vw - 126px));
  display: flex;
  min-width: 0;
  width: min(730px, calc(100vw - 52px));
  max-width: calc(100vw - 52px);
  max-height: calc(100vh - 184px);
  max-height: calc(100dvh - 184px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(28, 47, 75, 0.23);
  border-radius: 7px;
  background: var(--tt-surface);
  box-shadow: var(--tt-window-shadow);
  outline: none;
  pointer-events: auto;
}

.os-window:focus-visible {
  border-color: var(--tt-blue);
  box-shadow: var(--tt-window-shadow), 0 0 0 2px rgba(23, 86, 216, 0.2);
}

.history-window,
.requirements-window,
.security-window {
  top: 76px;
  left: max(18px, calc(50vw - 310px));
  width: min(620px, calc(100vw - 44px));
}

.window-titlebar {
  display: flex;
  min-width: 0;
  min-height: 46px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 8px 7px 12px;
  border-bottom: 1px solid #dfe5ee;
  background: #f7f9fc;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.window-titlebar.is-dragging {
  cursor: grabbing;
}

.window-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  color: #27364c;
  font-size: 12px;
  font-weight: 800;
}

.window-title > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window-app-icon {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 3px;
  color: #ffffff;
  background: var(--tt-blue);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12);
}

.window-app-icon .icon {
  width: 16px;
  height: 16px;
}

.window-app-icon.amber {
  color: #352711;
  background: var(--tt-amber);
}

.window-app-icon.green {
  background: var(--tt-green);
}

.window-app-icon.coral {
  background: var(--tt-coral);
}

.window-controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
}

.window-control {
  display: grid;
  width: 32px;
  height: 30px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 3px;
  color: #56657a;
  background: transparent;
  font-family: "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.window-control:hover {
  color: #1e2e45;
  background: #e7ecf3;
}

.window-control.close:hover {
  color: #ffffff;
  background: #c42b1c;
}

.window-body {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 20px;
  background: #ffffff;
  scrollbar-color: #b9c5d5 transparent;
  scrollbar-width: thin;
}

.channel-toolbar {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.segmented-group {
  display: inline-flex;
  min-width: 0;
  min-height: 34px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #cbd4e1;
  border-radius: 5px;
  background: #f4f7fb;
}

.segment {
  min-width: 58px;
  padding: 6px 11px;
  border: 0;
  border-right: 1px solid #cbd4e1;
  color: #59677b;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.segment:last-child {
  border-right: 0;
}

.segment.is-active {
  color: #ffffff;
  background: var(--tt-blue);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.14);
}

.icon-action {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  margin-left: auto;
  padding: 0;
  border: 1px solid #cfd8e5;
  border-radius: 5px;
  color: #3c4e67;
  background: #ffffff;
  cursor: pointer;
}

.icon-action .icon {
  width: 17px;
  height: 17px;
}

.icon-action.is-loading .icon {
  animation: tt-spin 720ms linear infinite;
}

@keyframes tt-spin {
  to {
    transform: rotate(360deg);
  }
}

.release-overview {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #d9e1ec;
  border-radius: var(--tt-radius);
  background: #f8fafc;
}

.overview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.channel-label {
  color: var(--tt-blue-dark);
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0;
}

.release-state {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  color: #66748a;
  font-size: 10.5px;
  font-weight: 750;
}

.release-state > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e2a324;
  box-shadow: 0 0 0 3px rgba(226, 163, 36, 0.15);
}

.release-state.is-ready > span {
  background: var(--tt-green);
  box-shadow: 0 0 0 3px rgba(29, 138, 104, 0.14);
}

.release-state.is-error > span {
  background: var(--tt-coral);
  box-shadow: 0 0 0 3px rgba(214, 91, 72, 0.14);
}

.overview-main {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 218px);
  gap: 18px;
  align-items: end;
  margin-top: 17px;
}

.version-lockup {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 13px;
}

.version-mark {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  color: #ffffff;
  background: #15243b;
  box-shadow: inset 0 -5px 0 rgba(255, 255, 255, 0.09);
  font-size: 17px;
  font-weight: 900;
}

.version-lockup > div {
  min-width: 0;
}

.version-lockup p {
  margin: 0 0 3px;
  color: #718096;
  font-size: 10.5px;
  font-weight: 700;
}

.version-lockup h2 {
  overflow: hidden;
  margin: 0;
  color: #15243a;
  font-size: clamp(23px, 3vw, 31px);
  font-weight: 820;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.version-lockup span:not(.version-mark) {
  display: block;
  margin-top: 4px;
  color: #69778b;
  font-size: 10.5px;
}

.primary-action,
.secondary-action,
.update-download-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
}

.primary-action {
  padding: 9px 14px;
  color: #ffffff;
  background: var(--tt-blue);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.16);
}

.primary-action .icon {
  width: 16px;
  height: 16px;
}

.primary-action.disabled {
  color: #7b8799;
  background: #dfe5ed;
  box-shadow: none;
  cursor: not-allowed;
}

.release-notes {
  margin: 15px 0 0;
  padding-top: 12px;
  border-top: 1px solid #e1e6ee;
  color: #59687d;
  font-size: 11.5px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.update-checker {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(280px, 1.2fr);
  gap: 18px;
  align-items: center;
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid #d9e1ec;
  border-radius: var(--tt-radius);
}

.checker-copy {
  display: grid;
  gap: 4px;
}

.checker-copy strong {
  color: #26364c;
  font-size: 11.5px;
}

.checker-copy span {
  color: #768296;
  font-size: 10.5px;
  line-height: 1.45;
}

.checker-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.checker-form label {
  grid-column: 1 / -1;
  color: #5f6d82;
  font-size: 10px;
  font-weight: 750;
}

.checker-form input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #cbd5e2;
  border-radius: 4px;
  color: #1f2d42;
  background: #ffffff;
  outline: none;
  font-size: 12px;
}

.checker-form input:focus {
  border-color: var(--tt-blue);
  box-shadow: 0 0 0 2px rgba(23, 86, 216, 0.13);
}

.secondary-action {
  min-width: 66px;
  padding: 8px 14px;
  border: 1px solid #c7d2e2;
  color: #2f4058;
  background: #ffffff;
  cursor: pointer;
}

.update-result {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid #d4dfe9;
  border-radius: 6px;
  color: #4e5e74;
  background: #f7f9fc;
  font-size: 11px;
  line-height: 1.6;
}

.update-result.is-success {
  border-color: #b9dccd;
  color: #205d49;
  background: #eff8f4;
}

.update-result.is-error {
  border-color: #e8c7c1;
  color: #8c3b30;
  background: #fff4f1;
}

.update-result strong {
  color: inherit;
}

.update-result p {
  margin: 4px 0 0;
}

.update-download-link {
  width: fit-content;
  min-height: 34px;
  margin-top: 9px;
  padding: 7px 11px;
  color: #ffffff;
  background: var(--tt-blue);
}

.history-head,
.info-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.window-kicker {
  margin: 0 0 4px;
  color: var(--tt-blue-dark);
  font-size: 9px;
  font-weight: 900;
}

.history-head h2,
.info-heading h2 {
  margin: 0;
  color: #1c2c43;
  font-size: 19px;
  line-height: 1.3;
}

.history-count {
  padding: 5px 8px;
  border: 1px solid #d7e0eb;
  border-radius: 4px;
  color: #6e7b8f;
  background: #f7f9fc;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.history-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 13px 14px;
  border: 1px solid #dfe5ee;
  border-radius: 6px;
  background: #ffffff;
}

.history-item h3 {
  margin: 0;
  color: #22344c;
  font-size: 13px;
}

.history-item p {
  margin: 5px 0 0;
  color: #68758a;
  font-size: 10.5px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin-top: 7px;
  color: #7a8799;
  font-size: 9.5px;
}

.history-download {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid #c9d4e2;
  border-radius: 4px;
  color: #29415f;
  background: #f7f9fc;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.history-download.is-disabled {
  color: #929cad;
  background: #f1f4f8;
  cursor: not-allowed;
}

.empty-state {
  display: grid;
  min-height: 154px;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 25px;
  border: 1px dashed #cbd5e2;
  border-radius: 6px;
  color: #738196;
  background: #f9fbfd;
  text-align: center;
}

.empty-state.compact {
  min-height: 120px;
}

.empty-state .icon {
  width: 28px;
  height: 28px;
  color: #9ba8ba;
}

.empty-state strong {
  color: #56657b;
  font-size: 12px;
}

.empty-state p {
  max-width: 410px;
  margin: 0;
  font-size: 10.5px;
  line-height: 1.6;
}

.info-heading {
  display: block;
}

.info-heading > p:last-child {
  margin: 8px 0 0;
  color: #6b788b;
  font-size: 11px;
  line-height: 1.65;
}

.spec-list,
.security-steps {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.spec-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 12px;
  border: 1px solid #dfe5ee;
  border-radius: 6px;
}

.spec-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 4px;
  color: #264b8e;
  background: #e9f0fc;
}

.spec-icon .icon {
  width: 17px;
  height: 17px;
}

.spec-row strong {
  display: block;
  color: #24364e;
  font-size: 11.5px;
}

.spec-row p {
  margin: 3px 0 0;
  color: #6d7a8d;
  font-size: 10.5px;
  line-height: 1.5;
}

.spec-row b {
  color: #516176;
  font-size: 9.5px;
  white-space: nowrap;
}

.info-footnote {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--tt-amber);
  color: #6b5a37;
  background: #fff9e8;
  font-size: 10px;
  line-height: 1.65;
}

.security-steps > div {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  column-gap: 10px;
  padding: 11px 12px;
  border: 1px solid #dfe5ee;
  border-radius: 6px;
}

.security-steps > div > span {
  display: grid;
  width: 25px;
  height: 25px;
  grid-row: 1 / span 2;
  place-items: center;
  border-radius: 3px;
  color: #ffffff;
  background: #263a55;
  font-size: 10px;
  font-weight: 850;
}

.security-steps strong {
  color: #25374f;
  font-size: 11.5px;
}

.security-steps p {
  margin: 3px 0 0;
  color: #69778b;
  font-size: 10.5px;
  line-height: 1.55;
}

.warning-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid #ebc2bb;
  border-radius: 6px;
  color: #793c33;
  background: #fff5f2;
}

.warning-note .icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.warning-note p {
  display: grid;
  gap: 3px;
  margin: 0;
}

.warning-note strong {
  font-size: 10.5px;
}

.warning-note span {
  font-size: 10px;
  line-height: 1.5;
}

.start-menu {
  position: fixed;
  z-index: 50;
  bottom: 68px;
  left: 12px;
  width: min(392px, calc(100vw - 24px));
  overflow: hidden;
  border: 1px solid rgba(26, 48, 77, 0.25);
  border-radius: 8px;
  background: rgba(248, 251, 255, 0.97);
  box-shadow: 0 22px 58px rgba(15, 29, 49, 0.28);
  backdrop-filter: blur(22px) saturate(1.2);
}

.start-profile {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px;
  border-bottom: 1px solid #dce3ed;
}

.profile-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #1a365e;
  font-size: 11px;
  font-weight: 900;
}

.start-profile div {
  display: grid;
  gap: 3px;
}

.start-profile strong {
  font-size: 12px;
}

.start-profile small {
  color: #778397;
  font-size: 9.5px;
}

.start-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 12px;
}

.start-grid button,
.start-grid a {
  display: grid;
  min-width: 0;
  min-height: 88px;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 9px 5px;
  border: 0;
  border-radius: 3px;
  color: #2f3e54;
  background: transparent;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.start-grid button:hover,
.start-grid a:hover {
  background: #eaf0f8;
}

.start-grid b {
  overflow: hidden;
  max-width: 100%;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.start-tile {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 3px;
  color: #ffffff;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.13);
}

.start-tile .icon {
  width: 17px;
  height: 17px;
}

.start-tile.blue {
  background: var(--tt-blue);
}

.start-tile.amber {
  color: #352711;
  background: var(--tt-amber);
}

.start-tile.green {
  background: var(--tt-green);
}

.start-tile.coral {
  background: var(--tt-coral);
}

.start-tile.ink {
  background: #263b58;
}

.start-tile.sky {
  background: #357fa5;
}

.start-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 15px;
  border-top: 1px solid #dce3ed;
  background: #f1f5fa;
}

.start-footer a {
  color: #5e6d82;
  font-size: 9.5px;
  font-weight: 700;
  text-decoration: none;
}

.taskbar {
  position: absolute;
  z-index: 60;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  color: #eef4ff;
  background: rgba(17, 27, 45, 0.95);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

/* The shared trial feedback widget must not cover taskbar controls or a window. */
body.tt-trial-feedback-active #ttTrialBar {
  bottom: 68px !important;
  z-index: 55;
}

@media (min-width: 781px) {
  body.tt-trial-feedback-active .windows-layer {
    bottom: 112px;
  }

  body.tt-trial-feedback-active .os-window {
    max-height: calc(100vh - 238px);
    max-height: calc(100dvh - 238px);
  }
}

.start-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.start-button .icon {
  width: 18px;
  height: 18px;
}

.taskbar-apps {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
}

.taskbar-app {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #dce8fa;
  background: transparent;
  cursor: pointer;
}

.taskbar-app::after {
  position: absolute;
  right: 9px;
  bottom: 2px;
  left: 9px;
  height: 3px;
  border-radius: 2px;
  background: transparent;
  content: "";
}

.taskbar-app:hover,
.taskbar-app.is-active {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.1);
}

.taskbar-app.is-active::after {
  background: #77adff;
}

.taskbar-app .icon {
  width: 19px;
  height: 19px;
}

.taskbar-tray {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  padding: 0 8px;
}

.connection-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #b7c5d9;
  font-size: 9.5px;
  white-space: nowrap;
}

.connection-state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #62cea9;
}

.connection-state.is-offline i {
  background: #e78572;
}

#taskbarClock {
  min-width: 42px;
  color: #ffffff;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.noscript-message {
  position: fixed;
  z-index: 100;
  right: 12px;
  bottom: 70px;
  left: 12px;
  padding: 12px;
  border: 1px solid #e6bdb6;
  border-radius: 6px;
  color: #81382f;
  background: #fff5f2;
  font-size: 12px;
  text-align: center;
}

.tt-touch-ripple {
  mix-blend-mode: multiply;
}

.tile-blue .tt-touch-ripple,
.tile-green .tt-touch-ripple,
.tile-coral .tt-touch-ripple,
.segment.is-active .tt-touch-ripple,
.primary-action:not(.disabled) .tt-touch-ripple,
.update-download-link .tt-touch-ripple {
  mix-blend-mode: screen;
}

@media (max-width: 1040px) {
  .desktop-main {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 92px;
  }

  .desktop-aside {
    display: none;
  }

  .os-window {
    left: max(18px, calc(50vw - 340px));
  }

  .history-window,
  .requirements-window,
  .security-window {
    left: max(18px, calc(50vw - 310px));
  }
}

@media (max-width: 780px) {
  body {
    overflow: auto;
    overflow-x: clip;
  }

  .os-shell {
    min-height: 100dvh;
    overflow: visible;
    overflow-x: clip;
    padding-bottom: 64px;
  }

  body.tt-trial-feedback-active .os-shell {
    padding-bottom: 118px;
  }

  .wallpaper {
    position: fixed;
  }

  .ribbon-one {
    width: 110vw;
    height: 82px;
  }

  .ribbon-two {
    width: 80vw;
    height: 46px;
  }

  .desktop-header {
    position: sticky;
    top: 0;
    min-height: 58px;
    padding: 8px 12px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-copy small,
  .header-link {
    display: none;
  }

  .development-badge {
    min-height: 28px;
    padding: 4px 8px;
  }

  .desktop-main {
    min-height: auto;
    gap: 24px;
    padding: 32px 14px 18px;
  }

  .desktop-intro h1 {
    font-size: clamp(43px, 15vw, 62px);
  }

  .intro-copy {
    font-size: 13.5px;
  }

  .desktop-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .desktop-tile {
    min-height: 112px;
    padding: 12px;
  }

  .tile-icon {
    width: 30px;
    height: 30px;
  }

  .tile-copy strong {
    font-size: 12px;
  }

  .windows-layer {
    position: relative;
    inset: auto;
    max-width: 100%;
    padding: 0 12px 16px;
    pointer-events: auto;
  }

  .os-window,
  .history-window,
  .requirements-window,
  .security-window {
    position: relative;
    top: auto !important;
    left: auto !important;
    width: 100%;
    max-width: 100%;
    max-height: none;
    margin: 0 0 12px;
    transform: none !important;
  }

  .window-titlebar {
    cursor: default;
  }

  .window-body {
    overflow: visible;
    padding: 15px;
  }

  .overview-main {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .primary-action {
    width: 100%;
  }

  .update-checker {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .taskbar {
    position: fixed;
    min-height: 58px;
  }

  .start-menu {
    position: fixed;
    bottom: 66px;
  }

  .connection-state {
    display: none;
  }
}

@media (max-width: 480px) {
  .desktop-header {
    gap: 8px;
    padding-right: 9px;
    padding-left: 9px;
  }

  .header-actions {
    gap: 3px;
  }

  .development-badge {
    min-height: 27px;
    padding: 4px 7px;
    font-size: 10px;
  }

  .desktop-main {
    padding-top: 26px;
  }

  .intro-kicker {
    font-size: 10px;
  }

  .desktop-intro h1 {
    font-size: 46px;
  }

  .intro-flags span {
    font-size: 9.5px;
  }

  .desktop-tile {
    min-height: 104px;
  }

  .channel-toolbar {
    flex-wrap: nowrap;
    gap: 6px;
  }

  .segmented-group {
    min-width: 0;
    flex: 1 1 92px;
  }

  .segment {
    min-width: 0;
    flex: 1 1 50%;
    padding-right: 7px;
    padding-left: 7px;
  }

  .icon-action {
    width: 34px;
    height: 34px;
    margin-left: 0;
  }

  .release-overview {
    padding: 14px;
  }

  .overview-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .version-mark {
    width: 46px;
    height: 46px;
  }

  .version-lockup h2 {
    font-size: 22px;
  }

  .checker-form {
    grid-template-columns: 1fr;
  }

  .checker-form label {
    grid-column: auto;
  }

  .secondary-action {
    width: 100%;
  }

  .history-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .history-item {
    grid-template-columns: 1fr;
  }

  .history-download {
    width: 100%;
  }

  .spec-row {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .spec-row b {
    grid-column: 2;
  }

  .taskbar-apps {
    flex: 1 1 auto;
    justify-content: center;
    gap: 1px;
  }

  .taskbar-app {
    width: 34px;
    height: 40px;
  }

  .start-button {
    min-width: 36px;
    padding: 8px 9px;
  }

  .start-button span {
    display: none;
  }

  .taskbar-tray {
    flex: 0 0 auto;
    margin-left: 0;
    padding-right: 2px;
  }

  .start-grid {
    gap: 2px;
    padding: 9px;
  }
}

@media (max-width: 360px) {
  .desktop-tiles {
    grid-template-columns: 1fr;
  }

  .desktop-tile {
    min-height: 94px;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }

  .tile-copy {
    align-content: center;
  }

  .start-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .taskbar-app:nth-child(4) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
