:root {
  color-scheme: dark;
  --bg: #111418;
  --panel: #191d23;
  --panel-2: #222832;
  --line: #353c48;
  --text: #eef2f5;
  --muted: #9ea8b5;
  --soft: #cad2dc;
  --accent: #56a3ff;
  --accent-2: #55c792;
  --warn: #f0b85a;
  --danger: #ff6b70;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  letter-spacing: 0;
}

button,
select,
input {
  font: inherit;
}

button {
  border: 0;
}

.boot-screen,
.landing {
  min-height: 100%;
  background:
    linear-gradient(120deg, rgba(86, 163, 255, 0.16), transparent 35%),
    linear-gradient(240deg, rgba(85, 199, 146, 0.12), transparent 42%),
    #0f1216;
}

.boot-screen {
  display: grid;
  place-items: center;
}

.boot-panel {
  width: min(440px, calc(100vw - 40px));
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(22, 27, 33, 0.86);
  box-shadow: var(--shadow);
  border-radius: 8px;
}

.boot-title {
  font-size: 17px;
  font-weight: 700;
}

.boot-copy {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.boot-meter {
  height: 6px;
  margin-top: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
}

.boot-meter span {
  display: block;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: inherit;
  animation: bootSlide 1.2s ease-in-out infinite;
}

@keyframes bootSlide {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(260%);
  }
}

.landing {
  display: grid;
  grid-template-columns: minmax(320px, 480px) minmax(0, 1fr);
  gap: 28px;
  height: 100%;
  overflow: auto;
  padding: 28px;
}

.landing-left,
.landing-preview {
  min-height: 0;
}

.landing-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.landing-language {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.landing-language .select-field {
  width: 112px;
  min-height: 32px;
}

.product-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-dot {
  width: 10px;
  height: 10px;
  background: var(--accent-2);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(85, 199, 146, 0.8);
}

.landing h1 {
  margin: 18px 0 12px;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: 0;
}

.landing-copy {
  max-width: 640px;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.6;
}

.section-title {
  margin: 24px 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.os-grid,
.stack-grid,
.preset-grid {
  display: grid;
  gap: 10px;
}

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

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

.preset-grid {
  max-height: 240px;
  overflow: auto;
  padding-right: 4px;
}

.choice,
.preset-choice,
.tool-button,
.primary-button,
.ghost-button,
.icon-button,
.select-field {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.choice,
.preset-choice {
  min-height: 78px;
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.choice:hover,
.preset-choice:hover,
.tool-button:hover,
.ghost-button:hover,
.icon-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.choice.active,
.preset-choice.active {
  border-color: rgba(86, 163, 255, 0.9);
  background: rgba(86, 163, 255, 0.18);
}

.choice strong,
.preset-choice strong {
  display: block;
  font-size: 14px;
}

.choice span,
.preset-choice span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.landing-actions,
.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.primary-button,
.ghost-button,
.tool-button,
.icon-button {
  min-height: 38px;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 700;
}

.primary-button {
  background: linear-gradient(135deg, #2d8cff, #3ac487);
  color: #071015;
}

.ghost-button {
  color: var(--soft);
}

.landing-preview {
  display: flex;
  position: sticky;
  top: 28px;
  height: calc(100vh - 56px);
  align-self: start;
  align-items: stretch;
}

.preview-frame {
  width: 100%;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #161b22;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.app-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  width: 100%;
  height: 100%;
  background: #0d1014;
}

.app-shell.show {
  display: block;
}

.control-panel {
  min-height: 100%;
  overflow: auto;
  padding: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: #151a20;
}

.control-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.control-header h2 {
  margin: 0;
  font-size: 16px;
}

.subtle {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.control-group {
  margin-top: 18px;
}

.label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.select-field,
.text-field {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.text-field {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.scene-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.builder-preset-grid {
  display: grid;
  gap: 8px;
  max-height: 216px;
  overflow: auto;
  padding-right: 3px;
}

.builder-preset {
  min-height: 58px;
  padding: 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
}

.builder-preset:hover {
  background: rgba(255, 255, 255, 0.1);
}

.builder-preset.active {
  border-color: rgba(86, 163, 255, 0.9);
  background: rgba(86, 163, 255, 0.18);
}

.builder-preset strong,
.builder-preset span {
  display: block;
}

.builder-preset strong {
  font-size: 12px;
  line-height: 1.3;
}

.builder-preset span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

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

.tool-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 36px;
  padding: 0 10px;
  color: var(--soft);
  font-size: 12px;
  text-align: left;
}

.window-list {
  display: grid;
  max-height: 224px;
  overflow: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.window-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px 30px;
  min-height: 44px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.window-list-row:last-child {
  border-bottom: 0;
}

.window-list-row.active {
  background: rgba(86, 163, 255, 0.13);
}

.window-list-row.minimized .window-list-main {
  opacity: 0.62;
}

.window-list-main {
  display: flex;
  min-width: 0;
  min-height: 43px;
  align-items: center;
  gap: 8px;
  padding: 5px 7px;
  color: var(--soft);
  background: transparent;
  text-align: left;
}

.window-list-main:hover,
.window-list-action:hover {
  background: rgba(255, 255, 255, 0.07);
}

.window-list-main .window-app-icon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}

.window-list-copy {
  display: block;
  min-width: 0;
}

.window-list-copy strong,
.window-list-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window-list-copy strong {
  font-size: 11px;
  font-weight: 650;
}

.window-list-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.window-list-action {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--muted);
  background: transparent;
}

.window-list-action svg {
  width: 15px;
  height: 15px;
}

.window-list-action.close:hover {
  color: #fff;
  background: rgba(255, 79, 88, 0.72);
}

.toolbar-actions.compact {
  margin-top: 10px;
}

.inspector {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.desktop-wrap {
  min-width: 0;
  min-height: 0;
  padding: 12px;
  overflow: hidden;
}

.app-shell.show .desktop-wrap {
  width: 100%;
  height: 100%;
  padding: 0;
}

.desktop {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: var(--desktop-wallpaper, #1d2630);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.app-shell.show .desktop {
  min-height: 100%;
  border: 0;
  border-radius: 0;
}

.shell-panel {
  position: absolute;
  z-index: 290;
  overflow: hidden;
  color: #17202c;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}

.windows-shell-panel {
  left: 50%;
  bottom: 56px;
  width: min(560px, calc(100% - 24px));
  max-height: min(650px, calc(100% - 80px));
  padding: 22px;
  background: rgba(240, 246, 253, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 10px;
  transform: translateX(-50%);
  backdrop-filter: blur(30px) saturate(130%);
}

.windows-10 .windows-shell-panel {
  left: 0;
  bottom: 40px;
  width: min(520px, calc(100% - 8px));
  padding: 18px;
  background: rgba(25, 31, 40, 0.98);
  color: #f4f7fb;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 0;
  transform: none;
  backdrop-filter: none;
}

.shell-search-field,
.explorer-address {
  display: flex;
  height: 38px;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  color: #536173;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(90, 107, 128, 0.24);
  border-radius: 6px;
  font-size: 12px;
}

.windows-10 .shell-search-field,
.windows-10 .explorer-address {
  color: #dce3ec;
  background: #303844;
  border-color: rgba(255, 255, 255, 0.12);
}

.shell-search-field svg {
  width: 18px;
  height: 18px;
}

.shell-section-title {
  margin: 18px 2px 10px;
  color: inherit;
  font-size: 12px;
  font-weight: 750;
}

.shell-launch-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.shell-launch-grid button {
  display: flex;
  min-width: 0;
  height: 78px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: inherit;
  background: transparent;
  border-radius: 5px;
  font-size: 11px;
}

.shell-launch-grid button:hover,
.shell-window-row:hover {
  background: rgba(73, 108, 148, 0.12);
}

.windows-10 .shell-launch-grid button:hover,
.windows-10 .shell-window-row:hover {
  background: rgba(255, 255, 255, 0.09);
}

.shell-launch-grid .window-app-icon {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
}

.shell-launch-grid [data-type="cursor"] .window-app-icon,
.shell-launch-grid [data-type="codex-app"] .window-app-icon {
  padding: 5px;
  background: #171a1f;
  border-radius: 7px;
}

.shell-file-list,
.shell-window-list {
  display: grid;
  max-height: 270px;
  overflow: auto;
}

.shell-file-row,
.shell-window-row {
  display: grid;
  min-width: 0;
  min-height: 42px;
  align-items: center;
  color: inherit;
  background: transparent;
  border-bottom: 1px solid rgba(91, 108, 128, 0.12);
  text-align: left;
}

.shell-file-row {
  grid-template-columns: minmax(150px, 0.85fr) minmax(0, 1.65fr);
  gap: 12px;
  padding: 6px 8px;
}

.shell-file-name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.shell-file-name i {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #56a3ff;
}

.shell-file-name i svg {
  width: 100%;
  height: 100%;
}

.shell-file-name b {
  min-width: 0;
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shell-window-row {
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  padding: 6px 8px;
}

.shell-file-row span,
.shell-file-row small,
.shell-window-row strong,
.shell-window-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shell-file-row small,
.shell-window-row small {
  color: #738094;
  font-size: 10px;
}

.shell-window-row span,
.shell-window-row strong,
.shell-window-row small {
  display: block;
  min-width: 0;
}

.shell-window-row .window-app-icon {
  width: 20px;
  height: 20px;
}

.start-panel footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px -22px -22px;
  padding: 12px 24px;
  background: rgba(215, 225, 237, 0.72);
  font-size: 12px;
}

.windows-10 .start-panel footer {
  margin: 14px -18px -18px;
  background: #202731;
}

.settings-panel,
.calendar-panel,
.notifications-panel {
  right: 12px;
  left: auto;
  width: min(360px, calc(100% - 24px));
  padding: 16px;
  transform: none;
}

.windows-10 .settings-panel,
.windows-10 .calendar-panel,
.windows-10 .notifications-panel {
  right: 0;
  left: auto;
  width: min(360px, calc(100% - 8px));
  padding: 16px;
}

.quick-setting-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.quick-setting-grid button {
  display: grid;
  min-width: 0;
  height: 44px;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  padding: 0 10px 0 0;
  overflow: hidden;
  color: inherit;
  background: rgba(97, 117, 141, 0.12);
  border: 1px solid rgba(79, 99, 123, 0.12);
  border-radius: 5px;
  font-size: 11px;
  text-align: left;
}

.quick-setting-grid button.active {
  color: #fff;
  background: #176db6;
  border-color: #176db6;
}

.windows-10 .quick-setting-grid button {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
}

.windows-10 .quick-setting-grid button.active {
  background: #0067c0;
}

.quick-setting-grid svg,
.quick-setting-glyph {
  display: block;
  width: 17px;
  height: 17px;
  margin: auto;
}

.quick-setting-glyph {
  font-size: 17px;
  line-height: 17px;
  text-align: center;
}

.quick-setting-grid button span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-slider {
  display: grid;
  height: 42px;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 7px;
}

.quick-slider > span,
.quick-slider > span svg {
  display: block;
  width: 18px;
  height: 18px;
}

.quick-slider i {
  position: relative;
  display: block;
  height: 4px;
  background: rgba(74, 90, 110, 0.24);
  border-radius: 4px;
}

.quick-slider b {
  position: absolute;
  inset: 0 auto 0 0;
  background: #176db6;
  border-radius: inherit;
}

.quick-slider b::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -7px;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 50%;
}

.settings-panel footer,
.calendar-panel header,
.notifications-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.settings-panel footer {
  margin: 8px -16px -16px;
  padding: 10px 16px;
  background: rgba(204, 216, 230, 0.52);
  font-size: 10px;
}

.windows-10 .settings-panel footer {
  background: rgba(255, 255, 255, 0.05);
}

.notifications-panel header button {
  color: inherit;
  background: transparent;
  font-size: 11px;
}

.calendar-clock {
  display: flex;
  flex-direction: column;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(79, 99, 123, 0.16);
}

.calendar-clock strong {
  font-size: 26px;
  font-weight: 400;
}

.calendar-clock span,
.calendar-panel header span {
  color: #68778b;
  font-size: 11px;
}

.windows-10 .calendar-clock span,
.windows-10 .calendar-panel header span {
  color: #abb6c4;
}

.calendar-panel header {
  padding: 14px 2px 10px;
  font-size: 12px;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}

.calendar-weekdays {
  color: #69788c;
  font-size: 9px;
}

.calendar-grid span {
  display: grid;
  height: 32px;
  place-items: center;
  font-size: 11px;
}

.calendar-grid span.today {
  color: #fff;
  background: #176db6;
  border-radius: 50%;
}

.notifications-panel header {
  margin-bottom: 8px;
  font-size: 12px;
}

.notification-row {
  position: relative;
  display: grid;
  gap: 3px;
  min-height: 62px;
  padding: 10px 54px 10px 12px;
  background: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(79, 99, 123, 0.12);
  font-size: 11px;
}

.windows-10 .notification-row {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.notification-row strong {
  font-size: 11px;
}

.notification-row span {
  color: #5e6c7d;
}

.windows-10 .notification-row span {
  color: #bec7d2;
}

.notification-row small {
  position: absolute;
  top: 11px;
  right: 12px;
  color: #7a8797;
  font-size: 9px;
}

.files-panel,
.taskview-panel {
  width: min(720px, calc(100% - 24px));
}

.files-panel header,
.mac-shell-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 13px;
}

.explorer-layout,
.finder-layout {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 260px;
  margin-top: 10px;
  overflow: hidden;
}

.explorer-layout aside,
.finder-layout aside {
  padding: 14px;
  color: #69778a;
  border-right: 1px solid rgba(91, 108, 128, 0.16);
  font-size: 11px;
  line-height: 2.1;
}

.explorer-layout main,
.finder-layout main {
  min-width: 0;
  padding: 8px 12px;
}

.mac-shell-panel {
  left: 50%;
  bottom: 90px;
  width: min(720px, calc(100% - 28px));
  max-height: calc(100% - 130px);
  padding: 16px;
  color: #e8eaed;
  background: rgba(35, 37, 41, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  transform: translateX(-50%);
  backdrop-filter: blur(30px) saturate(130%);
}

.finder-toolbar {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}

.finder-nav-icons,
.finder-location,
.finder-view-icon {
  display: flex;
  height: 28px;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
}

.finder-nav-icons {
  justify-content: space-evenly;
}

.finder-nav-icons span,
.finder-view-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  color: #c8ced7;
}

.finder-nav-icons svg,
.finder-view-icon svg {
  width: 18px;
  height: 18px;
}

.finder-location {
  min-width: 0;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  color: #b7bec8;
  font-size: 11px;
}

.finder-location img {
  width: 17px;
  height: 17px;
  object-fit: contain;
}

.finder-location span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finder-view-icon {
  color: #bfc6d0;
}

.finder-layout {
  grid-template-columns: 160px minmax(0, 1fr);
}

.finder-layout aside {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
  padding: 12px 10px;
  line-height: 1.3;
}

.finder-layout aside > strong {
  margin: 3px 8px 6px;
  color: #8e98a7;
  font-size: 10px;
  text-transform: uppercase;
}

.finder-sidebar-item {
  display: flex;
  min-width: 0;
  height: 28px;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  color: #c9cfd8;
  border-radius: 5px;
}

.finder-sidebar-item.active {
  background: rgba(255, 255, 255, 0.08);
}

.finder-sidebar-item i {
  display: inline-flex;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  color: #4ca3ff;
}

.finder-sidebar-item svg {
  width: 100%;
  height: 100%;
}

.finder-sidebar-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finder-file-list {
  overflow: hidden;
}

.mac-shell-panel .shell-file-row {
  grid-template-columns: minmax(180px, 0.9fr) minmax(0, 1.4fr);
  color: #e6e9ee;
  border-color: rgba(255, 255, 255, 0.08);
}

.shell-empty {
  padding: 24px 8px;
  color: #738094;
  font-size: 12px;
}

.desktop.macos-modern {
  --desktop-wallpaper:
    radial-gradient(ellipse 78% 62% at 18% 16%, rgba(255, 214, 150, 0.88) 0 14%, transparent 43%),
    radial-gradient(ellipse 75% 88% at 78% 20%, rgba(255, 93, 132, 0.72) 0 18%, transparent 55%),
    radial-gradient(ellipse 76% 92% at 16% 92%, rgba(48, 120, 255, 0.82) 0 23%, transparent 60%),
    radial-gradient(ellipse 78% 76% at 82% 84%, rgba(61, 214, 170, 0.62) 0 18%, transparent 58%),
    linear-gradient(135deg, #32154b 0%, #12264d 46%, #071827 100%);
}

.desktop.windows-11 {
  --desktop-wallpaper:
    radial-gradient(ellipse 32% 58% at 50% 58%, rgba(121, 205, 255, 0.58) 0 18%, transparent 48%),
    radial-gradient(ellipse 44% 58% at 44% 48%, rgba(56, 131, 255, 0.66) 0 18%, transparent 58%),
    radial-gradient(ellipse 44% 56% at 58% 52%, rgba(139, 83, 255, 0.48) 0 16%, transparent 56%),
    radial-gradient(ellipse 42% 32% at 50% 66%, rgba(255, 255, 255, 0.3) 0 9%, transparent 42%),
    linear-gradient(140deg, #081627 0%, #0b1d38 42%, #111827 100%);
}

.desktop.windows-10 {
  --desktop-wallpaper:
    linear-gradient(90deg, transparent 0 44%, rgba(37, 157, 255, 0.84) 44% 45%, rgba(255, 255, 255, 0.22) 45% 45.4%, transparent 45.4% 100%),
    linear-gradient(180deg, transparent 0 48%, rgba(37, 157, 255, 0.78) 48% 49%, rgba(255, 255, 255, 0.2) 49% 49.3%, transparent 49.3% 100%),
    linear-gradient(102deg, transparent 0 43%, rgba(43, 158, 255, 0.52) 43% 62%, transparent 62%),
    radial-gradient(ellipse 60% 80% at 54% 52%, rgba(20, 139, 255, 0.52), transparent 42%),
    linear-gradient(135deg, #06172a 0%, #063c7c 54%, #02101f 100%);
}

.menu-bar,
.taskbar,
.dock {
  position: absolute;
  z-index: 300;
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.86);
  user-select: none;
  pointer-events: none;
}

.menu-bar {
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  padding: 0 12px;
  gap: 16px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(24, 26, 31, 0.42);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(24px) saturate(145%);
  font-size: 13px;
  letter-spacing: 0;
  box-shadow: 0 1px 18px rgba(0, 0, 0, 0.16);
}

.menu-bar strong {
  font-weight: 700;
}

.menu-spacer {
  flex: 1;
}

.mac-menu-mark {
  position: relative;
  width: 15px;
  height: 16px;
  margin-right: -5px;
}

.mac-menu-mark::before,
.mac-menu-mark::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
}

.mac-menu-mark::before {
  left: 3px;
  bottom: 1px;
  width: 10px;
  height: 12px;
  border-radius: 7px 7px 6px 6px;
  transform: rotate(-8deg);
}

.mac-menu-mark::after {
  left: 8px;
  top: 0;
  width: 5px;
  height: 7px;
  border-radius: 5px 0 5px 0;
  transform: rotate(28deg);
}

.menu-status {
  position: relative;
  display: inline-flex;
  width: 20px;
  height: 14px;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
}

.status-wifi svg {
  display: block;
  width: 20px;
  height: 15px;
  overflow: visible;
}

.status-wifi path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.status-wifi circle {
  fill: currentColor;
  stroke: none;
}

.status-battery::before {
  content: "";
  width: 15px;
  height: 8px;
  border: 1.4px solid rgba(255, 255, 255, 0.88);
  border-radius: 2px;
  box-shadow: inset 10px 0 0 rgba(255, 255, 255, 0.88);
}

.status-battery::after {
  content: "";
  width: 2px;
  height: 4px;
  margin-left: 1px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 0 1px 1px 0;
}

.dock {
  left: 50%;
  bottom: 10px;
  gap: 7px;
  height: 68px;
  padding: 9px 12px 13px;
  transform: translateX(-50%);
  background: rgba(246, 248, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 20px;
  backdrop-filter: blur(28px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 18px 50px rgba(0, 0, 0, 0.28);
}

.dock-separator {
  width: 1px;
  height: 44px;
  margin: 0 5px;
  background: rgba(255, 255, 255, 0.34);
}

.dock-icon,
.task-icon {
  position: relative;
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 9px;
  background: linear-gradient(135deg, #f5f7fb, #6aa9ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 5px 14px rgba(0, 0, 0, 0.18);
}

.dock-icon {
  width: 48px;
  height: 48px;
  overflow: visible;
  border-radius: 12px;
}

.task-icon {
  width: 40px;
  height: 40px;
  overflow: visible;
  background: transparent;
  border-radius: 6px;
  box-shadow: none;
}

.windows-11 .task-icon.active {
  background: rgba(255, 255, 255, 0.11);
}

.windows-10 .task-icon {
  width: 40px;
  height: 40px;
  border-radius: 0;
}

.windows-10 .task-icon.active {
  background: rgba(255, 255, 255, 0.14);
}

.dock-icon.active::after,
.task-icon.active::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
}

.dock-icon.active::after {
  bottom: -8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

.task-icon.active::after {
  bottom: 2px;
  width: 16px;
  height: 3px;
  background: #72b7ff;
  border-radius: 999px;
}

.windows-10 .task-icon.active::after {
  bottom: 0;
  width: 40px;
  height: 2px;
  background: #63b3ff;
  border-radius: 0;
}

.icon-finder {
  background:
    radial-gradient(circle at 35% 43%, #0c335a 0 1.7px, transparent 2px),
    radial-gradient(circle at 65% 43%, #0c335a 0 1.7px, transparent 2px),
    linear-gradient(#0c335a, #0c335a) 50% 57% / 18px 2px no-repeat,
    linear-gradient(90deg, #7fd0ff 0 50%, #2d91f4 50%),
    linear-gradient(135deg, #dff3ff, #1d77dc);
}

.icon-finder::before {
  content: "";
  width: 25px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-top: 0;
  border-radius: 0 0 11px 11px;
  box-shadow: 9px 0 0 -8px rgba(255, 255, 255, 0.86);
}

.icon-terminal {
  background:
    linear-gradient(#78f29b, #78f29b) 20px 28px / 14px 2px no-repeat,
    linear-gradient(45deg, transparent 0 43%, #78f29b 44% 58%, transparent 59% 100%) 13px 18px / 9px 9px no-repeat,
    linear-gradient(-45deg, transparent 0 43%, #78f29b 44% 58%, transparent 59% 100%) 13px 23px / 9px 9px no-repeat,
    linear-gradient(135deg, #20242b, #050709);
}

.icon-terminal::before {
  content: ">";
  color: #78f29b;
  font: 700 17px/1.1 ui-monospace, SFMono-Regular, Menlo, monospace;
  transform: translateX(-2px);
}

.icon-terminal::after {
  box-shadow: none;
}

.task-icon.icon-terminal::before,
.task-icon.icon-code::before,
.task-icon.icon-cursor::before,
.task-icon.icon-browser::before,
.task-icon.icon-ai::before,
.task-icon.icon-folder::before {
  content: "";
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 6px;
  transform: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.22);
}

.task-icon.icon-terminal::before {
  background:
    linear-gradient(#78f29b, #78f29b) 10px 15px / 7px 1.5px no-repeat,
    linear-gradient(45deg, transparent 0 42%, #78f29b 43% 58%, transparent 59% 100%) 6px 8px / 6px 6px no-repeat,
    linear-gradient(-45deg, transparent 0 42%, #78f29b 43% 58%, transparent 59% 100%) 6px 11px / 6px 6px no-repeat,
    linear-gradient(135deg, #1d222b, #07090d);
}

.icon-code {
  background:
    linear-gradient(135deg, transparent 42%, rgba(255, 255, 255, 0.9) 43% 54%, transparent 55%) 11px 12px / 9px 24px no-repeat,
    linear-gradient(45deg, transparent 42%, rgba(255, 255, 255, 0.9) 43% 54%, transparent 55%) 25px 12px / 9px 24px no-repeat,
    linear-gradient(135deg, #1687ff, #0062c7);
}

.icon-code::before {
  content: "";
  width: 16px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-left: 0;
  border-radius: 3px;
  transform: skewX(-13deg);
}

.task-icon.icon-code::before {
  background:
    linear-gradient(135deg, transparent 42%, rgba(255, 255, 255, 0.92) 43% 56%, transparent 57%) 5px 5px / 7px 14px no-repeat,
    linear-gradient(45deg, transparent 42%, rgba(255, 255, 255, 0.92) 43% 56%, transparent 57%) 13px 5px / 7px 14px no-repeat,
    linear-gradient(135deg, #1687ff, #0067d5);
}

.icon-cursor {
  background: linear-gradient(135deg, #15191f, #414a5a);
}

.icon-cursor::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 18px solid rgba(255, 255, 255, 0.92);
  border-right: 12px solid transparent;
  transform: rotate(-13deg);
}

.task-icon.icon-cursor::before {
  width: 24px;
  height: 24px;
  background:
    linear-gradient(27deg, transparent 0 42%, rgba(255, 255, 255, 0.92) 43% 57%, transparent 58%) 9px 7px / 8px 15px no-repeat,
    linear-gradient(135deg, #15191f, #424b58);
  clip-path: none;
}

.icon-browser {
  background:
    radial-gradient(circle at 50% 50%, #eef7ff 0 20%, #1885ff 21% 36%, transparent 37%),
    conic-gradient(#ef4444 0 32%, #facc15 32% 58%, #22c55e 58% 78%, #3b82f6 78% 100%);
}

.task-icon.icon-browser::before {
  background:
    radial-gradient(circle at 50% 50%, #eef7ff 0 19%, #1b84f1 20% 36%, transparent 37%),
    conic-gradient(#ef4444 0 32%, #facc15 32% 58%, #22c55e 58% 78%, #3b82f6 78% 100%);
  border-radius: 50%;
}

.icon-ai {
  background: linear-gradient(135deg, #efe7d7, #d97757 56%, #7c3aed);
}

.icon-ai::before {
  content: "";
  width: 21px;
  height: 21px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  box-shadow: inset 7px 0 0 rgba(255, 255, 255, 0.28);
}

.task-icon.icon-ai::before {
  background:
    radial-gradient(circle at 50% 50%, transparent 0 34%, rgba(255, 255, 255, 0.86) 35% 43%, transparent 44%),
    linear-gradient(135deg, #efe7d7, #d97757 56%, #7c3aed);
}

.icon-folder {
  background:
    linear-gradient(180deg, #ffe28a 0 28%, transparent 28%) 9px 8px / 20px 12px no-repeat,
    linear-gradient(180deg, #ffd36f 0 28%, #f4a51c 28% 100%);
}

.icon-folder::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 9px;
  width: 18px;
  height: 8px;
  background: #ffe39a;
  border-radius: 4px 4px 0 0;
}

.task-icon.icon-folder::before {
  background:
    linear-gradient(180deg, #ffe79a 0 33%, transparent 34%) 5px 4px / 12px 8px no-repeat,
    linear-gradient(180deg, #ffd971 0 30%, #f1a91d 30% 100%);
  border-radius: 4px;
}

.icon-trash {
  background: linear-gradient(180deg, #edf2f7, #99a5b3);
}

.icon-trash::before {
  content: "";
  width: 22px;
  height: 28px;
  border: 2px solid rgba(31, 41, 55, 0.5);
  border-top-width: 5px;
  border-radius: 4px 4px 8px 8px;
}

.taskbar {
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  padding: 0 12px;
  background: rgba(24, 32, 48, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(24px) saturate(145%);
  font-size: 12px;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.2);
}

.windows-10 .taskbar {
  height: 40px;
  padding: 0;
  background: rgba(19, 32, 50, 0.96);
  border-top: 0;
  backdrop-filter: none;
  justify-content: flex-start;
  box-shadow: none;
}

.windows-11 .taskbar {
  justify-content: center;
}

.start-button {
  position: relative;
  width: 36px;
  height: 36px;
  margin-right: 2px;
  border-radius: 7px;
  background: transparent;
}

.start-button::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  width: 16px;
  height: 16px;
  background:
    linear-gradient(#4fb5ff, #4fb5ff) 0 0 / 7px 7px no-repeat,
    linear-gradient(#4fb5ff, #4fb5ff) 9px 0 / 7px 7px no-repeat,
    linear-gradient(#4fb5ff, #4fb5ff) 0 9px / 7px 7px no-repeat,
    linear-gradient(#4fb5ff, #4fb5ff) 9px 9px / 7px 7px no-repeat;
  border-radius: 1px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.18));
}

.windows-10 .start-button {
  width: 48px;
  height: 40px;
  margin-right: 0;
  border-radius: 0;
}

.windows-10 .start-button::before {
  left: 16px;
  top: 12px;
  width: 16px;
  height: 16px;
  background:
    linear-gradient(#ffffff, #ffffff) 0 0 / 7px 7px no-repeat,
    linear-gradient(#ffffff, #ffffff) 9px 0 / 7px 7px no-repeat,
    linear-gradient(#ffffff, #ffffff) 0 9px / 7px 7px no-repeat,
    linear-gradient(#ffffff, #ffffff) 9px 9px / 7px 7px no-repeat;
  filter: none;
}

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

.windows-10 .taskbar-center {
  gap: 0;
}

.taskbar-center.win11 {
  position: absolute;
  left: 50%;
  gap: 4px;
  transform: translateX(-50%);
}

.search-box {
  display: inline-flex;
  align-items: center;
  width: 206px;
  height: 32px;
  margin: 0 4px;
  padding: 0 13px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 12px;
}

.search-box::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  box-shadow: 5px 5px 0 -4px rgba(255, 255, 255, 0.7);
}

.win10-search {
  width: 260px;
  height: 40px;
  margin: 0;
  padding: 0 14px;
  color: rgba(17, 24, 39, 0.78);
  background: rgba(243, 246, 250, 0.94);
  border: 0;
  border-radius: 0;
  font-size: 13px;
}

.win10-search::before {
  border-color: rgba(17, 24, 39, 0.64);
  box-shadow: 5px 5px 0 -4px rgba(17, 24, 39, 0.64);
}

.task-view-button {
  position: relative;
  width: 44px;
  height: 40px;
}

.task-view-button::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 12px;
  width: 18px;
  height: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.82);
  box-shadow: inset -5px 0 0 rgba(255, 255, 255, 0.18), 5px 0 0 -3px rgba(255, 255, 255, 0.82);
}

.taskbar-tray {
  position: absolute;
  right: 96px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.windows-10 .taskbar-tray {
  right: 86px;
}

.tray-icon {
  position: relative;
  width: 15px;
  height: 14px;
  color: rgba(255, 255, 255, 0.78);
}

.tray-caret {
  position: relative;
  width: 12px;
  height: 14px;
}

.tray-caret::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 5px;
  width: 6px;
  height: 6px;
  border-top: 1.5px solid rgba(255, 255, 255, 0.78);
  border-left: 1.5px solid rgba(255, 255, 255, 0.78);
  transform: rotate(45deg);
}

.tray-network::before {
  content: "";
  position: absolute;
  left: 1px;
  bottom: 2px;
  width: 14px;
  height: 11px;
  background:
    linear-gradient(currentColor, currentColor) 0 8px / 2px 3px no-repeat,
    linear-gradient(currentColor, currentColor) 4px 6px / 2px 5px no-repeat,
    linear-gradient(currentColor, currentColor) 8px 3px / 2px 8px no-repeat,
    linear-gradient(currentColor, currentColor) 12px 1px / 2px 10px no-repeat;
  border-radius: 1px;
}

.tray-volume::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 4px;
  width: 6px;
  height: 7px;
  background: rgba(255, 255, 255, 0.78);
  clip-path: polygon(0 28%, 45% 28%, 100% 0, 100% 100%, 45% 72%, 0 72%);
}

.tray-volume::after {
  content: "";
  position: absolute;
  right: 1px;
  top: 2px;
  width: 7px;
  height: 10px;
  border-right: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
}

.tray-battery::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 4px;
  width: 11px;
  height: 7px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 1px;
  box-shadow: inset 7px 0 0 rgba(255, 255, 255, 0.78);
}

.tray-battery::after {
  content: "";
  position: absolute;
  right: 0;
  top: 6px;
  width: 2px;
  height: 3px;
  background: rgba(255, 255, 255, 0.78);
}

.task-icon.icon-code::before,
.task-icon.icon-cursor::before,
.task-icon.icon-ai::before,
.task-icon.icon-folder::before {
  position: static;
  left: auto;
  top: auto;
  border: 0;
  transform: none;
}

.task-icon.icon-cursor::before {
  border-top: 0;
  border-right: 0;
}

.task-icon.icon-folder::before {
  display: block;
  margin: 0;
}

.task-icon.icon-terminal,
.task-icon.icon-code,
.task-icon.icon-cursor,
.task-icon.icon-browser,
.task-icon.icon-folder,
.task-icon.icon-ai {
  background: transparent;
  box-shadow: none;
}

.windows-11 .task-icon.active {
  background: rgba(255, 255, 255, 0.11);
}

.windows-10 .task-icon.active {
  background: rgba(255, 255, 255, 0.14);
}

.taskbar-time {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  border: 0;
  line-height: 1.2;
  text-align: right;
}

.windows-10 .taskbar-time {
  padding-right: 10px;
  font-size: 11px;
}

.desktop-icons {
  position: absolute;
  top: 48px;
  left: 16px;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.desktop-icon {
  width: 72px;
  padding: 0;
  color: rgba(255, 255, 255, 0.86);
  background: transparent;
  border: 0;
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.desktop-icon::before {
  content: "";
  display: block;
  width: 38px;
  height: 32px;
  margin: 0 auto 6px;
  background: linear-gradient(135deg, #e5edf9, #78a8ff);
  border-radius: 5px;
}

.window {
  position: absolute;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  color: #eef2f5;
  background: #15191f;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.window.minimized {
  display: none;
}

.terminal-window {
  min-width: 0;
  min-height: 0;
}

.claude-code-terminal-window,
.codex-terminal-window {
  min-width: 0;
  min-height: 0;
}

.vscode-window,
.cursor-window {
  min-width: 0;
  min-height: 0;
}

.claude-app-window,
.codex-app-window,
.chrome-docs-window {
  min-width: 0;
  min-height: 0;
}

.windows-10 .window {
  border-radius: 2px;
}

.macos-modern .terminal-like-window {
  background: rgba(24, 25, 28, 0.88);
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.48);
}

.windows-11 .terminal-like-window {
  background: #10131a;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.38);
}

.windows-10 .terminal-like-window {
  background: #0c0c0c;
  border-color: #1883d7;
  border-radius: 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.48);
}

.window.selected {
  outline: 2px solid rgba(86, 163, 255, 0.9);
  outline-offset: 2px;
}

.titlebar {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 92px;
  align-items: center;
  height: 34px;
  flex: 0 0 auto;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.08);
  cursor: grab;
  user-select: none;
}

.titlebar:active {
  cursor: grabbing;
}

.windows-10 .titlebar,
.windows-11 .titlebar {
  grid-template-columns: minmax(0, 1fr) 92px;
}

.terminal-titlebar {
  cursor: grab;
}

.macos-modern .terminal-like-window .terminal-titlebar {
  height: 37px;
  padding: 0 12px;
  background: linear-gradient(#3c3c3e, #2f3033);
  border-bottom: 1px solid rgba(0, 0, 0, 0.32);
}

.windows-11 .terminal-like-window .terminal-titlebar {
  grid-template-columns: minmax(190px, 0.8fr) minmax(0, 1fr) 92px;
  height: 38px;
  padding: 0 0 0 8px;
  background: #20232d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.windows-10 .terminal-like-window .terminal-titlebar {
  grid-template-columns: minmax(0, 1fr) 138px;
  height: 30px;
  padding: 0 0 0 8px;
  background: #ffffff;
  color: #111;
}

.windows-10 .terminal-like-window .terminal-titlebar .title {
  font-family: "Segoe UI", var(--sans);
  font-size: 12px;
  font-weight: 400;
}

.terminal-title-tabs {
  display: flex;
  align-items: flex-end;
  height: 100%;
  min-width: 0;
}

.terminal-title-tab {
  display: inline-flex;
  align-items: center;
  height: 31px;
  max-width: 150px;
  padding: 0 14px;
  color: #f4f7fb;
  background: #0f1117;
  border-radius: 6px 6px 0 0;
  font-size: 12px;
  font-weight: 600;
}

.terminal-title-plus,
.terminal-title-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: rgba(244, 247, 251, 0.78);
  font-size: 16px;
}

.terminal-title-chevron {
  font-size: 13px;
}

.terminal-title-path {
  overflow: hidden;
  color: rgba(244, 247, 251, 0.52);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.windows-11 .terminal-like-window .win-controls {
  height: 100%;
  align-self: stretch;
  align-items: stretch;
  gap: 0;
}

.windows-10 .terminal-like-window .win-controls {
  height: 100%;
  align-self: stretch;
  align-items: stretch;
  gap: 0;
}

.windows-11 .terminal-like-window .win-btn,
.windows-10 .terminal-like-window .win-btn {
  display: inline-flex;
  width: 46px;
  height: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  font-family: "Segoe UI", var(--sans);
  font-size: 12px;
  line-height: 1;
}

.windows-11 .terminal-like-window .win-btn {
  color: rgba(244, 247, 251, 0.82);
}

.windows-10 .terminal-like-window .win-btn {
  color: rgba(0, 0, 0, 0.82);
}

.windows-11 .terminal-like-window .win-btn:hover {
  background: rgba(255, 255, 255, 0.11);
}

.windows-10 .terminal-like-window .win-btn:hover {
  background: #e5e5e5;
}

.windows-11 .terminal-like-window .win-btn:last-child:hover,
.windows-10 .terminal-like-window .win-btn:last-child:hover {
  color: white;
  background: #e81123;
}

.title {
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.win-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.windows-10 .win-controls,
.windows-11 .win-controls {
  justify-content: flex-end;
}

.traffic {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.traffic.red {
  background: #ff5f57;
}

.traffic.yellow {
  background: #febc2e;
}

.traffic.green {
  background: #28c840;
}

.win-btn {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  border: 0;
  font-size: 13px;
  line-height: 1;
  text-align: center;
}

.window-body {
  container-type: inline-size;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.resize-handle {
  position: absolute;
  z-index: 20;
  background: transparent;
  touch-action: none;
}

.resize-n,
.resize-s {
  right: 12px;
  left: 12px;
  height: 8px;
  cursor: ns-resize;
}

.resize-n {
  top: 0;
}

.resize-s {
  bottom: 0;
}

.resize-e,
.resize-w {
  top: 12px;
  bottom: 12px;
  width: 8px;
  cursor: ew-resize;
}

.resize-e {
  right: 0;
}

.resize-w {
  left: 0;
}

.resize-ne,
.resize-nw,
.resize-se,
.resize-sw {
  width: 14px;
  height: 14px;
}

.resize-ne,
.resize-sw {
  cursor: nesw-resize;
}

.resize-nw,
.resize-se {
  cursor: nwse-resize;
}

.resize-ne {
  top: 0;
  right: 0;
}

.resize-se {
  right: 0;
  bottom: 0;
}

.resize-sw {
  bottom: 0;
  left: 0;
}

.resize-nw {
  top: 0;
  left: 0;
}

.terminal-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #0b0e12;
  color: #d6f5df;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
}

.terminal-chrome {
  flex: 0 0 auto;
  min-height: 26px;
  font-family: var(--sans);
  font-size: 11px;
}

.terminal-chrome.mac {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  padding: 0 12px;
  color: rgba(238, 238, 240, 0.58);
  background: rgba(255, 255, 255, 0.045);
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.terminal-chrome.win11 {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 27px;
  padding: 0 12px;
  color: rgba(230, 236, 246, 0.7);
  background: #0f1117;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-chrome.win10 {
  display: grid;
  gap: 2px;
  min-height: 42px;
  padding: 7px 10px 3px;
  color: #c8c8c8;
  background: #0c0c0c;
  font-family: var(--mono);
  font-size: 12px;
}

.terminal-tab {
  min-width: 66px;
  padding: 4px 9px;
  border-radius: 6px 6px 0 0;
  background: rgba(255, 255, 255, 0.1);
}

.terminal-chrome.mac .terminal-tab {
  min-width: auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.terminal-chrome.win11 .terminal-tab {
  height: 25px;
  background: rgba(32, 38, 50, 0.98);
}

.terminal-plus {
  color: rgba(230, 236, 246, 0.72);
  font-weight: 800;
}

.terminal-profile-dot {
  width: 8px;
  height: 8px;
  background: #71d17b;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(113, 209, 123, 0.5);
}

.terminal-session-chip {
  padding: 3px 7px;
  color: rgba(230, 236, 246, 0.72);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  font-size: 10px;
}

.terminal-path,
.terminal-size {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal-size {
  color: rgba(244, 244, 246, 0.5);
}

.terminal-screen {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-height: 0;
  padding: 10px 12px 11px;
  overflow: hidden;
}

.terminal-output {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.terminal-output > :last-child,
.agent-transcript > :last-child,
.editor-ai-stream > :last-child,
.app-transcript-stream > :last-child {
  animation: streamLineIn 160ms ease-out;
}

@keyframes streamLineIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.terminal-view.mac-terminal {
  background: rgba(12, 13, 15, 0.91);
  color: #d9f5dd;
  font-size: 12px;
}

.terminal-view.win11-terminal {
  background: #0f1117;
  color: #e9edf5;
  font-family: "Cascadia Mono", "Consolas", var(--mono);
  font-size: 12px;
}

.terminal-view.win10-terminal {
  background: #0c0c0c;
  color: #f2f2f2;
  font-family: "Consolas", "Lucida Console", var(--mono);
  font-size: 13px;
}

.terminal-view.cmd {
  color: #dfe8ff;
}

.terminal-view.agent {
  display: flex;
  flex-direction: column;
  padding: 0;
  color: #e8edf4;
  background: #1f232c;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
}

.claude-agent-terminal,
.codex-agent-terminal {
  background: #20242e;
}

.agent-transcript {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  justify-content: flex-end;
  gap: 9px;
  padding: 13px 16px 10px;
  overflow: hidden;
}

.agent-transcript-line {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 6px;
  min-height: 17px;
  color: #dbe2ec;
}

.agent-transcript-line span:last-child {
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.agent-transcript-line.message span:last-child {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.agent-transcript-line.tool span:last-child,
.agent-transcript-line.shell span:last-child,
.agent-transcript-line.muted span:last-child {
  white-space: nowrap;
  text-overflow: ellipsis;
}

.agent-transcript-line.message span:first-child {
  color: #f4f7fb;
}

.agent-transcript-line.tool,
.agent-transcript-line.shell,
.agent-transcript-line.muted {
  color: #8e97a6;
}

.agent-transcript-line.tool {
  padding-left: 18px;
}

.agent-transcript-line.tool span:first-child,
.agent-transcript-line.shell span:first-child {
  color: #707987;
}

.agent-transcript-line.thinking {
  color: #ffd84d;
}

.agent-transcript-line.pass {
  color: #87d887;
}

.agent-prompt-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 29px;
  padding: 0 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  color: #d9dee8;
}

.agent-prompt-symbol {
  color: #b8c0ce;
  font-size: 16px;
}

.agent-footer {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 25px;
  padding: 0 16px;
  overflow: hidden;
  color: #8f98a8;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(8, 10, 15, 0.18);
  font-size: 11px;
  white-space: nowrap;
}

.agent-footer span,
.agent-footer strong {
  overflow: hidden;
  text-overflow: ellipsis;
}

.agent-footer span:first-child {
  color: #63c7bd;
}

.agent-footer strong {
  color: #ffd84d;
  font-weight: 700;
}

.pulse {
  width: 8px;
  height: 8px;
  background: var(--accent-2);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(85, 199, 146, 0.8);
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.terminal-line {
  flex: 0 0 17px;
  height: 17px;
  line-height: 17px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: pre;
}

.terminal-running {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  min-height: 20px;
  color: #8d98a5;
  font-family: var(--sans);
  font-size: 11px;
}

.terminal-view.win10-terminal .terminal-running {
  color: #8c8c8c;
}

.terminal-view.mac-terminal .terminal-running {
  color: rgba(217, 245, 221, 0.58);
}

.terminal-line.dim {
  color: #82909f;
}

.terminal-line.fail {
  color: #ff9ca0;
}

.terminal-line.pass {
  color: #8fe3a1;
}

.cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  margin-left: 4px;
  vertical-align: -2px;
  background: currentColor;
  animation: blink 1s steps(1) infinite;
}

.window:not(.active-window) .cursor,
.window:not(.active-window) .pulse {
  opacity: 0.45;
  animation-play-state: paused;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.editor-view {
  display: grid;
  grid-template-columns: 42px 178px minmax(0, 1fr) 220px;
  grid-template-rows: 34px 24px minmax(0, 1fr) 120px 24px;
  height: 100%;
  background: #11161d;
  font-size: 12px;
}

.editor-view.cursor-style {
  background: #111417;
}

.activity-bar {
  grid-row: 1 / 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  background: #171b22;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.cursor-style .activity-bar {
  background: #14171a;
}

.activity-icon {
  position: relative;
  width: 24px;
  height: 24px;
  color: #8d96a8;
}

.activity-icon.active {
  color: #fff;
}

.activity-icon.active::after {
  content: "";
  position: absolute;
  left: -9px;
  top: 3px;
  width: 2px;
  height: 18px;
  background: #fff;
  border-radius: 2px;
}

.activity-icon.files::before,
.activity-icon.search::before,
.activity-icon.source-control::before,
.activity-icon.run::before,
.activity-icon.extensions::before,
.activity-icon.ai::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.activity-icon.search::before {
  border-radius: 50%;
  box-shadow: 8px 8px 0 -6px currentColor;
}

.activity-icon.source-control::before {
  inset: 4px 8px;
  border-radius: 50%;
  box-shadow: -7px 7px 0 -1px currentColor, 7px 7px 0 -1px currentColor;
}

.activity-icon.run::before {
  inset: 4px 5px;
  border: 0;
  background: currentColor;
  clip-path: polygon(18% 5%, 82% 50%, 18% 95%);
}

.activity-icon.extensions::before {
  inset: 3px;
  border-radius: 2px;
  box-shadow: 10px 0 0 -7px currentColor, 0 10px 0 -7px currentColor, 10px 10px 0 -7px currentColor;
}

.activity-icon.ai::before {
  border-radius: 50%;
}

.activity-icon i {
  position: absolute;
  right: -4px;
  top: -5px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  color: white;
  background: #1f6feb;
  border-radius: 999px;
  font-style: normal;
  font-size: 9px;
  line-height: 14px;
  text-align: center;
}

.editor-tabs {
  grid-column: 3 / 5;
  display: flex;
  min-width: 0;
  overflow: hidden;
  background: #1c222b;
}

.editor-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 150px;
  padding: 0 10px;
  overflow: hidden;
  color: #cbd5df;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-tab span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.editor-tab i {
  color: #7f8a9d;
  font-style: normal;
}

.editor-tab.active {
  color: #fff;
  background: #11161d;
}

.breadcrumbs {
  grid-column: 3 / 5;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 0 12px;
  overflow: hidden;
  color: #8792a5;
  background: #121820;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 11px;
  white-space: nowrap;
}

.breadcrumbs span::after {
  content: ">";
  margin-left: 7px;
  color: #596274;
}

.breadcrumbs span:last-child {
  color: #d7deea;
}

.breadcrumbs span:last-child::after {
  content: "";
}

.file-tree {
  grid-column: 2;
  grid-row: 1 / 6;
  padding: 12px 10px;
  overflow: hidden;
  color: #aab5c2;
  background: #171d25;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.tree-title {
  margin-bottom: 10px;
  color: #eef2f5;
  font-weight: 800;
}

.tree-section {
  margin: 12px 0 5px;
  color: #7e8a9d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.tree-file {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  padding: 4px 4px 4px 2px;
  border-radius: 4px;
  white-space: nowrap;
}

.tree-file span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tree-file em {
  margin-left: auto;
  color: #f2cc60;
  font-style: normal;
  font-size: 10px;
}

.tree-file.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.code-pane {
  position: relative;
  grid-column: 3;
  grid-row: 3;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #10151b;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
}

.code-scroll {
  height: 100%;
  padding: 12px 28px 12px 14px;
  overflow: hidden;
}

.code-line {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  border-radius: 3px;
}

.code-line.current {
  background: rgba(255, 255, 255, 0.055);
}

.code-line.diagnostic .line-code {
  text-decoration: underline wavy #f85149;
  text-underline-offset: 3px;
}

.line-no {
  color: #596574;
  text-align: right;
}

.line-code {
  overflow: hidden;
  color: #d6dee8;
  text-overflow: ellipsis;
  white-space: pre;
}

.tok-keyword {
  color: #c586c0;
}

.tok-string {
  color: #ce9178;
}

.tok-number {
  color: #b5cea8;
}

.tok-function {
  color: #dcdcaa;
}

.tok-comment {
  color: #6a9955;
}

.tok-type,
.tok-tag {
  color: #4ec9b0;
}

.tok-attribute,
.tok-selector {
  color: #d7ba7d;
}

.tok-property {
  color: #9cdcfe;
}

.tok-plain {
  color: inherit;
}

.minimap {
  position: absolute;
  top: 8px;
  right: 5px;
  bottom: 8px;
  width: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.minimap span {
  position: absolute;
  left: 2px;
  width: 10px;
  height: 3px;
  background: #f2cc60;
  border-radius: 2px;
}

.minimap span.error {
  background: #f85149;
}

.minimap span.modified {
  background: #3fb950;
}

.ai-sidebar {
  grid-column: 4;
  grid-row: 3 / 5;
  min-width: 0;
  min-height: 0;
  padding: 12px;
  overflow: hidden;
  background: #151b23;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-sidebar-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-weight: 800;
}

.ai-pill {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  color: #071015;
  background: var(--accent-2);
  border-radius: 99px;
  font-size: 10px;
  font-weight: 800;
}

.ai-message {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 8px;
  padding: 8px;
  color: #d9e3ef;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 7px;
  line-height: 1.35;
}

.ai-message span {
  width: 18px;
  height: 18px;
  color: #081018;
  background: var(--accent-2);
  border-radius: 50%;
  font-size: 10px;
  line-height: 18px;
  text-align: center;
}

.ai-message p {
  margin: 0;
}

.ai-task-row {
  margin-bottom: 10px;
  padding: 8px;
  color: #c9d5e4;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
}

.ai-task-row strong,
.ai-task-row span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-task-row span {
  margin-top: 4px;
  color: #8d9bb0;
}

.ai-changes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  overflow: hidden;
  max-height: 48px;
}

.ai-changes span {
  max-width: 92px;
  padding: 3px 6px;
  overflow: hidden;
  color: #9bd1ff;
  background: rgba(88, 166, 255, 0.12);
  border-radius: 4px;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-panel {
  grid-column: 3;
  grid-row: 4;
  overflow: hidden;
  background: #0d1117;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.35;
}

.panel-tabs {
  display: flex;
  gap: 16px;
  height: 28px;
  align-items: center;
  padding: 0 12px;
  color: #8b949e;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 800;
}

.panel-tabs span.active {
  color: #f0f6fc;
}

.panel-body {
  height: calc(100% - 28px);
  padding: 0 12px 8px;
  overflow: hidden;
}

.problem-line {
  overflow: hidden;
  color: #ffa198;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-bar {
  grid-column: 2 / 5;
  grid-row: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 10px;
  overflow: hidden;
  color: #e9f1ff;
  background: #1f6feb;
  font-size: 11px;
  white-space: nowrap;
}

.cursor-style .status-bar {
  background: #2f7d5f;
}

.ai-transcript-sidebar {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.editor-ai-stream {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  justify-content: flex-end;
  gap: 7px;
  overflow: hidden;
  font-family: var(--mono);
}

.editor-ai-line {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 6px;
  color: #cfd7e3;
  font-size: 11px;
  line-height: 1.35;
}

.editor-ai-line span {
  color: #8c96a8;
}

.editor-ai-line p {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.editor-ai-line.tool,
.editor-ai-line.muted {
  color: #8994a6;
}

.editor-ai-line.thinking {
  color: #f2cc60;
}

.editor-ai-footer {
  min-height: 22px;
  padding-top: 7px;
  color: #7f8a9d;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--mono);
  font-size: 10px;
  white-space: nowrap;
}

@container (max-width: 620px) {
  .editor-view {
    grid-template-columns: 38px minmax(0, 1fr) 180px;
  }

  .editor-view .file-tree {
    display: none;
  }

  .editor-view .editor-tabs,
  .editor-view .breadcrumbs,
  .editor-view .code-pane,
  .editor-view .bottom-panel {
    grid-column: 2 / 3;
  }

  .editor-view .ai-sidebar {
    grid-column: 3 / 4;
  }

  .editor-view .status-bar {
    grid-column: 1 / 4;
  }
}

@container (max-width: 460px) {
  .editor-view {
    grid-template-columns: 34px minmax(0, 1fr) 150px;
    grid-template-rows: 32px 22px minmax(0, 1fr) 96px 22px;
  }

  .editor-view .code-scroll {
    padding: 10px 22px 10px 8px;
  }

  .editor-view .status-bar {
    gap: 8px;
    font-size: 10px;
  }
}

.claude-desktop-app {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  height: 100%;
  overflow: hidden;
  color: #f2f2f0;
  background: #111111;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--sans);
}

.codex-desktop-app {
  color: #f1f5fb;
  background: #101318;
}

.claude-leftbar {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 12px 10px 10px;
  overflow: hidden;
  background: #232323;
  border-right: 1px solid #373737;
}

.codex-desktop-app .claude-leftbar {
  background: #191d24;
  border-right-color: #2c3340;
}

.claude-rail-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr 86px;
  gap: 4px;
  margin-bottom: 14px;
}

.claude-rail-tabs span,
.claude-rail-tabs button {
  height: 28px;
  color: #d8d8d6;
  background: #343434;
  border: 0;
  border-radius: 7px;
  font-size: 12px;
}

.claude-rail-tabs .code-tab {
  display: grid;
  place-items: center;
  font-weight: 700;
}

.claude-rail-tabs .rail-icon {
  display: grid;
  place-items: center;
}

.claude-rail-tabs .rail-icon svg {
  width: 15px;
  height: 15px;
}

.claude-nav-section {
  margin: 14px 8px 7px;
  color: #8f8f8d;
  font-size: 11px;
  text-transform: uppercase;
}

.claude-nav-item,
.claude-nav-file {
  min-height: 28px;
  padding: 6px 9px;
  overflow: hidden;
  color: #d8d8d6;
  border-radius: 7px;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.claude-nav-item.active {
  background: #3d3d3b;
}

.claude-nav-file {
  color: #bdbdba;
}

.claude-account {
  margin-top: auto;
  padding: 10px 8px 0;
  color: #d2d2cf;
  border-top: 1px solid #383838;
  font-size: 12px;
}

.claude-workspace {
  display: grid;
  grid-template-rows: 48px minmax(0, 1fr) 92px;
  min-width: 0;
  min-height: 0;
  background: #151515;
}

.codex-desktop-app .claude-workspace {
  background: #12161d;
}

.claude-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 18px;
  border-bottom: 1px solid #292929;
}

.codex-desktop-app .claude-topbar {
  border-bottom-color: #27303b;
}

.claude-topbar div:first-child {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.claude-topbar strong {
  overflow: hidden;
  color: #f4f4f2;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.claude-topbar span {
  color: #9c9c99;
  font-size: 12px;
}

.claude-top-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 13px;
}

.claude-thread {
  min-width: 0;
  padding: 20px 48px 30px;
  overflow: hidden;
  color: #e8e8e6;
  font-size: 14px;
  line-height: 1.65;
}

.app-stream-thread {
  display: flex;
  min-height: 0;
  padding: 20px 36px 18px;
}

.app-transcript-stream {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
}

.app-transcript-stream .agent-transcript-line {
  max-width: 840px;
}

.app-transcript-stream .agent-transcript-line span:last-child {
  display: block;
  overflow: visible;
}

@container (max-width: 720px) {
  .claude-desktop-app {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .claude-leftbar {
    padding-right: 8px;
    padding-left: 8px;
  }

  .claude-rail-tabs {
    grid-template-columns: 1fr 1fr 68px;
  }

  .app-stream-thread {
    padding: 16px 20px 14px;
  }
}

@container (max-width: 520px) {
  .claude-desktop-app {
    grid-template-columns: minmax(0, 1fr);
  }

  .claude-leftbar {
    display: none;
  }

  .app-stream-thread {
    padding-right: 16px;
    padding-left: 16px;
  }
}

.claude-thread p,
.claude-thread ol,
.claude-thread ul {
  max-width: 760px;
  margin: 0 0 14px;
}

.claude-thread li {
  margin-bottom: 7px;
}

.claude-thread code {
  padding: 2px 5px;
  color: #f2f2ef;
  background: #30302f;
  border-radius: 4px;
  font-family: var(--mono);
}

.claude-section-label {
  color: #cfcfcb;
  font-weight: 800;
}

.claude-option-table {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  max-width: 760px;
  margin-bottom: 16px;
  border: 1px solid #30302f;
  border-radius: 4px;
  overflow: hidden;
}

.claude-option-table div {
  min-height: 30px;
  padding: 5px 8px;
  overflow: hidden;
  background: #262625;
  border-bottom: 1px solid #343433;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.claude-option-table div:nth-child(odd) {
  color: #d1d1ce;
  background: #222221;
  border-right: 1px solid #343433;
}

.claude-tool-note {
  max-width: 760px;
  margin: 10px 0 14px;
  color: #9a9a98;
  font-family: var(--mono);
  font-size: 12px;
}

.claude-thinking {
  margin-top: 28px;
  color: #d77945;
  font-size: 28px;
}

.codex-desktop-app .claude-thinking {
  color: #7aa2ff;
}

.claude-composer {
  align-self: end;
  margin: 0 44px 14px;
  padding: 10px 12px 8px;
  background: #242423;
  border: 1px solid #3a3a39;
  border-radius: 12px;
  box-shadow: 0 -16px 36px rgba(0, 0, 0, 0.22);
}

.codex-desktop-app .claude-composer {
  background: #1f2630;
  border-color: #354052;
}

.claude-commit-pill {
  float: right;
  padding: 3px 8px;
  color: #7ee787;
  background: #30302f;
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 11px;
}

.claude-input {
  min-height: 30px;
  color: #9b9b98;
  font-size: 13px;
}

.claude-composer-meta {
  display: flex;
  gap: 14px;
  color: #bdbdb9;
  font-size: 11px;
}

.app-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  height: 100%;
  background: #f6f3ed;
  color: #101318;
}

.claude-surface {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0)),
    #f6f0e8;
}

.codex-surface {
  background:
    linear-gradient(180deg, rgba(245, 249, 255, 0.95), rgba(245, 249, 255, 0)),
    #eef3f9;
}

.agent-board {
  min-width: 0;
  padding: 16px;
  overflow: hidden;
}

.agent-app-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: #4a342b;
  font-size: 12px;
}

.codex-surface .agent-app-toolbar {
  color: #243041;
}

.agent-product-lockup {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.agent-product-mark {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #c86d42;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 900;
}

.codex-surface .agent-product-mark {
  background: #1f6feb;
  border-radius: 50%;
}

.agent-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
  color: #4a342b;
  font-size: 12px;
}

.codex-surface .agent-app-header {
  color: #26303d;
}

.agent-product {
  font-weight: 800;
}

.agent-run-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #647084;
  font-size: 11px;
}

.thread-title {
  margin-bottom: 12px;
  color: #1d2530;
  font-size: 15px;
  font-weight: 800;
}

.agent-work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.agent-mini-card {
  min-width: 0;
  padding: 10px;
  color: #514033;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(80, 55, 38, 0.1);
  border-radius: 8px;
}

.codex-surface .agent-mini-card {
  color: #263548;
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(20, 28, 38, 0.1);
}

.agent-mini-card span,
.agent-mini-card strong,
.agent-mini-card p {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-mini-card span {
  margin-bottom: 5px;
  color: #8a6a55;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.codex-surface .agent-mini-card span {
  color: #52749f;
}

.agent-mini-card strong {
  margin-bottom: 4px;
  color: #171c24;
  font-size: 12px;
}

.agent-mini-card p {
  margin: 0;
  color: #687386;
  font-size: 11px;
}

.agent-task-card {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(80, 55, 38, 0.12);
  background: rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(38, 26, 18, 0.05);
}

.codex-surface .agent-task-card {
  border-color: rgba(20, 28, 38, 0.1);
  box-shadow: 0 8px 24px rgba(20, 28, 38, 0.05);
}

.agent-task-kicker {
  margin-bottom: 7px;
  color: #8a5b3e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.codex-surface .agent-task-kicker {
  color: #3569b5;
}

.agent-task-card strong {
  display: block;
  margin-bottom: 7px;
  color: #151a21;
  font-size: 13px;
}

.agent-task-card p,
.agent-event p {
  margin: 0;
  overflow: hidden;
  color: #586273;
  font-size: 12px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.agent-event-list {
  display: grid;
  gap: 8px;
}

.agent-event {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 9px;
  padding: 10px 0;
  border-top: 1px solid rgba(19, 24, 31, 0.08);
}

.agent-event:first-child {
  border-top: 0;
}

.agent-event-dot {
  width: 7px;
  height: 7px;
  margin-top: 5px;
  background: #d97757;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(217, 119, 87, 0.14);
}

.codex-surface .agent-event-dot {
  background: #1f6feb;
  box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.14);
}

.agent-event strong {
  display: block;
  margin-bottom: 3px;
  color: #222936;
  font-size: 12px;
}

.app-side {
  padding: 14px;
  overflow: hidden;
  background: rgba(231, 225, 216, 0.86);
  border-left: 1px solid rgba(16, 19, 24, 0.08);
  font-size: 12px;
}

.codex-surface .app-side {
  background: rgba(226, 231, 238, 0.9);
}

.app-side h4 {
  margin: 0 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.side-line {
  overflow: hidden;
  margin-bottom: 8px;
  color: #3b4654;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@container (max-width: 520px) {
  .app-view {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-side {
    display: none;
  }

  .agent-work-grid {
    grid-template-columns: 1fr;
  }
}

.chrome-view {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  color: #1f2937;
  background: #fff;
  --doc-accent: #1a73e8;
  --doc-accent-soft: rgba(26, 115, 232, 0.12);
}

.chrome-mdn {
  --doc-accent: #111827;
  --doc-accent-soft: rgba(17, 24, 39, 0.1);
}

.chrome-next {
  --doc-accent: #000;
  --doc-accent-soft: rgba(0, 0, 0, 0.08);
}

.chrome-nest {
  --doc-accent: #e0234e;
  --doc-accent-soft: rgba(224, 35, 78, 0.12);
}

.chrome-spring {
  --doc-accent: #6db33f;
  --doc-accent-soft: rgba(109, 179, 63, 0.14);
}

.chrome-frame {
  min-width: 0;
  overflow: hidden;
  background: #dee4ec;
  border-bottom: 1px solid #bfc8d4;
  cursor: grab;
  user-select: none;
}

.chrome-frame:active {
  cursor: grabbing;
}

.chrome-tab-strip {
  display: flex;
  align-items: end;
  height: 36px;
  gap: 4px;
  padding: 5px 0 0 10px;
  background: #d8dee7;
}

.chrome-window-controls {
  display: flex;
  flex: 0 0 auto;
  align-self: center;
  gap: 8px;
  padding: 0 5px 4px 2px;
}

.chrome-tabs {
  display: flex;
  flex: 0 1 auto;
  min-width: 0;
  gap: 1px;
  overflow: hidden;
}

.chrome-tab {
  display: inline-flex;
  flex: 1 1 180px;
  min-width: 56px;
  max-width: 180px;
  height: 31px;
  align-items: center;
  padding: 0 5px 0 10px;
  overflow: hidden;
  color: #394555;
  background: transparent;
  border-radius: 9px 9px 0 0;
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
}

.chrome-tab-main {
  display: inline-flex;
  min-width: 0;
  height: 100%;
  flex: 1;
  align-items: center;
  gap: 8px;
  padding: 0;
  overflow: hidden;
  color: inherit;
  background: transparent;
  border: 0;
  text-align: left;
}

.chrome-tab.active {
  color: #111827;
  background: #f8fafc;
}

.chrome-tab-main span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chrome-tab-close {
  display: inline-flex;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 0;
  color: #6b7280;
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 13px;
}

.chrome-tab-close:hover {
  color: #273140;
  background: rgba(0, 0, 0, 0.08);
}

.chrome-favicon {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  background: var(--doc-accent);
  border-radius: 4px;
}

.chrome-next .chrome-favicon {
  border-radius: 50%;
}

.chrome-nest .chrome-favicon {
  clip-path: polygon(50% 0, 88% 20%, 88% 78%, 50% 100%, 12% 78%, 12% 20%);
}

.chrome-spring .chrome-favicon {
  border-radius: 50% 50% 50% 8px;
  transform: rotate(-18deg);
}

.chrome-favicon.chrome-next {
  background: #000;
  border-radius: 50%;
  clip-path: none;
  transform: none;
}

.chrome-favicon.chrome-nest {
  background: #e0234e;
  border-radius: 4px;
  clip-path: polygon(50% 0, 88% 20%, 88% 78%, 50% 100%, 12% 78%, 12% 20%);
  transform: none;
}

.chrome-favicon.chrome-spring {
  background: #6db33f;
  border-radius: 50% 50% 50% 8px;
  clip-path: none;
  transform: rotate(-18deg);
}

.chrome-favicon.chrome-mdn {
  background: #111827;
  border-radius: 3px;
  clip-path: none;
  transform: none;
}

.chrome-favicon.chrome-docs {
  background: #4285f4;
  border-radius: 4px;
  clip-path: none;
  transform: none;
}

.chrome-new-tab {
  flex: 0 0 28px;
  align-self: center;
  justify-self: start;
  width: 28px;
  height: 28px;
  color: #4b5563;
  background: transparent;
  border: 0;
  font-size: 18px;
  line-height: 26px;
  text-align: center;
}

.chrome-frame-spacer {
  flex: 1 1 10px;
  min-width: 0;
}

.chrome-caption-controls {
  display: flex;
  flex: 0 0 auto;
  align-self: stretch;
}

.chrome-caption-controls .win-btn {
  width: 46px;
  height: 36px;
  color: #111827;
}

.chrome-caption-controls .win-btn:hover {
  background: rgba(0, 0, 0, 0.08);
}

.chrome-caption-controls .win-btn:last-child:hover {
  color: #fff;
  background: #e81123;
}

.chrome-toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 12px;
  background: #f8fafc;
  border-bottom: 1px solid #d7dee8;
}

.chrome-nav-buttons,
.chrome-tools {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.chrome-nav-buttons button,
.chrome-tools span {
  position: relative;
  width: 18px;
  height: 18px;
  padding: 0;
  color: #5f6b7a;
  background: transparent;
}

.chrome-nav-buttons button:nth-child(1)::before,
.chrome-nav-buttons button:nth-child(2)::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.chrome-nav-buttons button:nth-child(2)::before {
  transform: rotate(225deg);
}

.chrome-nav-buttons button:nth-child(3)::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
}

.chrome-tools span:nth-child(1)::before {
  content: "★";
  position: absolute;
  color: currentColor;
  font-size: 15px;
  line-height: 18px;
}

.chrome-tools span:nth-child(2)::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.chrome-tools span:nth-child(4)::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 2px;
  width: 3px;
  height: 3px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 6px 0 currentColor, 0 12px 0 currentColor;
}

.chrome-tools strong {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #5571d8;
  border-radius: 50%;
  font-size: 11px;
}

.address-bar {
  display: flex;
  min-width: 0;
  flex: 1;
  height: 30px;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  overflow: hidden;
  color: #334155;
  background: #eef2f7;
  border-radius: 99px;
  font-size: 12px;
}

.address-bar span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-info {
  position: relative;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border: 1.5px solid #5f6b7a;
  border-radius: 50%;
}

.site-info::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  width: 2px;
  height: 6px;
  background: #5f6b7a;
  border-radius: 2px;
}

.site-info::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 2px;
  height: 2px;
  background: #5f6b7a;
  border-radius: 50%;
}

.address-bar i {
  width: 16px;
  height: 16px;
  margin-left: auto;
}

.address-bar i::before {
  content: "★";
  color: #7b8797;
  font-style: normal;
  font-size: 13px;
}

.bookmarks-bar {
  display: flex;
  height: 28px;
  align-items: center;
  gap: 18px;
  padding: 0 14px;
  overflow: hidden;
  color: #475569;
  background: #fff;
  border-bottom: 1px solid #dde3eb;
  font-size: 11px;
  white-space: nowrap;
}

.doc-page {
  display: grid;
  grid-template-columns: 174px minmax(0, 1fr) 150px;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

.doc-nav {
  padding: 16px 12px;
  overflow: hidden;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
}

.doc-nav strong,
.doc-toc strong {
  display: block;
  margin-bottom: 12px;
  color: #111827;
  font-size: 12px;
  font-weight: 800;
}

.doc-nav div,
.doc-toc div {
  margin-bottom: 9px;
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.doc-nav div.active,
.doc-toc div.active {
  color: var(--doc-accent);
  font-weight: 800;
}

.doc-content {
  min-width: 0;
  padding: 22px 28px 36px;
  overflow: auto;
}

.doc-content h3 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 24px;
  line-height: 1.15;
}

.doc-provider {
  color: #58667a;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.doc-callout {
  margin: 14px 0;
  padding: 12px 13px;
  color: #1f2937;
  background: var(--doc-accent-soft);
  border-left: 4px solid var(--doc-accent);
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.45;
}

.doc-content p {
  color: #475569;
  font-size: 13px;
  line-height: 1.6;
}

.doc-section {
  padding-top: 6px;
}

.doc-section h4 {
  margin: 18px 0 6px;
  color: #1f2937;
  font-size: 16px;
}

.doc-content pre {
  max-height: 150px;
  margin: 16px 0;
  padding: 14px;
  overflow: hidden;
  color: #dbeafe;
  background: #0f172a;
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
}

.doc-toc {
  padding: 18px 12px;
  overflow: hidden;
  background: #fff;
  border-left: 1px solid #e2e8f0;
}

@container (max-width: 620px) {
  .doc-page {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .doc-toc {
    display: none;
  }

  .doc-content {
    padding-right: 20px;
    padding-left: 20px;
  }
}

@container (max-width: 480px) {
  .doc-page {
    grid-template-columns: minmax(0, 1fr);
  }

  .doc-nav {
    display: none;
  }

  .doc-content {
    padding: 18px 16px 28px;
  }
}

.show-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000;
  display: flex;
  gap: 8px;
  opacity: 0.06;
  transition: opacity 160ms ease;
}

.show-controls:hover {
  opacity: 1;
}

.empty-state {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(420px, calc(100% - 40px));
  padding: 18px;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.82);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  text-align: center;
}

/* macOS 26 shell: Tahoe wallpaper, system chrome, and native application icons. */
.desktop.macos-modern {
  --desktop-wallpaper: #2f8fbc url("./assets/wallpapers/macos-tahoe-day.jpg") center center / cover no-repeat;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", var(--sans);
}

.macos-modern .menu-bar {
  height: 28px;
  padding: 0 13px;
  gap: 14px;
  color: rgba(255, 255, 255, 0.96);
  background: rgba(18, 27, 35, 0.34);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px) saturate(145%);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.12);
  font-size: 13px;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.36);
}

.macos-modern .menu-bar strong {
  flex: 0 0 auto;
  font-weight: 650;
}

.macos-modern .mac-menu-mark {
  display: inline-flex;
  width: 14px;
  height: 28px;
  flex: 0 0 14px;
  align-items: center;
  justify-content: center;
  margin: 0 -2px 0 0;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1;
}

.macos-modern .mac-menu-mark::before,
.macos-modern .mac-menu-mark::after {
  content: none;
}

.mac-menu-items {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  white-space: nowrap;
}

.mac-menu-item {
  flex: 0 0 auto;
}

.macos-modern .menu-spacer {
  min-width: 8px;
}

.macos-modern .menu-status {
  width: 19px;
  height: 18px;
  flex: 0 0 19px;
  color: rgba(255, 255, 255, 0.96);
}

.status-control-center svg {
  display: block;
  width: 18px;
  height: 16px;
}

.status-control-center path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.55;
}

.status-control-center circle {
  fill: #fff;
  stroke: rgba(24, 33, 41, 0.85);
  stroke-width: 1;
}

.macos-modern .status-wifi svg {
  width: 19px;
  height: 15px;
}

.macos-modern .status-battery {
  width: 22px;
  flex-basis: 22px;
}

.macos-modern .status-battery::before {
  width: 17px;
  height: 9px;
  border-width: 1.2px;
  box-shadow: inset 12px 0 0 rgba(255, 255, 255, 0.92);
}

.mac-menu-clock {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.macos-modern .dock {
  left: 50%;
  bottom: 8px;
  height: 70px;
  gap: 5px;
  padding: 7px 10px 12px;
  transform: translateX(-50%);
  background: rgba(232, 241, 247, 0.23);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 18px;
  backdrop-filter: blur(30px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.33), 0 12px 34px rgba(0, 0, 0, 0.28);
}

.app-shell .macos-modern .dock {
  pointer-events: auto;
}

.mac-dock-app {
  position: relative;
  display: inline-flex;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: visible;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 11px;
}

button.mac-dock-app {
  cursor: default;
}

.mac-dock-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.24));
}

.mac-dock-icon > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mac-dock-tile {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, #25282d, #090a0c);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mac-dock-tile img {
  display: block;
  width: 25px;
  height: 25px;
}

.codex-tile img {
  width: 26px;
  height: 26px;
}

.folder-item .mac-dock-icon > img {
  width: 42px;
  height: 42px;
}

.mac-dock-app.running::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 4px;
  height: 4px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.46);
}

.macos-modern .dock-separator {
  width: 1px;
  height: 44px;
  margin: 0 4px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 1px 0 0 rgba(0, 0, 0, 0.12);
}

.mac-desktop-icons {
  top: 42px;
  right: 16px;
  left: auto;
  gap: 12px;
}

.mac-desktop-icon {
  display: flex;
  width: 88px;
  min-height: 82px;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 2px 4px;
  color: #fff;
  font-size: 12px;
  line-height: 1.25;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.82);
}

.mac-desktop-icon::before {
  content: none;
}

.mac-desktop-icon img {
  display: block;
  width: 64px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.24));
}

.macos-modern .window {
  background: #1d1f23;
  border: 1px solid rgba(0, 0, 0, 0.46);
  border-radius: 11px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.macos-modern .window.active-window {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 28px 74px rgba(0, 0, 0, 0.5), 0 4px 14px rgba(0, 0, 0, 0.24);
}

.macos-modern .window.maximized {
  border-radius: 0;
  box-shadow: none;
}

.macos-modern .window.selected {
  outline: 1px solid rgba(79, 156, 255, 0.92);
  outline-offset: 1px;
}

.macos-modern .titlebar:not(.terminal-titlebar) {
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  height: 38px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.92);
  background: #292b30;
  border-bottom: 1px solid rgba(0, 0, 0, 0.34);
}

.macos-modern .titlebar .title {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.mac-window-controls {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.traffic-button {
  position: relative;
  display: inline-flex;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  align-items: center;
  justify-content: center;
  padding: 0;
  appearance: none;
  border: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.24);
}

.traffic-button.red {
  background: #ff5f57;
}

.traffic-button.yellow {
  background: #febc2e;
}

.traffic-button.green {
  background: #28c840;
}

.traffic-button::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(51, 36, 30, 0.78);
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;
  line-height: 12px;
  opacity: 0;
}

.traffic-button.red::after {
  content: "×";
}

.traffic-button.yellow::after {
  content: "−";
  font-size: 10px;
}

.traffic-button.green::after {
  content: "+";
  font-size: 10px;
}

.mac-window-controls:hover .traffic-button::after {
  opacity: 1;
}

.traffic-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.82);
  outline-offset: 2px;
}

.macos-modern .window:not(.active-window) .traffic-button {
  background: #77787c;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.22);
}

.macos-modern .window:not(.active-window) .titlebar .title {
  color: rgba(255, 255, 255, 0.58);
}

.macos-modern .terminal-like-window {
  background: rgba(17, 18, 20, 0.95);
  border-color: rgba(0, 0, 0, 0.5);
  border-radius: 11px;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.48);
}

.macos-modern .terminal-like-window.active-window {
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 30px 78px rgba(0, 0, 0, 0.54);
}

.macos-modern .terminal-like-window .terminal-titlebar {
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  height: 38px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(#3a3b3f, #2e2f33);
  border-bottom: 1px solid rgba(0, 0, 0, 0.42);
}

.macos-modern .terminal-view.mac-terminal {
  background: rgba(10, 11, 13, 0.96);
}

.macos-modern .mac-terminal .terminal-running {
  display: none;
}

.macos-modern .chrome-tab-strip {
  height: 40px;
  padding: 6px 0 0 12px;
  background: #d8dee7;
}

.macos-modern .chrome-window-controls {
  height: 34px;
  align-self: stretch;
  padding: 0 4px 6px 0;
}

.macos-modern .chrome-tab {
  height: 34px;
}

/* Windows 10 shell: 40px taskbar and classic 30px desktop title bars. */
.desktop.windows-10 {
  --desktop-wallpaper: #020d25 url("./assets/wallpapers/windows-10-hero.jpg") center center / cover no-repeat;
  font-family: "Segoe UI", "Helvetica Neue", var(--sans);
}

.windows-10 .win10-taskbar {
  height: 40px;
  padding: 0;
  justify-content: flex-start;
  color: #fff;
  background: rgba(16, 24, 39, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: none;
  box-shadow: none;
}

.app-shell .windows-10 .win10-taskbar {
  pointer-events: auto;
}

.windows-10 .taskbar-center {
  height: 40px;
  gap: 0;
}

.windows-10 .win10-task-button,
.windows-10 .win10-search,
.windows-10 .taskbar-app {
  flex: 0 0 auto;
  padding: 0;
  color: rgba(255, 255, 255, 0.94);
  background: transparent;
  border: 0;
  border-radius: 0;
}

.windows-10 .win10-task-button:hover,
.windows-10 .taskbar-app:hover,
.windows-10 .taskbar-app.active {
  background: rgba(255, 255, 255, 0.12);
}

.windows-10 .start-button {
  display: inline-flex;
  width: 48px;
  height: 40px;
  margin: 0;
  align-items: center;
  justify-content: center;
}

.windows-10 .start-button:hover {
  color: #22a7f0;
}

.windows-10 .start-button::before,
.windows-10 .task-view-button::before,
.windows-10 .win10-search::before,
.windows-10 .win10-tray .tray-caret::before {
  content: none;
}

.win10-start-glyph {
  display: inline-flex;
  width: 17px;
  height: 17px;
}

.win10-start-glyph svg,
.win10-search-glyph svg,
.windows-10 .task-view-button svg,
.win10-tray-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.windows-10 .win10-search {
  display: inline-flex;
  width: clamp(260px, 18vw, 344px);
  height: 40px;
  margin: 0;
  padding: 0 13px;
  align-items: center;
  gap: 10px;
  color: #1b1b1b;
  background: rgba(250, 250, 250, 0.97);
  border-right: 1px solid rgba(0, 0, 0, 0.14);
  font-size: 14px;
  font-weight: 400;
  text-align: left;
}

.windows-10 .win10-search:hover {
  background: #fff;
}

.win10-search-glyph {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #171717;
}

.windows-10 .task-view-button {
  display: inline-flex;
  width: 48px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.windows-10 .task-view-button svg {
  width: 22px;
  height: 22px;
}

.windows-10 .taskbar-app {
  position: relative;
  display: inline-flex;
  width: 48px;
  height: 40px;
  flex-basis: 48px;
  align-items: center;
  justify-content: center;
}

.windows-10 .taskbar-app.running::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: auto;
  height: 2px;
  transform: none;
  background: #76b9ed;
  border-radius: 0;
}

.windows-10 .taskbar-app.running.active::after {
  width: auto;
  background: #4cc2ff;
}

.windows-10 .taskbar-app .win11-task-app-icon {
  width: 24px;
  height: 24px;
}

.windows-10 .taskbar-app[data-taskbar-group="terminal"] .win11-task-app-icon,
.windows-10 .taskbar-app[data-taskbar-group="folder"] .win11-task-app-icon {
  width: 26px;
  height: 26px;
}

.windows-10 .taskbar-app[data-taskbar-group="cursor"] .win11-task-app-icon,
.windows-10 .taskbar-app[data-taskbar-group="codex"] .win11-task-app-icon {
  width: 25px;
  height: 25px;
  padding: 4px;
  border-radius: 5px;
}

.windows-10 .win10-tray {
  right: 0;
  bottom: 0;
  height: 40px;
  gap: 0;
}

.win10-tray-icon,
.windows-10 .taskbar-time {
  display: inline-flex;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.win10-tray-icon {
  width: 26px;
  padding: 0;
  color: rgba(255, 255, 255, 0.94);
  background: transparent;
  border: 0;
}

.win10-tray-icon:hover,
.windows-10 .taskbar-time:hover {
  background: rgba(255, 255, 255, 0.1);
}

.win10-tray-icon svg {
  width: 16px;
  height: 16px;
}

.windows-10 .win10-tray .tray-caret {
  width: 24px;
  height: 40px;
}

.windows-10 .win10-tray .tray-caret svg {
  width: 15px;
  height: 15px;
}

.windows-10 .taskbar-time {
  width: 72px;
  margin: 0;
  padding: 0;
  flex-direction: column;
  color: rgba(255, 255, 255, 0.94);
  font-size: 11px;
  line-height: 1.3;
  text-align: center;
}

.windows-10 .action-center {
  width: 36px;
}

.windows-10 .show-desktop-strip {
  width: 6px;
  height: 40px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.windows-10 .window {
  background: #17191d;
  border: 1px solid #767676;
  border-radius: 0;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.42);
}

.windows-10 .window.active-window {
  border-color: #1883d7;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.48);
}

.windows-10 .window.maximized {
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 0;
  box-shadow: none;
}

.windows-10 .window.selected {
  outline: 1px solid rgba(0, 120, 215, 0.92);
  outline-offset: 1px;
}

.windows-10 .titlebar:not(.terminal-titlebar) {
  grid-template-columns: minmax(0, 1fr) 138px;
  height: 30px;
  padding: 0 0 0 8px;
  color: rgba(255, 255, 255, 0.92);
  background: #202226;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.windows-10 .window-title .title {
  font-family: "Segoe UI", "Helvetica Neue", var(--sans);
  font-size: 12px;
  font-weight: 400;
}

.windows-10 .win-controls,
.windows-10 .chrome-caption-controls {
  display: flex;
  width: 138px;
  height: 30px;
  align-self: start;
  align-items: stretch;
  justify-content: flex-end;
  gap: 0;
}

.windows-10 .win-btn {
  display: inline-flex;
  width: 46px;
  height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: rgba(255, 255, 255, 0.92);
  background: transparent;
  border: 0;
  border-radius: 0;
}

.windows-10 .win-btn svg {
  display: block;
  width: 16px;
  height: 16px;
}

.windows-10 .win-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.windows-10 .win-btn.close:hover {
  color: #fff;
  background: #e81123;
}

.windows-10 .window:not(.active-window) .window-title,
.windows-10 .window:not(.active-window) .win-btn {
  opacity: 0.62;
}

.windows-10 .terminal-like-window {
  background: #0c0c0c;
  border-color: #767676;
  border-radius: 0;
}

.windows-10 .terminal-like-window.active-window {
  border-color: #1883d7;
}

.windows-10 .terminal-like-window .terminal-titlebar {
  grid-template-columns: minmax(0, 1fr) 138px;
  height: 30px;
  padding: 0 0 0 8px;
  color: #111;
  background: #fff;
  border-bottom: 0;
}

.windows-10 .terminal-like-window .win-controls,
.windows-10 .terminal-like-window .win-btn {
  height: 30px;
}

.windows-10 .terminal-like-window .win-btn {
  color: rgba(0, 0, 0, 0.86);
}

.windows-10 .terminal-like-window .win-btn:hover {
  background: #e5e5e5;
}

.windows-10 .terminal-like-window .win-btn.close:hover {
  color: #fff;
  background: #e81123;
}

.windows-10 .chrome-tab-strip {
  height: 40px;
  padding-top: 7px;
}

.windows-10 .chrome-caption-controls {
  height: 40px;
  margin-top: -7px;
}

.windows-10 .chrome-caption-controls .win-btn {
  height: 40px;
  color: #111827;
}

.windows-10 .chrome-caption-controls .win-btn.close:hover {
  color: #fff;
}

/* Windows 11 shell: fixed against Microsoft's 48px taskbar and 32px title bar metrics. */
.desktop.windows-11 {
  --desktop-wallpaper: #9dbfd2 url("./assets/wallpapers/windows-11-bloom.jpg") center center / cover no-repeat;
  font-family: "Segoe UI Variable", "Segoe UI", var(--sans);
}

.windows-11 .win11-taskbar {
  height: 48px;
  padding: 0;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(22, 30, 45, 0.84);
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(30px) saturate(135%);
  box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.16);
}

.app-shell .windows-11 .win11-taskbar {
  pointer-events: auto;
}

.windows-11 .taskbar-center.win11 {
  height: 48px;
  gap: 2px;
}

.win11-task-app {
  position: relative;
  display: inline-flex;
  width: 44px;
  height: 40px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: rgba(255, 255, 255, 0.94);
  background: transparent;
  border: 0;
  border-radius: 4px;
}

.win11-task-app:hover,
.win11-task-app.active {
  background: rgba(255, 255, 255, 0.1);
}

.win11-task-app.running::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 6px;
  height: 3px;
  transform: translateX(-50%);
  background: #8ac8ff;
  border-radius: 2px;
}

.win11-task-app.running.active::after {
  width: 16px;
}

.win11-task-app.multiple::before {
  content: "";
  position: absolute;
  left: calc(50% + 6px);
  bottom: 1px;
  width: 6px;
  height: 3px;
  background: #8ac8ff;
  border-radius: 2px;
}

.windows-10 .taskbar-app.multiple::before {
  content: "";
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 2px;
  height: 2px;
  background: #76b9ed;
}

.win11-task-app-icon {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
}

.win11-task-app-icon > img,
.win11-task-app-icon > svg {
  display: block;
  width: 100%;
  height: 100%;
}

.win11-task-app[data-taskbar-group="terminal"] .win11-task-app-icon,
.win11-task-app[data-taskbar-group="folder"] .win11-task-app-icon {
  width: 28px;
  height: 28px;
}

.win11-task-app[data-taskbar-group="cursor"] .win11-task-app-icon,
.win11-task-app[data-taskbar-group="codex"] .win11-task-app-icon {
  width: 27px;
  height: 27px;
  padding: 5px;
  background: #15171b;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.34);
}

.windows-11 .start-button {
  width: 44px;
  height: 40px;
  margin: 0;
  color: #60cdff;
  background: transparent;
  border-radius: 4px;
}

.windows-11 .start-button::before {
  content: none;
}

.win11-start-glyph {
  display: inline-flex;
  width: 20px;
  height: 20px;
}

.win11-start-glyph svg,
.win11-search-glyph svg {
  width: 100%;
  height: 100%;
}

.windows-11 .win11-search {
  width: 206px;
  height: 32px;
  margin: 0 5px 0 2px;
  padding: 0 13px;
  gap: 9px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 17px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-size: 14px;
}

.windows-11 .win11-search:hover {
  background: rgba(255, 255, 255, 0.13);
}

.windows-11 .win11-search::before {
  content: none;
}

.win11-search-glyph {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: rgba(255, 255, 255, 0.82);
}

.windows-11 .win11-tray {
  right: 0;
  bottom: 0;
  height: 48px;
  gap: 0;
}

.windows-11 .win11-tray .tray-caret::before {
  content: none;
}

.win11-tray-button,
.win11-quick-settings,
.windows-11 .taskbar-time {
  display: inline-flex;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.win11-tray-button:hover,
.win11-quick-settings:hover,
.windows-11 .taskbar-time:hover {
  background: rgba(255, 255, 255, 0.1);
}

.win11-tray-button {
  width: 30px;
}

.win11-tray-button svg {
  display: block;
  width: 18px;
  height: 18px;
}

.win11-quick-settings {
  gap: 5px;
  padding: 0 7px;
  color: inherit;
  background: transparent;
  border: 0;
}

.win11-quick-settings > span {
  display: inline-flex;
  width: 18px;
  height: 18px;
}

.win11-quick-settings svg {
  width: 100%;
  height: 100%;
}

.windows-11 .taskbar-time {
  width: 74px;
  margin: 0;
  padding: 0;
  flex-direction: column;
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  line-height: 1.32;
  text-align: center;
}

.windows-11 .notification-bell {
  width: 30px;
}

.show-desktop-strip {
  width: 6px;
  height: 48px;
  padding: 0;
  background: transparent;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.windows-desktop-icons {
  top: 10px;
  left: 8px;
  gap: 10px;
}

.windows-desktop-icon {
  display: flex;
  width: 80px;
  min-height: 78px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  padding: 4px 3px;
  color: #fff;
  font-size: 11.5px;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.86);
}

.windows-desktop-icon::before {
  content: none;
}

.desktop-system-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.28));
}

.desktop-system-icon svg {
  width: 100%;
  height: 100%;
}

.windows-11 .window {
  background: #171a20;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.36), 0 1px 2px rgba(0, 0, 0, 0.44);
}

.windows-11 .window.active-window {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42), 0 2px 5px rgba(0, 0, 0, 0.38);
}

.windows-11 .window.maximized {
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 0;
  box-shadow: none;
}

.windows-11 .window.selected {
  outline: 1px solid rgba(96, 205, 255, 0.86);
  outline-offset: 1px;
}

.windows-11 .titlebar:not(.terminal-titlebar) {
  grid-template-columns: minmax(0, 1fr) 138px;
  height: 32px;
  padding: 0 0 0 16px;
  color: rgba(255, 255, 255, 0.9);
  background: #20242b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.window-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.windows-11 .window-title .title {
  font-size: 12px;
  font-weight: 400;
}

.window-app-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  align-items: center;
  justify-content: center;
}

.window-app-icon img,
.window-app-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.windows-11 .win-controls,
.windows-11 .chrome-caption-controls {
  display: flex;
  width: 138px;
  height: 32px;
  align-self: start;
  align-items: stretch;
  justify-content: flex-end;
  gap: 0;
}

.windows-11 .win-btn {
  display: inline-flex;
  width: 46px;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: rgba(255, 255, 255, 0.92);
  background: transparent;
  border: 0;
  border-radius: 0;
}

.windows-11 .win-btn svg {
  display: block;
  width: 16px;
  height: 16px;
}

.windows-11 .win-btn:hover {
  background: rgba(255, 255, 255, 0.11);
}

.windows-11 .win-btn.close:hover {
  color: #fff;
  background: #c42b1c;
}

.windows-11 .window:not(.active-window) .window-title,
.windows-11 .window:not(.active-window) .terminal-title-tabs,
.windows-11 .window:not(.active-window) .terminal-title-path,
.windows-11 .window:not(.active-window) .win-btn {
  opacity: 0.62;
}

.windows-11 .terminal-like-window .terminal-titlebar {
  grid-template-columns: minmax(190px, 0.82fr) minmax(0, 1fr) 138px;
  height: 40px;
  padding: 0 0 0 8px;
  background: rgba(31, 35, 44, 0.98);
}

.windows-11 .terminal-like-window .terminal-title-tab {
  height: 33px;
  padding: 0 14px;
  background: #11141a;
  border-radius: 6px 6px 0 0;
  font-weight: 400;
}

.windows-11 .terminal-like-window .win-controls {
  height: 40px;
  align-self: stretch;
}

.windows-11 .terminal-like-window .win-btn {
  height: 40px;
}

.windows-11 .chrome-tab-strip {
  height: 40px;
  padding-top: 7px;
}

.windows-11 .chrome-caption-controls {
  height: 40px;
  margin-top: -7px;
}

.windows-11 .chrome-caption-controls .win-btn {
  height: 40px;
  color: #18202b;
}

.windows-11 .chrome-caption-controls .win-btn.close:hover {
  color: #fff;
}

.window.maximized .resize-handle {
  display: none;
}

@media (max-height: 960px) and (min-width: 981px) {
  .landing {
    padding: 20px 24px;
  }

  .landing h1 {
    margin: 12px 0 8px;
    font-size: 38px;
  }

  .landing-copy {
    font-size: 14px;
    line-height: 1.45;
  }

  .section-title {
    margin: 16px 0 8px;
  }

  .choice,
  .preset-choice {
    min-height: 66px;
    padding: 10px;
  }

  .preset-grid {
    max-height: 132px;
  }

  .landing-actions {
    margin-top: 14px;
  }

  .landing-preview {
    top: 20px;
    height: calc(100vh - 40px);
  }
}

@media (max-width: 980px) {
  .landing {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .preview-frame {
    min-height: 420px;
  }

  .landing-preview {
    position: static;
    height: auto;
  }

  .app-shell {
    grid-template-columns: 260px minmax(0, 1fr);
  }

}

@media (max-width: 720px) {
  body {
    overflow: auto;
  }

  #app {
    min-height: 100%;
    height: auto;
  }

  .landing {
    padding: 18px;
  }

  .landing h1 {
    font-size: 34px;
  }

  .os-grid,
  .stack-grid {
    grid-template-columns: 1fr;
  }

  .app-shell {
    display: block;
    height: auto;
  }

  .control-panel {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .desktop-wrap {
    height: 620px;
  }

  .preview-frame .desktop {
    min-height: 420px;
  }

  .mac-menu-items,
  .macos-modern .status-control-center,
  .mac-menu-clock [data-clock-date-mac] {
    display: none;
  }

  .macos-modern .dock {
    bottom: 6px;
    height: 48px;
    gap: 2px;
    max-width: calc(100% - 12px);
    padding: 5px 6px 8px;
    border-radius: 14px;
  }

  .mac-dock-app {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .mac-dock-icon {
    width: 33px;
    height: 33px;
  }

  .mac-dock-tile {
    width: 29px;
    height: 29px;
    border-radius: 7px;
  }

  .mac-dock-tile img {
    width: 20px;
    height: 20px;
  }

  .folder-item .mac-dock-icon > img {
    width: 31px;
    height: 31px;
  }

  .mac-dock-app.running::after {
    bottom: -6px;
    width: 3px;
    height: 3px;
  }

  .macos-modern .dock-separator {
    height: 31px;
    margin: 0 1px;
  }

  .mac-shell-panel {
    bottom: 60px;
    max-height: calc(100% - 94px);
    padding: 12px;
  }

  .finder-layout {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .finder-layout aside {
    padding: 8px 4px;
  }

  .mac-shell-panel .shell-file-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .mac-shell-panel .shell-file-row > small {
    display: none;
  }

  .windows-11 .taskbar-center.win11,
  .windows-10 .taskbar-center {
    position: absolute;
    left: 0;
    overflow: hidden;
    transform: none;
  }

  .windows-11 .taskbar-center.win11 {
    right: 100px;
  }

  .windows-10 .taskbar-center {
    right: 112px;
  }

  .windows-11 .win11-search,
  .windows-10 .win10-search {
    width: 38px;
    flex: 0 0 38px;
    justify-content: center;
    margin: 0;
    padding: 0;
  }

  .windows-11 .win11-search > span:last-child,
  .windows-10 .win10-search > span:last-child,
  .windows-10 .task-view-button,
  .windows-11 [data-taskbar-group="cursor"],
  .windows-11 [data-taskbar-group="chrome"],
  .windows-11 [data-taskbar-group="folder"],
  .windows-11 [data-taskbar-group="claude"],
  .windows-11 [data-taskbar-group="codex"],
  .windows-10 [data-taskbar-group="cursor"],
  .windows-10 [data-taskbar-group="chrome"],
  .windows-10 [data-taskbar-group="folder"],
  .windows-10 [data-taskbar-group="claude"],
  .windows-10 [data-taskbar-group="codex"] {
    display: none;
  }

  .windows-11 .win11-tray .tray-caret,
  .windows-11 .notification-bell,
  .windows-11 .win11-quick-settings > span:not(:first-child),
  .windows-10 .win10-tray > :first-child,
  .windows-10 .win10-tray > :nth-child(4),
  .windows-10 .win10-tray .action-center {
    display: none;
  }

  .windows-11 .win11-quick-settings {
    width: 36px;
    padding: 0;
  }

  .windows-11 .taskbar-time,
  .windows-10 .taskbar-time {
    width: 56px;
  }
}
