:root {
  --bg-0: #020617;
  --bg-1: #0f172a;
  --bg-2: #1e293b;
  --bg-3: #334155;
  --text-0: #f8fafc;
  --text-1: #e2e8f0;
  --text-2: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #0ea5e9;
  --success: #10b981;
  --warn: #f59e0b;
  --error: #ef4444;
  --glass-bg: rgba(15, 23, 42, 0.7);
  --glass-border: rgba(148, 163, 184, 0.18);
  --shadow: 0 18px 50px rgba(2, 6, 23, 0.45);
  --radius: 18px;
  --taskbar-height: 54px;
  --header-height: 60px;
  font-synthesis-weight: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 32%),
    radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.12), transparent 30%),
    linear-gradient(160deg, #020617 0%, #0f172a 48%, #111827 100%);
  color: var(--text-0);
  font-family:
    Inter,
    "SF Pro Text",
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
}

body {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.85);
  color: var(--text-1);
  border-radius: 12px;
  padding: 8px 12px;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

button:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(56, 189, 248, 0.35);
}

button:active {
  transform: translateY(1px);
}

button.primary {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.88), rgba(14, 165, 233, 0.88));
  color: #03111f;
  border-color: rgba(56, 189, 248, 0.5);
  font-weight: 700;
}

button.ghost-button {
  background: transparent;
}

input,
select,
textarea {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-0);
  padding: 10px 12px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}

code,
pre {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    "Liberation Mono",
    monospace;
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
}

.screen {
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.auth-card,
.workspace-shell {
  width: min(920px, 100%);
  border-radius: 24px;
  padding: 28px;
}

.auth-card {
  max-width: 560px;
}

.auth-header {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
}

.auth-header h1,
.workspace-topbar h1 {
  margin: 0 0 6px;
}

.auth-header p,
.workspace-topbar p {
  margin: 0;
  color: var(--text-2);
  line-height: 1.55;
}

.app-logo,
.workspace-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-size: 28px;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label,
.field {
  display: grid;
  gap: 8px;
}

.auth-form span,
.field span {
  color: var(--text-2);
  font-size: 14px;
}

.hint-box {
  margin-top: 18px;
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.85);
  color: var(--text-2);
  display: grid;
  gap: 8px;
}

.workspace-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.workspace-card {
  padding: 18px;
  border-radius: 18px;
  text-align: left;
  min-height: 180px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.workspace-name {
  font-weight: 700;
  font-size: 18px;
}

.workspace-desc,
.workspace-meta {
  color: var(--text-2);
  line-height: 1.45;
}

.desktop-shell {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.desktop-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.44);
  backdrop-filter: blur(14px);
}

.desktop-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.26);
}

.brand-title {
  font-weight: 700;
  line-height: 1.2;
}

.brand-subtitle {
  color: var(--text-2);
  font-size: 13px;
}

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

.desktop-sort-select {
  min-width: 132px;
}

.desktop-surface {
  position: absolute;
  inset: var(--header-height) 0 var(--taskbar-height) 0;
  overflow: hidden;
  background:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.desktop-icons {
  position: absolute;
  inset: 18px auto auto 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 92px));
  grid-auto-rows: 96px;
  gap: 10px 12px;
  align-content: start;
  max-height: calc(100% - 24px);
  pointer-events: auto;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 8px 6px;
  min-height: 92px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.18);
  border: 1px solid transparent;
  backdrop-filter: blur(8px);
  text-align: center;
}

.desktop-icon:hover,
.desktop-icon.selected {
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(30, 41, 59, 0.32);
}

.desktop-icon-glyph {
  font-size: 30px;
  line-height: 1;
}

.desktop-icon-label {
  font-size: 12px;
  line-height: 1.3;
  max-width: 78px;
  word-break: break-word;
  color: var(--text-1);
  text-shadow: 0 1px 1px rgba(2, 6, 23, 0.8);
}

.desktop-empty {
  width: 240px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: var(--text-2);
  line-height: 1.45;
}

.taskbar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: calc(var(--taskbar-height) - 12px);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(148, 163, 184, 0.12);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  box-shadow: var(--shadow);
}

.start-button {
  min-width: 100px;
  background: rgba(30, 41, 59, 0.96);
  font-weight: 700;
}

.taskbar-apps {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  flex: 1;
}

.taskbar-app {
  white-space: nowrap;
  min-width: 130px;
  text-align: left;
}

.taskbar-app.minimized {
  opacity: 0.75;
}

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

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.9);
}

.status-badge.online {
  border-color: rgba(16, 185, 129, 0.32);
  color: #a7f3d0;
}

.status-badge.degraded {
  border-color: rgba(245, 158, 11, 0.32);
  color: #fde68a;
}

.status-badge.offline {
  border-color: rgba(239, 68, 68, 0.32);
  color: #fecaca;
}

.start-menu {
  position: absolute;
  left: 12px;
  bottom: 74px;
  width: 300px;
  max-height: min(70vh, 620px);
  overflow: auto;
  border-radius: 20px;
  padding: 12px;
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
  z-index: 999;
}

.start-section {
  display: grid;
  gap: 6px;
}

.start-menu.hidden {
  display: none !important;
}

.start-item {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
  padding: 10px 12px;
  border-radius: 14px;
  text-align: left;
}

.start-icon {
  width: 28px;
  display: inline-grid;
  place-items: center;
}

.window {
  position: absolute;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 320px;
  min-height: 240px;
  will-change: left, top, width, height;
}

.hidden-window {
  display: none;
}

.window-header {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 0 14px;
  background: rgba(2, 6, 23, 0.65);
  border-bottom: 1px solid rgba(148, 163, 184, 0.10);
  user-select: none;
  cursor: grab;
}

.window-header:active {
  cursor: grabbing;
}

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

.window-actions {
  display: flex;
  gap: 6px;
}

.window-actions button {
  width: 28px;
  height: 28px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
}

.window-body {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  height: auto;
  overflow: hidden;
  position: relative;
}

.window-resizer {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
  cursor: nwse-resize;
  background:
    linear-gradient(135deg, transparent 0, transparent 40%, rgba(148, 163, 184, 0.44) 42%, rgba(148, 163, 184, 0.44) 48%, transparent 50%, transparent 60%, rgba(148, 163, 184, 0.44) 62%, rgba(148, 163, 184, 0.44) 68%, transparent 70%);
}

.app-pane {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.app-pane.native-dsl-app {
  grid-template-rows: minmax(0, 1fr);
}

.app-pane.native-dsl-app > .slp-form-host {
  height: 100%;
}

.toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.10);
  background: rgba(15, 23, 42, 0.55);
}

.toolbar-spacer {
  flex: 1;
}

.muted {
  color: var(--text-2);
  font-size: 13px;
}

.notes-editor {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  resize: none;
  padding: 18px;
  background: transparent;
  color: var(--text-0);
  line-height: 1.65;
}

.calc-display {
  margin: 14px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.64);
  display: grid;
  gap: 8px;
}

.calc-expression {
  min-height: 24px;
  color: var(--text-2);
  word-break: break-all;
}

.calc-result {
  min-height: 38px;
  font-size: 30px;
  font-weight: 700;
  word-break: break-all;
}

.calculator-grid {
  display: grid;
  gap: 8px;
  padding: 0 14px 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.calculator-grid button {
  height: 46px;
}

.equals-button {
  grid-column: span 4;
  font-weight: 700;
}

.draw-canvas {
  display: block;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  margin: 12px;
  border-radius: 16px;
  border: 1px dashed rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.85), rgba(15, 23, 42, 0.5));
  touch-action: none;
}

.explorer-list {
  overflow: auto;
  padding: 8px;
}

.file-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  border-radius: 12px;
  cursor: default;
}

.file-row:hover {
  background: rgba(30, 41, 59, 0.7);
}

.file-row.selected {
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.22);
}

.file-icon {
  width: 24px;
  display: inline-grid;
  place-items: center;
}

.file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-meta {
  color: var(--text-2);
  font-size: 12px;
  padding-right: 10px;
}

.metrics-grid {
  display: grid;
  gap: 12px;
  padding: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.metric-card {
  padding: 14px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.10);
  display: grid;
  gap: 8px;
}

.metric-label {
  color: var(--text-2);
  font-size: 13px;
}

.metric-value {
  font-weight: 800;
  font-size: 22px;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 12px 12px;
}

.panel {
  background: rgba(2, 6, 23, 0.48);
  border: 1px solid rgba(148, 163, 184, 0.10);
  border-radius: 18px;
  padding: 14px;
}

.panel h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.table-panel {
  overflow: auto;
}

.table-host {
  margin-bottom: 14px;
}

.task-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.task-table th,
.task-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  vertical-align: top;
}

.task-table th {
  color: var(--text-2);
  font-weight: 600;
}

.task-table td button {
  margin-right: 6px;
  margin-bottom: 4px;
  padding: 6px 8px;
  font-size: 12px;
}

.code-block {
  margin: 0;
  padding: 14px;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.7);
  color: #cbd5e1;
  overflow: auto;
  max-height: 280px;
}

.empty-state {
  color: var(--text-2);
  min-height: 80px;
  display: grid;
  place-items: center;
  text-align: center;
}

.toast-root {
  position: fixed;
  right: 18px;
  bottom: 84px;
  display: grid;
  gap: 10px;
  z-index: 2000;
}

.toast {
  width: min(360px, calc(100vw - 24px));
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(2, 6, 23, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: var(--shadow);
  animation: toast-in 160ms ease;
}

.toast.success {
  border-color: rgba(16, 185, 129, 0.28);
}

.toast.warn {
  border-color: rgba(245, 158, 11, 0.28);
}

.toast.error {
  border-color: rgba(239, 68, 68, 0.30);
}

.toast.leave {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast-title {
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 6px;
}

.toast-body {
  line-height: 1.5;
}

.modal-root {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3000;
}

.overlay {
  position: fixed;
  inset: 0;
  pointer-events: auto;
  background: rgba(2, 6, 23, 0.55);
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal {
  width: min(460px, 100%);
  padding: 20px;
  border-radius: 22px;
  display: grid;
  gap: 14px;
}

.modal h3 {
  margin: 0;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-1);
}

.checkbox-row input {
  width: 18px;
  height: 18px;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .split-layout {
    grid-template-columns: 1fr;
  }

  .desktop-header {
    padding: 0 10px;
  }

  .desktop-actions {
    display: none;
  }

  .taskbar {
    left: 8px;
    right: 8px;
    bottom: 8px;
  }

  .taskbar-right {
    gap: 6px;
  }

  .status-badge {
    min-width: 74px;
    font-size: 12px;
  }

  .workspace-shell {
    padding: 18px;
  }
}



:root {
  --bg-0: #050713;
  --bg-1: #0b1020;
  --bg-2: #121a31;
  --bg-3: #233458;
  --text-0: #f7fbff;
  --text-1: #d7e7ff;
  --text-2: #89a6d9;
  --accent: #74b7ff;
  --accent-2: #a677ff;
  --glass-bg: rgba(13, 19, 37, 0.72);
  --glass-border: rgba(132, 173, 255, 0.20);
  --shadow: 0 20px 60px rgba(2, 6, 23, 0.52);
  --radius: 20px;
}

html,
body {
  background:
    radial-gradient(circle at 8% 12%, rgba(125, 178, 255, 0.24), transparent 24%),
    radial-gradient(circle at 92% 14%, rgba(166, 119, 255, 0.16), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(39, 123, 255, 0.12), transparent 32%),
    linear-gradient(160deg, #040611 0%, #0b1020 44%, #0f1830 100%);
}

.desktop-header {
  background: linear-gradient(180deg, rgba(5, 8, 20, 0.55), rgba(8, 14, 28, 0.42));
  border-bottom: 1px solid rgba(143, 181, 255, 0.12);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.04);
}

.brand-mark,
.workspace-icon,
.app-logo {
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.22), transparent 38%),
    linear-gradient(180deg, rgba(116, 183, 255, 0.22), rgba(166, 119, 255, 0.18));
  border-color: rgba(126, 174, 255, 0.28);
  box-shadow: 0 10px 24px rgba(21, 63, 146, 0.28);
}

.workspace-card,
.window,
.start-menu,
.modal,
.auth-card,
.workspace-shell {
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.window {
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(12, 18, 36, 0.90), rgba(10, 14, 28, 0.84));
  border: 1px solid rgba(132, 173, 255, 0.18);
}

.window-header {
  background:
    linear-gradient(180deg, rgba(82, 120, 191, 0.16), rgba(10, 17, 31, 0.14));
  border-bottom: 1px solid rgba(132, 173, 255, 0.12);
}

.window-title {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.window-actions button {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 10px;
}

.workspace-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(17, 25, 43, 0.86);
  border: 1px solid rgba(132, 173, 255, 0.18);
  color: var(--text-2);
  font-size: 13px;
}

.start-button,
.taskbar-app,
.start-item,
.workspace-card {
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.start-button:hover,
.taskbar-app:hover,
.start-item:hover,
.workspace-card:hover {
  transform: translateY(-1px);
  border-color: rgba(130, 178, 255, 0.32);
  box-shadow: 0 16px 30px rgba(8, 18, 42, 0.36);
}

.taskbar {
  background:
    linear-gradient(180deg, rgba(8, 12, 24, 0.70), rgba(9, 13, 26, 0.88));
  border: 1px solid rgba(132, 173, 255, 0.16);
  backdrop-filter: blur(18px);
}

.status-badge.online {
  background: rgba(16, 185, 129, 0.14);
  color: #86efac;
}
.status-badge.degraded {
  background: rgba(245, 158, 11, 0.14);
  color: #fcd34d;
}
.status-badge.offline {
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
}

.metrics-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.metric-card {
  background:
    linear-gradient(180deg, rgba(16, 26, 48, 0.92), rgba(9, 15, 30, 0.92));
  border: 1px solid rgba(132, 173, 255, 0.12);
}

.code-block,
.compiler-output,
.ide-bundle-viewer,
.ide-execution-output,
.ide-trace-output {
  background: rgba(6, 10, 22, 0.94);
  border: 1px solid rgba(132, 173, 255, 0.14);
  border-radius: 14px;
}


.ide-app {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;
  background:
    linear-gradient(180deg, rgba(41, 57, 95, 0.16), rgba(9, 14, 28, 0.08));
}

.ide-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  background:
    linear-gradient(180deg, #516b9f 0%, #364d7a 48%, #22355c 100%);
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.ide-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ide-project-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #082343;
  background:
    linear-gradient(180deg, #e8f2ff, #aac6f3);
  border: 1px solid rgba(255,255,255,0.52);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.ide-project-name {
  font-weight: 800;
  font-size: 15px;
}

.ide-project-subtitle {
  color: rgba(231, 241, 255, 0.72);
  font-size: 12px;
}

.ide-topbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ide-topbar-actions button {
  background:
    linear-gradient(180deg, rgba(245, 249, 255, 0.94), rgba(208, 224, 248, 0.88));
  color: #082343;
  border: 1px solid rgba(255,255,255,0.58);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
}

.ide-topbar-actions button.primary {
  background:
    linear-gradient(180deg, rgba(255, 240, 168, 0.98), rgba(244, 208, 85, 0.94));
  color: #342400;
  border-color: rgba(255, 240, 170, 0.65);
}

.ide-workbench {
  min-height: 0;
  display: grid;
  grid-template-columns: 220px minmax(520px, 1fr) 310px;
  gap: 12px;
  padding: 12px;
}

.glass-panel {
  min-height: 0;
  border-radius: 16px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(13, 19, 37, 0.84), rgba(7, 11, 23, 0.88));
  border: 1px solid rgba(132, 173, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.pane-title {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 10px;
}

.ide-toolbox {
  overflow: auto;
}

.ide-toolbox-list {
  display: grid;
  gap: 8px;
}

.ide-outline {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.outline-entry {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(37, 50, 82, 0.72), rgba(18, 26, 46, 0.82));
  border: 1px solid rgba(132, 173, 255, 0.16);
  cursor: pointer;
  color: var(--text-1);
}

.outline-entry span {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}

.outline-entry strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.outline-entry em {
  font-style: normal;
  font-size: 12px;
  color: var(--text-2);
}

.outline-entry.active {
  background: linear-gradient(180deg, rgba(143, 183, 255, 0.30), rgba(73, 106, 170, 0.34));
  border-color: rgba(170, 203, 255, 0.42);
}

.toolbox-item {
  border-radius: 12px;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(42, 58, 94, 0.74), rgba(17, 26, 48, 0.88));
  border: 1px solid rgba(132, 173, 255, 0.18);
  cursor: grab;
}

.toolbox-item-title {
  font-weight: 700;
}
.toolbox-item-sub {
  color: var(--text-2);
  font-size: 12px;
}

.ide-center {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
}

.ide-tabs {
  display: flex;
  gap: 8px;
  padding-bottom: 12px;
}
.ide-tabs button,
.bundle-tabs button {
  background:
    linear-gradient(180deg, rgba(34, 48, 79, 0.92), rgba(15, 23, 41, 0.92));
  border: 1px solid rgba(132, 173, 255, 0.18);
}
.ide-tabs button.active,
.bundle-tabs button.active {
  background:
    linear-gradient(180deg, rgba(138, 182, 255, 0.28), rgba(68, 105, 176, 0.34));
  border-color: rgba(160, 195, 255, 0.38);
}

.ide-view {
  min-height: 0;
  overflow: hidden;
}
.ide-view.hidden {
  display: none;
}

.designer-stage {
  height: 100%;
  overflow: auto;
  padding: 12px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(10, 14, 28, 0.88), rgba(6, 10, 22, 0.94));
  border: 1px solid rgba(132, 173, 255, 0.12);
}

.vb-design-surface,
.vb-preview-form {
  position: relative;
  border-radius: 10px;
  border: 1px solid rgba(181, 204, 255, 0.20);
  background:
    linear-gradient(180deg, rgba(244, 247, 252, 0.98), rgba(223, 230, 244, 0.98));
  box-shadow:
    0 20px 40px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.7);
  background-image:
    linear-gradient(rgba(67, 84, 118, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67, 84, 118, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.62), rgba(223, 230, 244, 0.98));
  background-size: 16px 16px, 16px 16px, auto;
}

.vb-preview-form.vb-fluid-form {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.vb-preview-form.vb-fluid-form > .preview-layout {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.designer-control {
  position: absolute;
  border: 1px solid rgba(61, 95, 164, 0.28);
  border-radius: 8px;
  background: rgba(255,255,255,0.56);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
  overflow: hidden;
}

.preview-control {
  position: relative;
  box-sizing: border-box;
  display: block;
  max-width: 100%;
}

.preview-control.type-label,
.preview-control.type-displaylabel,
.preview-control.type-statuslabel {
  display: flex;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-control.absolute-control {
  position: absolute;
}

.preview-layout {
  position: relative;
  box-sizing: border-box;
}

.layout-toolbar,
.layout-statusbar {
  background: rgba(255,255,255,0.48);
  border-bottom: 1px solid rgba(82, 112, 164, 0.12);
  overflow: hidden;
}

.layout-toolbar > .preview-control,
.layout-statusbar > .preview-control {
  max-width: 100%;
  white-space: nowrap;
}

.layout-statusbar {
  border-top: 1px solid rgba(82, 112, 164, 0.12);
  border-bottom: none;
}

.layout-tabs {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255,255,255,0.36);
  border: 1px solid rgba(82, 112, 164, 0.16);
}

.preview-tabs-nav {
  display: flex;
  gap: 6px;
  padding: 8px 8px 0 8px;
  border-bottom: 1px solid rgba(82, 112, 164, 0.12);
}

.preview-tab-button {
  appearance: none;
  border: 1px solid rgba(82, 112, 164, 0.18);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  background: rgba(255,255,255,0.52);
  color: #11203e;
  padding: 6px 10px;
  cursor: pointer;
}

.preview-tab-button.active {
  background: rgba(255,255,255,0.92);
  font-weight: 700;
}

.preview-tabs-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  padding: 8px;
}

.preview-tabs-body > .preview-layout,
.preview-tabs-body > .preview-control {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
}

.preview-pane.fill-child > .preview-layout,
.preview-pane.fill-child > .preview-control,
.preview-tab.fill-child > .preview-layout,
.preview-tab.fill-child > .preview-control {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
}

.designer-control.selected {
  outline: 2px solid rgba(92, 142, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(92, 142, 255, 0.18);
}

.designer-control-caption {
  height: 20px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(128, 162, 222, 0.42), rgba(64, 104, 172, 0.32));
  color: #19315d;
  font-size: 11px;
  font-weight: 700;
  border-bottom: 1px solid rgba(61, 95, 164, 0.16);
}

.designer-control-body {
  height: calc(100% - 20px);
  padding: 6px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.designer-control-body *,
.preview-control.design-mode * {
  pointer-events: none;
}

.designer-control button,
.preview-control button {
  width: 100%;
}

.designer-control input,
.designer-control textarea,
.preview-control input,
.preview-control textarea {
  width: 100%;
  height: 100%;
  color: #11203e;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(82, 112, 164, 0.28);
  box-shadow: none;
}

.listbox-shell,
.listbox-inner {
  width: 100%;
  height: 100%;
  overflow: auto;
  border-radius: 6px;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(82, 112, 164, 0.24);
}

.list-item {
  padding: 4px 6px;
  border-bottom: 1px solid rgba(82, 112, 164, 0.12);
  color: #11203e;
  cursor: pointer;
}

.list-item.selected {
  background: rgba(96, 165, 250, 0.18);
}


.list-item-title {
  font-weight: 600;
}

.list-item-detail {
  margin-top: 2px;
  font-size: 11px;
  color: rgba(17, 32, 62, 0.72);
}

.listview-item {
  padding: 8px 10px;
}

.collection-listview,
.collection-tableview,
.collection-treeview,
.collection-breadcrumb,
.collection-propertygrid,
.collection-repeater,
.collection-contextmenu,
.collection-listbox {
  width: 100%;
  height: 100%;
  overflow: auto;
}

.tableview-shell {
  width: 100%;
  height: 100%;
  overflow: auto;
  border-radius: 10px;
}

.tableview-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
}

.tableview-table th,
.tableview-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(82, 112, 164, 0.14);
  color: #11203e;
  text-align: left;
  vertical-align: top;
}

.tableview-table thead th {
  position: sticky;
  top: 0;
  background: rgba(236, 243, 255, 0.95);
  z-index: 1;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.table-row.selected td {
  background: rgba(96, 165, 250, 0.18);
}

.align-right {
  text-align: right;
}

.align-center {
  text-align: center;
}

.treeview-shell {
  width: 100%;
  min-height: 100%;
  padding: 4px 0;
}

.treeview-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 8px;
  color: #11203e;
  cursor: default;
  user-select: none;
}

.treeview-row.selected {
  background: rgba(96, 165, 250, 0.18);
}

.treeview-expander {
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 6px;
  background: rgba(236, 243, 255, 0.78);
  color: #2f4f8d;
  cursor: pointer;
  flex: 0 0 22px;
}

.treeview-expander.leaf {
  background: transparent;
  color: rgba(17, 32, 62, 0.55);
}

.treeview-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breadcrumb-shell {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-height: 100%;
  padding: 6px 8px;
}

.breadcrumb-item {
  appearance: none;
  border: 1px solid rgba(82, 112, 164, 0.16);
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  color: #11203e;
  padding: 4px 10px;
  cursor: pointer;
  width: auto !important;
}

.breadcrumb-item.active {
  background: rgba(96, 165, 250, 0.18);
  font-weight: 700;
}

.breadcrumb-sep {
  color: rgba(17, 32, 62, 0.55);
}

.property-grid-shell {
  display: grid;
  grid-template-columns: 1fr;
}

.property-grid-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1fr);
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(82, 112, 164, 0.12);
}

.property-grid-row.selected {
  background: rgba(96, 165, 250, 0.16);
}

.property-grid-key {
  color: rgba(17, 32, 62, 0.72);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.property-grid-value {
  color: #11203e;
  word-break: break-word;
}

.repeater-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  padding: 10px;
}

.repeater-card {
  border-radius: 12px;
  border: 1px solid rgba(82, 112, 164, 0.16);
  background: rgba(255,255,255,0.72);
  padding: 10px;
  min-height: 78px;
}

.repeater-card.selected {
  background: rgba(96, 165, 250, 0.14);
  border-color: rgba(96, 165, 250, 0.36);
}

.repeater-title {
  font-size: 12px;
  color: rgba(17, 32, 62, 0.72);
}

.repeater-value {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 700;
  color: #11203e;
}

.contextmenu-placeholder {
  display: grid;
  gap: 2px;
  padding: 4px;
}

.code-editor,
.type-codeeditor textarea,
.type-texteditor textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.5;
  white-space: pre;
}

.canvas-view-surface {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 180px;
  border-radius: 10px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(82, 112, 164, 0.18);
  touch-action: none;
}

.surface-design-preview {
  width: 100%;
  height: 100%;
  overflow: auto;
  padding: 8px;
}

.edge-form-overlay-menu {
  position: fixed;
  min-width: 168px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(248, 251, 255, 0.96);
  border: 1px solid rgba(82, 112, 164, 0.18);
  box-shadow: 0 18px 46px rgba(17, 32, 62, 0.22);
  z-index: 9999;
  backdrop-filter: blur(14px);
}

.edge-form-overlay-item {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #11203e;
  padding: 8px 10px;
  cursor: pointer;
}

.edge-form-overlay-item:hover {
  background: rgba(96, 165, 250, 0.16);
}

.surface-shell {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px dashed rgba(82, 112, 164, 0.28);
  background: rgba(255,255,255,0.6);
  color: #11203e;
  font-weight: 700;
}

.panel-shell {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  border: 1px dashed rgba(82, 112, 164, 0.42);
  color: #11203e;
  display: grid;
  place-items: center;
}

.designer-control-resize {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 12px;
  height: 12px;
  cursor: nwse-resize;
  background:
    linear-gradient(135deg, transparent 0 50%, rgba(88, 128, 196, 0.65) 50% 100%);
}

.ide-code-split {
  height: 100%;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 12px;
}

.code-panel,
.runtime-panel {
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr;
}

.code-panel textarea {
  width: 100%;
  height: 100%;
  resize: none;
  border-radius: 14px;
  background: rgba(6, 10, 22, 0.96);
  color: #d6ebff;
  border: 1px solid rgba(132, 173, 255, 0.14);
  padding: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.5;
}

.ide-preview-canvas {
  height: 100%;
  overflow: auto;
  padding: 12px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(8, 14, 28, 0.88), rgba(6, 10, 22, 0.94));
  border: 1px solid rgba(132, 173, 255, 0.12);
}

.ide-runtime-split {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(180px, auto);
  gap: 12px;
}

.runtime-panel-wide {
  grid-column: 1 / -1;
}

.bundle-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.ide-inspector {
  overflow: auto;
}

.inspector-grid {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.inspector-grid label,
.inspector-field {
  display: grid;
  gap: 6px;
}
.inspector-grid span,
.inspector-field span {
  color: var(--text-2);
  font-size: 12px;
}

.inspector-actions {
  display: flex;
  gap: 8px;
}

.compile-stat-grid,
.runtime-summary-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 12px;
}

.compile-stat-grid > div,
.runtime-summary-grid > div {
  padding: 10px;
  border-radius: 12px;
  background: rgba(17, 25, 43, 0.72);
  border: 1px solid rgba(132, 173, 255, 0.12);
}
.compile-stat-grid span,
.runtime-summary-grid span {
  display: block;
  color: var(--text-2);
  font-size: 12px;
  margin-bottom: 4px;
}

.compile-function-list {
  display: grid;
  gap: 8px;
}

.compile-function-card,
.runtime-function-card {
  border-radius: 12px;
  padding: 10px;
  background: rgba(17, 25, 43, 0.72);
  border: 1px solid rgba(132, 173, 255, 0.12);
}

.compile-function-card.active {
  border-color: rgba(140, 188, 255, 0.44);
  box-shadow: 0 0 0 2px rgba(116, 183, 255, 0.14);
}

.compile-function-title,
.runtime-function-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.compile-function-meta {
  color: var(--text-2);
  font-size: 12px;
}

.runtime-function-body {
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-2);
  font-size: 12px;
}

.ide-statusbar {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-top: 1px solid rgba(132, 173, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(18, 27, 49, 0.96), rgba(9, 14, 28, 0.94));
}

.ide-status-text {
  color: var(--text-2);
  font-size: 12px;
}

.empty-state.compact {
  min-height: 0;
  padding: 10px;
}

@media (max-width: 1280px) {
  .ide-workbench {
    grid-template-columns: 190px 1fr;
  }
  .ide-inspector {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .ide-workbench {
    grid-template-columns: 1fr;
  }
  .ide-toolbox,
  .ide-inspector {
    max-height: 260px;
  }
  .ide-code-split,
  .ide-runtime-split {
    grid-template-columns: 1fr;
  }
}

:root {
  --bg-0: #021127;
  --bg-1: #07203d;
  --bg-2: #123a67;
  --bg-3: #1d4f86;
  --accent: #69d1ff;
  --accent-2: #1fb6ff;
  --glass-bg: linear-gradient(180deg, rgba(8, 31, 58, 0.68), rgba(8, 31, 58, 0.44));
  --glass-border: rgba(184, 228, 255, 0.22);
  --shadow: 0 20px 48px rgba(5, 25, 48, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html,
body {
  background:
    radial-gradient(circle at 14% 18%, rgba(115, 214, 255, 0.22), transparent 24%),
    radial-gradient(circle at 84% 14%, rgba(80, 155, 255, 0.22), transparent 28%),
    radial-gradient(circle at 78% 76%, rgba(38, 198, 255, 0.12), transparent 28%),
    linear-gradient(145deg, #041326 0%, #0a2442 42%, #0a1c34 100%);
}

.glass,
.glass-panel,
.window-shell,
.modal,
.auth-card,
.workspace-shell,
.desktop-header,
.desktop-taskbar,
.start-menu,
.notification-toast {
  backdrop-filter: blur(24px) saturate(135%);
  -webkit-backdrop-filter: blur(24px) saturate(135%);
  box-shadow: var(--shadow);
  border: 1px solid rgba(184, 228, 255, 0.18);
  position: relative;
  overflow: hidden;
}

.glass::before,
.glass-panel::before,
.window-shell::before,
.modal::before,
.auth-card::before,
.workspace-shell::before,
.desktop-header::before,
.desktop-taskbar::before,
.start-menu::before,
.notification-toast::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03) 42%, rgba(255, 255, 255, 0.02) 100%);
}

button {
  background: linear-gradient(180deg, rgba(7, 31, 58, 0.82), rgba(6, 24, 47, 0.72));
}

button.primary {
  background: linear-gradient(180deg, rgba(119, 220, 255, 0.94), rgba(31, 182, 255, 0.9));
  color: #08203c;
}

.ide-topbar,
.ide-statusbar,
.toolbar,
.runtime-panel,
.code-panel,
.ide-toolbox,
.ide-inspector,
.ide-center,
.slp-form-shell,
.slp-runtime-shell {
  background: linear-gradient(180deg, rgba(9, 37, 69, 0.7), rgba(8, 30, 55, 0.52));
  border: 1px solid rgba(170, 223, 255, 0.16);
  box-shadow: 0 14px 36px rgba(5, 24, 45, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.vb-preview-form,
.vb-design-surface,
.slp-form-host {
  background:
    linear-gradient(180deg, rgba(244, 251, 255, 0.14), rgba(244, 251, 255, 0.03)),
    rgba(6, 26, 49, 0.46);
  border: 1px solid rgba(170, 223, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.preview-control,
.designer-control,
.toolbox-item,
.outline-entry,
.compile-function-card,
.file-row,
.workspace-card,
.window-chip {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border-color: rgba(170, 223, 255, 0.14);
}

.preview-control:focus-within,
.designer-control.selected,
.compile-function-card.active,
.outline-entry.active,
.file-row.selected,
.toolbox-item:hover {
  border-color: rgba(105, 209, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(105, 209, 255, 0.2), 0 12px 28px rgba(9, 41, 72, 0.24);
}

.slp-player-layout {
  display: grid;
  grid-template-columns: minmax(420px, 1.3fr) minmax(280px, 0.7fr);
  gap: 16px;
  min-height: 0;
  height: calc(100% - 54px);
}

.slp-form-shell,
.slp-runtime-shell {
  border-radius: 20px;
  padding: 14px;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.slp-form-host {
  flex: 1;
  min-height: 0;
  overflow: auto;
  border-radius: 16px;
  padding: 16px;
}

.slp-meta {
  margin-bottom: 12px;
}

.slp-output {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.start-group-title {
  margin: 10px 10px 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(191, 219, 254, 0.78);
}

.file-dialog-modal {
  width: min(860px, 92vw);
}

.file-dialog-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 14px;
  margin-top: 12px;
}

.file-dialog-column {
  min-height: 320px;
}

.file-dialog-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding-right: 6px;
}

.file-dialog-item {
  width: 100%;
  text-align: left;
}

.file-dialog-item.selected,
.project-node.selected {
  border-color: rgba(96, 165, 250, 0.65);
  background: rgba(37, 99, 235, 0.22);
}

.vb6-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;
  gap: 10px;
}

.vb6-main-layout {
  display: grid;
  grid-template-columns: 220px 1fr 300px;
  gap: 10px;
  min-height: 0;
}

.vb6-side-panel,
.vb6-center-panel {
  padding: 10px;
  min-height: 0;
  overflow: hidden;
}

.vb6-project-tree,
.vb6-properties,
.vb6-toolbox-list {
  display: grid;
  gap: 8px;
  overflow: auto;
}

.project-node {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.55);
  cursor: pointer;
}

.vb6-design-surface,
.vb6-preview-host {
  width: 100%;
  height: 100%;
  min-height: 500px;
  overflow: auto;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(191, 219, 254, 0.08), rgba(30, 41, 59, 0.28));
  border: 1px solid rgba(147, 197, 253, 0.18);
  padding: 16px;
}

.vb6-form-shell {
  position: relative;
  background: rgba(226, 232, 240, 0.08);
  border: 1px solid rgba(191, 219, 254, 0.22);
  border-radius: 18px;
}

.vb6-designer-control {
  position: absolute;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.28);
}

.vb6-designer-control.selected {
  border-color: rgba(96, 165, 250, 0.9);
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.18), 0 16px 40px rgba(2, 6, 23, 0.28);
}

.vb6-control-title {
  padding: 6px 8px;
  font-size: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  color: rgba(191, 219, 254, 0.88);
}

.vb6-control-body {
  position: relative;
  padding: 8px;
  overflow: hidden;
  transform: scale(0.92);
  transform-origin: top left;
}

.vb6-control-body .preview-control {
  position: absolute;
}

.vb6-runtime-summary .runtime-summary-grid {
  margin-bottom: 0;
}



.window {
  min-width: 320px;
  min-height: 240px;
}

.window.dragging-window,
.window.dragging-window * {
  cursor: grabbing !important;
}

.window.resizing-window,
.window.resizing-window * {
  cursor: nwse-resize !important;
}

.window.active-window {
  border-color: rgba(148, 197, 255, 0.36);
  box-shadow:
    0 22px 64px rgba(0, 0, 0, 0.30),
    0 0 0 1px rgba(148, 197, 255, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

body.window-interacting,
body.window-interacting * {
  user-select: none !important;
}

.window-header,
.window-resizer,
.vb6-designer-control {
  touch-action: none;
}

.window-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.app-pane,
.vb6-shell,
.slp-player-app {
  min-height: 0;
  min-width: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.vb6-main-layout {
  height: 100%;
  min-height: 0;
  min-width: 0;
  align-items: stretch;
  grid-template-columns: 200px minmax(0, 1fr) 320px;
}

.vb6-side-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}

.vb6-center-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  min-height: 0;
}

.vb6-toolbox-list,
.vb6-project-tree,
.vb6-properties,
.ide-view,
.ide-code-split,
.ide-runtime-split,
.code-panel,
.runtime-panel,
.vb6-design-surface,
.vb6-preview-host,
.slp-player-layout,
.slp-form-shell,
.slp-runtime-shell,
.slp-form-host {
  min-width: 0;
  min-height: 0;
}

.ide-view {
  display: block;
  height: 100%;
}

.vb6-design-surface,
.vb6-preview-host,
.slp-form-host {
  overflow: auto;
  box-sizing: border-box;
}

.vb6-form-shell {
  margin: 0 auto;
  box-sizing: border-box;
  min-width: max-content;
  min-height: max-content;
}

.vb6-designer-control {
  will-change: left, top;
  box-sizing: border-box;
}

.vb6-control-body {
  transform: none;
  padding: 8px;
  display: block;
}

.vb6-control-body .preview-control {
  position: absolute;
  inset: auto;
}

.vb6-code-editor,
.vb6-form-editor,
.vb6-runtime-output,
.vb6-runtime-bundle,
.slp-output {
  min-height: 0;
  height: 100%;
}

.ide-statusbar {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  overflow: hidden;
}

.ide-topbar {
  flex-wrap: wrap;
}

.ide-topbar-actions {
  align-items: center;
}

.vb6-project-title,
.vb6-project-subtitle,
.vb6-status-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.taskbar-app.minimized {
  opacity: 0.65;
}

.taskbar-app.active {
  border-color: rgba(148, 197, 255, 0.36);
  background: rgba(56, 189, 248, 0.18);
}

.slp-player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 12px;
  min-height: 0;
}

@media (max-width: 1180px) {
  .vb6-main-layout,
  .slp-player-layout {
    grid-template-columns: 1fr;
  }

  .vb6-side-panel {
    grid-template-rows: auto minmax(140px, 1fr) auto minmax(180px, 1fr);
  }
}


.toolbar-sep {
  width: 1px;
  align-self: stretch;
  background: rgba(148, 163, 184, 0.20);
  margin: 0 2px;
}

.win7-explorer {
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-height: 0;
  height: 100%;
  gap: 8px;
}

.win7-commandbar,
.explorer-address-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(59, 130, 246, 0.08));
  border: 1px solid rgba(148, 197, 255, 0.18);
}

.explorer-address-row {
  justify-content: space-between;
  min-height: 46px;
}

.explorer-breadcrumb,
.win7-address-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-height: 32px;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(148, 197, 255, 0.14);
}

.win7-crumb {
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.40);
  border: 1px solid rgba(148, 197, 255, 0.16);
  padding: 4px 10px;
}

.win7-crumb.active {
  background: rgba(59, 130, 246, 0.28);
  border-color: rgba(147, 197, 253, 0.32);
}

.win7-crumb-sep {
  color: rgba(191, 219, 254, 0.78);
}

.win7-explorer-body {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
}

.explorer-nav,
.explorer-content {
  min-height: 0;
  display: grid;
}

.explorer-nav {
  grid-template-rows: auto 1fr;
  padding: 10px;
}

.explorer-tree {
  overflow: auto;
  padding-right: 6px;
}

.explorer-tree-node {
  display: grid;
  grid-template-columns: 16px 20px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border-radius: 10px;
  cursor: default;
}

.explorer-tree-node:hover,
.win7-file-row:hover {
  background: rgba(255, 255, 255, 0.08);
}

.explorer-tree-node.selected,
.win7-file-row.selected {
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.30), rgba(59, 130, 246, 0.18));
  border: 1px solid rgba(147, 197, 253, 0.28);
}

.tree-disclosure {
  color: rgba(191, 219, 254, 0.78);
  font-size: 12px;
  text-align: center;
}

.explorer-content {
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 10px;
}

.explorer-list-head,
.win7-file-list-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 90px;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(226, 232, 240, 0.84);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.explorer-detail-list,
.win7-file-list {
  overflow: auto;
  padding: 8px 2px 8px 0;
}

.win7-file-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 90px;
  gap: 12px;
  align-items: center;
  min-height: 38px;
  padding: 6px 12px;
  border-radius: 10px;
}

.win7-file-name-cell,
.win7-file-type-cell,
.win7-file-rev-cell {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.win7-file-type-cell,
.win7-file-rev-cell {
  color: var(--text-2);
  font-size: 13px;
}

.explorer-details-pane {
  margin-top: 8px;
  border-top: 1px solid rgba(148, 197, 255, 0.16);
  padding-top: 10px;
  display: grid;
  gap: 10px;
}

.explorer-details-title {
  font-size: 16px;
  font-weight: 700;
}

.explorer-details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.explorer-details-grid span {
  display: block;
  color: var(--text-2);
  font-size: 12px;
  margin-bottom: 4px;
}

.explorer-details-grid strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.explorer-details-actions {
  display: flex;
  gap: 8px;
}

.win7-context-menu {
  position: fixed;
  z-index: 9999;
  min-width: 220px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(8, 18, 38, 0.94);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(148, 197, 255, 0.22);
  box-shadow: 0 18px 60px rgba(2, 6, 23, 0.55);
}

.context-menu-item {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  border-radius: 8px;
}

.context-menu-item:hover {
  background: rgba(59, 130, 246, 0.22);
}

.win7-file-dialog {
  width: min(980px, 94vw);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.win7-dialog-titlebar,
.win7-dialog-toolbar,
.win7-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.win7-dialog-toolbar {
  padding: 8px 0;
}

.win7-file-grid {
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 420px;
}

.file-dialog-nav {
  padding: 10px;
  min-height: 0;
}

.quick-folder-icon {
  width: 18px;
  display: inline-grid;
  place-items: center;
}

.win7-file-name-field {
  flex: 1;
}

.win7-file-name-field input[readonly] {
  opacity: 0.92;
}

.vb6-form-editor:disabled {
  opacity: 0.72;
}

.slp-runonly-app {
  grid-template-rows: auto 1fr;
}

.slp-runonly-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.slp-runonly-shell .slp-form-host {
  min-height: 0;
  flex: 1 1 auto;
}

.slp-runonly-output {
  margin: 0;
  min-height: 0;
  max-height: 180px;
  overflow: auto;
}

@media (max-width: 1180px) {
  .win7-explorer-body,
  .win7-file-grid,
  .explorer-details-grid {
    grid-template-columns: 1fr;
  }
}


.auth-shell {
  width: min(1220px, 100%);
  border-radius: 28px;
  padding: 28px;
}

.auth-hero {
  display: grid;
  grid-template-columns: minmax(360px, 560px) minmax(320px, 1fr);
  gap: 22px;
  align-items: stretch;
}

.auth-main-card,
.auth-side-panel,
.workspace-overview-card,
.explorer-options-panel,
.slp-bare-runtime {
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: var(--shadow);
  border-radius: 20px;
}

.auth-main-card,
.auth-side-panel {
  padding: 22px;
}

.auth-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.auth-feature-card {
  border-radius: 16px;
  padding: 14px;
  background: rgba(2, 6, 23, 0.36);
  border: 1px solid rgba(148, 163, 184, 0.12);
  display: grid;
  gap: 6px;
}

.auth-feature-card strong {
  color: var(--text-0);
}

.auth-feature-card span {
  color: var(--text-2);
  line-height: 1.45;
  font-size: 13px;
}

.workspace-console-shell {
  width: min(1240px, 100%);
}

.workspace-picker-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.workspace-search,
.explorer-search-box input,
.win7-dialog-search {
  min-width: 240px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.46);
}

.workspace-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.workspace-overview-card {
  padding: 16px 18px;
  display: grid;
  gap: 6px;
}

.workspace-overview-card span {
  color: var(--text-2);
  font-size: 13px;
}

.workspace-overview-card strong {
  font-size: 18px;
}

.explorer-commandbar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  align-items: start;
  gap: 10px;
}

.explorer-command-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.explorer-command-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 197, 255, 0.12);
}

.explorer-command-button {
  min-height: 36px;
  white-space: nowrap;
}

.explorer-command-button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  border-color: rgba(148, 163, 184, 0.14);
}

.explorer-command-button[disabled]:hover,
.explorer-command-button[disabled]:active {
  background: linear-gradient(180deg, rgba(7, 31, 58, 0.82), rgba(6, 24, 47, 0.72));
  border-color: rgba(148, 163, 184, 0.14);
  transform: none;
}

.explorer-toolbar-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.explorer-search-box {
  flex: 1 1 240px;
  width: min(360px, 100%);
}

.explorer-search-box input {
  width: 100%;
}

.explorer-options-anchor {
  position: relative;
}

.explorer-options-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 250px;
  padding: 14px;
  display: none;
  z-index: 40;
}

.explorer-options-panel.open {
  display: block;
}

.explorer-option-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-1);
  padding: 6px 2px;
}

.compact-field {
  margin-top: 10px;
}

.explorer-statusbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  color: var(--text-2);
  min-width: 260px;
  font-size: 13px;
}

@media (max-width: 1180px) {
  .explorer-commandbar {
    grid-template-columns: 1fr;
  }

  .explorer-toolbar-side {
    justify-content: flex-start;
  }
}

.file-meta-block {
  display: grid;
  min-width: 0;
}

.file-subpath {
  color: var(--text-2);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 460px;
}

.advanced-explorer .explorer-details-grid {
  gap: 12px;
}

.win7-dialog-search {
  max-width: 260px;
}

.slp-bare-runtime {
  width: 100%;
  height: 100%;
  padding: 16px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
}

.slp-bare-form-host {
  min-height: 0;
  overflow: auto;
}

.slp-bare-output {
  min-height: 120px;
  max-height: 220px;
  margin: 0;
}

@media (max-width: 1040px) {
  .auth-hero,
  .workspace-overview-grid {
    grid-template-columns: 1fr;
  }

  .workspace-picker-actions {
    width: 100%;
    justify-content: stretch;
  }

  .workspace-search {
    flex: 1;
    min-width: 0;
  }

  .explorer-search-box {
    width: 100%;
  }

  .explorer-statusbar {
    display: none;
  }
}



.window.maximized-window {
  border-radius: 12px;
}

.window.maximized-window .window-resizer {
  display: none;
}

.window.maximized-window .window-header {
  cursor: default;
}

.window-actions button[data-action="close"] {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.28);
}

.window-actions button[data-action="close"]:hover {
  background: rgba(239, 68, 68, 0.26);
}

.window-actions button[data-action="maximize"] {
  font-size: 12px;
  letter-spacing: -0.02em;
}

.taskbar-app {
  position: relative;
  cursor: pointer;
}

.taskbar-app.dragging {
  opacity: 0.5;
}

.taskbar-app.drop-before::before,
.taskbar-app.drop-after::after {
  content: '';
  position: absolute;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.95);
  box-shadow: 0 0 0 1px rgba(191, 219, 254, 0.18);
}

.taskbar-app.drop-before::before {
  left: -5px;
}

.taskbar-app.drop-after::after {
  right: -5px;
}

.taskbar-apps {
  scrollbar-width: thin;
}



:root {
  --header-height: 76px;
  --taskbar-height: 72px;
  --radius-window: 24px;
  --radius-panel: 24px;
  --chrome-line: rgba(212, 235, 255, 0.18);
  --chrome-line-strong: rgba(170, 220, 255, 0.34);
  --chrome-fill-soft: linear-gradient(180deg, rgba(16, 33, 61, 0.82), rgba(7, 17, 32, 0.70));
  --chrome-fill-strong: linear-gradient(180deg, rgba(30, 57, 98, 0.84), rgba(8, 20, 39, 0.76));
  --chrome-highlight: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.07) 42%, rgba(255, 255, 255, 0.02) 100%);
  --chrome-shadow:
    0 28px 78px rgba(3, 11, 25, 0.48),
    0 16px 36px rgba(6, 24, 53, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 18px 38px rgba(255, 255, 255, 0.035);
  --chrome-shadow-soft:
    0 18px 42px rgba(4, 11, 27, 0.34),
    0 10px 24px rgba(6, 24, 53, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.20);
  --panel-backdrop: blur(28px) saturate(145%);
  --control-fill: linear-gradient(180deg, rgba(18, 38, 70, 0.84), rgba(8, 18, 36, 0.76));
  --control-fill-hover: linear-gradient(180deg, rgba(27, 53, 92, 0.92), rgba(9, 21, 42, 0.84));
  --control-fill-pressed: linear-gradient(180deg, rgba(13, 28, 53, 0.96), rgba(7, 16, 30, 0.88));
  --control-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 10px 20px rgba(2, 10, 24, 0.22);
  --focus-ring: 0 0 0 1px rgba(149, 211, 255, 0.46), 0 0 0 4px rgba(120, 188, 255, 0.18);
  --accent: #76d4ff;
  --accent-2: #2ea1ff;
  --text-0: #f8fbff;
  --text-1: #dbe9ff;
  --text-2: #9cb6d6;
  --glass-bg: var(--chrome-fill-soft);
  --glass-border: var(--chrome-line);
  --shadow: var(--chrome-shadow);
}

html,
body {
  background:
    radial-gradient(1200px 640px at 16% 12%, rgba(126, 213, 255, 0.22), transparent 42%),
    radial-gradient(960px 540px at 86% 14%, rgba(110, 162, 255, 0.20), transparent 38%),
    radial-gradient(820px 520px at 76% 78%, rgba(57, 197, 255, 0.13), transparent 36%),
    linear-gradient(138deg, #061120 0%, #0b2748 34%, #0a2038 68%, #081427 100%);
  color: var(--text-0);
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), transparent 18%),
    radial-gradient(640px 340px at 50% -10%, rgba(255,255,255,0.12), transparent 70%);
  opacity: 0.85;
}

body::after {
  background:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.28), transparent 92%);
  opacity: 0.24;
}

#app,
.toast-root,
.modal-root {
  position: relative;
  z-index: 1;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 1px solid var(--chrome-line);
  background: var(--control-fill);
  color: var(--text-1);
  border-radius: 16px;
  box-shadow: var(--control-shadow);
  transition:
    transform 140ms ease,
    background 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    opacity 140ms ease;
  backdrop-filter: blur(16px) saturate(135%);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
}

button:hover {
  background: var(--control-fill-hover);
  border-color: rgba(171, 224, 255, 0.30);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    0 12px 26px rgba(3, 14, 34, 0.26);
  transform: translateY(-1px);
}

button:active {
  background: var(--control-fill-pressed);
  transform: translateY(1px);
}

button.primary {
  background:
    linear-gradient(180deg, rgba(186, 239, 255, 0.96), rgba(122, 206, 255, 0.90) 42%, rgba(44, 160, 255, 0.88) 100%);
  border-color: rgba(214, 245, 255, 0.30);
  color: #08203f;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.72),
    0 14px 28px rgba(18, 111, 181, 0.28);
}

button.primary:hover {
  background:
    linear-gradient(180deg, rgba(211, 247, 255, 0.98), rgba(141, 218, 255, 0.94) 42%, rgba(56, 170, 255, 0.92) 100%);
}

button.ghost-button {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border-color: rgba(205, 231, 255, 0.16);
}

input,
select,
textarea {
  border-radius: 16px;
  border: 1px solid rgba(188, 223, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(11, 24, 44, 0.78), rgba(8, 16, 30, 0.68));
  color: var(--text-0);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    inset 0 12px 22px rgba(255,255,255,0.02);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(149, 211, 255, 0.52);
  box-shadow: var(--focus-ring);
}

.glass,
.glass-panel,
.auth-shell,
.workspace-shell,
.desktop-header,
.desktop-taskbar,
.start-menu,
.window-shell,
.modal,
.notification-toast,
.auth-main-card,
.auth-side-panel,
.workspace-overview-card,
.workspace-card,
.ide-topbar,
.ide-statusbar,
.toolbar,
.runtime-panel,
.code-panel,
.ide-toolbox,
.ide-inspector,
.ide-center,
.slp-form-shell,
.slp-runtime-shell,
.slp-bare-runtime,
.calc-display {
  background: var(--chrome-fill-soft);
  border: 1px solid var(--chrome-line);
  box-shadow: var(--chrome-shadow-soft);
  backdrop-filter: var(--panel-backdrop);
  -webkit-backdrop-filter: var(--panel-backdrop);
  position: relative;
  overflow: hidden;
}

.glass::before,
.glass-panel::before,
.auth-shell::before,
.workspace-shell::before,
.desktop-header::before,
.desktop-taskbar::before,
.start-menu::before,
.window-shell::before,
.modal::before,
.notification-toast::before,
.auth-main-card::before,
.auth-side-panel::before,
.workspace-overview-card::before,
.workspace-card::before,
.ide-topbar::before,
.ide-statusbar::before,
.toolbar::before,
.runtime-panel::before,
.code-panel::before,
.ide-toolbox::before,
.ide-inspector::before,
.ide-center::before,
.slp-form-shell::before,
.slp-runtime-shell::before,
.slp-bare-runtime::before,
.calc-display::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--chrome-highlight);
}

.screen {
  padding: 34px;
}

.auth-shell,
.workspace-console-shell {
  width: min(1260px, 100%);
  border-radius: 30px;
  padding: 28px;
  box-shadow: var(--chrome-shadow);
}

.auth-main-card,
.auth-side-panel,
.workspace-overview-card,
.workspace-card {
  border-radius: 22px;
}

.auth-feature-card {
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  border: 1px solid rgba(197, 228, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
}

.desktop-shell.liquid-desktop {
  padding: 12px;
  isolation: isolate;
}

.desktop-shell.liquid-desktop::before,
.desktop-shell.liquid-desktop::after {
  content: '';
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(12px);
}

.desktop-shell.liquid-desktop::before {
  width: 520px;
  height: 520px;
  right: -120px;
  top: -140px;
  background: radial-gradient(circle, rgba(150, 215, 255, 0.24), rgba(84, 139, 255, 0.04) 56%, transparent 72%);
}

.desktop-shell.liquid-desktop::after {
  width: 480px;
  height: 480px;
  left: -140px;
  bottom: 60px;
  background: radial-gradient(circle, rgba(83, 220, 255, 0.18), rgba(52, 124, 255, 0.04) 54%, transparent 74%);
}

.desktop-header {
  height: var(--header-height);
  padding: 0 18px 0 20px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(166, 213, 255, 0.18), rgba(12, 24, 44, 0.08) 40%),
    var(--chrome-fill-soft);
  border-color: rgba(214, 236, 255, 0.18);
  box-shadow: var(--chrome-shadow);
}

.desktop-brand {
  gap: 14px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,0.92), rgba(255,255,255,0.22) 36%, transparent 38%),
    linear-gradient(180deg, rgba(178, 235, 255, 0.84), rgba(54, 163, 255, 0.82));
  border-color: rgba(214, 239, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.68),
    0 16px 30px rgba(20, 110, 181, 0.28);
}

.brand-title {
  font-size: 19px;
  letter-spacing: 0.03em;
}

.brand-subtitle {
  color: rgba(226, 240, 255, 0.78);
  font-size: 13px;
}

.desktop-actions {
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.workspace-chip,
.status-badge {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(208, 233, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14);
}

.desktop-sort-select {
  min-width: 152px;
}

.desktop-surface {
  inset: calc(var(--header-height) + 18px) 12px calc(var(--taskbar-height) + 20px) 12px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012) 22%, rgba(255,255,255,0.012) 78%, rgba(255,255,255,0.05) 100%),
    linear-gradient(rgba(200, 226, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 226, 255, 0.06) 1px, transparent 1px);
  background-size: auto, 40px 40px, 40px 40px;
  border: 1px solid rgba(190, 225, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.desktop-icons {
  inset: 22px auto auto 18px;
  gap: 14px 16px;
  grid-template-columns: repeat(auto-fill, minmax(96px, 96px));
  grid-auto-rows: 104px;
}

.desktop-icon {
  gap: 10px;
  padding: 10px 8px;
  min-height: 100px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.desktop-icon:hover {
  transform: translateY(-2px);
  background:
    linear-gradient(180deg, rgba(189, 227, 255, 0.18), rgba(255,255,255,0.04));
  border-color: rgba(185, 223, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    0 18px 28px rgba(3, 15, 34, 0.20);
}

.desktop-icon.selected {
  border-color: rgba(160, 215, 255, 0.44);
  background:
    linear-gradient(180deg, rgba(159, 212, 255, 0.22), rgba(255,255,255,0.05));
  box-shadow:
    0 0 0 1px rgba(149, 211, 255, 0.18),
    0 18px 28px rgba(3, 15, 34, 0.22);
}

.desktop-icon-glyph {
  font-size: 34px;
  filter: drop-shadow(0 8px 12px rgba(4, 18, 38, 0.22));
}

.desktop-icon-label {
  max-width: 82px;
  color: #f5fbff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.42);
}

.desktop-empty {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border-color: rgba(207, 230, 255, 0.12);
  border-radius: 18px;
}

.desktop-taskbar,
.taskbar {
  left: 50%;
  right: auto;
  bottom: 12px;
  transform: translateX(-50%);
  width: min(1240px, calc(100% - 24px));
  height: var(--taskbar-height);
  padding: 10px 12px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(197, 230, 255, 0.16), rgba(17, 34, 61, 0.08) 30%),
    var(--chrome-fill-strong);
  border: 1px solid rgba(215, 236, 255, 0.18);
  box-shadow: var(--chrome-shadow);
  gap: 12px;
}

.start-button {
  min-width: 126px;
  height: 50px;
  border-radius: 18px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #07203f;
  background:
    radial-gradient(circle at 24% 18%, rgba(255,255,255,0.90), rgba(255,255,255,0.18) 34%, transparent 36%),
    linear-gradient(180deg, rgba(184, 238, 255, 0.96), rgba(124, 207, 255, 0.92) 42%, rgba(51, 163, 255, 0.88) 100%);
  border-color: rgba(224, 246, 255, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.86),
    0 18px 30px rgba(28, 110, 179, 0.34);
}

.taskbar-apps {
  gap: 10px;
  padding: 0 4px;
}

.taskbar-app {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 154px;
  max-width: 280px;
  height: 50px;
  padding: 0 16px;
  border-radius: 18px;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03)),
    rgba(7, 18, 36, 0.48);
  border: 1px solid rgba(205, 230, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 10px 18px rgba(4, 13, 29, 0.18);
  overflow: hidden;
}

.taskbar-app:hover {
  border-color: rgba(182, 225, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(182, 226, 255, 0.14), rgba(255,255,255,0.04)),
    rgba(8, 21, 41, 0.64);
}

.taskbar-app-icon {
  font-size: 20px;
  line-height: 1;
  flex: 0 0 auto;
}

.taskbar-app-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.taskbar-app-indicator {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 6px;
  height: 3px;
  border-radius: 999px;
  background: rgba(146, 201, 255, 0.00);
  transform: scaleX(0.22);
  transform-origin: center;
  transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.taskbar-app.active {
  border-color: rgba(171, 225, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(180, 228, 255, 0.18), rgba(255,255,255,0.05)),
    rgba(9, 23, 45, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    0 18px 26px rgba(4, 14, 31, 0.24),
    0 0 0 1px rgba(120, 188, 255, 0.10);
}

.taskbar-app.active .taskbar-app-indicator {
  background: linear-gradient(90deg, rgba(164, 224, 255, 0.10), rgba(135, 214, 255, 0.92), rgba(164, 224, 255, 0.10));
  transform: scaleX(1);
  box-shadow: 0 0 14px rgba(112, 196, 255, 0.34);
}

.taskbar-app.minimized {
  opacity: 0.68;
  filter: saturate(0.88);
}

.taskbar-right {
  gap: 8px;
}

.taskbar-right .ghost-button {
  height: 46px;
  padding: 0 14px;
  border-radius: 16px;
}

.start-menu {
  left: 12px;
  bottom: calc(var(--taskbar-height) + 20px);
  width: 340px;
  max-height: min(72vh, 680px);
  padding: 14px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(184, 228, 255, 0.16), rgba(15, 28, 50, 0.08) 24%),
    var(--chrome-fill-strong);
  border-color: rgba(216, 236, 255, 0.18);
  box-shadow: var(--chrome-shadow);
  gap: 12px;
}

.start-group-title {
  padding: 4px 8px 2px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(208, 229, 247, 0.64);
}

.start-item {
  min-height: 48px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid transparent;
  gap: 12px;
}

.start-item:hover {
  border-color: rgba(182, 225, 255, 0.26);
  background: linear-gradient(180deg, rgba(177, 225, 255, 0.14), rgba(255,255,255,0.04));
  transform: translateX(2px);
}

.start-icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
}

.window,
.window-shell {
  border-radius: var(--radius-window);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(182, 224, 255, 0.13), rgba(255,255,255,0.02) 32%),
    var(--chrome-fill-soft);
  border: 1px solid rgba(210, 235, 255, 0.18);
  box-shadow: var(--chrome-shadow);
}

.window::after,
.window-shell::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}

.window.active-window {
  border-color: rgba(173, 225, 255, 0.34);
  box-shadow:
    0 36px 88px rgba(2, 10, 24, 0.56),
    0 18px 36px rgba(5, 24, 53, 0.34),
    0 0 0 1px rgba(120, 188, 255, 0.14),
    inset 0 1px 0 rgba(255,255,255,0.30),
    inset 0 20px 42px rgba(255,255,255,0.04);
}

.window.maximized-window {
  border-radius: 18px;
}

.window-header {
  height: 54px;
  padding: 0 14px 0 16px;
  background:
    linear-gradient(180deg, rgba(178, 220, 255, 0.18), rgba(255,255,255,0.06) 42%, rgba(5, 16, 32, 0.08) 100%);
  border-bottom: 1px solid rgba(204, 232, 255, 0.12);
  gap: 12px;
}

.window-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.window-app-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  flex: 0 0 auto;
  background:
    radial-gradient(circle at 28% 24%, rgba(255,255,255,0.90), rgba(255,255,255,0.18) 34%, transparent 36%),
    linear-gradient(180deg, rgba(159, 219, 255, 0.48), rgba(63, 143, 255, 0.30));
  border: 1px solid rgba(217, 241, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.50),
    0 10px 20px rgba(10, 55, 96, 0.24);
}

.window-title {
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #f9fcff;
  text-shadow: 0 1px 1px rgba(0,0,0,0.18);
}

.window-actions {
  gap: 8px;
}

.window-actions button {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  padding: 0;
  border: 1px solid rgba(218, 238, 255, 0.16);
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16);
}

.window-actions button:hover {
  border-color: rgba(214, 237, 255, 0.26);
}

.window-actions button[data-action="close"] {
  background: linear-gradient(180deg, rgba(255, 171, 184, 0.54), rgba(161, 44, 67, 0.34));
  border-color: rgba(255, 189, 200, 0.24);
  color: #fff4f5;
}

.window-actions button[data-action="maximize"] {
  font-size: 12px;
}

.window-actions button[data-action="minimize"] {
  font-size: 16px;
  padding-bottom: 2px;
}

.window-resizer {
  width: 22px;
  height: 22px;
  right: 2px;
  bottom: 2px;
  opacity: 0.74;
  background:
    linear-gradient(135deg, transparent 0 45%, rgba(197, 226, 255, 0.80) 47% 51%, transparent 53% 61%, rgba(197, 226, 255, 0.56) 63% 67%, transparent 69%);
}

.window-body {
  background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0.00));
}

.toolbar,
.ide-topbar,
.ide-statusbar,
.runtime-panel,
.code-panel,
.ide-toolbox,
.ide-inspector,
.ide-center,
.slp-form-shell,
.slp-runtime-shell,
.modal,
.calc-display {
  background:
    linear-gradient(180deg, rgba(190, 228, 255, 0.12), rgba(255,255,255,0.03) 28%),
    var(--chrome-fill-soft);
  border-color: rgba(202, 232, 255, 0.15);
}

.slp-player-layout {
  gap: 18px;
}

.slp-form-shell,
.slp-runtime-shell {
  border-radius: 22px;
  padding: 16px;
}

.slp-form-host,
.vb-preview-form,
.vb-design-surface,
.vb6-preview-host,
.vb6-design-surface {
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
    rgba(6, 18, 35, 0.44);
  border: 1px solid rgba(203, 230, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.preview-control,
.designer-control,
.toolbox-item,
.outline-entry,
.compile-function-card,
.file-row,
.window-chip {
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  border-color: rgba(196, 228, 255, 0.13);
}

.preview-control:focus-within,
.designer-control.selected,
.compile-function-card.active,
.outline-entry.active,
.file-row.selected,
.toolbox-item:hover {
  border-color: rgba(129, 210, 255, 0.42);
  box-shadow: 0 0 0 1px rgba(129, 210, 255, 0.12), 0 12px 26px rgba(6, 20, 40, 0.22);
}

.canvas-view-surface,
.draw-canvas {
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245, 249, 255, 0.96));
  border: 1px solid rgba(181, 198, 219, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.96),
    0 18px 34px rgba(4, 17, 35, 0.18);
}

.notes-editor,
.type-texteditor textarea,
.type-codeeditor textarea,
.code-editor {
  background: transparent;
  color: var(--text-0);
}

.toast-root {
  right: 16px;
  bottom: calc(var(--taskbar-height) + 18px);
  gap: 12px;
}

.toast.notification-toast,
.notification-toast {
  width: min(380px, calc(100vw - 24px));
  padding: 14px 16px 14px 18px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(194, 228, 255, 0.18), rgba(255,255,255,0.03) 28%),
    var(--chrome-fill-strong);
  border: 1px solid rgba(214, 237, 255, 0.18);
  box-shadow: var(--chrome-shadow-soft);
}

.toast.notification-toast::after,
.notification-toast::after {
  content: '';
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 8px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(143, 213, 255, 0.38), rgba(79, 177, 255, 0.92));
  box-shadow: 0 0 18px rgba(86, 184, 255, 0.28);
}

.toast.notification-toast.success::after {
  background: linear-gradient(180deg, rgba(112, 255, 208, 0.46), rgba(16, 185, 129, 0.96));
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.28);
}

.toast.notification-toast.warn::after {
  background: linear-gradient(180deg, rgba(255, 221, 139, 0.46), rgba(245, 158, 11, 0.96));
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.30);
}

.toast.notification-toast.error::after {
  background: linear-gradient(180deg, rgba(255, 162, 171, 0.54), rgba(239, 68, 68, 0.98));
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.28);
}

.toast-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.toast-title {
  margin: 0;
  color: rgba(223, 238, 255, 0.72);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.toast-time {
  color: rgba(196, 217, 235, 0.68);
  font-size: 11px;
}

.toast-body {
  color: var(--text-0);
  line-height: 1.55;
}

.overlay {
  background: rgba(2, 8, 18, 0.48);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.modal {
  border-radius: 24px;
  box-shadow: var(--chrome-shadow);
}

.checkbox-row {
  align-items: center;
}

@media (max-width: 1120px) {
  .desktop-header {
    height: auto;
    min-height: var(--header-height);
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .desktop-actions {
    justify-content: flex-start;
  }

  .desktop-surface {
    inset: 130px 12px calc(var(--taskbar-height) + 20px) 12px;
  }

  .desktop-taskbar,
  .taskbar {
    width: calc(100% - 24px);
  }
}

@media (max-width: 780px) {
  .screen {
    padding: 18px;
  }

  .desktop-taskbar,
  .taskbar {
    border-radius: 22px;
    padding: 10px;
  }

  .start-button {
    min-width: 98px;
  }

  .taskbar-app {
    min-width: 120px;
  }

  .window,
  .window-shell {
    min-width: min(320px, calc(100vw - 24px));
  }
}

.legacy-app-pane {
  grid-template-rows: auto minmax(0, 1fr);
}

.legacy-frame-body,
.legacy-body-scroll {
  min-height: 0;
}

.legacy-body-scroll {
  overflow: auto;
  padding: 14px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.legacy-hero-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 16px;
  align-items: center;
}

.legacy-hero-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 28px;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.legacy-hero-title {
  font-size: 20px;
  font-weight: 700;
}

.legacy-hero-subtitle {
  color: var(--text-2);
  line-height: 1.65;
  margin-top: 4px;
}

.legacy-chip-row,
.legacy-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.legacy-chip,
.legacy-pill-button {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-1);
}

.legacy-pill-button {
  cursor: pointer;
}

.legacy-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.legacy-stat-card,
.legacy-detail-card {
  padding: 14px;
}

.legacy-stat-label {
  font-size: 12px;
  color: var(--text-2);
}

.legacy-stat-value {
  font-size: 22px;
  font-weight: 700;
  margin-top: 8px;
}

.legacy-detail-header {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.legacy-detail-title,
.legacy-group-heading {
  font-size: 14px;
  font-weight: 700;
}

.legacy-json-preview {
  margin: 0;
  padding: 12px;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.56);
  border: 1px solid rgba(148, 163, 184, 0.12);
  color: #dbeafe;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.55;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
}

.legacy-json-preview.compact {
  max-height: 220px;
}

.legacy-embed-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  min-height: 0;
}

.legacy-embed-meta {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  display: grid;
  gap: 10px;
  background: rgba(15, 23, 42, 0.48);
}

.legacy-embed-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.legacy-group-section {
  display: grid;
  gap: 10px;
}

.legacy-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.legacy-app-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  text-align: left;
  padding: 14px;
  color: inherit;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.legacy-app-card:hover {
  transform: translateY(-1px);
  border-color: rgba(96, 165, 250, 0.28);
}

.legacy-app-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: rgba(59, 130, 246, 0.14);
}

.legacy-app-card-body {
  display: grid;
  gap: 4px;
}

.legacy-app-card-title {
  font-weight: 700;
}

.legacy-app-card-meta,
.legacy-app-card-desc,
.legacy-alias-status {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.55;
}


/* shell interaction hotfixes */
#app {
  position: relative;
  z-index: 1;
}

.toast-root {
  position: fixed;
  z-index: 2000;
}

.modal-root {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3000;
}

.desktop-taskbar,
.taskbar {
  position: absolute;
  z-index: 920;
}

.start-menu {
  position: absolute;
  z-index: 940;
  overflow-y: auto !important;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.window,
.window-shell {
  position: absolute;
}

.window-body {
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.app-pane {
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.app-pane.explorer-app,
.app-pane.ide-app,
.app-pane.native-dsl-app,
.app-pane.slp-player-app,
.app-pane.draw-app,
.app-pane.calculator-app {
  overflow: hidden;
}

.window-header,
.window-titlebar,
.window-resizer {
  touch-action: none;
}

/* r18 native controls + hierarchical start menu + desktop drag + trash overrides */
.start-menu {
  overflow: hidden !important;
}

.start-menu .start-menu-shell {
  width: min(720px, calc(100vw - 48px));
  max-height: min(72vh, 620px);
  display: grid;
  gap: 12px;
  padding: 14px;
  box-sizing: border-box;
}

.start-menu .start-menu-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.start-menu .start-menu-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.start-menu .compact-start-close {
  min-width: 72px;
  align-self: center;
}

.start-menu .start-menu-search-field {
  display: block;
}

.start-menu .start-menu-search-field input {
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(160, 215, 255, 0.18);
  background: rgba(8, 15, 28, 0.62);
  color: #f8fcff;
}

.start-menu .start-menu-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 12px;
}

.start-menu .start-menu-groups {
  min-height: 0;
  display: grid;
  gap: 8px;
  align-content: start;
  overflow: auto;
  padding-right: 4px;
}

.start-menu .start-group-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(172, 214, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #eef7ff;
}

.start-menu .start-group-button:hover,
.start-menu .start-group-button.active {
  border-color: rgba(160, 215, 255, 0.38);
  background: linear-gradient(180deg, rgba(145, 205, 255, 0.22), rgba(255, 255, 255, 0.05));
}

.start-menu .start-group-count {
  min-width: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  text-align: center;
  font-size: 11px;
  color: rgba(241, 249, 255, 0.88);
  background: rgba(255, 255, 255, 0.12);
}

.start-menu .start-menu-items-panel {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(175, 215, 255, 0.12);
  background: rgba(8, 15, 28, 0.36);
}

.start-menu .start-group-title {
  font-weight: 700;
  color: #f5fbff;
}

.start-menu .start-items-scroll {
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding-right: 4px;
}

.start-menu .start-item {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  text-align: left;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(170, 214, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #f5fbff;
}

.start-menu .start-item:hover,
.start-menu .start-item:focus-visible {
  border-color: rgba(160, 215, 255, 0.34);
  background: linear-gradient(180deg, rgba(159, 212, 255, 0.18), rgba(255, 255, 255, 0.05));
}

.start-menu .start-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 24px;
}

.start-menu .start-item-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.start-menu .start-item-copy strong,
.start-menu .start-item-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.start-menu .start-item-copy small {
  color: rgba(226, 237, 247, 0.72);
}

.desktop-icons {
  position: absolute;
  inset: 0 !important;
  display: block !important;
  pointer-events: auto;
}

.desktop-icon {
  position: absolute !important;
  width: 92px;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 8px;
  box-sizing: border-box;
  cursor: default;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease, background 120ms ease;
}

.desktop-icon:hover {
  transform: translateY(-2px);
}

.desktop-icon.dragging {
  transform: none !important;
  z-index: 8;
  opacity: 0.94;
  box-shadow: 0 22px 34px rgba(3, 15, 34, 0.28);
}

.desktop-icon.drop-target {
  border-color: rgba(125, 211, 252, 0.62) !important;
  box-shadow: 0 0 0 2px rgba(125, 211, 252, 0.18), 0 20px 30px rgba(3, 15, 34, 0.24) !important;
}

.desktop-trash-icon .desktop-icon-glyph {
  font-size: 36px;
}

.desktop-empty {
  position: absolute;
  left: 18px;
  top: 22px;
}

.native-character-map-app,
.native-calendar-app {
  min-height: 100%;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 12px;
  box-sizing: border-box;
}

.native-pane-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}

.native-pane-toolbar .field {
  margin: 0;
}

.native-search-field {
  min-width: 220px;
  flex: 1 1 240px;
}

.native-pane-subtitle {
  font-size: 13px;
  color: var(--text-2);
}

.native-glyph-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 8px;
  align-content: start;
}

.native-glyph-button {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.04);
  font-size: 22px;
}

.native-glyph-button.selected,
.native-glyph-button:hover,
.native-glyph-button:focus-visible {
  border-color: rgba(96, 165, 250, 0.42);
  background: rgba(59, 130, 246, 0.14);
}

.native-output-field textarea {
  width: 100%;
  min-height: 126px;
  resize: vertical;
}

.native-pane-footer {
  font-size: 12px;
}

.native-calendar-weekdays,
.native-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.native-calendar-weekdays span {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
}

.native-calendar-day {
  min-height: 56px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.04);
  font-size: 15px;
}

.native-calendar-day.outside {
  opacity: 0.56;
}

.native-calendar-day.today {
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.46);
}

.native-calendar-day.selected,
.native-calendar-day:hover,
.native-calendar-day:focus-visible {
  border-color: rgba(96, 165, 250, 0.42);
  background: rgba(59, 130, 246, 0.16);
}

.native-calendar-summary {
  padding: 12px 14px;
  display: grid;
  gap: 6px;
}

.native-calendar-summary-title {
  font-size: 16px;
  font-weight: 700;
}

.dialog-message-pre {
  white-space: pre-wrap;
  line-height: 1.55;
}

.multi-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.legacy-embed-status {
  margin-top: 4px;
  font-size: 12px;
}

.explorer-details-grid strong {
  word-break: break-word;
}

.explorer-details-actions {
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .start-menu .start-menu-layout {
    grid-template-columns: 1fr;
  }

  .start-menu .start-menu-groups {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}


/* r23 legacy compat + start menu layout overrides */
.start-menu {
  width: min(720px, calc(100vw - 48px)) !important;
  max-width: calc(100vw - 48px) !important;
  max-height: min(72vh, 640px) !important;
  padding: 0 !important;
  gap: 0 !important;
  box-sizing: border-box;
  display: block !important;
  overflow: hidden !important;
}

.start-menu .start-menu-shell {
  width: 100% !important;
  max-width: 100% !important;
  max-height: inherit;
  height: auto;
  display: grid;
  gap: 12px;
  padding: 14px;
  box-sizing: border-box;
}

.start-menu .start-menu-layout {
  min-height: min(52vh, 460px);
  align-items: stretch;
}

.start-menu .start-menu-groups,
.start-menu .start-items-scroll {
  scrollbar-gutter: stable;
}

.start-menu .start-menu-items-panel {
  min-width: 0;
}

.start-menu .start-group-button > span:first-child,
.start-menu .start-item-copy strong,
.start-menu .start-item-copy small {
  min-width: 0;
}

.start-menu .empty-state.compact {
  padding: 14px 16px;
}

.legacy-pill-button.primary {
  border-color: rgba(125, 211, 252, 0.28);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.24), rgba(255, 255, 255, 0.04));
}

.legacy-pill-button.secondary {
  border-color: rgba(125, 211, 252, 0.18);
  background: rgba(59, 130, 246, 0.10);
}

.legacy-pill-button.ghost {
  background: rgba(255, 255, 255, 0.03);
}

/* r26 classic start menu + reliable scroll */
.start-menu {
  width: min(860px, calc(100vw - 28px)) !important;
  max-width: calc(100vw - 28px) !important;
  height: min(76vh, 690px) !important;
  max-height: min(76vh, 690px) !important;
  padding: 0 !important;
  overflow: hidden !important;
  display: block !important;
}

.start-menu .start-menu-shell {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr) auto !important;
  gap: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
}

.start-menu .start-menu-banner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid rgba(173, 214, 255, 0.18);
  background: linear-gradient(180deg, rgba(27, 56, 112, 0.84), rgba(8, 15, 28, 0.48));
}

.start-menu .start-menu-banner-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #f8fcff;
}

.start-menu .start-menu-banner-subtitle,
.start-menu .start-menu-banner-user,
.start-menu .start-menu-caption {
  color: rgba(228, 238, 247, 0.8);
  font-size: 12px;
}

.start-menu .start-menu-search-field {
  display: block;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(173, 214, 255, 0.10);
}

.start-menu .start-menu-search-field input {
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(160, 215, 255, 0.20);
  background: rgba(8, 15, 28, 0.72);
  color: #f8fcff;
}

.start-menu .start-menu-main {
  min-height: 0;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
}

.start-menu .start-menu-rail {
  min-height: 0;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
  border-right: 1px solid rgba(173, 214, 255, 0.10);
  background: linear-gradient(180deg, rgba(8, 15, 28, 0.34), rgba(8, 15, 28, 0.16));
}

.start-menu .start-main-button,
.start-menu .start-footer-button {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(172, 214, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #eef7ff;
  text-align: left;
}

.start-menu .start-main-button.active,
.start-menu .start-main-button:hover,
.start-menu .start-main-button:focus-visible,
.start-menu .start-footer-button:hover,
.start-menu .start-footer-button:focus-visible {
  border-color: rgba(160, 215, 255, 0.34);
  background: linear-gradient(180deg, rgba(145, 205, 255, 0.22), rgba(255, 255, 255, 0.05));
}

.start-menu .start-menu-content {
  min-width: 0;
  min-height: 0;
  display: grid;
  gap: 12px;
  padding: 12px;
}

.start-menu .start-menu-content.with-groups {
  grid-template-columns: 220px minmax(0, 1fr);
}

.start-menu .start-menu-content.single-pane {
  grid-template-columns: minmax(0, 1fr);
}

.start-menu .start-menu-groups {
  min-height: 0;
  display: grid;
  gap: 8px;
  align-content: start;
  overflow: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.start-menu .start-group-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(172, 214, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #eef7ff;
}

.start-menu .start-group-button:hover,
.start-menu .start-group-button.active {
  border-color: rgba(160, 215, 255, 0.38);
  background: linear-gradient(180deg, rgba(145, 205, 255, 0.22), rgba(255, 255, 255, 0.05));
}

.start-menu .start-group-count {
  min-width: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  text-align: center;
  font-size: 11px;
  color: rgba(241, 249, 255, 0.88);
  background: rgba(255, 255, 255, 0.12);
}

.start-menu .start-menu-items-panel {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(175, 215, 255, 0.12);
  background: rgba(8, 15, 28, 0.30);
  overflow: hidden;
}

.start-menu .start-menu-panel-header {
  display: grid;
  gap: 4px;
}

.start-menu .start-group-title {
  font-weight: 700;
  color: #f5fbff;
}

.start-menu .start-items-scroll {
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.start-menu .start-item {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(170, 214, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #f5fbff;
}

.start-menu .start-item:hover,
.start-menu .start-item:focus-visible {
  border-color: rgba(160, 215, 255, 0.34);
  background: linear-gradient(180deg, rgba(159, 212, 255, 0.18), rgba(255, 255, 255, 0.05));
}

.start-menu .start-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 24px;
}

.start-menu .start-item-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.start-menu .start-item-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.start-menu .start-item-copy small {
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.35;
  color: rgba(226, 237, 247, 0.78);
}

.start-menu .start-menu-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid rgba(173, 214, 255, 0.10);
  background: rgba(8, 15, 28, 0.34);
}

@media (max-width: 920px) {
  .start-menu {
    width: calc(100vw - 18px) !important;
    max-width: calc(100vw - 18px) !important;
    left: 9px !important;
  }

  .start-menu .start-menu-main {
    grid-template-columns: 1fr;
  }

  .start-menu .start-menu-rail {
    grid-auto-flow: column;
    grid-auto-columns: minmax(140px, 1fr);
  }

  .start-menu .start-menu-content.with-groups {
    grid-template-columns: 1fr;
  }
}

/* Native replacements for former compat/iframe utilities */
.app-pane.native-settings-app,
.app-pane.native-audio-app,
.app-pane.native-security-app,
.app-pane.native-archive-app,
.app-pane.native-classic-game-app {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  overflow: auto;
}

.native-app-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

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

.native-app-header p,
.native-settings-hint,
.native-pane-footer {
  color: rgba(28, 38, 58, 0.68);
}

.native-tabbar,
.inline-actions,
.snake-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.native-tabbar button.active,
.native-track-list button.selected {
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(40, 74, 120, 0.22);
}

.native-settings-body,
.native-split {
  min-height: 0;
  flex: 1;
}

.native-settings-card,
.native-audio-player,
.native-mixer,
.native-recorder,
.native-track-list,
.native-table-wrap,
.native-game-status {
  padding: 14px;
  border-radius: 14px;
}

.native-settings-card h3,
.native-mixer h3,
.native-recorder h3,
.native-table-wrap h3 {
  margin: 0 0 10px;
}

.native-kv-list {
  display: grid;
  grid-template-columns: minmax(110px, 0.35fr) 1fr;
  gap: 8px 12px;
  margin: 0;
}

.native-kv-list dt {
  font-weight: 700;
  color: rgba(21, 31, 50, 0.72);
}

.native-kv-list dd {
  margin: 0;
  word-break: break-all;
}

.status-pill,
.risk-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 0 0 1px rgba(45, 67, 100, 0.18);
}

.risk-pill.high {
  background: rgba(255, 120, 120, 0.24);
}

.risk-pill.medium {
  background: rgba(255, 210, 110, 0.28);
}

.risk-pill.low {
  background: rgba(120, 210, 150, 0.22);
}

.native-audio-player {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.native-disc {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 42px;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.86), rgba(166,185,214,0.52));
  box-shadow: inset 0 0 0 1px rgba(38, 58, 88, 0.18), 0 12px 24px rgba(18, 30, 52, 0.18);
}

.native-audio-meta audio,
.native-recorder audio {
  width: 100%;
}

.native-track-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.native-recorder-meter {
  height: 84px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.12em;
  background: rgba(25, 36, 58, 0.08);
  margin-bottom: 12px;
}

.native-recorder-meter.recording {
  animation: recorder-pulse 1s infinite alternate;
}

@keyframes recorder-pulse {
  from { opacity: 0.72; }
  to { opacity: 1; }
}

.native-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.native-table-wrap {
  overflow: auto;
  min-height: 0;
}

.native-security-table td:nth-child(2),
.native-archive-app td:first-child {
  word-break: break-all;
}

.native-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 12px;
}

.native-archive-app tr.selected td {
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(40, 74, 120, 0.16);
}

.native-game-status {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.native-mines-grid,
.snake-grid,
.native-board-grid {
  --cols: 9;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 4px;
  align-self: flex-start;
  width: min(100%, 560px);
}

.mine-cell,
.board-cell,
.snake-cell {
  aspect-ratio: 1;
  min-width: 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.mine-cell.revealed {
  background: rgba(255, 255, 255, 0.64);
}

.mine-cell.flagged {
  font-size: 16px;
}

.snake-cell {
  background: rgba(255, 255, 255, 0.36);
  box-shadow: inset 0 0 0 1px rgba(34, 54, 84, 0.12);
}

.snake-cell.head,
.snake-cell.body {
  background: rgba(86, 145, 96, 0.32);
}

.snake-cell.food {
  background: rgba(214, 97, 97, 0.30);
}

.board-cell.black {
  color: #101620;
  font-size: 20px;
}

.board-cell.white {
  color: #f8fbff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.45);
  font-size: 20px;
}

@media (max-width: 780px) {
  .native-split,
  .native-audio-player {
    grid-template-columns: 1fr;
  }
}

.native-browser-app {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  height: 100%;
}

.native-browser-toolbar {
  display: grid;
  grid-template-columns: auto auto auto minmax(160px, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
}

.native-browser-toolbar input {
  width: 100%;
  min-width: 0;
}

.native-browser-page {
  overflow: auto;
  padding: 18px;
  line-height: 1.55;
}

.native-browser-page h1 {
  margin-top: 0;
}

.native-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.native-browser-status {
  font-size: 12px;
  opacity: 0.72;
  padding: 0 4px 2px;
}

.native-music-lab {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.native-keyboard {
  display: grid;
  grid-template-columns: repeat(8, minmax(48px, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.native-keyboard button {
  min-height: 86px;
  font-weight: 800;
}

@media (max-width: 760px) {
  .native-browser-toolbar {
    grid-template-columns: repeat(3, auto) minmax(0, 1fr);
  }

  .native-browser-toolbar .primary {
    grid-column: 1 / -1;
  }

  .native-music-lab {
    grid-template-columns: minmax(0, 1fr);
  }

  .native-keyboard {
    grid-template-columns: repeat(4, minmax(48px, 1fr));
  }
}

/* r30 desktop/taskbar/app-menu/game-embed fixes */
.desktop-surface {
  overflow: hidden;
}

.desktop-icons {
  min-width: 100%;
  min-height: 100%;
}

.desktop-icon {
  width: 104px !important;
  height: 114px !important;
  min-height: 114px !important;
  padding: 10px 8px 8px !important;
  justify-content: flex-start !important;
  overflow: hidden;
}

.desktop-icon-glyph {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  line-height: 1;
}

.desktop-icon-label {
  width: 100%;
  max-width: 92px !important;
  min-height: 2.45em;
  max-height: 2.45em;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
  text-overflow: ellipsis;
  white-space: normal !important;
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-height: 1.22;
  text-align: center;
}

.desktop-icon.dragging .desktop-icon-label,
.desktop-icon.selected .desktop-icon-label,
.desktop-icon:hover .desktop-icon-label {
  -webkit-line-clamp: 3;
  max-height: 3.65em;
}

.desktop-taskbar,
.taskbar {
  width: min(1380px, calc(100% - 16px)) !important;
  height: calc(var(--taskbar-height) + 2px) !important;
  min-height: 58px;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  overflow: hidden;
}

.start-button {
  flex: 0 0 auto;
  min-width: 108px !important;
  height: 46px !important;
}

.taskbar-apps {
  flex: 1 1 auto !important;
  min-width: 120px;
  max-width: none;
  overflow-x: auto;
  overflow-y: hidden;
  display: flex !important;
  align-items: center;
  gap: 7px !important;
  scrollbar-width: thin;
  padding-bottom: 2px;
}

.taskbar-app {
  flex: 1 1 132px;
  min-width: 104px !important;
  max-width: 176px !important;
  height: 44px !important;
  padding: 0 10px !important;
  gap: 7px !important;
  border-radius: 15px !important;
}

.taskbar-app-icon {
  width: 22px;
  text-align: center;
}

.taskbar-app-label {
  font-size: 13px;
}

.taskbar-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px !important;
  max-width: 42vw;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.taskbar-right .ghost-button,
.status-badge {
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 12px !important;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .taskbar-right .ghost-button:nth-of-type(2),
  .taskbar-right .ghost-button:nth-of-type(3) {
    display: none;
  }
  .taskbar-app {
    flex-basis: 118px;
    max-width: 148px !important;
  }
}

@media (max-width: 760px) {
  .taskbar-right .ghost-button {
    display: none;
  }
  .taskbar-right {
    max-width: 156px;
  }
  .start-button {
    min-width: 92px !important;
  }
}

.app-menu-bar {
  display: flex;
  align-items: stretch;
  gap: 2px;
  min-width: 0;
  position: relative;
  z-index: 80;
}

.app-menu-root {
  position: relative;
  flex: 0 0 auto;
}

.app-menu-trigger,
.app-menu-item {
  font: inherit;
  color: inherit;
}

.app-menu-trigger {
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
}

.app-menu-root.open > .app-menu-trigger,
.app-menu-root:hover > .app-menu-trigger,
.app-menu-trigger:focus-visible {
  border-color: rgba(160, 215, 255, 0.30);
  background: linear-gradient(180deg, rgba(185, 225, 255, 0.18), rgba(255, 255, 255, 0.04));
}

.app-menu-dropdown {
  position: absolute;
  z-index: 5000;
  top: calc(100% + 2px);
  left: 0;
  display: none;
  min-width: 220px;
  max-width: min(360px, calc(100vw - 24px));
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(190, 224, 255, 0.22);
  background: linear-gradient(180deg, rgba(30, 50, 78, 0.98), rgba(7, 16, 31, 0.98));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255,255,255,0.10);
  color: #eef7ff;
}

.app-menu-root.open > .app-menu-dropdown,
.app-menu-root:hover > .app-menu-dropdown,
.app-menu-submenu:hover > .app-menu-dropdown,
.app-menu-submenu:focus-within > .app-menu-dropdown {
  display: grid;
  gap: 2px;
}

.app-menu-submenu {
  position: relative;
}

.app-menu-nested {
  top: -6px;
  left: calc(100% + 4px);
}

.app-menu-item {
  width: 100%;
  min-height: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  white-space: nowrap;
}

.app-menu-item:hover,
.app-menu-item:focus-visible,
.app-menu-submenu:hover > .app-menu-submenu-trigger {
  border-color: rgba(160, 215, 255, 0.24);
  background: linear-gradient(180deg, rgba(125, 188, 255, 0.28), rgba(255,255,255,0.05));
}

.app-menu-item:disabled,
.app-menu-item[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.app-menu-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-menu-shortcut {
  color: rgba(226, 237, 247, 0.62);
  font-size: 12px;
}

.app-menu-arrow {
  color: rgba(226, 237, 247, 0.72);
  font-size: 18px;
  line-height: 1;
}

.app-menu-separator {
  height: 1px;
  margin: 5px 4px;
  background: rgba(190, 224, 255, 0.16);
}

.compact-menubar-shell {
  min-width: 0;
  flex: 1 1 auto;
  justify-content: flex-end;
}

.ide-topbar.vb6-toolbar {
  overflow: visible !important;
}

.ide-menubar {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.legacy-frame-menu-shell {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(180, 218, 255, 0.12);
  background: rgba(10, 20, 38, 0.52);
  overflow: visible;
  position: relative;
  z-index: 90;
}

.legacy-frame-title {
  margin-left: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.legacy-embedded-game-app {
  grid-template-rows: minmax(0, 1fr) !important;
  position: relative;
  overflow: hidden !important;
  background: #000;
}

.legacy-embedded-game-app .legacy-frame-menu-shell {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  min-height: 34px;
  padding: 4px 8px;
  border-radius: 12px;
  border: 1px solid rgba(190, 224, 255, 0.18);
  background: rgba(5, 10, 18, 0.64);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0.28;
  transition: opacity 120ms ease;
}

.legacy-embedded-game-app .legacy-frame-menu-shell:hover,
.legacy-embedded-game-app .legacy-frame-menu-shell:focus-within {
  opacity: 1;
}

.legacy-embedded-game-app .legacy-frame-body {
  position: absolute;
  inset: 0;
  min-height: 0;
}

.legacy-embed-shell-game {
  display: block !important;
  position: absolute;
  inset: 0;
  height: auto !important;
  background: #000;
}

.legacy-embed-shell-game .legacy-embed-frame {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

.legacy-game-status-strip {
  position: absolute;
  z-index: 2;
  left: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 24px);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  color: rgba(245, 250, 255, 0.86);
  pointer-events: none;
  transition: opacity 180ms ease;
}

.legacy-embed-shell-game:has(.legacy-embed-frame:focus) .legacy-game-status-strip,
.legacy-embed-shell-game:hover .legacy-game-status-strip {
  opacity: 0.72;
}

@media (max-width: 720px) {
  .app-menu-dropdown {
    min-width: 190px;
  }
  .app-menu-nested {
    left: 16px;
    top: calc(100% + 2px);
  }
}

/* r30 native app toolbar menu cleanup */
.toolbar.app-toolbar {
  overflow: visible;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.app-toolbar-menubar {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-start;
}

.toolbar-action-bridge[hidden] {
  display: none !important;
}

.notes-app .toolbar.app-toolbar,
.draw-app .toolbar.app-toolbar,
.calculator-app .toolbar.app-toolbar {
  position: relative;
  z-index: 80;
}

.native-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 12px;
  margin-bottom: 12px;
}

.native-kv-list.compact {
  grid-template-columns: minmax(120px, 0.28fr) 1fr;
  margin-top: 10px;
}

/* r33 native SQL points system */
.app-pane.native-points-app {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  overflow: hidden;
}

.native-points-toolbar {
  position: relative;
  z-index: 90;
  overflow: visible;
}

.native-points-header {
  align-items: center;
}

.native-points-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(460px, 100%);
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 0 0 1px rgba(45, 67, 100, 0.16);
  color: rgba(21, 31, 50, 0.74);
  font-size: 12px;
}

.native-points-status.error {
  background: rgba(255, 124, 124, 0.22);
  color: rgba(110, 25, 25, 0.92);
}

.spinner-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  animation: recorder-pulse 0.8s infinite alternate;
}

.native-points-summary {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.native-points-metric {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border-radius: 14px;
}

.native-points-metric span {
  color: rgba(28, 38, 58, 0.64);
  font-size: 12px;
}

.native-points-metric strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
}

.native-points-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.native-points-search {
  flex: 0 1 280px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 180px;
}

.native-points-search span {
  color: rgba(28, 38, 58, 0.66);
  font-weight: 700;
}

.native-points-search input {
  width: 100%;
}

.native-points-body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.62fr);
  gap: 12px;
}

.native-points-main,
.native-points-details {
  min-height: 0;
  overflow: auto;
}

.native-points-overview {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.native-points-details {
  padding: 14px;
  border-radius: 14px;
}

.native-points-details section + section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(45, 67, 100, 0.14);
}

.native-points-details h3,
.native-points-details h4,
.native-points-profile h3 {
  margin: 0 0 10px;
}

.native-points-details p {
  margin: 0;
  color: rgba(28, 38, 58, 0.70);
  line-height: 1.55;
}

.native-points-profile {
  padding: 14px;
  border-radius: 14px;
}

.native-points-profile-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.native-points-profile-head.compact {
  grid-template-columns: auto minmax(0, 1fr);
  margin-bottom: 10px;
}

.native-points-profile-head h3,
.native-points-profile-head p {
  margin: 0;
}

.native-points-profile-head small,
.native-points-table small {
  display: block;
  margin-top: 2px;
  color: rgba(28, 38, 58, 0.62);
  font-size: 11px;
}

.native-points-avatar {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(160, 206, 255, 0.95), rgba(240, 246, 255, 0.72));
  box-shadow: inset 0 0 0 1px rgba(45, 67, 100, 0.18), 0 6px 14px rgba(20, 35, 62, 0.16);
  font-weight: 800;
  color: rgba(22, 38, 66, 0.88);
}

.native-points-avatar.large {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  font-size: 18px;
}

.native-points-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.native-points-table th,
.native-points-table td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(45, 67, 100, 0.12);
  text-align: left;
  vertical-align: middle;
}

.native-points-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(232, 238, 248, 0.92);
  color: rgba(21, 31, 50, 0.72);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.native-points-table tr[data-username],
.native-points-table tr[data-task-id],
.native-points-table tr[data-tx-id] {
  cursor: pointer;
}

.native-points-table tr:hover td {
  background: rgba(255, 255, 255, 0.42);
}

.native-points-table tr.selected td {
  background: rgba(130, 184, 255, 0.20);
  box-shadow: inset 0 0 0 1px rgba(42, 92, 150, 0.16);
}

.native-points-table .numeric,
.native-points-table th.numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.native-points-table .positive {
  color: rgba(22, 114, 64, 0.95);
  font-weight: 800;
}

.native-points-table .negative {
  color: rgba(160, 45, 45, 0.95);
  font-weight: 800;
}

.native-points-table.compact th,
.native-points-table.compact td {
  padding: 7px 8px;
}

@media (max-width: 960px) {
  .app-pane.native-points-app {
    overflow: auto;
  }
  .native-points-controls,
  .native-points-body,
  .native-points-overview {
    grid-template-columns: 1fr;
  }
  .native-points-controls {
    align-items: stretch;
    flex-direction: column;
  }
  .native-points-search {
    flex-basis: auto;
  }
}

/* r34 full-native legacy surfaces */
.native-flight-app {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  box-sizing: border-box;
  overflow: hidden;
}

.native-flight-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(480px, 1fr) 320px;
  gap: 10px;
}

.native-flight-stage {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  padding: 0;
  background: rgba(5, 12, 24, 0.92);
}

.native-flight-canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  outline: none;
  border-radius: 14px;
}

.native-flight-overlay {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  pointer-events: none;
}

.native-flight-overlay span,
.native-flight-objective,
.native-flight-help span,
.native-flight-log div {
  border: 1px solid rgba(174, 206, 255, 0.20);
  background: rgba(10, 20, 38, 0.58);
  color: rgba(236, 246, 255, 0.95);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  backdrop-filter: blur(8px);
}

.native-flight-side {
  min-width: 0;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
}

.native-flight-title {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.native-flight-title > span {
  font-size: 34px;
  line-height: 1;
}

.native-flight-title h2 {
  margin: 0 0 4px;
}

.native-flight-title p {
  margin: 0;
  color: rgba(223, 235, 255, 0.72);
}

.native-flight-objective {
  border-radius: 14px;
  line-height: 1.5;
}

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

.native-slider-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 10px;
  color: rgba(232, 241, 255, 0.82);
}

.native-slider-row input[type="range"] {
  width: 100%;
}

.native-flight-help,
.native-flight-log {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.native-flight-help strong {
  color: rgba(232, 241, 255, 0.88);
}

.native-flight-log div {
  border-radius: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 980px) {
  .native-flight-app {
    overflow: auto;
  }
  .native-flight-layout {
    grid-template-columns: 1fr;
  }
  .native-flight-side {
    max-height: none;
  }
}



/* r38 Huangpai Air Combat native simulation polish */
.native-flight-combat .native-flight-stage {
  box-shadow: inset 0 0 0 1px rgba(129, 221, 255, 0.18), inset 0 -80px 180px rgba(0, 0, 0, 0.28);
}

.native-flight-combat .native-flight-canvas {
  background: radial-gradient(circle at 50% 42%, rgba(45, 99, 165, 0.42), rgba(6, 14, 30, 0.95));
}

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

.native-combat-telemetry {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(125, 218, 255, 0.22);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(9, 22, 45, 0.72), rgba(22, 42, 78, 0.44));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.native-combat-telemetry div {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.native-combat-telemetry strong {
  color: rgba(158, 231, 255, 0.96);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.native-combat-telemetry span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(239, 247, 255, 0.92);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.native-flight-combat .native-flight-objective {
  border-color: rgba(255, 222, 117, 0.28);
  background: linear-gradient(135deg, rgba(37, 31, 10, 0.52), rgba(10, 26, 48, 0.58));
}

/* r35 commercial UX layer */
.taskbar-search {
  width: clamp(112px, 13vw, 220px);
  height: 50px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 0 14px;
  color: rgba(232, 244, 255, 0.88);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.035)),
    rgba(7, 18, 36, 0.48);
  border: 1px solid rgba(205, 230, 255, 0.16);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.taskbar-icon-button {
  position: relative;
  width: 46px;
  min-width: 46px;
  height: 46px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
}

.taskbar-quick-app {
  min-width: 82px;
  height: 46px;
  padding: 0 12px;
}

.notification-badge {
  position: absolute;
  right: -4px;
  top: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(180deg, #ff7b7b, #ef4444);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(239, 68, 68, 0.32);
}

.notification-badge.hidden {
  display: none;
}

.toast {
  position: relative;
}

.toast-close {
  position: absolute;
  right: 10px;
  top: 8px;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  opacity: 0.78;
}

.command-palette-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: min(12vh, 96px);
}

.command-palette {
  width: min(760px, calc(100vw - 28px));
  max-height: min(76vh, 720px);
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(120px, 1fr) auto;
  border: 1px solid rgba(209, 233, 255, 0.20);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.45);
}

.command-palette-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(205, 230, 255, 0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02));
}

.command-palette-input-row input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 18px;
  padding: 8px 2px;
}

.command-palette-input-row input:focus {
  box-shadow: none;
}

.command-palette-results {
  overflow: auto;
  padding: 8px;
  display: grid;
  gap: 6px;
}

.command-palette-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 12px;
  border-radius: 16px;
  background: rgba(8, 18, 34, 0.42);
  border-color: rgba(205, 230, 255, 0.10);
}

.command-palette-item.active,
.command-palette-item:hover {
  background:
    linear-gradient(180deg, rgba(120, 201, 255, 0.18), rgba(255,255,255,0.04)),
    rgba(8, 22, 44, 0.82);
  border-color: rgba(144, 216, 255, 0.36);
}

.command-palette-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 22px;
  background: rgba(255,255,255,0.08);
}

.command-palette-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.command-palette-main strong,
.command-palette-main small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.command-palette-main small,
.command-palette-hint,
.panel-title-row small {
  color: var(--text-2);
}

.command-palette-hint {
  padding: 10px 18px 14px;
  border-top: 1px solid rgba(205, 230, 255, 0.10);
  font-size: 13px;
}

.command-palette-empty,
.panel-empty {
  padding: 28px;
  text-align: center;
  color: var(--text-2);
}

.notification-center-panel,
.quick-settings-panel {
  position: fixed;
  z-index: 8700;
  width: min(380px, calc(100vw - 24px));
  max-height: min(72vh, 620px);
  border-radius: 22px;
  padding: 14px;
  border: 1px solid rgba(209, 233, 255, 0.20);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

.panel-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 12px;
}

.panel-title-row > div {
  display: grid;
  gap: 3px;
}

.notification-history {
  max-height: min(56vh, 500px);
  overflow: auto;
  display: grid;
  gap: 8px;
  padding-right: 2px;
}

.notification-history-item {
  border-radius: 16px;
  padding: 12px;
  background: rgba(8, 18, 34, 0.48);
  border: 1px solid rgba(205, 230, 255, 0.10);
}

.notification-history-item.error { border-color: rgba(239, 68, 68, 0.34); }
.notification-history-item.warn { border-color: rgba(245, 158, 11, 0.34); }
.notification-history-item.success { border-color: rgba(16, 185, 129, 0.30); }

.notification-history-item div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.notification-history-item time {
  color: var(--text-2);
  font-size: 12px;
  white-space: nowrap;
}

.notification-history-item p {
  margin: 8px 0 0;
  color: var(--text-1);
  line-height: 1.45;
}

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

.quick-setting-grid button {
  min-height: 72px;
  display: grid;
  place-items: center;
  gap: 6px;
}

.quick-setting-grid button span {
  font-size: 13px;
}

.quick-toggle {
  margin: 8px 0 12px;
}

.window-snap-preview {
  position: absolute;
  z-index: 8400;
  pointer-events: none;
  display: grid;
  place-items: center;
  border-radius: 24px;
  border: 2px solid rgba(125, 211, 252, 0.72);
  background:
    linear-gradient(180deg, rgba(56, 189, 248, 0.18), rgba(14, 165, 233, 0.08)),
    rgba(8, 23, 43, 0.42);
  color: rgba(232, 244, 255, 0.88);
  font-weight: 800;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 120ms ease, transform 120ms ease;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), 0 24px 60px rgba(3, 105, 161, 0.28);
}

.window-snap-preview.visible {
  opacity: 1;
  transform: scale(1);
}

.shell-context-menu .context-menu-item {
  justify-content: space-between;
  gap: 22px;
}

.shell-context-menu kbd,
.command-palette kbd {
  border-radius: 8px;
  border: 1px solid rgba(205, 230, 255, 0.18);
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  color: var(--text-2);
  font-size: 11px;
  font-family: inherit;
}

.context-menu-separator {
  height: 1px;
  background: rgba(205, 230, 255, 0.12);
  margin: 6px 4px;
}

@media (max-width: 900px) {
  .taskbar-search {
    width: 50px;
    justify-content: center;
    padding: 0;
  }
  .taskbar-quick-app {
    display: none;
  }
  .taskbar-app {
    min-width: 62px;
    max-width: 120px;
  }
}

/* r36 commercial polish: keyboard menus, taskbar previews and native app status surfaces */
.app-menu-submenu.keyboard-open > .app-menu-dropdown {
  display: grid;
  gap: 2px;
}

.app-menu-trigger:focus-visible,
.app-menu-item:focus-visible {
  outline: 2px solid rgba(125, 211, 252, 0.72);
  outline-offset: 2px;
}

.app-statusbar {
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 12px;
  border-top: 1px solid rgba(190, 224, 255, 0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(4, 10, 22, 0.18));
  color: rgba(226, 237, 247, 0.72);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
}

.app-statusbar span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notes-app,
.calculator-app,
.draw-app {
  min-height: 0;
}

.notes-find-panel {
  min-height: 38px;
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto auto auto auto;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-top: 1px solid rgba(190, 224, 255, 0.10);
  border-bottom: 1px solid rgba(190, 224, 255, 0.10);
  background: rgba(8, 18, 34, 0.46);
}

.notes-find-panel.hidden {
  display: none;
}

.notes-find-panel input {
  height: 28px;
  min-width: 0;
}

.notes-find-panel button {
  min-height: 28px;
  padding: 3px 9px;
}

.notes-editor {
  min-height: 0;
}

.calculator-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.42fr);
  gap: 10px;
  padding: 12px;
  overflow: hidden;
}

.calculator-main {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
}

.calculator-history-panel {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  border-radius: 18px;
  padding: 8px;
  border: 1px solid rgba(190, 224, 255, 0.14);
  background: rgba(8, 18, 34, 0.42);
  display: grid;
  align-content: start;
  gap: 6px;
}

.calculator-history-panel.hidden {
  display: none;
}

.calc-history-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  text-align: right;
  border-radius: 12px;
  padding: 9px 10px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(190, 224, 255, 0.10);
}

.calc-history-row span,
.calc-history-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calc-history-row span {
  color: rgba(226, 237, 247, 0.64);
  font-size: 12px;
}

.calc-history-row strong {
  color: rgba(245, 250, 255, 0.94);
}

.draw-statusbar {
  position: relative;
  z-index: 2;
}

.taskbar-window-preview {
  position: fixed;
  z-index: 8750;
  width: min(320px, calc(100vw - 24px));
  border-radius: 20px;
  padding: 12px;
  border: 1px solid rgba(209, 233, 255, 0.22);
  box-shadow: 0 24px 70px rgba(0,0,0,0.40);
  animation: taskbarPreviewIn 120ms ease-out;
}

@keyframes taskbarPreviewIn {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.taskbar-preview-header {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
}

.taskbar-preview-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  font-size: 22px;
}

.taskbar-preview-header strong,
.taskbar-preview-header small {
  display: block;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.taskbar-preview-header small,
.taskbar-preview-body {
  color: rgba(226, 237, 247, 0.68);
  font-size: 12px;
}

.taskbar-preview-body {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0;
}

.taskbar-preview-actions {
  display: flex;
  gap: 8px;
}

.taskbar-preview-actions button {
  flex: 1 1 0;
  min-height: 30px;
}

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

@media (max-width: 760px) {
  .calculator-layout {
    grid-template-columns: 1fr;
  }
  .calculator-history-panel {
    max-height: 160px;
  }
  .notes-find-panel {
    grid-template-columns: auto minmax(90px, 1fr) auto auto;
  }
  .notes-find-panel [data-role="notes-find-count"] {
    display: none;
  }
  .quick-setting-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* r37 commercial detail polish: visual density, active surfaces, menus with icons, and rendered QA fixes */
:root {
  --focus-ring: 0 0 0 3px rgba(56, 189, 248, 0.22), 0 0 0 1px rgba(125, 211, 252, 0.54);
  --panel-line: rgba(196, 226, 255, 0.16);
  --panel-line-strong: rgba(196, 226, 255, 0.28);
  --surface-soft: rgba(7, 14, 28, 0.56);
  --surface-strong: rgba(5, 12, 24, 0.86);
}
* { scrollbar-width: thin; scrollbar-color: rgba(125, 211, 252, 0.38) rgba(2, 6, 23, 0.22); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(2, 6, 23, 0.20); border-radius: 999px; }
::-webkit-scrollbar-thumb { border-radius: 999px; background: linear-gradient(180deg, rgba(125, 211, 252, 0.52), rgba(14, 165, 233, 0.34)); border: 2px solid rgba(2, 6, 23, 0.35); }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: none !important; box-shadow: var(--focus-ring) !important; }
.desktop-header { background: linear-gradient(90deg, rgba(8, 18, 34, 0.74), rgba(8, 18, 34, 0.50)), rgba(2, 6, 23, 0.66) !important; border-bottom-color: rgba(196, 226, 255, 0.14) !important; box-shadow: 0 1px 0 rgba(255,255,255,0.05), 0 14px 36px rgba(0,0,0,0.18); }
.desktop-brand .brand-title { letter-spacing: 0.01em; }
.desktop-actions { padding: 4px; border-radius: 18px; border: 1px solid rgba(196, 226, 255, 0.10); background: rgba(4, 10, 22, 0.28); overflow-x: auto; scrollbar-width: none; }
.desktop-actions::-webkit-scrollbar { display: none; }
.desktop-actions button, .desktop-actions select, .workspace-chip { min-height: 34px; border-radius: 12px !important; }
.desktop-resources { display: flex; align-items: stretch; justify-content: flex-end; gap: 10px; min-width: min(660px, 58vw); }
.desktop-resource-card {
  min-width: 168px;
  max-width: 214px;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid rgba(196, 226, 255, 0.14);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025)), rgba(3, 9, 20, 0.34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 12px 28px rgba(0,0,0,0.18);
  display: grid;
  gap: 5px;
  text-align: left;
  position: relative;
  overflow: hidden;
  color: rgba(236, 244, 255, 0.96);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}
.desktop-resource-card:hover,
.desktop-resource-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.34);
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.14), rgba(255,255,255,0.03)), rgba(3, 9, 20, 0.40);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 18px 34px rgba(0,0,0,0.24);
}
.desktop-resource-card[data-tone="warn"] { border-color: rgba(250, 204, 21, 0.28); }
.desktop-resource-card[data-tone="warn"] .desktop-resource-spark { color: rgba(250, 204, 21, 0.94); }
.desktop-resource-card[data-tone="danger"] { border-color: rgba(248, 113, 113, 0.32); }
.desktop-resource-card[data-tone="danger"] .desktop-resource-spark { color: rgba(248, 113, 113, 0.94); }
.desktop-resource-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.desktop-resource-label,
.desktop-resource-side,
.desktop-resource-meta { color: rgba(222, 237, 255, 0.72); }
.desktop-resource-label,
.desktop-resource-side { font-size: 11px; }
.desktop-resource-value { font-size: 18px; font-weight: 800; line-height: 1.05; letter-spacing: 0.01em; }
.desktop-resource-meta { font-size: 11px; min-height: 1.35em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desktop-resource-spark { height: 28px; color: rgba(125, 211, 252, 0.92); }
.desktop-resource-spark svg { width: 100%; height: 100%; display: block; }
.desktop-surface::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 18% 24%, rgba(56, 189, 248, 0.10), transparent 24%), radial-gradient(circle at 84% 72%, rgba(99, 102, 241, 0.09), transparent 28%); }
.desktop-icon { transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, box-shadow 120ms ease; contain: layout paint; }
.desktop-icon:hover, .desktop-icon.selected, .desktop-icon:focus-visible { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(2, 8, 23, 0.28), inset 0 1px 0 rgba(255,255,255,0.10); }
.desktop-icon.selected::after { content: ''; position: absolute; inset: 5px; border-radius: 13px; border: 1px solid rgba(125, 211, 252, 0.52); pointer-events: none; }
.desktop-icon-glyph { border-radius: 16px; background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.025)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.08); }
.window.window-shell { border-color: rgba(196, 226, 255, 0.16) !important; background: linear-gradient(180deg, rgba(21, 32, 54, 0.92), rgba(9, 15, 28, 0.92)) !important; box-shadow: 0 24px 80px rgba(0,0,0,0.38), 0 2px 0 rgba(255,255,255,0.04) inset !important; transition: box-shadow 140ms ease, border-color 140ms ease, transform 140ms ease, filter 140ms ease; }
.window.window-shell:not(.active-window) { filter: saturate(0.88) brightness(0.92); }
.window.window-shell.active-window { border-color: rgba(125, 211, 252, 0.54) !important; box-shadow: 0 34px 95px rgba(0,0,0,0.48), 0 0 0 1px rgba(125,211,252,0.25), 0 0 48px rgba(14,165,233,0.14) !important; }
.window.maximized-window { border-radius: 0 !important; }
.window-header { height: 44px !important; background: linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025)), rgba(4, 10, 22, 0.70) !important; border-bottom-color: rgba(196, 226, 255, 0.12) !important; }
.active-window .window-header { background: linear-gradient(90deg, rgba(14, 165, 233, 0.24), rgba(99, 102, 241, 0.12)), rgba(4, 10, 22, 0.78) !important; }
.window-titlebar { min-width: 0; display: flex; align-items: center; gap: 9px; }
.window-app-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,0.08); box-shadow: inset 0 1px 0 rgba(255,255,255,0.08); flex: 0 0 auto; }
.window-actions { gap: 7px !important; }
.window-actions button { border-radius: 999px !important; width: 30px !important; height: 30px !important; color: rgba(226, 237, 247, 0.86); background: rgba(255,255,255,0.055) !important; border-color: rgba(196, 226, 255, 0.12) !important; }
.window-actions button[data-action="minimize"]:hover { background: rgba(250, 204, 21, 0.28) !important; }
.window-actions button[data-action="maximize"]:hover { background: rgba(34, 197, 94, 0.26) !important; }
.window-actions button[data-action="close"]:hover { background: rgba(239, 68, 68, 0.34) !important; color: #fff; }
.window-body { background: linear-gradient(180deg, rgba(255,255,255,0.025), transparent 120px), rgba(3, 8, 20, 0.18); }
.taskbar.desktop-taskbar, .taskbar { background: linear-gradient(180deg, rgba(17, 29, 49, 0.82), rgba(3, 8, 20, 0.82)) !important; border-color: rgba(196, 226, 255, 0.18) !important; box-shadow: 0 24px 70px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.08) !important; }
.start-button, .taskbar-search, .taskbar-icon-button, .taskbar-quick-app { border-color: rgba(196, 226, 255, 0.14) !important; background: rgba(255,255,255,0.065) !important; }
.start-button:hover, .taskbar-search:hover, .taskbar-icon-button:hover, .taskbar-quick-app:hover { background: rgba(125, 211, 252, 0.13) !important; }
.taskbar-app { display: flex !important; align-items: center; position: relative; background: rgba(255,255,255,0.055) !important; border-color: rgba(196, 226, 255, 0.12) !important; overflow: hidden; }
.taskbar-app.active { background: linear-gradient(180deg, rgba(56, 189, 248, 0.22), rgba(14, 165, 233, 0.12)) !important; border-color: rgba(125, 211, 252, 0.34) !important; }
.taskbar-app-indicator { position: absolute; left: 18px; right: 18px; bottom: 4px; height: 3px; border-radius: 999px; background: rgba(125, 211, 252, 0.0); transition: background 120ms ease, left 120ms ease, right 120ms ease; }
.taskbar-app.active .taskbar-app-indicator { background: rgba(125, 211, 252, 0.88); left: 24px; right: 24px; }
.taskbar-app.minimized .taskbar-app-indicator { background: rgba(148, 163, 184, 0.36); }
.status-badge.online::before, .status-badge.degraded::before, .status-badge.offline::before { content: ''; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.start-menu { border-color: rgba(196, 226, 255, 0.22) !important; box-shadow: 0 36px 100px rgba(0,0,0,0.48), inset 0 1px 0 rgba(255,255,255,0.08) !important; }
.start-menu .start-menu-banner { background: radial-gradient(circle at 18% 20%, rgba(125, 211, 252, 0.18), transparent 42%), rgba(255,255,255,0.045); border: 1px solid rgba(196, 226, 255, 0.12); border-radius: 18px; padding: 12px; }
.start-menu .start-item, .start-menu .start-group-button, .start-menu .start-main-button, .start-menu .start-footer-button { transition: transform 120ms ease, background 120ms ease, border-color 120ms ease; }
.start-menu .start-item:hover, .start-menu .start-item:focus-visible { transform: translateX(2px); }
.app-menu-dropdown { min-width: 248px !important; box-shadow: 0 26px 70px rgba(0,0,0,0.48), inset 0 1px 0 rgba(255,255,255,0.10) !important; }
.app-menu-item { grid-template-columns: 18px 24px minmax(0, 1fr) auto 14px !important; column-gap: 8px !important; min-height: 34px !important; }
.app-menu-icon, .app-menu-check, .app-menu-arrow { display: inline-grid; place-items: center; min-width: 0; }
.app-menu-icon.empty, .app-menu-check.empty { opacity: 0; }
.app-menu-shortcut { justify-self: end; opacity: 0.82; }
.app-menu-root.open > .app-menu-trigger { box-shadow: inset 0 -2px 0 rgba(125, 211, 252, 0.72); }
.toolbar.app-toolbar, .legacy-frame-menu-shell, .ide-topbar.vb6-toolbar { background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)), rgba(5, 12, 24, 0.62) !important; border-bottom-color: rgba(196, 226, 255, 0.13) !important; }
.notes-editor { font-size: 15px; line-height: 1.74; background: linear-gradient(90deg, rgba(125,211,252,0.06) 0 1px, transparent 1px) 0 0 / 52px 52px, rgba(2,6,23,0.18) !important; caret-color: rgba(125, 211, 252, 0.96); }
.notes-editor::selection, textarea::selection, input::selection { background: rgba(56, 189, 248, 0.32); }
.notes-find-panel { box-shadow: inset 0 -1px 0 rgba(255,255,255,0.05); }
.app-statusbar { gap: 8px !important; background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(4, 10, 22, 0.24)), rgba(2, 6, 23, 0.35) !important; }
.app-statusbar span { padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,0.045); border: 1px solid rgba(196, 226, 255, 0.08); }
.calculator-grid button { border-radius: 16px !important; background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025)) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,0.08); }
.calculator-grid button:hover { transform: translateY(-1px); }
.equals-button, .calculator-grid button[data-key="="] { background: linear-gradient(180deg, rgba(56, 189, 248, 0.82), rgba(14, 165, 233, 0.72)) !important; color: #03111f !important; font-weight: 800; }
.calc-display, .calculator-history-panel, .panel, .metric-card { border-color: rgba(196, 226, 255, 0.13) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,0.055); }
.draw-canvas { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 16px 46px rgba(0,0,0,0.25); }
.explorer-list { background: rgba(2, 6, 23, 0.12); }
.file-row { border: 1px solid transparent; padding: 0 8px; }
.file-row:hover { border-color: rgba(196, 226, 255, 0.10); }
.file-row.selected { background: linear-gradient(90deg, rgba(56, 189, 248, 0.20), rgba(99, 102, 241, 0.10)) !important; border-color: rgba(125, 211, 252, 0.34) !important; }
.context-menu-shell, .taskbar-window-preview, .quick-settings-panel, .command-palette { border-color: rgba(196, 226, 255, 0.22) !important; box-shadow: 0 28px 90px rgba(0,0,0,0.48), inset 0 1px 0 rgba(255,255,255,0.08) !important; }
.taskbar-window-preview { backdrop-filter: blur(18px); }
.taskbar-preview-actions button { border-radius: 12px !important; }
@media (max-width: 1180px) {
  .desktop-resources { min-width: 0; gap: 8px; }
  .desktop-resource-card { min-width: 148px; max-width: 188px; }
}
@media (max-width: 860px) {
  .desktop-header { height: auto; min-height: var(--header-height); padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; gap: 10px; }
  .desktop-resources { width: 100%; min-width: 0; }
  .desktop-resource-card { min-width: 0; flex: 1 1 0; }
  .desktop-resource-meta { display: none; }
}
@media (max-width: 720px) {
  .desktop-header { min-height: 54px; }
  .brand-subtitle { display: none; }
  .desktop-resource-value { font-size: 15px; }
  .desktop-resource-spark { display: none; }
  .taskbar-search { width: 44px !important; font-size: 0; }
  .taskbar-search::after { content: '⌘'; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; } }


/* r37 rendered QA fixes: keep dense app chrome usable in restored small windows */
.explorer-commandbar { align-items: start; }
.explorer-command-groups {
  flex-wrap: nowrap !important;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.explorer-command-group {
  flex: 0 0 auto;
  flex-wrap: nowrap !important;
}
.explorer-command-button { flex: 0 0 auto; }
.app-pane.calculator-app {
  container-type: inline-size;
  overflow: auto !important;
}
@container (max-width: 520px) {
  .calculator-layout {
    grid-template-columns: 1fr !important;
    overflow: visible;
  }
  .calculator-history-panel {
    max-height: 132px;
  }
}
.native-points-metric span,
.native-points-status,
.native-points-details .empty-state,
.native-points-profile small,
.native-points-table small {
  color: rgba(226, 237, 247, 0.76) !important;
}
.native-points-metric strong { color: rgba(248, 252, 255, 0.96) !important; }

/* r37 calculator rendered fit pass: show the full keypad without needing first-use scrolling */
.calculator-app .calculator-layout { gap: 8px !important; padding: 10px !important; }
.calculator-app .calc-display { padding: 12px !important; border-radius: 14px !important; }
.calculator-app .calc-expression { min-height: 18px !important; }
.calculator-app .calc-result { min-height: 30px !important; font-size: 26px !important; }
.calculator-app .calculator-grid { gap: 6px !important; padding: 0 10px 10px !important; }
.calculator-app .calculator-grid button { height: 38px !important; }
.calculator-app .equals-button { grid-column: span 3 !important; }

/* r39 Visual Basic 6 native IDE polish */
.vbide-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: linear-gradient(145deg, rgba(230,235,245,0.94), rgba(190,204,224,0.90));
  color: #172033;
  font-family: "Segoe UI", system-ui, sans-serif;
}
.vbide-menu-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(15,23,42,0.18);
  background: linear-gradient(180deg, rgba(245,248,252,0.96), rgba(215,224,238,0.92));
  min-height: 48px;
}
.vbide-brand { display: flex; align-items: center; gap: 10px; min-width: 260px; }
.vbide-logo {
  width: 38px; height: 32px; display: grid; place-items: center;
  border: 1px solid rgba(30,64,175,0.45); border-radius: 8px;
  background: linear-gradient(135deg, #243c9e, #6d8dff); color: white; font-weight: 900;
  box-shadow: inset 0 1px rgba(255,255,255,0.5), 0 8px 18px rgba(30,64,175,0.18);
}
.vbide-project-title { font-weight: 800; color: #0f172a; }
.vbide-project-subtitle { font-size: 12px; color: #475569; white-space: nowrap; }
.vbide-menubar { flex: 1; }
.vbide-toolbar {
  display: flex; align-items: center; gap: 7px; padding: 7px 10px;
  border-bottom: 1px solid rgba(15,23,42,0.16);
  background: rgba(226,232,240,0.92);
  overflow-x: auto;
}
.vbide-toolbar button,
.vbide-properties button,
.vbide-tabs button,
.vbide-tool {
  border: 1px solid rgba(71,85,105,0.35); border-radius: 7px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(215,224,238,0.95));
  color: #0f172a; font-weight: 700; padding: 6px 10px;
  box-shadow: inset 0 1px rgba(255,255,255,0.9);
}
.vbide-toolbar button:hover,
.vbide-tabs button:hover,
.vbide-tool:hover { border-color: rgba(37,99,235,0.72); }
.vbide-toolbar button.primary { background: linear-gradient(180deg, #3b82f6, #1d4ed8); color: white; border-color: #1d4ed8; }
.vbide-toolbar .sep { width: 1px; height: 24px; background: rgba(15,23,42,0.22); margin: 0 4px; }
.vbide-main { display: grid; grid-template-columns: 180px minmax(320px, 1fr) 250px; gap: 8px; padding: 8px; min-height: 0; flex: 1; }
.vbide-panel,
.vbide-workbench {
  border: 1px solid rgba(15,23,42,0.18); border-radius: 12px;
  background: rgba(248,250,252,0.90); box-shadow: 0 12px 30px rgba(15,23,42,0.10);
  min-height: 0; overflow: hidden;
}
.vbide-panel { display: flex; flex-direction: column; }
.vbide-panel-title,
.vbide-tree-caption {
  padding: 8px 10px; font-size: 12px; font-weight: 900; text-transform: uppercase;
  color: #334155; background: rgba(226,232,240,0.88); border-bottom: 1px solid rgba(15,23,42,0.12);
}
.vbide-toolbox { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px; overflow: auto; }
.vbide-tool { display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 6px; text-align: left; padding: 7px; font-size: 12px; }
.vbide-tool span { width: 22px; height: 22px; display: grid; place-items: center; background: rgba(30,64,175,0.10); border-radius: 5px; }
.vbide-tool.active { outline: 2px solid rgba(37,99,235,0.45); background: linear-gradient(180deg, rgba(219,234,254,0.96), rgba(191,219,254,0.96)); }
.vbide-workbench { display: flex; flex-direction: column; }
.vbide-tabs { display: flex; align-items: center; gap: 5px; padding: 7px; background: rgba(226,232,240,0.88); border-bottom: 1px solid rgba(15,23,42,0.12); }
.vbide-tabs button.active { background: linear-gradient(180deg, #ffffff, #dbeafe); border-color: rgba(37,99,235,0.65); }
.vbide-view { flex: 1; min-height: 0; overflow: auto; }
.vbide-designer-host {
  min-width: 100%; min-height: 100%; padding: 24px;
  background-image: radial-gradient(rgba(30,41,59,0.24) 1px, transparent 1px);
  background-size: 12px 12px;
  overflow: auto;
}
.vbide-form-window {
  position: relative; border: 1px solid #334155; background: #d4d0c8;
  box-shadow: 0 18px 45px rgba(15,23,42,0.25); margin: 0 auto 80px;
}
.vbide-form-titlebar {
  height: 28px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 7px; color: #fff; font-weight: 800;
  background: linear-gradient(90deg, #0f2f7d, #4f80e8);
  border-bottom: 1px solid #1e293b;
}
.vbide-form-titlebar button { width: 22px; height: 20px; padding: 0; border: 1px solid rgba(255,255,255,0.5); background: #d4d0c8; color: #111827; }
.vbide-form-client { position: relative; width: 100%; height: calc(100% - 28px); overflow: hidden; }
.vb6-design-control,
.vbide-design-control,
.vbide-form-client [data-control-name] { position: absolute; font-family: "MS Sans Serif", "Segoe UI", sans-serif; font-size: 12px; }
.vbide-design-control {
  border: 1px solid #6b7280; background: #ece9d8; color: #111827;
  box-sizing: border-box;
}
.vbide-label { border-color: transparent; background: transparent; display: flex; align-items: center; }
.vbide-textbox,
.vbide-textarea,
.vbide-listbox { background: white; border: 2px inset #f8fafc; padding: 4px; }
.vbide-commandbutton { display: grid; place-items: center; border: 2px outset #f8fafc; background: #ece9d8; }
.vbide-frame { border: 2px groove #f8fafc; background: transparent; }
.vbide-picturebox { border: 2px inset #f8fafc; background: #f1f5f9; display: grid; place-items: center; color: #64748b; }
.vbide-checkbox { display: flex; align-items: center; gap: 5px; background: transparent; border-color: transparent; }
.vbide-design-control.selected,
.vbide-form-client [data-control-name].selected {
  outline: 2px dashed #2563eb; outline-offset: 2px; box-shadow: 0 0 0 4px rgba(37,99,235,0.14);
}
.vbide-code-editor {
  width: 100%; height: 100%; resize: none; border: 0; outline: 0; padding: 14px 16px;
  background: #07111f; color: #dbeafe; font-family: "Cascadia Code", "SFMono-Regular", monospace;
  font-size: 13px; line-height: 1.55;
}
.vbide-project-tree { padding: 8px; overflow: auto; min-height: 120px; }
.vbide-tree-node { padding: 6px 8px; border-radius: 7px; cursor: default; font-size: 13px; color: #1e293b; }
.vbide-tree-node:hover { background: rgba(191,219,254,0.55); }
.vbide-tree-node.selected { background: linear-gradient(90deg, #bfdbfe, #dbeafe); color: #0f172a; font-weight: 800; }
.vbide-properties { padding: 8px; overflow: auto; display: grid; gap: 7px; }
.vbide-prop-header { font-weight: 900; color: #0f172a; padding: 2px 0 6px; }
.vbide-properties label { display: grid; grid-template-columns: 86px 1fr; align-items: center; gap: 6px; font-size: 12px; }
.vbide-properties input {
  min-width: 0; padding: 5px 7px; border-radius: 6px; border: 1px solid rgba(71,85,105,0.32); background: white; color: #0f172a;
}
.vbide-properties button.danger { background: linear-gradient(180deg, #fee2e2, #fecaca); border-color: #ef4444; color: #7f1d1d; }
.vbide-build-summary { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 8px; padding: 10px; }
.vbide-build-summary > div { border: 1px solid rgba(15,23,42,0.12); border-radius: 10px; padding: 8px; background: rgba(255,255,255,0.88); }
.vbide-build-summary span { display: block; font-size: 11px; color: #64748b; }
.vbide-build-summary strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #0f172a; }
.vbide-immediate-output { margin: 0 10px 10px; min-height: 220px; padding: 12px; border-radius: 10px; background: #0b1120; color: #bfdbfe; overflow: auto; }
.vbide-statusbar {
  display: flex; align-items: center; gap: 10px; padding: 5px 10px; border-top: 1px solid rgba(15,23,42,0.16);
  background: rgba(226,232,240,0.92); color: #334155; font-size: 12px;
}
.vbide-statusbar .vbide-status-text { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
@media (max-width: 980px) {
  .vbide-main { grid-template-columns: 150px minmax(260px, 1fr); }
  .vbide-right { display: none; }
  .vbide-brand { min-width: 200px; }
}

/* r40 SWS persistent IDE polish */
.swside-shell .vbide-logo {
  background: linear-gradient(180deg, #22d3ee, #2563eb);
  min-width: 42px;
}
.swside-menubar .app-menu-button { font-weight: 800; }
.swside-form-window { box-shadow: 0 22px 48px rgba(15, 23, 42, 0.22); }
.swside-form-client { background-position: 0 0; }
.swside-control.display { border: 1px solid rgba(37, 99, 235, 0.22); background: rgba(219, 234, 254, 0.82); border-radius: 6px; padding: 5px 8px; }
.swside-code-editor { font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace; line-height: 1.48; }
.swside-immediate-output { min-height: 0; height: calc(100% - 72px); overflow: auto; }
.swside-project-tree small { color: #64748b; font-size: 10px; margin-left: 4px; }
.swside-properties label.wide { grid-template-columns: 86px 1fr; align-items: start; }
.swside-properties textarea { min-height: 72px; resize: vertical; }
.swside-build-summary div strong { word-break: break-word; }
/* r40 Visual Basic 6 native IDE polish compatibility marker */

/* r41 native loading, typed start menu, meetings and points polish */
.window-body.is-app-loading,
.window-body:has(.app-loading-panel) {
  display: grid;
  place-items: center;
  min-height: 100%;
}
.app-loading-panel {
  min-width: min(360px, calc(100% - 32px));
  max-width: 520px;
  padding: 22px 24px;
  border: 1px solid rgba(191, 224, 255, 0.20);
  border-radius: 24px;
  background: radial-gradient(circle at 16% 8%, rgba(125, 211, 252, 0.24), transparent 40%), rgba(9, 17, 29, 0.78);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255,255,255,0.08);
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  color: rgba(245, 250, 255, 0.94);
}
.app-loading-orb {
  width: 72px;
  height: 72px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  background: conic-gradient(from 90deg, rgba(125,211,252,.20), rgba(167,139,250,.84), rgba(125,211,252,.88), rgba(125,211,252,.20));
  animation: app-loading-spin 1.15s linear infinite;
  position: relative;
}
.app-loading-orb::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 20px;
  background: rgba(8, 17, 29, 0.92);
}
.app-loading-orb span {
  position: relative;
  z-index: 1;
  font-size: 24px;
  animation: app-loading-counter-spin 1.15s linear infinite;
}
.app-loading-copy { display: grid; gap: 6px; min-width: 0; }
.app-loading-copy strong { font-size: 18px; }
.app-loading-copy span { color: rgba(223, 237, 255, 0.68); line-height: 1.5; }
@keyframes app-loading-spin { to { transform: rotate(360deg); } }
@keyframes app-loading-counter-spin { to { transform: rotate(-360deg); } }

.start-menu .start-group-button { grid-template-columns: minmax(0, 1fr) auto; }
.start-menu .start-group-button > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.start-menu .start-menu-banner-subtitle::after { content: ' · 类型分组'; }
.start-menu .start-item-copy small { line-height: 1.35; }

.native-meetings-app { padding: 0; overflow: hidden; background: radial-gradient(circle at top left, rgba(67, 142, 207, 0.20), transparent 44%), rgba(7, 12, 20, 0.78); }
.native-meetings-toolbar { flex-wrap: wrap; gap: 8px; border-bottom: 1px solid rgba(196, 226, 255, 0.12); }
.native-meetings-status { display: inline-flex; align-items: center; gap: 8px; color: rgba(222, 237, 255, 0.72); font-size: 12px; max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.native-meetings-status.error { color: rgba(255, 163, 163, 0.96); }
.native-meetings-app-shell { height: calc(100% - 46px); min-height: 0; display: grid; grid-template-columns: minmax(230px, 300px) minmax(0, 1fr); }
.native-meetings-sidebar { min-height: 0; padding: 14px; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 12px; border-right: 1px solid rgba(196, 226, 255, 0.12); background: rgba(5, 12, 22, 0.38); }
.native-meetings-brand { padding: 14px; display: flex; align-items: center; gap: 12px; border-radius: 20px; }
.native-meetings-brand .brand-orb { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(125,211,252,.94), rgba(167,139,250,.65)); color: rgba(9, 17, 28, 0.96); font-size: 22px; position: relative; overflow: hidden; }
.native-meetings-brand .brand-orb--meetings::before { content: ''; width: 28px; height: 28px; display: block; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none'%3E%3Crect x='10' y='14' width='30' height='34' rx='10' fill='%230b1220' fill-opacity='.15'/%3E%3Cpath d='M40 24L53 18V44L40 38V24Z' fill='%230b1220' fill-opacity='.25'/%3E%3Ccircle cx='24' cy='31' r='8' fill='white' fill-opacity='.82'/%3E%3Ccircle cx='24' cy='31' r='5' fill='%23081825' fill-opacity='.16'/%3E%3C/svg%3E"); }
.native-meetings-brand h2 { margin: 0; font-size: 18px; }
.native-meetings-brand p { margin: 3px 0 0; color: rgba(222, 237, 255, 0.66); font-size: 12px; }
.native-meetings-search { display: grid; gap: 6px; color: rgba(222, 237, 255, 0.68); font-size: 12px; }
.native-meetings-search input { width: 100%; border-radius: 14px; border: 1px solid rgba(196, 226, 255, 0.14); background: rgba(255,255,255,.055); color: rgba(245,250,255,.94); padding: 10px 12px; }
.native-meetings-room-list { display: grid; gap: 9px; overflow: auto; padding-right: 2px; }
.native-meeting-room-card { width: 100%; text-align: left; display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 4px 10px; align-items: center; border: 1px solid rgba(196, 226, 255, 0.12); background: rgba(255,255,255,0.045); color: rgba(245,250,255,.94); border-radius: 16px; padding: 12px; cursor: pointer; }
.native-meeting-room-card:hover, .native-meeting-room-card.active { background: rgba(125, 211, 252, 0.14); border-color: rgba(125, 211, 252, 0.34); }
.native-meeting-room-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.native-meeting-room-card small { grid-column: 2; color: rgba(222, 237, 255, 0.62); }
.room-live-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(148, 163, 184, 0.7); box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.08); }
.room-live-dot.online { background: rgba(74, 222, 128, 0.96); box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.14); }
.native-meetings-note { color: rgba(222, 237, 255, 0.62); font-size: 12px; line-height: 1.55; padding: 12px; border-radius: 16px; background: rgba(255,255,255,0.045); }
.native-meetings-main { min-width: 0; min-height: 0; overflow: auto; padding: 16px; }
.native-meeting-detail-card { min-height: 100%; padding: 18px; border-radius: 24px; }
.native-meeting-detail-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.native-meeting-detail-head h2 { margin: 0 0 6px; font-size: 28px; }
.native-meeting-detail-head p { margin: 0; color: rgba(222, 237, 255, 0.68); }
.native-meeting-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.native-meeting-tags span { padding: 6px 10px; border-radius: 999px; background: rgba(125, 211, 252, 0.12); color: rgba(223, 242, 255, 0.9); font-size: 12px; }
.native-meeting-insight-grid { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 10px; margin: 18px 0; }
.native-meeting-insight-grid > div { border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(196,226,255,.10); padding: 14px; display: grid; gap: 4px; }
.native-meeting-insight-grid strong { font-size: 22px; }
.native-meeting-insight-grid span { color: rgba(222, 237, 255, 0.62); font-size: 12px; }
.native-meeting-member-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.native-meeting-member-grid article, .native-meeting-participant { display: flex; align-items: center; gap: 10px; border-radius: 16px; padding: 12px; background: rgba(255,255,255,0.045); border: 1px solid rgba(196,226,255,.10); }
.participant-avatar { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: rgba(125,211,252,.18); color: rgba(245,250,255,.95); font-weight: 800; }
.native-meeting-member-grid small, .native-meeting-participant small { display: block; color: rgba(222, 237, 255, 0.62); margin-top: 2px; }
.native-meeting-live-layout { min-height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 14px; }
.native-meeting-stage, .native-meeting-side { border-radius: 24px; padding: 14px; min-width: 0; min-height: 0; }
.native-meeting-stage { display: grid; grid-template-rows: auto minmax(280px, 1fr) auto; gap: 12px; }
.native-meeting-stage-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.native-meeting-stage-head h2 { margin: 0 0 4px; }
.native-meeting-stage-head p { margin: 0; color: rgba(222, 237, 255, 0.62); }
.native-meeting-stage-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.native-meeting-video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; min-height: 0; }
.native-meeting-video-tile { position: relative; overflow: hidden; min-height: 220px; border-radius: 22px; background: radial-gradient(circle at 30% 20%, rgba(82, 128, 255, 0.22), rgba(8, 16, 26, 0.92)); border: 1px solid rgba(196,226,255,.12); }
.native-meeting-video-tile video, .native-meeting-video-tile canvas, .native-meeting-video-tile .fallback-frame { width: 100%; height: 100%; object-fit: cover; display: block; }
.native-meeting-video-tile .fallback-frame.hidden { display: none; }
.native-meeting-video-tile:not(.has-video):not(.has-fallback) video, .native-meeting-video-tile:not(.has-video):not(.has-fallback) .fallback-frame { display: none; }
.native-meeting-video-tile .video-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(222, 237, 255, 0.66); }
.native-meeting-video-tile.has-video .video-placeholder, .native-meeting-video-tile.has-fallback .video-placeholder { display: none; }
.native-meeting-video-tile .tile-label { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 14px; background: rgba(3, 9, 16, 0.64); backdrop-filter: blur(12px); color: rgba(245,250,255,.94); }
.native-meeting-video-tile .tile-label small { color: rgba(222,237,255,.66); }
.native-meeting-control-strip { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.native-meeting-control-strip label { color: rgba(222, 237, 255, 0.62); font-size: 12px; display: inline-flex; gap: 6px; align-items: center; }
.native-meeting-side { display: flex; flex-direction: column; gap: 12px; overflow: auto; }
.native-meeting-participant-list { display: grid; gap: 8px; }
.native-meeting-chat-messages { min-height: 150px; max-height: 280px; overflow: auto; display: grid; gap: 8px; align-content: start; padding: 10px; border-radius: 16px; background: rgba(0,0,0,.16); }
.native-meeting-chat-message { padding: 9px 10px; border-radius: 14px; background: rgba(255,255,255,.055); }
.native-meeting-chat-message.system { background: rgba(125,211,252,.10); }
.native-meeting-chat-message .chat-meta { color: rgba(222, 237, 255, 0.56); font-size: 11px; margin-bottom: 4px; }
.native-meeting-chat-message .chat-text { white-space: pre-wrap; word-break: break-word; }
.native-meeting-chat-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.native-meeting-chat-form input { min-width: 0; border-radius: 14px; border: 1px solid rgba(196,226,255,.14); background: rgba(255,255,255,.055); color: rgba(245,250,255,.94); padding: 10px 12px; }

.native-points-command-center { display: grid; grid-template-columns: minmax(260px, 1.4fr) minmax(180px, .85fr) minmax(220px, 1fr) minmax(220px, .9fr); gap: 12px; margin: 12px 0; }
.native-points-command-center .glass-panel { border-radius: 18px; padding: 14px; }
.native-points-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: radial-gradient(circle at 12% 10%, rgba(74, 222, 128, 0.18), transparent 45%), rgba(255,255,255,.05); }
.native-points-eyebrow { color: rgba(125, 211, 252, 0.82); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.native-points-hero h3 { margin: 4px 0 6px; font-size: 22px; }
.native-points-hero p { margin: 0; color: rgba(222, 237, 255, 0.66); line-height: 1.45; }
.native-points-hero-actions { display: grid; gap: 8px; min-width: 118px; }
.native-points-live-card h4, .native-points-rank-card h4, .native-points-selection-card h4 { margin: 0 0 10px; }
.native-points-flow { display: flex; gap: 10px; font-weight: 800; font-size: 18px; margin-bottom: 10px; }
.native-points-recent { display: grid; gap: 6px; }
.native-points-recent button { display: flex; justify-content: space-between; gap: 8px; border-radius: 12px; padding: 7px 9px; }
.native-points-rankbar { display: grid; grid-template-columns: minmax(70px, .9fr) minmax(80px, 1fr) auto; gap: 8px; align-items: center; margin: 8px 0; font-size: 12px; }
.native-points-rankbar > div { height: 8px; border-radius: 999px; background: rgba(255,255,255,.10); overflow: hidden; }
.native-points-rankbar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, rgba(125,211,252,.96), rgba(74,222,128,.86)); }
.native-points-selected-score { display: block; margin-top: 12px; font-size: 22px; }
@media (max-width: 1080px) {
  .native-meetings-app-shell { grid-template-columns: 1fr; grid-template-rows: auto minmax(0,1fr); }
  .native-meetings-sidebar { grid-template-rows: auto auto auto auto; border-right: 0; border-bottom: 1px solid rgba(196,226,255,.12); }
  .native-meetings-room-list { grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); overflow-x: auto; }
  .native-meeting-live-layout { grid-template-columns: 1fr; }
  .native-points-command-center { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .native-meeting-insight-grid, .native-points-command-center { grid-template-columns: 1fr; }
  .native-meeting-detail-head, .native-meeting-stage-head, .native-points-hero { flex-direction: column; align-items: stretch; }
}

/* r42 meetings desktop share: preserve the whole virtual desktop, never crop meeting frames */
.native-meeting-video-tile {
  background: #020617 !important;
  aspect-ratio: 16 / 9;
}
.native-meeting-video-tile video,
.native-meeting-video-tile canvas,
.native-meeting-video-tile .fallback-frame {
  object-fit: contain !important;
  background: #020617;
}
.native-meeting-video-tile.has-fallback .fallback-frame,
.native-meeting-video-tile.has-video video {
  image-rendering: auto;
}
.native-meeting-stage {
  min-width: 0;
}
.native-meeting-video-grid {
  align-items: stretch;
}
.native-meeting-video-tile .tile-label {
  pointer-events: none;
}

/* r44: selection rectangle, real desktop shortcuts and Preview app */
.selection-box {
  position: absolute;
  z-index: 60;
  pointer-events: none;
  border: 1px solid rgba(125, 211, 252, 0.72);
  background: rgba(56, 189, 248, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.10), 0 8px 24px rgba(2, 8, 23, 0.20);
  border-radius: 8px;
}

.desktop-selection-box {
  z-index: 12;
}

.explorer-detail-list {
  position: relative;
}

.explorer-selection-box {
  z-index: 8;
}

.desktop-drop-active .desktop-surface::after {
  content: '释放以在桌面创建快捷方式';
  position: absolute;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%);
  z-index: 30;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.22);
  border: 1px solid rgba(125, 211, 252, 0.45);
  color: rgba(240, 249, 255, 0.96);
  font-weight: 800;
  box-shadow: 0 18px 45px rgba(2, 8, 23, 0.35);
  backdrop-filter: blur(14px);
}

.start-menu .start-item[draggable="true"] { cursor: grab; }
.start-menu .start-item.dragging { opacity: .72; transform: scale(.985); }

.preview-app {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
}

.preview-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.preview-toolbar strong {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-page-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  font-size: 12px;
}

.preview-page-control input {
  width: 68px;
}

.preview-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 10px;
}

.preview-viewer {
  position: relative;
  min-height: 0;
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.20);
  background: rgba(2, 6, 23, 0.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.preview-document-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.82);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(14px);
}

.preview-document-header span {
  color: var(--text-2);
  font-size: 12px;
}

.preview-pdf-frame {
  width: 100%;
  height: calc(100% - 42px);
  min-height: 560px;
  border: 0;
  background: #111827;
}

.preview-image-stage {
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  overflow: auto;
}

.preview-image-stage img {
  max-width: 100%;
  max-height: 72vh;
  transform-origin: center center;
  border-radius: 12px;
  box-shadow: 0 22px 70px rgba(0,0,0,.42);
}

.preview-text-page {
  min-height: calc(100% - 42px);
  margin: 0;
  padding: 26px 32px 72px;
  white-space: pre-wrap;
  color: rgba(241, 245, 249, 0.94);
  line-height: 1.65;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.preview-binary-card {
  margin: 42px auto;
  max-width: 520px;
  padding: 28px;
  border-radius: 22px;
  text-align: center;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.preview-binary-icon {
  font-size: 54px;
  margin-bottom: 14px;
}

.preview-side {
  min-height: 0;
  display: grid;
  grid-template-rows: auto 110px auto auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
}

.preview-side textarea {
  width: 100%;
  resize: none;
  border-radius: 12px;
}

.preview-annotations {
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preview-annotation-card {
  padding: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
}

.preview-annotation-meta {
  color: var(--text-2);
  font-size: 11px;
  margin-bottom: 6px;
}

.preview-annotation-text {
  white-space: pre-wrap;
  font-weight: 650;
}

.preview-annotation-card blockquote {
  margin: 8px 0;
  padding-left: 10px;
  border-left: 2px solid rgba(125, 211, 252, 0.65);
  color: rgba(226, 232, 240, 0.74);
}

@media (max-width: 920px) {
  .preview-layout { grid-template-columns: minmax(0, 1fr); }
  .preview-side { min-height: 260px; }
}

/* r45 task manager pro polish */
.task-manager-pro {
  padding: 0 !important;
  overflow: hidden;
  min-height: 100%;
  background: radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.10), transparent 32%), linear-gradient(180deg, rgba(8, 13, 29, 0.98), rgba(3, 7, 18, 0.98));
}

.task-manager-pro .tm-titlebar {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.74), rgba(2, 6, 23, 0.58));
}

.tm-title-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 280px;
}

.tm-search {
  width: min(360px, 32vw);
  min-width: 180px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.64);
  color: var(--text-1);
  padding: 8px 13px;
  outline: none;
}

.tm-search:focus {
  border-color: rgba(96, 165, 250, 0.66);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.tm-layout {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  min-height: 0;
  height: calc(100% - 43px);
}

.tm-sidebar {
  border-right: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.46);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: auto;
}

.tm-app-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 14px;
  margin-bottom: 4px;
  color: var(--text-1);
}

.tm-app-title > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(96, 165, 250, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.22);
}

.tm-app-title small,
.tm-main-header p,
.tm-metric-detail,
.tm-selected-hint,
.tm-name-cell small {
  color: var(--text-2);
}

.tm-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text-2);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

.tm-tab:hover {
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-1);
}

.tm-tab.active {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.30), rgba(14, 165, 233, 0.10));
  color: #dbeafe;
  box-shadow: inset 3px 0 0 rgba(96, 165, 250, 0.9);
}

.tm-main {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tm-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px 12px;
}

.tm-main-header h2 {
  margin: 0 0 3px;
  font-size: 24px;
}

.tm-main-header p {
  margin: 0;
  font-size: 13px;
}

.tm-header-badges {
  display: flex;
  gap: 8px;
  align-items: center;
}

.tm-tab-body {
  flex: 1;
  overflow: auto;
  padding: 0 18px 18px;
}

.tm-summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.tm-summary-strip.compact {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin-top: 14px;
}

.tm-metric {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.62));
  padding: 12px;
  min-height: 82px;
}

.tm-metric.warn {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(180deg, rgba(120, 53, 15, 0.30), rgba(2, 6, 23, 0.62));
}

.tm-metric-label {
  font-size: 12px;
  color: var(--text-2);
}

.tm-metric-value {
  margin-top: 4px;
  font-size: 25px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.tm-metric-detail {
  margin-top: 2px;
  font-size: 12px;
}

.tm-action-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.42);
}

.tm-action-strip button.danger,
.task-manager-pro button.danger {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.28);
  background: rgba(127, 29, 29, 0.28);
}

.task-manager-pro button.warn {
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(120, 53, 15, 0.28);
}

.tm-process-group {
  margin-bottom: 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.30);
}

.tm-process-group h3,
.tm-panel h3 {
  margin: 0;
  padding: 12px 14px;
  font-size: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.10);
  background: rgba(15, 23, 42, 0.46);
}

.tm-process-group h3 span {
  color: var(--text-2);
  font-weight: 500;
}

.tm-table-wrap {
  overflow: auto;
}

.tm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.tm-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  background: rgba(15, 23, 42, 0.94);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  padding: 10px;
  white-space: nowrap;
}

.tm-table th[data-sort-key] {
  cursor: pointer;
}

.tm-table th.sorted {
  color: #bfdbfe;
}

.tm-table td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  vertical-align: middle;
}

.tm-table tr:hover td {
  background: rgba(59, 130, 246, 0.06);
}

.tm-table tr.selected td {
  background: rgba(59, 130, 246, 0.15);
}

.tm-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.tm-name-cell strong {
  display: block;
  max-width: 270px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tm-name-cell small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
}

.tm-row-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(148, 163, 184, 0.10);
  border: 1px solid rgba(148, 163, 184, 0.12);
  flex: none;
}

.tm-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(148, 163, 184, 0.10);
  color: var(--text-2);
}

.tm-status.big {
  padding: 5px 10px;
}

.tm-status.ok {
  color: #86efac;
  background: rgba(22, 163, 74, 0.13);
  border-color: rgba(34, 197, 94, 0.22);
}

.tm-status.warn {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.13);
  border-color: rgba(245, 158, 11, 0.22);
}

.tm-status.danger {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.13);
  border-color: rgba(239, 68, 68, 0.24);
}

.tm-heat {
  --v: 0;
  display: inline-flex;
  min-width: 62px;
  justify-content: flex-end;
  border-radius: 8px;
  padding: 4px 7px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.20) var(--v), rgba(15, 23, 42, 0.36) var(--v));
}

.tm-performance-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 14px;
  min-height: 430px;
}

.tm-perf-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tm-perf-card {
  width: 100%;
  text-align: left;
  display: grid;
  gap: 3px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.42);
  color: var(--text-1);
  padding: 12px;
}

.tm-perf-card.active {
  border-color: rgba(96, 165, 250, 0.40);
  background: rgba(37, 99, 235, 0.20);
}

.tm-perf-card strong {
  font-size: 22px;
}

.tm-perf-card small {
  color: var(--text-2);
}

.tm-perf-main {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.13);
  background: rgba(2, 6, 23, 0.34);
  padding: 16px;
}

.tm-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.tm-section-title h2 {
  margin: 0 0 3px;
  font-size: 28px;
}

.tm-section-title p {
  margin: 0;
  color: var(--text-2);
}

.tm-section-title strong {
  font-size: 30px;
}

.tm-chart {
  width: 100%;
  height: 220px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.48), rgba(2, 6, 23, 0.22));
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.tm-chart-grid {
  fill: none;
  stroke: rgba(148, 163, 184, 0.12);
  stroke-width: 0.8;
}

.tm-chart-line {
  fill: none;
  stroke: rgba(96, 165, 250, 0.95);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tm-chart-fill {
  fill: rgba(59, 130, 246, 0.18);
}

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

.tm-panel {
  min-width: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.28);
}

.tm-panel.wide {
  grid-column: 1 / -1;
}

.tm-empty,
.tm-loading {
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: var(--text-2);
  border-radius: 18px;
  border: 1px dashed rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.26);
}

.tm-empty.compact {
  min-height: 92px;
}

.tm-empty.danger {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.32);
}

.tm-table.compact th,
.tm-table.compact td,
.task-manager-pro.density-compact .tm-table th,
.task-manager-pro.density-compact .tm-table td {
  padding-top: 6px;
  padding-bottom: 6px;
}

.task-manager-pro.density-compact .tm-tab {
  padding-top: 7px;
  padding-bottom: 7px;
}

@media (max-width: 880px) {
  .tm-layout,
  .tm-performance-layout {
    grid-template-columns: 1fr;
  }
  .tm-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    flex-direction: row;
    overflow-x: auto;
  }
  .tm-app-title {
    display: none;
  }
  .tm-tab {
    white-space: nowrap;
  }
  .tm-grid-2 {
    grid-template-columns: 1fr;
  }
  .tm-titlebar {
    flex-wrap: wrap;
  }
  .tm-search {
    width: 100%;
  }
}

/* r46: commercial taskbar reorder and robust search/open affordances */
.taskbar-apps.taskbar-reordering {
  cursor: grabbing;
  scroll-behavior: auto;
}
.taskbar-app.taskbar-pointer-source {
  opacity: 0.42;
  transform: translateY(1px) scale(0.98);
}
.taskbar-app-grip {
  margin-left: 6px;
  color: rgba(203, 213, 225, 0.52);
  font-size: 11px;
  letter-spacing: -4px;
  opacity: 0.0;
  transition: opacity 120ms ease;
  pointer-events: none;
}
.taskbar-app:hover .taskbar-app-grip,
.taskbar-app:focus-visible .taskbar-app-grip,
.taskbar-app.taskbar-pointer-source .taskbar-app-grip {
  opacity: 1;
}
.taskbar-drag-ghost {
  position: fixed;
  z-index: 99999;
  pointer-events: none;
  opacity: 0.92;
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.46));
  transform: scale(1.02);
}
.taskbar-app.drop-before::before,
.taskbar-app.drop-after::after {
  z-index: 3;
  background: linear-gradient(180deg, rgba(186, 230, 253, 0.95), rgba(56, 189, 248, 0.95));
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.35), 0 0 20px rgba(56, 189, 248, 0.45);
}
.start-menu .start-item[data-start-category="Files"] .start-icon {
  background: rgba(250, 204, 21, 0.12);
}
.start-menu .start-item[data-start-category="Programs"] .start-icon {
  background: rgba(59, 130, 246, 0.14);
}
.start-menu .start-item[data-start-category="System"] .start-icon {
  background: rgba(148, 163, 184, 0.14);
}

/* r47 Preview persistent ink annotations */
.preview-canvas-stack {
  position: relative;
  min-height: 100%;
}
.preview-document-layer {
  position: relative;
  min-height: calc(100% - 42px);
}
.preview-ink-layer {
  position: absolute;
  left: 0;
  z-index: 3;
  display: block;
  touch-action: none;
  pointer-events: none;
}
.preview-ink-layer.active {
  cursor: crosshair;
  pointer-events: auto;
}
.preview-toolbar button.active,
.preview-toolbar button[data-action="toggleInk"].active {
  background: rgba(250, 204, 21, 0.22);
  border-color: rgba(250, 204, 21, 0.55);
  color: rgba(254, 249, 195, 0.98);
}
.preview-ink-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  font-size: 12px;
}
.preview-ink-control input[type="range"] { width: 72px; }
.preview-ink-control input[type="color"] {
  width: 30px;
  height: 28px;
  padding: 2px;
  border-radius: 8px;
}
.preview-annotation-card.ink {
  border-color: rgba(250, 204, 21, 0.30);
  background: rgba(250, 204, 21, 0.08);
}
.preview-annotation-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.preview-app .preview-toolbar {
  row-gap: 6px;
}
@media (max-width: 1040px) {
  .preview-ink-control input[type="range"] { width: 56px; }
}

/* System settings: display, sound and taskbar clock additions */
.desktop-shell.liquid-desktop {
  background:
    radial-gradient(circle at 84% 8%, var(--desktop-glow, rgba(56, 189, 248, 0.18)), transparent 34%),
    linear-gradient(135deg, var(--desktop-bg-0, #020617), var(--desktop-bg-1, #0f172a) 58%, rgba(var(--edge-accent-rgb, 56, 189, 248), 0.16));
}

.taskbar-clock {
  min-width: 82px !important;
  width: auto !important;
  display: inline-flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  line-height: 1.05;
  border-radius: 16px;
}

.taskbar-clock span {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.taskbar-clock small {
  font-size: 10px;
  color: rgba(225, 240, 255, 0.76);
}

.toast-source {
  margin: -2px 0 6px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(209, 231, 255, 0.70);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.system-setting-color-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--preview-accent) 26%, transparent), rgba(255,255,255,0.06));
  border: 1px solid color-mix(in srgb, var(--preview-accent) 34%, transparent);
}

.system-setting-color-preview span {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--preview-accent);
  box-shadow: 0 0 20px color-mix(in srgb, var(--preview-accent) 42%, transparent);
}

.system-setting-color-preview strong {
  flex: 1;
}

.system-setting-color-preview em {
  font-style: normal;
  font-family: var(--font-mono, monospace);
  opacity: 0.76;
}

.edge-high-contrast .glass-panel,
.edge-high-contrast .window,
.edge-high-contrast .native-settings-card,
.edge-high-contrast .desktop-taskbar {
  border-color: rgba(var(--edge-accent-rgb, 56, 189, 248), 0.58) !important;
  box-shadow: 0 0 0 1px rgba(var(--edge-accent-rgb, 56, 189, 248), 0.22), var(--chrome-shadow-soft, 0 16px 40px rgba(0,0,0,0.18)) !important;
}

.edge-high-contrast .native-tabbar button.active,
.edge-high-contrast .primary {
  outline: 2px solid rgba(var(--edge-accent-rgb, 56, 189, 248), 0.42);
  outline-offset: 2px;
}


/* r50 liquid glass refinement */
:root {
  --liquid-glass-blur: 28px;
  --liquid-glass-fill: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.05) 34%, rgba(7, 12, 24, 0.44));
  --liquid-glass-border: rgba(255,255,255,0.16);
  --liquid-glass-shadow: 0 28px 90px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.18), inset 0 -1px 0 rgba(255,255,255,0.04);
}

@keyframes owlspace-liquid-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(1.4%, -1.2%, 0) scale(1.035); }
}

@keyframes owlspace-liquid-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-8deg); opacity: 0.42; }
  50% { transform: translate3d(-8%, 6%, 0) rotate(-12deg); opacity: 0.64; }
}

.desktop-shell.liquid-desktop {
  background:
    radial-gradient(circle at 18% 12%, rgba(125, 211, 252, 0.16), transparent 26%),
    radial-gradient(circle at 82% 14%, rgba(129, 140, 248, 0.14), transparent 24%),
    radial-gradient(circle at 76% 78%, rgba(45, 212, 191, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(2, 6, 23, 0.96), rgba(9, 15, 30, 0.92) 48%, rgba(17, 24, 39, 0.90) 100%);
}

.desktop-shell.liquid-desktop::before,
.desktop-shell.liquid-desktop::after {
  filter: blur(18px);
  opacity: 0.92;
  animation: owlspace-liquid-drift 19s ease-in-out infinite;
}

.desktop-shell.liquid-desktop::after {
  animation-delay: -9.5s;
}

.desktop-header,
.desktop-taskbar,
.start-menu,
.taskbar-window-preview,
.quick-settings-panel,
.command-palette,
.context-menu-shell,
.window.window-shell {
  -webkit-backdrop-filter: blur(var(--liquid-glass-blur)) saturate(165%) brightness(1.06);
  backdrop-filter: blur(var(--liquid-glass-blur)) saturate(165%) brightness(1.06);
}

.desktop-header,
.start-menu,
.window.window-shell {
  position: relative;
  overflow: hidden;
}

.desktop-taskbar {
  position: relative;
}

.desktop-header,
.desktop-taskbar,
.start-menu {
  border-color: var(--liquid-glass-border) !important;
  box-shadow: var(--liquid-glass-shadow) !important;
}

.desktop-header {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.20), rgba(255,255,255,0.08) 28%, rgba(9, 14, 26, 0.40) 62%),
    linear-gradient(180deg, rgba(125, 211, 252, 0.08), rgba(255,255,255,0.02) 48%, transparent 100%),
    rgba(5, 10, 22, 0.40) !important;
}

.desktop-header::before,
.desktop-taskbar::before,
.start-menu::before,
.desktop-resource-card::before,
.window.window-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(118deg, rgba(255,255,255,0.34) 0%, rgba(255,255,255,0.12) 14%, rgba(255,255,255,0.03) 34%, transparent 54%),
    radial-gradient(circle at 16% 0%, rgba(255,255,255,0.16), transparent 42%);
  opacity: 0.76;
}

.desktop-header::after,
.desktop-taskbar::after,
.start-menu::after,
.desktop-resource-card::after {
  content: '';
  position: absolute;
  right: -14%;
  bottom: -44%;
  width: 54%;
  height: 82%;
  border-radius: 999px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.24), transparent 72%);
  filter: blur(24px);
  opacity: 0.56;
  animation: owlspace-liquid-float 18s ease-in-out infinite;
}

.desktop-brand,
.desktop-resources,
.taskbar-apps,
.taskbar-right,
.start-menu .start-menu-shell,
.window-header,
.window-body,
.window-resizer {
  position: relative;
  z-index: 1;
}

.desktop-resources {
  gap: 12px;
}

.desktop-resource-card {
  --monitor-accent: rgba(125, 211, 252, 0.96);
  --monitor-glow: rgba(56, 189, 248, 0.24);
  border-color: rgba(255,255,255,0.14);
  background:
    linear-gradient(160deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06) 32%, rgba(7, 12, 24, 0.36) 78%),
    rgba(4, 9, 20, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    inset 0 -1px 0 rgba(255,255,255,0.04),
    0 18px 48px rgba(0,0,0,0.24),
    0 0 0 1px rgba(255,255,255,0.02);
  -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(1.08);
  backdrop-filter: blur(20px) saturate(180%) brightness(1.08);
  isolation: isolate;
}

.desktop-resource-card[data-monitor-target="cpu"] {
  --monitor-accent: rgba(125, 211, 252, 0.96);
  --monitor-glow: rgba(14, 165, 233, 0.28);
}

.desktop-resource-card[data-monitor-target="memory"] {
  --monitor-accent: rgba(196, 181, 253, 0.96);
  --monitor-glow: rgba(129, 140, 248, 0.28);
}

.desktop-resource-card[data-monitor-target="queue"] {
  --monitor-accent: rgba(110, 231, 183, 0.96);
  --monitor-glow: rgba(16, 185, 129, 0.26);
}

.desktop-resource-card::after {
  background: radial-gradient(circle, var(--monitor-glow), transparent 72%);
}

.desktop-resource-card:hover,
.desktop-resource-card:focus-visible {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(255,255,255,0.20);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.20),
    inset 0 -1px 0 rgba(255,255,255,0.06),
    0 24px 60px rgba(0,0,0,0.30),
    0 0 28px var(--monitor-glow);
}

.desktop-resource-card:active {
  transform: translateY(0) scale(0.995);
}

.desktop-resource-card[data-tone="warn"] {
  border-color: rgba(250, 204, 21, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(255,255,255,0.05),
    0 18px 48px rgba(0,0,0,0.24),
    0 0 22px rgba(250, 204, 21, 0.12);
}

.desktop-resource-card[data-tone="danger"] {
  border-color: rgba(248, 113, 113, 0.40);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(255,255,255,0.05),
    0 18px 48px rgba(0,0,0,0.24),
    0 0 22px rgba(248, 113, 113, 0.14);
}

.desktop-resource-value {
  color: rgba(248, 252, 255, 0.98);
  text-shadow: 0 0 18px rgba(255,255,255,0.10);
}

.desktop-resource-spark {
  color: var(--monitor-accent);
  opacity: 0.98;
}

.desktop-resource-spark polyline {
  filter: drop-shadow(0 0 8px currentColor);
}

.desktop-resource-spark polygon {
  opacity: 0.16;
}

.taskbar.desktop-taskbar,
.taskbar {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04) 26%, rgba(6, 10, 22, 0.52) 100%),
    rgba(4, 9, 20, 0.48) !important;
}

.start-button,
.taskbar-search,
.taskbar-icon-button,
.taskbar-quick-app,
.taskbar-clock,
.taskbar-app {
  -webkit-backdrop-filter: blur(18px) saturate(152%) brightness(1.05);
  backdrop-filter: blur(18px) saturate(152%) brightness(1.05);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04) 46%, rgba(255,255,255,0.02)) !important;
  border-color: rgba(255,255,255,0.12) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 10px 26px rgba(0,0,0,0.14);
}

.start-button {
  min-width: 102px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background:
    linear-gradient(135deg, rgba(125, 211, 252, 0.30), rgba(129, 140, 248, 0.12) 38%, rgba(255,255,255,0.06) 78%) !important;
  border-color: rgba(191, 219, 254, 0.22) !important;
}

.start-button:hover,
.taskbar-search:hover,
.taskbar-icon-button:hover,
.taskbar-quick-app:hover,
.taskbar-clock:hover,
.taskbar-app:hover,
.taskbar-app.active {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 16px 36px rgba(0,0,0,0.20), 0 0 22px rgba(125, 211, 252, 0.10);
}

.start-menu {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04) 26%, rgba(4, 8, 18, 0.62) 100%),
    rgba(6, 10, 22, 0.66) !important;
  box-shadow:
    0 44px 120px rgba(0,0,0,0.48),
    inset 0 1px 0 rgba(255,255,255,0.14),
    inset 0 -1px 0 rgba(255,255,255,0.04) !important;
}

.start-menu .start-menu-banner {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.18), rgba(125, 211, 252, 0.10) 36%, rgba(255,255,255,0.04) 100%),
    rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 18px 42px rgba(0,0,0,0.12);
}

.start-menu .start-main-button,
.start-menu .start-footer-button,
.start-menu .start-group-button,
.start-menu .start-item {
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
  border-color: rgba(255,255,255,0.10);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.start-menu .start-main-button.active,
.start-menu .start-main-button:hover,
.start-menu .start-main-button:focus-visible,
.start-menu .start-footer-button:hover,
.start-menu .start-footer-button:focus-visible,
.start-menu .start-group-button:hover,
.start-menu .start-group-button.active,
.start-menu .start-item:hover,
.start-menu .start-item:focus-visible {
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.18), rgba(255,255,255,0.08));
  border-color: rgba(191, 219, 254, 0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 12px 30px rgba(0,0,0,0.16);
}

.window.window-shell {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03) 24%, rgba(7, 11, 22, 0.60) 100%),
    rgba(7, 11, 22, 0.62) !important;
  border-color: rgba(255,255,255,0.12) !important;
  box-shadow:
    0 30px 90px rgba(0,0,0,0.38),
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 -1px 0 rgba(255,255,255,0.04) !important;
}

.window-header {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.13), rgba(255,255,255,0.04) 42%, rgba(6, 10, 22, 0.46)),
    rgba(4, 9, 20, 0.42) !important;
}

.active-window .window-header {
  background:
    linear-gradient(90deg, rgba(56, 189, 248, 0.18), rgba(129, 140, 248, 0.12) 44%, rgba(255,255,255,0.04)),
    rgba(4, 9, 20, 0.52) !important;
}

@media (max-width: 1180px) {
  .desktop-resources {
    gap: 10px;
  }
  .desktop-resource-card {
    min-width: 144px;
    max-width: none;
  }
}

@media (max-width: 860px) {
  .desktop-header::after,
  .desktop-resource-card::after {
    opacity: 0.42;
  }
}

/* r52 imperial detail polish: shell menus, desktop drops, focus, liquid glass cues */
.desktop-resource-card {
  position: relative;
  overflow: hidden;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
}
.desktop-resource-card::after {
  content: '';
  position: absolute;
  inset: -1px auto -1px -34%;
  width: 44%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.20), transparent);
  transform: skewX(-18deg) translateX(-120%);
  opacity: 0;
  transition: transform 360ms ease, opacity 180ms ease;
}
.desktop-resource-card:hover::after,
.desktop-resource-card:focus-visible::after {
  opacity: 0.96;
  transform: skewX(-18deg) translateX(340%);
}
.desktop-resource-card:hover {
  transform: translateY(-1px);
}
.desktop-resource-card:active {
  transform: translateY(1px) scale(0.994);
}
.desktop-icons[role="listbox"]:focus-visible {
  outline: none;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(149, 211, 255, 0.34), inset 0 0 0 6px rgba(56, 189, 248, 0.07);
}
.desktop-icon.folder-drop-target {
  transform: translateY(-2px) scale(1.018);
  border-color: rgba(125, 211, 252, 0.58) !important;
  box-shadow: 0 18px 46px rgba(14, 165, 233, 0.26), inset 0 1px 0 rgba(255,255,255,0.18) !important;
}
.desktop-icon.drop-target {
  border-color: rgba(248, 113, 113, 0.52) !important;
  box-shadow: 0 18px 48px rgba(239, 68, 68, 0.24), inset 0 1px 0 rgba(255,255,255,0.14) !important;
}
.shell-context-menu,
.win7-context-menu.shell-context-menu {
  min-width: 256px;
  padding: 8px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.05) 24%, rgba(9, 13, 24, 0.86) 100%),
    rgba(9, 13, 24, 0.82);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    0 24px 64px rgba(0,0,0,0.34),
    inset 0 1px 0 rgba(255,255,255,0.16),
    inset 0 -1px 0 rgba(255,255,255,0.04);
  backdrop-filter: blur(20px) saturate(160%);
}
.shell-context-menu .context-menu-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 38px;
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(236,245,255,0.92);
  transition: background 120ms ease, transform 120ms ease, box-shadow 120ms ease, color 120ms ease;
}
.context-menu-main {
  display: inline-grid;
  grid-template-columns: 18px minmax(0,1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.context-menu-trailing {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.context-menu-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  opacity: 0.94;
}
.context-menu-icon.empty {
  opacity: 0;
}
.context-menu-check {
  opacity: 0.88;
  font-weight: 800;
}
.shell-context-menu .context-menu-item:hover,
.shell-context-menu .context-menu-item:focus-visible {
  background: rgba(96, 165, 250, 0.16);
  transform: translateX(2px);
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.24);
  outline: none;
}
.shell-context-menu .context-menu-item.danger {
  color: rgba(255, 209, 214, 0.95);
}
.shell-context-menu .context-menu-item.danger:hover,
.shell-context-menu .context-menu-item.danger:focus-visible {
  background: rgba(239, 68, 68, 0.17);
  box-shadow: inset 0 0 0 1px rgba(255, 99, 132, 0.22);
}
.start-menu .start-item,
.start-menu .start-main-button,
.start-menu .start-group-button,
.start-menu .start-footer-button {
  position: relative;
  overflow: hidden;
}
.start-menu .start-item::after,
.start-menu .start-main-button::after,
.start-menu .start-group-button::after,
.start-menu .start-footer-button::after {
  content: '';
  position: absolute;
  inset: -1px auto -1px -30%;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  opacity: 0;
  transform: skewX(-20deg) translateX(-120%);
  transition: opacity 180ms ease, transform 320ms ease;
  pointer-events: none;
}
.start-menu .start-item:hover::after,
.start-menu .start-item:focus-visible::after,
.start-menu .start-main-button:hover::after,
.start-menu .start-main-button:focus-visible::after,
.start-menu .start-group-button:hover::after,
.start-menu .start-group-button:focus-visible::after,
.start-menu .start-footer-button:hover::after,
.start-menu .start-footer-button:focus-visible::after {
  opacity: 1;
  transform: skewX(-20deg) translateX(340%);
}
.taskbar-app,
.taskbar-search,
.taskbar-quick-app,
.taskbar-icon-button,
.start-button {
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease, background 120ms ease;
}
.taskbar-app:hover,
.taskbar-search:hover,
.taskbar-quick-app:hover,
.taskbar-icon-button:hover,
.start-button:hover {
  transform: translateY(-1px);
}
.preview-control.type-listbox,
.preview-control.type-listview,
.preview-control.type-tableview,
.preview-control.type-treeview,
.preview-control.type-breadcrumb,
.preview-control.type-propertygrid,
.preview-control.type-repeater,
.preview-control.type-contextmenu {
  transition: box-shadow 120ms ease, border-color 120ms ease, background 120ms ease;
}
.preview-control.type-listbox:focus-visible,
.preview-control.type-listview:focus-visible,
.preview-control.type-tableview:focus-visible,
.preview-control.type-treeview:focus-visible,
.preview-control.type-breadcrumb:focus-visible,
.preview-control.type-propertygrid:focus-visible,
.preview-control.type-repeater:focus-visible,
.preview-control.type-contextmenu:focus-visible {
  outline: none !important;
  box-shadow: var(--focus-ring), inset 0 0 0 1px rgba(125, 211, 252, 0.28) !important;
}
.list-item,
.treeview-row,
.property-grid-row,
.repeater-card,
.edge-form-overlay-item,
.breadcrumb-item {
  transition: background 120ms ease, transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}
.list-item:hover,
.treeview-row:hover,
.property-grid-row:hover,
.repeater-card:hover,
.edge-form-overlay-item:hover {
  background: rgba(96, 165, 250, 0.14);
}
.list-item:focus-visible,
.treeview-row:focus-visible,
.property-grid-row:focus-visible,
.repeater-card:focus-visible,
.edge-form-overlay-item:focus-visible,
.breadcrumb-item:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
.table-row {
  outline: none;
}
.table-row:hover td,
.table-row:focus-visible td {
  background: rgba(96, 165, 250, 0.14);
}
.treeview-row.selected,
.list-item.selected,
.property-grid-row.selected,
.repeater-card.selected {
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.22);
}
.edge-form-overlay-menu {
  min-width: 196px;
  padding: 8px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04) 26%, rgba(10, 14, 24, 0.84)),
    rgba(10, 14, 24, 0.82);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    0 22px 58px rgba(0,0,0,0.30),
    inset 0 1px 0 rgba(255,255,255,0.16);
  backdrop-filter: blur(18px) saturate(150%);
}
.edge-form-overlay-item {
  min-height: 36px;
  border-radius: 10px;
}


/* r54 settings/account/auth polish */
:root {
  --desktop-icon-scale: 1;
  --desktop-glass-alpha: 0.78;
  --desktop-ambient-strength: 0.18;
}

.auth-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 6px;
  margin-bottom: 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)),
    rgba(7, 12, 24, 0.36);
  border: 1px solid rgba(205, 231, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 12px 26px rgba(2, 6, 23, 0.18);
}

.auth-mode-switch button {
  min-height: 46px;
  border-radius: 16px;
}

.auth-mode-switch button.active {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 18px 36px rgba(34, 118, 191, 0.24);
}

.auth-panel[hidden] {
  display: none !important;
}

.auth-side-stack {
  display: grid;
  gap: 16px;
}

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

.auth-policy-card {
  min-height: 108px;
  padding: 14px 16px;
  border-radius: 18px;
  display: grid;
  align-content: start;
  gap: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.04) 24%, rgba(9, 14, 26, 0.54) 100%),
    rgba(7, 12, 24, 0.52);
  border: 1px solid rgba(205, 231, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 14px 34px rgba(2, 6, 23, 0.18);
}

.auth-policy-card strong {
  color: var(--text-0);
}

.auth-policy-card small {
  color: var(--text-2);
  line-height: 1.5;
}

.auth-policy-card code,
.auth-policy-code {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.48);
  border: 1px solid rgba(148, 197, 255, 0.18);
  color: rgba(236, 245, 255, 0.96);
}

.auth-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.native-settings-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
  align-items: start;
}

.native-settings-readout {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: inset 0 0 0 1px rgba(45, 67, 100, 0.14);
  color: rgba(21, 31, 50, 0.76);
  font-size: 13px;
}

.desktop-preview-card {
  display: grid;
  gap: 12px;
}


.server-preview-shell {
  position: relative;
}

.server-desktop-preview-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.server-desktop-preview-fallback {
  position: absolute;
  inset: 0;
  transition: opacity 180ms ease;
}

.server-preview-shell.is-ready .server-desktop-preview-image {
  opacity: 1;
}

.server-preview-shell.is-ready .server-desktop-preview-fallback {
  opacity: 0;
}

.desktop-preview-scene-fallback,
.workspace-desktop-thumb-fallback {
  position: absolute;
  inset: 0;
}

.desktop-preview-scene-fallback {
  padding: inherit;
  border-radius: inherit;
}

.workspace-desktop-thumb-fallback {
  border-radius: inherit;
}

.desktop-preview-scene {
  position: relative;
  min-height: 252px;
  padding: 16px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,0.34), transparent 34%),
    radial-gradient(circle at 82% 16%, rgba(128, 180, 255, 0.20), transparent 28%),
    linear-gradient(155deg, rgba(10, 20, 42, 0.96), rgba(13, 38, 88, 0.78) 44%, rgba(6, 10, 22, 0.98) 100%);
  border: 1px solid rgba(205, 231, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 18px 48px rgba(2, 6, 23, 0.18);
}

.desktop-preview-scene::before,
.desktop-preview-scene::after {
  content: '';
  position: absolute;
  inset: auto;
  pointer-events: none;
}

.desktop-preview-scene::before {
  left: -8%;
  top: -10%;
  width: 58%;
  height: 58%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 72%);
  filter: blur(18px);
}

.desktop-preview-scene::after {
  right: -12%;
  bottom: -24%;
  width: 48%;
  height: 48%;
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--preview-accent, #7dd3fc) 82%, white 18%), transparent 72%);
  opacity: 0.36;
  filter: blur(22px);
}

.desktop-preview-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04) 38%, rgba(7, 12, 24, 0.54)),
    rgba(7, 12, 24, var(--preview-glass, 0.78));
  border: 1px solid rgba(205, 231, 255, 0.14);
  color: rgba(245, 251, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16);
}

.desktop-preview-header small {
  color: rgba(220, 232, 245, 0.86);
}

.desktop-preview-icons {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 104px));
  gap: 12px;
  align-content: start;
  padding: 18px 4px 0;
}

.desktop-preview-icon {
  min-height: 102px;
  padding: 12px 10px;
  border-radius: 18px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  transform: scale(var(--preview-icon-scale, 1));
  transform-origin: top center;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04) 48%, rgba(7, 12, 24, 0.34)),
    rgba(7, 12, 24, 0.22);
  border: 1px solid rgba(205, 231, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 14px 28px rgba(2, 6, 23, 0.14);
}

.desktop-preview-icon span {
  font-size: 32px;
  line-height: 1;
}

.desktop-preview-icon small {
  color: rgba(240, 248, 255, 0.92);
  text-shadow: 0 1px 2px rgba(0,0,0,0.22);
}

.desktop-preview-taskbar {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  min-height: 56px;
  padding: 12px 14px;
  border-radius: 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  color: rgba(245, 251, 255, 0.96);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.05) 32%, rgba(7, 12, 24, 0.54)),
    rgba(7, 12, 24, calc(var(--preview-glass, 0.78) * 0.96));
  border: 1px solid rgba(205, 231, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 18px 38px rgba(2, 6, 23, 0.18);
}

.desktop-preview-taskbar.compact {
  min-height: 48px;
  padding: 8px 12px;
  border-radius: 20px;
}

.desktop-preview-taskbar > span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  font-weight: 700;
}

.desktop-preview-taskbar > div {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.12), rgba(255,255,255,0.34), rgba(255,255,255,0.12));
  opacity: 0.72;
}

.desktop-preview-taskbar small {
  color: rgba(220, 232, 245, 0.90);
}

.account-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.account-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(45, 67, 100, 0.16);
  color: rgba(21, 31, 50, 0.78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.32);
  font-size: 12px;
}

.account-chip.success {
  background: rgba(110, 231, 183, 0.18);
  border-color: rgba(16, 185, 129, 0.24);
  color: rgba(4, 120, 87, 0.98);
}

.account-chip.warn {
  background: rgba(250, 204, 21, 0.18);
  border-color: rgba(217, 119, 6, 0.24);
  color: rgba(133, 77, 14, 0.98);
}

.account-chip.danger {
  background: rgba(248, 113, 113, 0.18);
  border-color: rgba(220, 38, 38, 0.24);
  color: rgba(153, 27, 27, 0.98);
}

.account-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.account-meta-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.native-settings-callout {
  min-height: 84px;
  padding: 12px 14px;
  border-radius: 16px;
  display: grid;
  align-content: start;
  gap: 6px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04) 34%, rgba(10, 14, 24, 0.06)),
    rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(45, 67, 100, 0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.24);
}

.native-settings-callout strong {
  color: rgba(21, 31, 50, 0.86);
}

.native-settings-callout small {
  color: rgba(21, 31, 50, 0.72);
  line-height: 1.5;
}

.native-settings-callout.warning {
  background:
    linear-gradient(180deg, rgba(255, 244, 214, 0.76), rgba(255, 239, 186, 0.44)),
    rgba(255, 239, 186, 0.46);
  border-color: rgba(217, 119, 6, 0.22);
}

.invite-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.invite-row {
  padding: 14px;
  border-radius: 18px;
  display: grid;
  gap: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.04) 24%, rgba(10, 14, 24, 0.04)),
    rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(45, 67, 100, 0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.24), 0 14px 30px rgba(2, 6, 23, 0.08);
}

.invite-row-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.invite-row-head > div {
  display: grid;
  gap: 6px;
}

.invite-row-head code {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.50);
  border: 1px solid rgba(148, 197, 255, 0.18);
  color: rgba(240, 248, 255, 0.96);
}

.native-readonly {
  opacity: 0.94;
  cursor: default;
  background:
    linear-gradient(180deg, rgba(14, 24, 42, 0.64), rgba(10, 18, 32, 0.58));
  color: rgba(235, 244, 255, 0.92);
}

.edge-reduced-motion *,
.edge-reduced-motion *::before,
.edge-reduced-motion *::after,
.desktop-shell.reduced-motion *,
.desktop-shell.reduced-motion *::before,
.desktop-shell.reduced-motion *::after {
  animation-duration: 1ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 1ms !important;
  scroll-behavior: auto !important;
}

.desktop-icons {
  grid-template-columns: repeat(auto-fill, minmax(calc(92px * var(--desktop-icon-scale, 1)), calc(92px * var(--desktop-icon-scale, 1)))) !important;
  grid-auto-rows: calc(96px * var(--desktop-icon-scale, 1)) !important;
  gap: calc(10px * var(--desktop-icon-scale, 1)) calc(12px * var(--desktop-icon-scale, 1)) !important;
}

.desktop-icon {
  width: calc(104px * var(--desktop-icon-scale, 1)) !important;
  height: calc(114px * var(--desktop-icon-scale, 1)) !important;
  min-height: calc(114px * var(--desktop-icon-scale, 1)) !important;
  padding: calc(10px * var(--desktop-icon-scale, 1)) calc(8px * var(--desktop-icon-scale, 1)) calc(8px * var(--desktop-icon-scale, 1)) !important;
  gap: calc(8px * var(--desktop-icon-scale, 1));
  border-radius: calc(18px * var(--desktop-icon-scale, 1));
}

.desktop-icon-glyph {
  width: calc(44px * var(--desktop-icon-scale, 1));
  height: calc(44px * var(--desktop-icon-scale, 1));
  font-size: calc(34px * var(--desktop-icon-scale, 1)) !important;
  border-radius: calc(16px * var(--desktop-icon-scale, 1));
}

.desktop-icon-label {
  max-width: calc(92px * var(--desktop-icon-scale, 1)) !important;
  font-size: calc(12px * clamp(0.92, var(--desktop-icon-scale, 1), 1.12)) !important;
}

.desktop-header {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.20), rgba(255,255,255,0.08) 28%, rgba(9, 14, 26, 0.40) 62%),
    linear-gradient(180deg, rgba(125, 211, 252, 0.08), rgba(255,255,255,0.02) 48%, transparent 100%),
    rgba(5, 10, 22, var(--desktop-glass-alpha, 0.78)) !important;
  border-color: rgba(255,255,255, calc(0.08 + var(--desktop-ambient-strength, 0.18) * 0.36)) !important;
}

.taskbar.desktop-taskbar,
.taskbar {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04) 26%, rgba(6, 10, 22, calc(var(--desktop-glass-alpha, 0.78) + 0.02)) 100%),
    rgba(4, 9, 20, calc(var(--desktop-glass-alpha, 0.78) * 0.82)) !important;
  border-color: rgba(255,255,255, calc(0.08 + var(--desktop-ambient-strength, 0.18) * 0.36)) !important;
}

.start-menu,
.desktop-resource-card,
.window.window-shell {
  border-color: rgba(255,255,255, calc(0.08 + var(--desktop-ambient-strength, 0.18) * 0.36)) !important;
}

.desktop-resource-card {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    inset 0 -1px 0 rgba(255,255,255,0.04),
    0 18px 48px rgba(0,0,0,0.24),
    0 0 calc(14px + var(--desktop-ambient-strength, 0.18) * 90px) rgba(56, 189, 248, calc(0.05 + var(--desktop-ambient-strength, 0.18) * 0.24));
}

.compact-taskbar .desktop-taskbar,
.compact-taskbar .taskbar,
.desktop-shell.compact-taskbar .desktop-taskbar,
.desktop-shell.compact-taskbar .taskbar {
  min-height: 50px !important;
  height: 50px !important;
  padding: 8px 10px !important;
  border-radius: 22px;
}

.compact-taskbar .start-button,
.desktop-shell.compact-taskbar .start-button {
  min-width: 96px !important;
  height: 42px !important;
}

.compact-taskbar .taskbar-app,
.compact-taskbar .taskbar-icon-button,
.compact-taskbar .taskbar-quick-app,
.compact-taskbar .taskbar-clock,
.compact-taskbar .taskbar-search,
.desktop-shell.compact-taskbar .taskbar-app,
.desktop-shell.compact-taskbar .taskbar-icon-button,
.desktop-shell.compact-taskbar .taskbar-quick-app,
.desktop-shell.compact-taskbar .taskbar-clock,
.desktop-shell.compact-taskbar .taskbar-search {
  min-height: 40px;
}

@media (max-width: 980px) {
  .auth-policy-grid,
  .native-settings-stack {
    grid-template-columns: 1fr;
  }
  .desktop-preview-taskbar {
    grid-template-columns: auto 1fr;
  }
  .desktop-preview-taskbar small {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .auth-mode-switch,
  .auth-policy-grid {
    grid-template-columns: 1fr;
  }
  .desktop-preview-icons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .invite-row-head {
    flex-direction: column;
  }
}

/* r55 enterprise workspaces premium polish */
.premium-enterprise-auth .premium-auth-shell,
.premium-workspace-screen .premium-workspace-console {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at calc(var(--auth-pointer-x, .34) * 100%) calc(var(--auth-pointer-y, .18) * 100%), rgba(125, 211, 252, 0.18), transparent 36%),
    radial-gradient(circle at 80% 14%, rgba(167, 139, 250, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(4, 10, 22, 0.88), rgba(7, 14, 28, 0.84));
  border: 1px solid rgba(196, 226, 255, 0.16);
  box-shadow: 0 38px 120px rgba(1, 8, 24, 0.46), inset 0 1px 0 rgba(255,255,255,0.08);
}

.premium-auth-shell::before,
.premium-workspace-console::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.14), transparent 24%, transparent 68%, rgba(255,255,255,0.06)),
    radial-gradient(circle at 16% 10%, rgba(255,255,255,0.16), transparent 28%);
  mix-blend-mode: screen;
}

.premium-auth-hero {
  align-items: stretch;
}

.auth-google-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 1px solid rgba(196, 226, 255, 0.16);
  background: linear-gradient(180deg, rgba(255,255,255,0.085), rgba(255,255,255,0.045));
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255,255,255,0.08);
}

.auth-google-header {
  align-items: flex-start;
}

.auth-step-indicator {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.auth-step-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(196, 226, 255, 0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(230, 244, 255, 0.72);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.auth-step-pill span {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255,255,255,0.08);
}

.auth-step-pill strong {
  font-size: 13px;
  font-weight: 700;
}

.auth-step-pill.active {
  color: #f6fbff;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.18), rgba(255,255,255,0.08));
  border-color: rgba(125, 211, 252, 0.32);
  box-shadow: 0 16px 34px rgba(56, 189, 248, 0.12), inset 0 1px 0 rgba(255,255,255,0.08);
  transform: translateY(-1px);
}

.auth-google-form {
  gap: 16px;
}

.auth-login-stage {
  display: grid;
  gap: 16px;
}

.auth-stage-actions {
  justify-content: flex-end;
}

.auth-password-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-back-button {
  min-height: 40px;
  padding-inline: 14px;
}

.auth-identity-pill {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(196, 226, 255, 0.16);
  background: rgba(255,255,255,0.055);
  color: rgba(244, 250, 255, 0.92);
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-enterprise-note {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid rgba(196, 226, 255, 0.12);
}

.auth-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.auth-quick-account {
  appearance: none;
  text-align: left;
  min-height: 78px;
  border-radius: 18px;
  border: 1px solid rgba(196, 226, 255, 0.14);
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.04));
  color: #f7fbff;
  padding: 14px 16px;
  display: grid;
  gap: 10px;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.auth-quick-account:hover,
.auth-quick-account:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.32);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.16), rgba(255,255,255,0.06));
  box-shadow: 0 16px 32px rgba(14, 165, 233, 0.14);
  outline: none;
}

.auth-quick-account strong {
  display: block;
  font-size: 14px;
}

.auth-quick-account small,
.auth-quick-account-meta small {
  color: rgba(215, 232, 248, 0.74);
}

.auth-quick-account-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}

.premium-auth-side-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.085), rgba(255,255,255,0.04));
  border: 1px solid rgba(196, 226, 255, 0.14);
}

.auth-executive-feature-grid .auth-feature-card {
  min-height: 112px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.045));
  border-color: rgba(196, 226, 255, 0.14);
}

.auth-policy-card.auth-test-account-card {
  grid-column: span 2;
}

.taskbar-workspaces {
  min-height: 42px;
  min-width: 124px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(196, 226, 255, 0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(246, 250, 255, 0.94);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.taskbar-workspaces:hover,
.taskbar-workspaces:focus-visible {
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.18), rgba(255,255,255,0.08));
  border-color: rgba(125, 211, 252, 0.3);
  box-shadow: 0 16px 34px rgba(2, 132, 199, 0.16), inset 0 1px 0 rgba(255,255,255,0.08);
  outline: none;
}

.start-menu .premium-start-menu-banner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.start-menu-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.start-banner-workspaces {
  appearance: none;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(196, 226, 255, 0.16);
  background: rgba(255,255,255,0.06);
  color: rgba(246, 250, 255, 0.94);
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.start-banner-workspaces.admin {
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.2), rgba(255,255,255,0.06));
  border-color: rgba(196, 181, 253, 0.28);
}

.start-banner-workspaces:hover,
.start-banner-workspaces:focus-visible {
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.18), rgba(255,255,255,0.06));
  border-color: rgba(125, 211, 252, 0.3);
  outline: none;
}

.premium-workspace-console {
  width: min(1220px, calc(100vw - 56px));
}

.premium-workspace-topbar {
  align-items: flex-start;
}

.premium-workspace-actions {
  align-items: center;
}

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

.premium-overview-grid .workspace-overview-card {
  padding: 18px 20px;
  display: grid;
  gap: 6px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.045));
  border: 1px solid rgba(196, 226, 255, 0.14);
}

.premium-overview-grid .workspace-overview-card strong {
  font-size: 22px;
}

.premium-overview-grid .workspace-overview-card small {
  color: rgba(215, 232, 248, 0.7);
}

.premium-workspace-grid {
  gap: 18px;
}

.workspace-premium-card {
  --workspace-accent: #38bdf8;
  position: relative;
  padding: 18px;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(196, 226, 255, 0.14);
  background:
    radial-gradient(circle at 82% 0%, color-mix(in srgb, var(--workspace-accent) 18%, transparent), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,0.085), rgba(255,255,255,0.04));
  box-shadow: 0 18px 46px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.07);
}

.workspace-premium-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent 28%, transparent 70%, rgba(255,255,255,0.06));
}

.workspace-premium-card:hover,
.workspace-premium-card:focus-visible,
.workspace-premium-card.active {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--workspace-accent) 48%, rgba(196, 226, 255, 0.22));
  box-shadow: 0 28px 56px rgba(2, 8, 23, 0.3), 0 0 0 1px color-mix(in srgb, var(--workspace-accent) 22%, transparent), inset 0 1px 0 rgba(255,255,255,0.08);
}

.workspace-card-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}

.workspace-card-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.workspace-kind-chip {
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255,255,255,0.08);
  color: rgba(244, 250, 255, 0.92);
  border: 1px solid rgba(196, 226, 255, 0.12);
}

.workspace-kind-chip.personal {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(125, 211, 252, 0.24);
}

.workspace-kind-chip.shared {
  background: rgba(167, 139, 250, 0.18);
  border-color: rgba(196, 181, 253, 0.24);
}

.workspace-preview {
  position: relative;
  min-height: 148px;
  border-radius: 18px;
  border: 1px solid rgba(196, 226, 255, 0.12);
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, color-mix(in srgb, var(--workspace-accent) 26%, transparent), transparent 26%),
    linear-gradient(180deg, rgba(7, 17, 35, 0.94), rgba(7, 13, 27, 0.84));
}

.workspace-preview-window,
.workspace-switcher-window {
  position: absolute;
  border-radius: 14px;
  border: 1px solid rgba(196, 226, 255, 0.1);
  background: rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.workspace-preview-window.main {
  left: 18px;
  top: 18px;
  width: 54%;
  height: 58%;
}

.workspace-preview-window.secondary {
  right: 18px;
  top: 34px;
  width: 30%;
  height: 40%;
}

.workspace-preview-bar,
.workspace-switcher-taskbar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(196, 226, 255, 0.08);
}

.workspace-card-metrics,
.workspace-switcher-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.workspace-card-metrics span,
.workspace-switcher-meta span {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  background: rgba(255,255,255,0.06);
  color: rgba(220, 236, 248, 0.74);
  border: 1px solid rgba(196, 226, 255, 0.08);
}

.workspace-switcher-overlay,
.workspace-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
}

.workspace-switcher-backdrop,
.workspace-loading-overlay::before {
  position: absolute;
  inset: 0;
  content: '';
  background: rgba(3, 8, 18, 0.52);
  backdrop-filter: blur(22px) saturate(130%);
}

.workspace-switcher-dialog,
.workspace-loading-shell {
  position: relative;
  width: min(1180px, calc(100vw - 56px));
  margin: 40px auto;
  border-radius: 30px;
  border: 1px solid rgba(196, 226, 255, 0.16);
  background:
    radial-gradient(circle at 14% 0%, rgba(125, 211, 252, 0.16), transparent 28%),
    radial-gradient(circle at 88% 0%, rgba(167, 139, 250, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(8, 18, 34, 0.92), rgba(6, 11, 22, 0.88));
  box-shadow: 0 38px 120px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255,255,255,0.08);
}

.workspace-switcher-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 24px 26px 10px;
}

.workspace-switcher-header h2 {
  margin: 0;
}

.workspace-switcher-header p {
  margin: 6px 0 0;
  color: rgba(215, 232, 248, 0.72);
}

.workspace-switcher-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.workspace-switcher-actions input,
.workspace-switcher-actions button {
  min-height: 42px;
}

.workspace-switcher-grid {
  padding: 14px 26px 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-height: min(72vh, 820px);
  overflow: auto;
}

.workspace-switcher-card {
  --workspace-accent: #38bdf8;
  display: grid;
  gap: 14px;
  text-align: left;
  border-radius: 22px;
  border: 1px solid rgba(196, 226, 255, 0.14);
  background:
    radial-gradient(circle at 82% 0%, color-mix(in srgb, var(--workspace-accent) 18%, transparent), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  color: #f7fbff;
  padding: 18px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.workspace-switcher-card:hover,
.workspace-switcher-card:focus-visible,
.workspace-switcher-card.active {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--workspace-accent) 48%, rgba(196, 226, 255, 0.2));
  box-shadow: 0 26px 56px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.08);
  outline: none;
}

.workspace-switcher-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.workspace-switcher-icon {
  font-size: 24px;
}

.workspace-switcher-preview {
  display: grid;
  gap: 10px;
}

.workspace-switcher-preview-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(228, 240, 250, 0.82);
  font-size: 12px;
}

.workspace-switcher-preview-surface {
  position: relative;
  min-height: 186px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(196, 226, 255, 0.12);
  background: linear-gradient(180deg, rgba(6, 14, 30, 0.94), rgba(6, 11, 24, 0.82));
}

.workspace-switcher-window.large {
  left: 18px;
  top: 18px;
  width: 58%;
  height: 62%;
}

.workspace-switcher-window.small {
  right: 18px;
  top: 32px;
  width: 30%;
  height: 42%;
}

.workspace-switcher-copy {
  display: grid;
  gap: 6px;
}

.workspace-loading-shell {
  width: min(560px, calc(100vw - 40px));
  margin-top: 20vh;
  padding: 28px;
  display: grid;
  gap: 16px;
  z-index: 1;
}

.workspace-loading-title {
  font-size: 22px;
  font-weight: 800;
  color: #f7fbff;
}

.workspace-loading-subtitle {
  color: rgba(216, 232, 248, 0.76);
}

.workspace-loading-progress {
  position: relative;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(196, 226, 255, 0.12);
}

.workspace-loading-progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.9), rgba(167, 139, 250, 0.92));
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.24);
  transition: width .24s ease;
}

.workspace-loading-steps {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.workspace-loading-steps span {
  font-size: 12px;
  color: rgba(215, 232, 248, 0.74);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(196, 226, 255, 0.1);
}

@media (max-width: 980px) {
  .auth-quick-grid,
  .workspace-switcher-grid,
  .premium-overview-grid {
    grid-template-columns: 1fr;
  }
  .taskbar-workspaces {
    min-width: 92px;
    padding-inline: 12px;
  }
  .start-menu-banner-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .auth-step-indicator,
  .auth-quick-grid,
  .premium-overview-grid,
  .workspace-card-head,
  .workspace-switcher-header,
  .workspace-switcher-actions {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }
  .workspace-switcher-dialog,
  .premium-workspace-console {
    width: min(100vw - 20px, 100%);
    margin-inline: auto;
  }
}

.rich-view-shell {
  width: 100%;
  height: 100%;
  overflow: auto;
  border-radius: 22px;
  padding: 18px 20px 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.05)),
    rgba(10, 16, 32, 0.34);
  border: 1px solid rgba(196, 226, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    0 18px 48px rgba(7, 13, 28, 0.24);
  color: #eaf6ff;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.preview-control.type-richview {
  display: block;
  padding: 0;
  overflow: hidden;
}

.preview-control.type-richview:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 1px rgba(190, 226, 255, 0.32),
    0 0 0 4px rgba(58, 184, 255, 0.16),
    0 24px 44px rgba(7, 13, 28, 0.28);
}

.community-doc,
.community-thread {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
}

.community-doc-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(196, 226, 255, 0.12);
}

.community-doc-header h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.18;
  letter-spacing: 0.01em;
}

.community-kicker,
.community-section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(196, 226, 255, 0.72);
}

.community-summary {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(225, 239, 252, 0.84);
}

.community-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  font-size: 12px;
  color: rgba(205, 228, 250, 0.72);
}

.community-identity {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(196, 226, 255, 0.12);
}

.community-identity strong {
  font-size: 12px;
  color: #eef7ff;
}

.community-identity span {
  color: rgba(205, 228, 250, 0.74);
}

.community-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.community-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  color: rgba(236, 246, 255, 0.92);
  background: rgba(82, 170, 255, 0.12);
  border: 1px solid rgba(110, 196, 255, 0.18);
}

.community-chip.muted {
  color: rgba(205, 228, 250, 0.66);
  background: rgba(255,255,255,0.04);
  border-color: rgba(196, 226, 255, 0.1);
}

.community-doc-body,
.community-reply-body,
.community-html,
.community-markdown {
  display: grid;
  gap: 14px;
}

.community-doc-body p,
.community-reply-body p,
.community-doc-body li,
.community-reply-body li,
.community-doc-body blockquote,
.community-reply-body blockquote,
.community-doc-body td,
.community-doc-body th {
  font-size: 14px;
  line-height: 1.78;
  color: rgba(236, 246, 255, 0.9);
}

.community-doc-body h1,
.community-doc-body h2,
.community-doc-body h3,
.community-doc-body h4,
.community-reply-body h1,
.community-reply-body h2,
.community-reply-body h3,
.community-reply-body h4 {
  margin: 10px 0 2px;
  line-height: 1.28;
}

.community-doc-body h2,
.community-reply-body h2 {
  font-size: 22px;
}

.community-doc-body h3,
.community-reply-body h3 {
  font-size: 18px;
}

.community-doc-body a,
.community-reply-body a {
  color: #8ed7ff;
  text-decoration: none;
}

.community-doc-body a:hover,
.community-reply-body a:hover {
  text-decoration: underline;
}

.community-doc-body ul,
.community-doc-body ol,
.community-reply-body ul,
.community-reply-body ol {
  margin: 0;
  padding-left: 22px;
}

.community-doc-body blockquote,
.community-reply-body blockquote {
  margin: 0;
  padding: 12px 16px;
  border-left: 3px solid rgba(110, 196, 255, 0.42);
  border-radius: 0 14px 14px 0;
  background: rgba(255,255,255,0.04);
}

.community-plain-block,
.community-code-block {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(6, 12, 26, 0.6);
  border: 1px solid rgba(196, 226, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  color: #eff8ff;
  font: 13px/1.7 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.community-code-card {
  display: grid;
  gap: 10px;
}

.community-code-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  font-size: 12px;
  color: rgba(205, 228, 250, 0.72);
}

.community-doc-body code,
.community-reply-body code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: #f7fbff;
  font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.community-doc-body pre code,
.community-reply-body pre code,
.community-code-block code {
  padding: 0;
  background: transparent;
}

.community-doc-body table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(196, 226, 255, 0.12);
}

.community-doc-body th,
.community-doc-body td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(196, 226, 255, 0.08);
  background: rgba(255,255,255,0.02);
}

.community-replies {
  display: grid;
  gap: 12px;
  padding-top: 8px;
}

.community-reply-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(196, 226, 255, 0.12);
}


/* r57 google minimal auth refresh */
.auth-google-minimal-screen {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 18%, rgba(96, 165, 250, 0.28), transparent 28%),
    radial-gradient(circle at 84% 12%, rgba(167, 139, 250, 0.22), transparent 24%),
    radial-gradient(circle at 78% 82%, rgba(14, 165, 233, 0.18), transparent 28%),
    linear-gradient(180deg, #04101d 0%, #061425 40%, #08182c 100%);
}

.auth-google-minimal-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), transparent 18%, transparent 82%, rgba(255,255,255,0.04)),
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.08), transparent 42%);
  mix-blend-mode: screen;
  opacity: 0.9;
}

.auth-google-minimal-shell {
  position: relative;
  display: grid;
  place-items: center;
  width: min(900px, calc(100vw - 72px));
  min-height: min(780px, calc(100vh - 68px));
  padding: 44px;
  border-radius: 38px;
  isolation: isolate;
}

.auth-google-minimal-orb {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(18px);
  opacity: 0.86;
  z-index: 0;
}

.auth-google-minimal-orb-a {
  width: 320px;
  height: 320px;
  top: -90px;
  left: -70px;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.34), transparent 66%);
}

.auth-google-minimal-orb-b {
  width: 340px;
  height: 340px;
  right: -110px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.3), transparent 70%);
}

.auth-google-minimal-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  padding: 40px 38px 30px;
  border-radius: 32px;
  display: grid;
  gap: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06) 24%, rgba(10, 16, 30, 0.44) 100%),
    rgba(7, 12, 24, 0.5);
  border: 1px solid rgba(208, 230, 255, 0.18);
  box-shadow:
    0 32px 90px rgba(1, 8, 24, 0.42),
    inset 0 1px 0 rgba(255,255,255,0.16),
    inset 0 -22px 44px rgba(2, 6, 23, 0.12);
}

.auth-google-minimal-brand {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.auth-google-minimal-copy {
  display: grid;
  gap: 8px;
}

.auth-google-minimal-product {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(213, 230, 247, 0.72);
}

.auth-google-minimal-copy h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 46px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.auth-google-minimal-copy p {
  margin: 0;
  color: rgba(221, 234, 246, 0.78);
  line-height: 1.6;
  max-width: 34ch;
}

.auth-google-minimal-form,
.auth-register-compact-form {
  gap: 20px;
}

.auth-google-field {
  gap: 10px;
}

.auth-google-field span {
  font-size: 14px;
  color: rgba(215, 231, 247, 0.78);
}

.auth-google-field input {
  min-height: 58px;
  border-radius: 18px;
  border: 1px solid rgba(196, 226, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)),
    rgba(7, 12, 24, 0.46);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 10px 28px rgba(2, 6, 23, 0.12);
  color: rgba(245, 250, 255, 0.96);
  font-size: 16px;
  padding-inline: 18px;
}

.auth-google-field input::placeholder {
  color: rgba(205, 221, 239, 0.42);
}

.auth-google-inline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.link-button {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  min-height: 32px;
  color: rgba(137, 204, 255, 0.96);
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.link-button:hover,
.link-button:focus-visible {
  color: #f7fbff;
  outline: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-quick-inline {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.auth-quick-inline-button {
  appearance: none;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(196, 226, 255, 0.14);
  background: rgba(255,255,255,0.05);
  color: rgba(239, 247, 255, 0.88);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.auth-quick-inline-button:hover,
.auth-quick-inline-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.32);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.18), rgba(255,255,255,0.08));
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.14);
  outline: none;
}

.auth-google-minimal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.auth-google-minimal-actions-tight {
  justify-content: flex-end;
}

.auth-flow-note {
  color: rgba(213, 228, 244, 0.7);
  font-size: 13px;
  line-height: 1.55;
  max-width: 34ch;
}

.auth-google-minimal-actions .primary {
  min-width: 132px;
  min-height: 48px;
  border-radius: 999px;
  box-shadow: 0 18px 38px rgba(72, 132, 255, 0.2), inset 0 1px 0 rgba(255,255,255,0.2);
}

.auth-identity-card {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(196, 226, 255, 0.16);
  background: rgba(255,255,255,0.06);
  color: rgba(245, 250, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.auth-identity-card:hover,
.auth-identity-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.3);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.16), rgba(255,255,255,0.08));
  outline: none;
}

.auth-identity-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
}

.auth-identity-card-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  text-align: left;
}

.auth-identity-card-copy strong,
.auth-identity-card-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-identity-card-copy strong {
  font-size: 14px;
}

.auth-identity-card-copy small {
  color: rgba(212, 228, 244, 0.72);
  font-size: 12px;
}

.auth-register-sheet {
  padding-top: 4px;
}

.auth-register-head {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.auth-register-head h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.auth-register-head p {
  margin: 0;
  color: rgba(214, 229, 244, 0.74);
  line-height: 1.55;
}

.auth-google-minimal-card[data-mode="register"] {
  width: min(620px, 100%);
}

.auth-google-minimal-card[data-stage="password"] .auth-google-minimal-copy p {
  max-width: 30ch;
}

@media (max-width: 760px) {
  .auth-google-minimal-shell {
    width: calc(100vw - 32px);
    min-height: calc(100vh - 32px);
    padding: 18px;
    border-radius: 30px;
  }

  .auth-google-minimal-card {
    width: 100%;
    padding: 28px 22px 22px;
    border-radius: 26px;
  }

  .auth-google-minimal-brand {
    gap: 14px;
  }

  .auth-google-inline-row,
  .auth-google-minimal-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-quick-inline {
    justify-content: flex-start;
  }

  .auth-google-minimal-actions .primary,
  .auth-google-minimal-actions-tight .primary {
    width: 100%;
  }

  .auth-flow-note {
    max-width: none;
  }

  .auth-identity-card {
    width: 100%;
  }
}

/* r58 liquid motion minimal shell */
@keyframes authCardEnter {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0) scale(0.985);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes authStageIn {
  from {
    opacity: 0;
    transform: translate3d(0, 16px, 0) scale(0.992);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes authStageOut {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
  to {
    opacity: 0;
    transform: translate3d(0, -12px, 0) scale(0.992);
    filter: blur(8px);
  }
}

@keyframes workspaceShellIn {
  from {
    opacity: 0;
    transform: translate3d(0, 26px, 0) scale(0.986);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes workspaceCardReveal {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes workspaceSheen {
  from {
    left: -40%;
  }
  to {
    left: 110%;
  }
}

.auth-google-minimal-screen {
  background:
    radial-gradient(circle at 18% 12%, rgba(96, 165, 250, 0.22), transparent 26%),
    radial-gradient(circle at 84% 14%, rgba(167, 139, 250, 0.18), transparent 24%),
    radial-gradient(circle at 78% 82%, rgba(14, 165, 233, 0.12), transparent 28%),
    linear-gradient(180deg, #040d18 0%, #081321 42%, #0a192b 100%);
}

.auth-google-minimal-shell {
  width: min(760px, calc(100vw - 56px));
  min-height: min(760px, calc(100vh - 48px));
  padding: 32px;
}

.auth-google-minimal-card {
  width: min(520px, 100%);
  padding: 34px 34px 28px;
  border-radius: 30px;
  gap: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05) 20%, rgba(8, 14, 28, 0.5) 100%),
    rgba(8, 12, 24, 0.42);
  border: 1px solid rgba(208, 230, 255, 0.14);
  box-shadow:
    0 34px 96px rgba(1, 8, 24, 0.4),
    inset 0 1px 0 rgba(255,255,255,0.14),
    inset 0 -18px 34px rgba(2, 6, 23, 0.12);
  animation: authCardEnter 480ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.auth-google-minimal-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.16), transparent 24%, transparent 72%, rgba(255,255,255,0.05)),
    radial-gradient(circle at 0% 0%, rgba(255,255,255,0.12), transparent 24%);
  opacity: 0.78;
}

.auth-google-minimal-brand {
  gap: 16px;
}

.auth-google-minimal-product {
  font-size: 12px;
  letter-spacing: 0.14em;
}

.auth-google-minimal-copy h1 {
  font-size: clamp(32px, 4vw, 42px);
}

.auth-google-minimal-copy p {
  max-width: 28ch;
}

.auth-google-field input {
  min-height: 56px;
  border-radius: 16px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.auth-google-field input:focus {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.36);
  box-shadow:
    0 0 0 4px rgba(56, 189, 248, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 16px 30px rgba(2, 6, 23, 0.16);
  outline: none;
}

.auth-login-stage-stack {
  position: relative;
  display: grid;
  min-height: 210px;
}

.auth-login-stage {
  grid-area: 1 / 1;
  align-content: start;
  gap: 16px;
  will-change: opacity, transform, filter;
}

.auth-login-stage[hidden] {
  display: none !important;
}

.auth-login-stage.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.auth-login-stage.is-entering {
  animation: authStageIn 240ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.auth-login-stage.is-leaving {
  pointer-events: none;
  animation: authStageOut 220ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.auth-google-inline-row {
  align-items: center;
}

.auth-quick-inline {
  gap: 10px;
}

.auth-quick-inline-button {
  min-height: 32px;
  padding: 0 12px;
  background: rgba(255,255,255,0.045);
}

.auth-google-minimal-actions {
  margin-top: 2px;
}

.auth-google-minimal-actions .primary {
  min-width: 124px;
  min-height: 46px;
}

.auth-register-sheet {
  display: grid;
  gap: 18px;
}

.auth-register-compact-form {
  display: grid;
  gap: 16px;
}

.auth-register-head {
  margin-bottom: 0;
}

.auth-register-head h2 {
  font-size: 26px;
}

.workspace-minimal-screen {
  background:
    radial-gradient(circle at 18% 14%, rgba(96, 165, 250, 0.16), transparent 28%),
    radial-gradient(circle at 84% 10%, rgba(167, 139, 250, 0.14), transparent 24%),
    radial-gradient(circle at 74% 84%, rgba(14, 165, 233, 0.12), transparent 28%),
    linear-gradient(180deg, #04101d 0%, #071425 46%, #08182b 100%);
}

.workspace-minimal-shell {
  width: min(1180px, calc(100vw - 48px));
  min-height: min(820px, calc(100vh - 44px));
  padding: 30px;
  border-radius: 34px;
  animation: workspaceShellIn 500ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.workspace-minimal-shell::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at calc(var(--workspace-pointer-x, 0.78) * 100%) calc(var(--workspace-pointer-y, 0.12) * 100%), rgba(255,255,255,0.12), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,0.08), transparent 22%, transparent 72%, rgba(255,255,255,0.05));
  opacity: 0.9;
}

.workspace-minimal-orb {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(22px);
  opacity: 0.78;
}

.workspace-minimal-orb-a {
  width: 260px;
  height: 260px;
  top: -90px;
  left: -70px;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.28), transparent 68%);
}

.workspace-minimal-orb-b {
  width: 300px;
  height: 300px;
  right: -90px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.24), transparent 72%);
}

.workspace-minimal-header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.workspace-minimal-copy {
  display: grid;
  gap: 10px;
}

.workspace-minimal-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(196, 226, 255, 0.12);
  color: rgba(214, 230, 246, 0.74);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.workspace-minimal-copy h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.workspace-minimal-copy p {
  margin: 0;
  max-width: 44ch;
  color: rgba(216, 232, 248, 0.78);
  line-height: 1.6;
}

.workspace-minimal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.workspace-minimal-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(196, 226, 255, 0.12);
  color: rgba(244, 250, 255, 0.9);
  font-size: 13px;
}

.workspace-minimal-toolbar {
  display: grid;
  gap: 14px;
  justify-items: end;
  width: min(420px, 100%);
}

.workspace-search-shell {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  width: min(420px, 100%);
  min-height: 52px;
  padding: 0 16px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)),
    rgba(7, 12, 24, 0.38);
  border: 1px solid rgba(196, 226, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 18px 30px rgba(2, 6, 23, 0.12);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.workspace-search-shell:focus-within {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.34);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12), inset 0 1px 0 rgba(255,255,255,0.08), 0 18px 30px rgba(2, 6, 23, 0.16);
}

.workspace-search-shell > span {
  color: rgba(214, 230, 246, 0.72);
  font-size: 15px;
}

.workspace-search-shell input {
  min-height: auto;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.workspace-search-shell input:focus {
  box-shadow: none;
}

.workspace-minimal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.workspace-minimal-actions > button {
  min-height: 42px;
  border-radius: 16px;
}

.workspace-minimal-grid-frame {
  position: relative;
  z-index: 1;
  min-height: 0;
}

.workspace-minimal-grid {
  gap: 20px;
}

.workspace-minimal-card {
  position: relative;
  animation: workspaceCardReveal 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: var(--reveal-delay, 0ms);
}

.workspace-minimal-card::after,
.workspace-switcher-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at calc(var(--card-pointer-x, 0.72) * 100%) calc(var(--card-pointer-y, 0.16) * 100%), rgba(255,255,255,0.15), transparent 34%),
    radial-gradient(circle at 0% 120%, color-mix(in srgb, var(--workspace-accent, #38bdf8) 26%, transparent), transparent 36%);
  mix-blend-mode: screen;
  opacity: 0.9;
}

.workspace-minimal-card:hover,
.workspace-minimal-card:focus-visible,
.workspace-minimal-card.active {
  transform: translateY(-4px) scale(1.01);
}

.workspace-minimal-card .workspace-preview {
  min-height: 172px;
}

.workspace-minimal-card .workspace-card-metrics,
.workspace-minimal-card .workspace-meta,
.workspace-minimal-card .workspace-card-metrics span {
  color: rgba(218, 232, 246, 0.74);
}

.workspace-switcher-overlay {
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: opacity .18s ease, backdrop-filter .18s ease;
}

.workspace-switcher-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.workspace-switcher-overlay.is-closing {
  opacity: 0;
  pointer-events: none;
}

.workspace-switcher-dialog {
  width: min(1160px, calc(100vw - 36px));
  padding: 24px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0%, rgba(125, 211, 252, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.05) 22%, rgba(8, 12, 24, 0.56) 100%),
    rgba(7, 12, 24, 0.42);
  transform: translateY(24px) scale(0.985);
  opacity: 0;
  transition: transform .22s cubic-bezier(0.2, 0.8, 0.2, 1), opacity .22s ease;
}

.workspace-switcher-overlay.is-visible .workspace-switcher-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.workspace-switcher-header {
  align-items: end;
  gap: 18px;
}

.workspace-switcher-header h2 {
  font-size: 32px;
  letter-spacing: -0.04em;
}

.workspace-switcher-header p {
  max-width: 36ch;
}

.workspace-switcher-actions {
  align-items: center;
  gap: 12px;
}

.workspace-switcher-search-shell {
  width: min(320px, 100%);
}

.workspace-switcher-grid {
  gap: 18px;
}

.workspace-switcher-card {
  position: relative;
  animation: workspaceCardReveal 460ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: var(--reveal-delay, 0ms);
}

.workspace-switcher-card:hover,
.workspace-switcher-card:focus-visible,
.workspace-switcher-card.active {
  transform: translateY(-3px);
}

.workspace-loading-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.workspace-loading-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.workspace-loading-overlay.is-closing,
.workspace-loading-overlay.is-complete {
  opacity: 0;
}

.workspace-loading-shell {
  width: min(680px, calc(100vw - 40px));
  margin-top: 18vh;
  padding: 24px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  transform: translateY(22px) scale(0.985);
  opacity: 0;
  transition: transform .24s cubic-bezier(0.2, 0.8, 0.2, 1), opacity .24s ease;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--workspace-accent, #38bdf8) 24%, transparent), transparent 40%),
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05) 20%, rgba(8, 12, 24, 0.58) 100%),
    rgba(7, 12, 24, 0.42);
}

.workspace-loading-overlay.is-visible .workspace-loading-shell {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.workspace-loading-preview-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(196, 226, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.workspace-loading-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(236, 245, 255, 0.88);
}

.workspace-loading-preview-surface {
  position: relative;
  min-height: 140px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(6, 14, 30, 0.96), rgba(6, 11, 24, 0.84));
  border: 1px solid rgba(196, 226, 255, 0.12);
}

.workspace-loading-window {
  position: absolute;
  border-radius: 14px;
  border: 1px solid rgba(196, 226, 255, 0.1);
  background: rgba(255,255,255,0.08);
}

.workspace-loading-window.main {
  left: 16px;
  top: 18px;
  width: 58%;
  height: 52%;
}

.workspace-loading-window.secondary {
  right: 18px;
  top: 26px;
  width: 26%;
  height: 34%;
}

.workspace-loading-taskbar {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.16), rgba(255,255,255,0.28), rgba(255,255,255,0.16));
}

.workspace-loading-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(216, 232, 248, 0.72);
  font-size: 12px;
}

.workspace-loading-copy {
  display: grid;
  gap: 16px;
}

.workspace-loading-progress {
  position: relative;
  overflow: hidden;
}

.workspace-loading-progress::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  animation: workspaceSheen 1.5s linear infinite;
}

.workspace-loading-progress span {
  z-index: 1;
}

.workspace-loading-step {
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.workspace-loading-step.active {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(125, 211, 252, 0.3);
  color: rgba(246, 250, 255, 0.96);
  transform: translateY(-1px);
}

.workspace-loading-step.done {
  background: rgba(110, 231, 183, 0.14);
  border-color: rgba(52, 211, 153, 0.24);
  color: rgba(236, 247, 241, 0.92);
}

.workspace-loading-shell.failed {
  border-color: rgba(248, 113, 113, 0.28);
}

.native-settings-minimal-app {
  padding: 0;
  overflow: hidden;
}

.native-settings-shell-minimal {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  min-height: 100%;
  padding: 16px;
}

.native-settings-sidebar {
  display: grid;
  gap: 18px;
  padding: 20px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05) 22%, rgba(8, 12, 24, 0.08) 100%),
    rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(45, 67, 100, 0.12);
  box-shadow: 0 20px 48px rgba(2, 6, 23, 0.12), inset 0 1px 0 rgba(255,255,255,0.24);
}

.native-settings-sidebar-head {
  display: grid;
  gap: 8px;
}

.native-settings-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.54);
  box-shadow: inset 0 0 0 1px rgba(45, 67, 100, 0.12);
  color: rgba(21, 31, 50, 0.56);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.native-settings-sidebar-head h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.native-settings-sidebar-head p {
  margin: 0;
  color: rgba(21, 31, 50, 0.62);
  line-height: 1.6;
}

.native-settings-tabbar-vertical {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.native-settings-tabbar-vertical button {
  appearance: none;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 12px;
  align-items: center;
  padding: 14px 16px;
  min-height: 70px;
  border-radius: 18px;
  background: rgba(255,255,255,0.42);
  border: 1px solid rgba(45, 67, 100, 0.1);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.native-settings-tabbar-vertical button span {
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  color: rgba(21, 31, 50, 0.54);
  font-size: 12px;
}

.native-settings-tabbar-vertical button strong {
  text-align: left;
  font-size: 14px;
  color: rgba(21, 31, 50, 0.86);
}

.native-settings-tabbar-vertical button small {
  text-align: left;
  color: rgba(21, 31, 50, 0.62);
}

.native-settings-tabbar-vertical button.active,
.native-settings-tabbar-vertical button:hover,
.native-settings-tabbar-vertical button:focus-visible {
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.24), rgba(255,255,255,0.52));
  border-color: rgba(56, 189, 248, 0.22);
  box-shadow: 0 16px 28px rgba(56, 189, 248, 0.1), inset 0 1px 0 rgba(255,255,255,0.24);
  outline: none;
}

.native-settings-sidebar-footer .primary {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
}

.minimal-settings-main {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
}

.native-settings-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 8px 0;
}

.native-settings-page-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.56);
  box-shadow: inset 0 0 0 1px rgba(45, 67, 100, 0.1);
  color: rgba(21, 31, 50, 0.5);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.native-settings-page-head h3 {
  margin: 4px 0 0;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.native-settings-page-head p {
  margin: 8px 0 0;
  color: rgba(21, 31, 50, 0.62);
  line-height: 1.6;
}

.minimal-settings-main .native-settings-body {
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.minimal-settings-main .native-settings-card {
  border-radius: 22px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06) 24%, rgba(8, 12, 24, 0.04) 100%),
    rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(45, 67, 100, 0.1);
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.1), inset 0 1px 0 rgba(255,255,255,0.24);
}

.minimal-settings-main .native-settings-card h3 {
  font-size: 18px;
  letter-spacing: -0.01em;
}

.minimal-settings-main .native-settings-readout,
.minimal-settings-main .native-settings-callout {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.68), rgba(255,255,255,0.44)),
    rgba(255,255,255,0.48);
  border: 1px solid rgba(45, 67, 100, 0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.26);
}

.minimal-settings-main .native-settings-hint {
  color: rgba(21, 31, 50, 0.6);
}

.minimal-settings-main .field input,
.minimal-settings-main .field select,
.minimal-settings-main .field textarea {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.42)),
    rgba(255,255,255,0.54);
  border-color: rgba(45, 67, 100, 0.1);
  color: rgba(21, 31, 50, 0.84);
}

.minimal-settings-main .field input:focus,
.minimal-settings-main .field select:focus,
.minimal-settings-main .field textarea:focus {
  box-shadow: var(--focus-ring);
}

@media (max-width: 980px) {
  .workspace-minimal-header {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .workspace-minimal-toolbar {
    width: 100%;
    justify-items: stretch;
  }

  .workspace-search-shell {
    width: 100%;
  }

  .workspace-minimal-actions {
    justify-content: stretch;
  }

  .workspace-minimal-actions > button {
    flex: 1 1 0;
  }

  .workspace-loading-shell {
    grid-template-columns: 1fr;
    margin-top: 12vh;
  }

  .native-settings-shell-minimal {
    grid-template-columns: 1fr;
  }

  .native-settings-tabbar-vertical {
    flex-direction: row;
    overflow: auto;
    padding-bottom: 2px;
  }

  .native-settings-tabbar-vertical button {
    min-width: 220px;
  }
}

@media (max-width: 760px) {
  .auth-google-minimal-shell {
    width: calc(100vw - 24px);
    min-height: calc(100vh - 24px);
    padding: 12px;
    border-radius: 24px;
  }

  .auth-google-minimal-card {
    padding: 24px 20px 20px;
    border-radius: 24px;
  }

  .auth-login-stage-stack {
    min-height: 230px;
  }

  .workspace-minimal-shell {
    width: calc(100vw - 20px);
    min-height: calc(100vh - 20px);
    padding: 18px;
    border-radius: 24px;
  }

  .workspace-switcher-dialog {
    width: min(100vw - 18px, 100%);
    padding: 18px;
    border-radius: 24px;
  }

  .workspace-switcher-header {
    align-items: stretch;
  }

  .workspace-switcher-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .workspace-loading-shell {
    width: calc(100vw - 20px);
    padding: 18px;
  }

  .native-settings-shell-minimal {
    padding: 10px;
  }

  .native-settings-sidebar,
  .minimal-settings-main .native-settings-card {
    border-radius: 20px;
  }

  .native-settings-page-head h3 {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-google-minimal-card,
  .auth-login-stage,
  .workspace-minimal-shell,
  .workspace-minimal-card,
  .workspace-switcher-card,
  .workspace-switcher-overlay,
  .workspace-switcher-dialog,
  .workspace-loading-overlay,
  .workspace-loading-shell,
  .workspace-loading-progress span,
  .native-settings-tabbar-vertical button,
  .auth-google-field input,
  .workspace-search-shell,
  .workspace-loading-progress::after {
    animation: none !important;
    transition: none !important;
  }
}


/* r60 google minimal auth + shell drag/menu fixes */
.auth-google-reference-screen {
  position: relative;
  padding: 40px 32px 24px;
  background:
    radial-gradient(circle at 18% 16%, rgba(132, 170, 255, 0.14), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(86, 174, 255, 0.10), transparent 26%),
    linear-gradient(180deg, #edf1f5 0%, #eef3f8 100%);
}

.auth-google-reference-shell {
  width: min(1540px, 100%);
  display: grid;
  justify-items: center;
  gap: 24px;
}

.auth-google-reference-card {
  width: min(1540px, calc(100vw - 64px));
  min-height: min(560px, calc(100vh - 184px));
  padding: 48px 54px 40px;
  border-radius: 34px;
  display: grid;
  grid-template-columns: minmax(280px, 440px) minmax(460px, 1fr);
  gap: clamp(42px, 6vw, 92px);
  align-items: start;
  background: linear-gradient(180deg, rgba(255,255,255,0.84), rgba(255,255,255,0.72));
  border: 1px solid rgba(255,255,255,0.78);
  box-shadow: 0 24px 72px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255,255,255,0.72);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  backdrop-filter: blur(28px) saturate(150%);
}

.auth-google-reference-brand {
  display: grid;
  align-content: start;
  gap: 24px;
  padding-top: 10px;
}

.auth-google-reference-logo-row {
  display: flex;
  align-items: center;
}

.auth-google-reference-logo-mark {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 26px;
  color: #ffffff;
  background: linear-gradient(180deg, #7aa8ff, #4f79ff);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.48), 0 12px 28px rgba(79, 121, 255, 0.22);
}

.auth-google-reference-copy {
  display: grid;
  gap: 12px;
}

.auth-google-reference-product {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #202124;
}

.auth-google-reference-copy h1 {
  margin: 0;
  font-size: clamp(44px, 6vw, 64px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.98;
  color: #202124;
}

.auth-google-reference-copy p {
  margin: 0;
  max-width: 18ch;
  font-size: 18px;
  line-height: 1.5;
  color: #444746;
}

.auth-google-reference-identity {
  appearance: none;
  border: 1px solid rgba(60,64,67,0.16);
  background: rgba(255,255,255,0.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  min-height: 46px;
  padding: 0 14px 0 10px;
  color: #202124;
  cursor: pointer;
}

.auth-google-reference-identity.hidden {
  display: none !important;
}

.auth-google-reference-identity-mark {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 87, 208, 0.12);
  color: #0b57d0;
  font-size: 12px;
}

.auth-google-reference-identity-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  text-align: left;
}

.auth-google-reference-identity-copy strong,
.auth-google-reference-identity-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-google-reference-identity-copy strong {
  font-size: 14px;
  font-weight: 600;
}

.auth-google-reference-identity-copy small {
  font-size: 12px;
  color: #5f6368;
}

.auth-google-reference-panel,
.auth-google-reference-register {
  width: 100%;
  display: grid;
  align-content: center;
}

.auth-google-reference-form,
.auth-google-reference-register-form {
  width: min(680px, 100%);
  justify-self: end;
  display: grid;
  gap: 24px;
}

.auth-google-reference-register-form {
  width: min(760px, 100%);
}

.auth-login-stage-stack {
  min-height: 236px;
}

.auth-login-stage {
  gap: 24px;
}

.auth-google-reference-field {
  position: relative;
  display: grid;
  gap: 8px;
}

.auth-google-reference-field > span {
  font-size: 14px;
  font-weight: 500;
  color: #444746;
}

.auth-google-reference-input-wrap {
  position: relative;
}

.auth-google-reference-field input {
  width: 100%;
  min-height: 62px;
  padding: 0 64px 0 18px;
  border-radius: 18px;
  border: 1px solid rgba(95,99,104,0.42);
  background: rgba(255,255,255,0.78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.82);
  color: #202124;
  font-size: 18px;
  letter-spacing: -0.01em;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, transform 160ms ease;
}

.auth-google-reference-register-form .auth-google-reference-field input {
  padding-right: 18px;
}

.auth-google-reference-field input::placeholder {
  color: rgba(95, 99, 104, 0.84);
}

.auth-google-reference-field input:focus {
  outline: none;
  transform: translateY(-1px);
  border-color: #0b57d0;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(11, 87, 208, 0.12), inset 0 1px 0 rgba(255,255,255,0.92);
}

.auth-account-suggestions-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 0;
  background: rgba(32, 33, 36, 0.06);
  color: #444746;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.auth-account-suggestions-toggle:hover,
.auth-account-suggestions-toggle:focus-visible {
  outline: none;
  background: rgba(11, 87, 208, 0.10);
  color: #0b57d0;
}

.auth-account-suggestions {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 40;
  display: grid;
  gap: 4px;
  padding: 8px;
  border-radius: 20px;
  border: 1px solid rgba(60,64,67,0.14);
  background: rgba(255,255,255,0.88);
  box-shadow: 0 20px 54px rgba(60,64,67,0.20);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  backdrop-filter: blur(28px) saturate(160%);
}

.auth-account-suggestions.hidden {
  display: none !important;
}

.auth-account-suggestion {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 12px 14px;
  border-radius: 14px;
  text-align: left;
  display: grid;
  gap: 2px;
  color: #202124;
  cursor: pointer;
  transition: background 140ms ease, transform 140ms ease;
}

.auth-account-suggestion:hover,
.auth-account-suggestion:focus-visible {
  outline: none;
  background: rgba(11, 87, 208, 0.08);
}

.auth-account-suggestion strong {
  font-size: 14px;
  font-weight: 600;
}

.auth-account-suggestion small,
.auth-account-suggestion-empty {
  font-size: 12px;
  color: #5f6368;
}

.auth-account-suggestion-empty {
  padding: 10px 12px;
}

.auth-google-reference-note {
  font-size: 14px;
  line-height: 1.55;
  color: #5f6368;
}

.auth-google-reference-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auth-google-reference-card .link-button {
  min-height: auto;
  color: #0b57d0;
  font-weight: 600;
}

.auth-google-reference-card .link-button:hover,
.auth-google-reference-card .link-button:focus-visible {
  color: #0842a0;
  text-decoration: none;
}

.auth-google-reference-card .primary {
  min-width: 116px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid #0b57d0;
  background: #0b57d0;
  color: #ffffff;
  box-shadow: none;
}

.auth-google-reference-card .primary:hover,
.auth-google-reference-card .primary:focus-visible {
  background: #0842a0;
  border-color: #0842a0;
  box-shadow: 0 0 0 4px rgba(11, 87, 208, 0.12);
}

.auth-google-reference-register-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.auth-google-reference-footer {
  width: min(1540px, calc(100vw - 64px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 6px;
  font-size: 14px;
  color: #5f6368;
}

.auth-google-reference-language {
  white-space: nowrap;
}

.auth-google-reference-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.auth-google-reference-links button {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
  font: inherit;
}

@media (max-width: 1120px) {
  .auth-google-reference-card {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 34px 32px 28px;
    gap: 30px;
  }

  .auth-google-reference-form,
  .auth-google-reference-register-form {
    width: 100%;
    justify-self: stretch;
  }

  .auth-google-reference-copy p {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .auth-google-reference-screen {
    padding: 20px 16px 18px;
  }

  .auth-google-reference-card {
    width: calc(100vw - 32px);
    padding: 24px 20px 20px;
    border-radius: 24px;
  }

  .auth-google-reference-copy h1 {
    font-size: 40px;
  }

  .auth-google-reference-field input {
    min-height: 58px;
    font-size: 16px;
  }

  .auth-google-reference-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .auth-google-reference-card .primary {
    width: 100%;
  }

  .auth-google-reference-register-grid {
    grid-template-columns: 1fr;
  }

  .auth-google-reference-footer {
    width: calc(100vw - 32px);
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .auth-google-reference-links {
    flex-wrap: wrap;
    gap: 14px 18px;
  }
}

.desktop-shell .desktop-taskbar,
.desktop-shell .taskbar.desktop-taskbar {
  position: absolute !important;
}

.desktop-shell .start-menu {
  position: absolute !important;
}

.desktop-shell .window.window-shell {
  position: absolute !important;
}

.desktop-shell .desktop-header {
  position: relative !important;
}


/* r62 google auth redux + drag fallback */
.auth-google-reference-screen {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 88px 24px 44px !important;
  background: #f1f3f4 !important;
}

.auth-google-reference-shell {
  width: min(1520px, calc(100vw - 48px));
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 32px !important;
}

.auth-google-reference-card {
  width: min(1520px, 100%) !important;
  min-height: 560px !important;
  padding: 48px 52px 42px !important;
  border-radius: 30px !important;
  display: grid !important;
  grid-template-columns: minmax(300px, 420px) minmax(520px, 1fr) !important;
  gap: clamp(48px, 6vw, 92px) !important;
  align-items: center !important;
  background: #ffffff !important;
  border: 1px solid #dadce0 !important;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.16), 0 12px 36px rgba(60, 64, 67, 0.12) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.auth-google-reference-card[data-mode="register"] {
  align-items: start !important;
}

.auth-google-reference-brand {
  align-self: start;
  gap: 22px !important;
  padding-top: 0 !important;
}

.auth-google-reference-logo-row {
  display: flex;
  align-items: flex-start;
}

.auth-google-reference-logo-mark {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
  font-size: 21px !important;
  font-weight: 700;
  line-height: 1;
  color: #ffffff !important;
  background: conic-gradient(from 210deg, #1a73e8 0 34%, #34a853 34% 57%, #fbbc05 57% 78%, #ea4335 78% 100%) !important;
  box-shadow: none !important;
}

.auth-google-reference-product {
  font-size: 16px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  color: #202124 !important;
}

.auth-google-reference-copy {
  display: grid !important;
  gap: 14px !important;
}

.auth-google-reference-copy h1 {
  margin: 0;
  font-size: 52px !important;
  font-weight: 500 !important;
  line-height: 1.02 !important;
  letter-spacing: -0.05em !important;
  color: #202124 !important;
}

.auth-google-reference-copy p {
  margin: 0;
  max-width: 18ch !important;
  font-size: 18px !important;
  line-height: 1.5 !important;
  color: #444746 !important;
}

.auth-google-reference-panel,
.auth-google-reference-register {
  width: 100%;
  display: flex !important;
  align-items: center;
}

.auth-google-reference-form,
.auth-google-reference-register-form {
  width: min(690px, 100%) !important;
  justify-self: end !important;
  display: grid !important;
  gap: 24px !important;
}

.auth-google-reference-register-form {
  width: min(760px, 100%) !important;
}

.auth-google-reference-register-head {
  display: grid;
  gap: 8px;
}

.auth-google-reference-register-head h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 500;
  color: #202124;
}

.auth-google-reference-register-head p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #5f6368;
}

.auth-login-stage-stack {
  min-height: 184px !important;
}

.auth-login-stage {
  gap: 22px !important;
}

.auth-google-reference-field {
  position: relative;
  display: grid;
  gap: 0 !important;
}

.auth-google-reference-field > span:not(.auth-google-reference-floating-label) {
  display: none !important;
}

.auth-google-reference-floating-field .auth-google-reference-input-wrap {
  position: relative;
}

.auth-google-reference-floating-field input {
  width: 100%;
  min-height: 60px !important;
  padding: 24px 58px 10px 16px !important;
  border-radius: 4px !important;
  border: 1px solid #dadce0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
  color: #202124 !important;
  font-size: 16px !important;
  letter-spacing: 0 !important;
}

.auth-google-reference-floating-field input::placeholder {
  color: transparent !important;
}

.auth-google-reference-floating-field input:focus {
  transform: none !important;
  border-color: #1a73e8 !important;
  box-shadow: 0 0 0 1px #1a73e8 !important;
}

.auth-google-reference-floating-label {
  position: absolute;
  left: 12px;
  top: 18px;
  padding: 0 4px;
  background: #ffffff;
  font-size: 16px;
  line-height: 1;
  color: #5f6368;
  pointer-events: none;
  transition: top 160ms ease, font-size 160ms ease, color 160ms ease;
}

.auth-google-reference-floating-field input:focus + .auth-google-reference-floating-label,
.auth-google-reference-floating-field input:not(:placeholder-shown) + .auth-google-reference-floating-label {
  top: -8px;
  font-size: 12px;
  color: #1a73e8;
}

.auth-google-reference-floating-field input:not(:focus):not(:placeholder-shown) + .auth-google-reference-floating-label {
  color: #5f6368;
}

.auth-account-suggestions-toggle {
  position: absolute;
  top: 50%;
  right: 10px !important;
  transform: translateY(-50%) !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  border: 0 !important;
  background: transparent !important;
  color: #5f6368 !important;
}

.auth-account-suggestions-toggle:hover,
.auth-account-suggestions-toggle:focus-visible {
  outline: none;
  background: rgba(26, 115, 232, 0.08) !important;
  color: #1a73e8 !important;
}

.auth-account-suggestions {
  position: absolute;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  right: auto !important;
  width: min(360px, 100%) !important;
  display: grid;
  gap: 2px;
  padding: 6px !important;
  border-radius: 16px !important;
  border: 1px solid #dadce0 !important;
  background: #ffffff !important;
  box-shadow: 0 8px 24px rgba(60, 64, 67, 0.18), 0 1px 3px rgba(60, 64, 67, 0.14) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.auth-account-suggestions.hidden {
  display: none !important;
}

.auth-account-suggestion {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 12px 14px !important;
  border-radius: 12px !important;
  text-align: left;
  display: grid;
  gap: 4px !important;
  color: #202124;
  cursor: pointer;
}

.auth-account-suggestion:hover,
.auth-account-suggestion:focus-visible {
  outline: none;
  background: #f1f3f4 !important;
}

.auth-account-suggestion strong {
  font-size: 14px !important;
  font-weight: 600;
  color: #202124;
}

.auth-account-suggestion small,
.auth-account-suggestion-empty,
.auth-account-expiry {
  font-size: 12px !important;
  color: #5f6368 !important;
}

.auth-account-suggestion-empty {
  padding: 10px 12px;
}

.auth-google-reference-note {
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: #5f6368 !important;
}

.auth-google-reference-actions {
  display: flex !important;
  align-items: center;
  justify-content: space-between !important;
  gap: 20px !important;
}

.auth-google-reference-card .link-button {
  min-height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: #1a73e8 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.auth-google-reference-card .link-button:hover,
.auth-google-reference-card .link-button:focus-visible {
  outline: none;
  color: #174ea6 !important;
  background: none !important;
  box-shadow: none !important;
}

.auth-google-reference-card .primary {
  min-width: 104px !important;
  min-height: 40px !important;
  padding: 0 24px !important;
  border-radius: 999px !important;
  border: 1px solid #1a73e8 !important;
  background: #1a73e8 !important;
  color: #ffffff !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

.auth-google-reference-card .primary:hover,
.auth-google-reference-card .primary:focus-visible {
  outline: none;
  background: #1765cc !important;
  border-color: #1765cc !important;
  box-shadow: none !important;
}

.auth-google-reference-register-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px !important;
}

.auth-google-reference-register-grid .auth-google-reference-field {
  gap: 6px !important;
}

.auth-google-reference-register-grid .auth-google-reference-field > span {
  display: block !important;
  font-size: 14px;
  font-weight: 500;
  color: #444746;
}

.auth-google-reference-register-grid input {
  width: 100%;
  min-height: 56px !important;
  padding: 0 16px !important;
  border-radius: 4px !important;
  border: 1px solid #dadce0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
  font-size: 16px !important;
}

.auth-google-reference-register-grid input::placeholder {
  color: #5f6368 !important;
}

.auth-google-reference-register-grid input:focus {
  transform: none !important;
  border-color: #1a73e8 !important;
  box-shadow: 0 0 0 1px #1a73e8 !important;
}

.auth-google-reference-identity {
  appearance: none;
  border: 1px solid #dadce0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px !important;
  width: fit-content;
  max-width: 100%;
  min-height: 34px !important;
  padding: 0 12px 0 8px !important;
  color: #202124;
}

.auth-google-reference-identity-mark {
  width: 22px !important;
  height: 22px !important;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8f0fe !important;
  color: #1a73e8 !important;
  font-size: 11px !important;
}

.auth-google-reference-identity-copy strong {
  font-size: 13px !important;
  font-weight: 500 !important;
}

.auth-google-reference-identity-copy small {
  font-size: 12px !important;
  color: #5f6368 !important;
}

.auth-google-reference-footer {
  width: min(1520px, 100%) !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between !important;
  gap: 18px;
  padding: 0 12px !important;
  font-size: 13px !important;
  color: #5f6368 !important;
}

.auth-google-reference-language {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  font: inherit;
}

.auth-google-reference-links {
  display: flex !important;
  align-items: center;
  gap: 32px !important;
}

.auth-google-reference-links button {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
  font: inherit;
}

.window.window-shell,
.desktop-shell .window.window-shell {
  position: absolute !important;
}

.window.dragging-window,
.window.resizing-window {
  transition: none !important;
}

.window-header {
  cursor: grab !important;
}

.window-header:active,
.window.dragging-window .window-header {
  cursor: grabbing !important;
}

@media (max-width: 1120px) {
  .auth-google-reference-screen {
    padding: 44px 18px 24px !important;
  }

  .auth-google-reference-card {
    min-height: auto !important;
    grid-template-columns: 1fr !important;
    gap: 34px !important;
    padding: 34px 28px 28px !important;
  }

  .auth-google-reference-form,
  .auth-google-reference-register-form {
    width: 100% !important;
  }

  .auth-google-reference-copy h1 {
    font-size: 42px !important;
  }
}

@media (max-width: 760px) {
  .auth-google-reference-screen {
    padding: 20px 16px 18px !important;
  }

  .auth-google-reference-shell {
    width: calc(100vw - 32px);
    gap: 18px !important;
  }

  .auth-google-reference-card {
    width: 100% !important;
    padding: 22px 18px 20px !important;
    border-radius: 22px !important;
  }

  .auth-google-reference-copy h1 {
    font-size: 34px !important;
  }

  .auth-google-reference-actions {
    flex-direction: column-reverse;
    align-items: stretch !important;
  }

  .auth-google-reference-card .primary {
    width: 100%;
  }

  .auth-google-reference-register-grid {
    grid-template-columns: 1fr;
  }

  .auth-google-reference-footer {
    width: 100% !important;
    flex-direction: column;
    align-items: flex-start !important;
    gap: 10px;
  }

  .auth-google-reference-links {
    flex-wrap: wrap;
    gap: 14px 18px !important;
  }
}


/* r64 auth/settings/resize polish */
.auth-google-reference-panel[hidden],
.auth-google-reference-register[hidden] {
  display: none !important;
}

.auth-google-reference-screen {
  min-height: 100vh;
  display: flex !important;
  align-items: flex-start;
  justify-content: center;
  padding: 72px 24px 28px !important;
  background: #f0f4f9 !important;
}

.auth-google-reference-shell {
  width: min(1120px, calc(100vw - 48px)) !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 24px !important;
}

.auth-google-reference-card {
  width: 100% !important;
  min-height: 430px !important;
  padding: 40px 36px 32px !important;
  border-radius: 28px !important;
  display: grid !important;
  grid-template-columns: minmax(240px, 320px) minmax(420px, 1fr) !important;
  gap: clamp(36px, 5vw, 72px) !important;
  align-items: center !important;
  background: rgba(255,255,255,0.92) !important;
  border: 1px solid rgba(218,220,224,0.92) !important;
  box-shadow: 0 2px 12px rgba(60, 64, 67, 0.08), 0 18px 48px rgba(60, 64, 67, 0.10) !important;
}

.auth-google-reference-brand {
  align-self: start;
  gap: 18px !important;
}

.auth-google-reference-logo-row,
.auth-google-reference-product,
.auth-google-reference-logo-mark {
  display: none !important;
}

.auth-google-reference-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #dadce0;
  background: #ffffff;
  color: #5f6368;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-google-reference-copy {
  display: grid !important;
  gap: 12px !important;
}

.auth-google-reference-copy h1 {
  margin: 0;
  font-size: 48px !important;
  font-weight: 500 !important;
  line-height: 1.04 !important;
  letter-spacing: -0.04em !important;
}

.auth-google-reference-copy p {
  margin: 0;
  max-width: 15ch !important;
  font-size: 18px !important;
  line-height: 1.45 !important;
  color: #444746 !important;
}

.auth-google-reference-form {
  width: min(420px, 100%) !important;
  justify-self: end !important;
  gap: 20px !important;
}

.auth-google-reference-register-form {
  width: min(560px, 100%) !important;
  justify-self: end !important;
  gap: 20px !important;
}

.auth-login-stage-stack {
  min-height: 170px !important;
}

.auth-google-reference-field {
  gap: 0 !important;
}

.auth-google-reference-floating-field input {
  min-height: 58px !important;
  padding: 22px 52px 12px 14px !important;
  border-radius: 4px !important;
}

.auth-google-reference-floating-label {
  left: 10px !important;
  top: 19px !important;
}

.auth-google-reference-floating-field input:focus + .auth-google-reference-floating-label,
.auth-google-reference-floating-field input:not(:placeholder-shown) + .auth-google-reference-floating-label {
  top: -8px !important;
  font-size: 12px !important;
}

.auth-google-reference-actions {
  display: flex !important;
  align-items: center;
  justify-content: space-between !important;
  gap: 20px !important;
}

.auth-actions-left {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

.auth-account-entry-toggle {
  white-space: nowrap;
}

.auth-account-entry-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 46;
  width: min(280px, 100vw - 64px);
  display: grid;
  gap: 2px;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid #dadce0;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(60, 64, 67, 0.18), 0 1px 3px rgba(60, 64, 67, 0.14);
}

.auth-account-entry-menu.hidden {
  display: none !important;
}

.auth-account-entry-item {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 12px 14px;
  border-radius: 12px;
  text-align: left;
  display: grid;
  gap: 4px;
  color: #202124;
  cursor: pointer;
}

.auth-account-entry-item:hover,
.auth-account-entry-item:focus-visible {
  outline: none;
  background: #f1f3f4;
}

.auth-account-entry-item.register {
  margin-top: 2px;
  border-top: 1px solid #eef0f1;
  border-radius: 0 0 12px 12px;
  padding-top: 13px;
}

.auth-account-entry-item strong {
  font-size: 14px;
  font-weight: 600;
  color: #202124;
}

.auth-account-entry-item small {
  font-size: 12px;
  color: #5f6368;
}

.auth-account-suggestions {
  width: 100% !important;
  min-width: 0 !important;
}

.auth-account-suggestion {
  gap: 3px !important;
}

.auth-account-expiry {
  color: #5f6368 !important;
}

.auth-google-reference-footer {
  width: 100% !important;
  padding: 0 2px !important;
}

.auth-google-reference-links {
  gap: 28px !important;
}

.window-header,
.window-resizer {
  touch-action: none;
  user-select: none;
}

.window-resizer,
.desktop-shell .window-resizer {
  position: absolute !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 26px !important;
  height: 26px !important;
  z-index: 6 !important;
  cursor: nwse-resize !important;
  pointer-events: auto !important;
  opacity: 0.92;
  background:
    linear-gradient(135deg, transparent 0 44%, rgba(197, 226, 255, 0.86) 46% 50%, transparent 52% 60%, rgba(197, 226, 255, 0.62) 62% 66%, transparent 68%) !important;
}

.window.maximized-window .window-resizer {
  display: none !important;
}

.native-settings-minimal-app {
  background: linear-gradient(180deg, rgba(246, 248, 251, 0.92), rgba(239, 243, 248, 0.94));
}

.native-settings-shell-minimal {
  grid-template-columns: 236px minmax(0, 1fr) !important;
  gap: 12px !important;
  min-height: 100%;
  padding: 12px !important;
}

.native-settings-sidebar {
  gap: 14px !important;
  padding: 16px !important;
  border-radius: 22px !important;
  background: rgba(248, 249, 250, 0.92) !important;
  border: 1px solid rgba(218, 220, 224, 0.92) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72), 0 1px 2px rgba(60,64,67,0.06) !important;
}

.native-settings-eyebrow,
.native-settings-sidebar-head p,
.native-settings-page-head p,
.native-settings-tabbar-vertical button small,
.native-settings-page-kicker {
  display: none !important;
}

.native-settings-sidebar-head {
  gap: 4px !important;
}

.native-settings-sidebar-head h2 {
  font-size: 22px !important;
  letter-spacing: -0.02em !important;
  color: #1f1f1f;
}

.native-settings-tabbar-vertical {
  gap: 6px !important;
}

.native-settings-tabbar-vertical button {
  display: grid !important;
  grid-template-columns: 20px 1fr !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 44px !important;
  padding: 0 12px !important;
  border-radius: 12px !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.native-settings-tabbar-vertical button span {
  width: 20px !important;
  height: 20px !important;
  background: transparent !important;
  color: #5f6368 !important;
  font-size: 12px !important;
}

.native-settings-tabbar-vertical button strong {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #202124 !important;
}

.native-settings-tabbar-vertical button.active,
.native-settings-tabbar-vertical button:hover,
.native-settings-tabbar-vertical button:focus-visible {
  background: #e8f0fe !important;
  border-color: #d2e3fc !important;
  box-shadow: none !important;
  transform: none !important;
}

.native-settings-sidebar-footer .primary {
  min-height: 42px !important;
  border-radius: 12px !important;
}

.minimal-settings-main {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0 !important;
  padding: 16px 18px !important;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(218, 220, 224, 0.92);
  box-shadow: 0 1px 2px rgba(60,64,67,0.06), inset 0 1px 0 rgba(255,255,255,0.72);
}

.native-settings-page-head {
  padding: 0 2px 12px !important;
  border-bottom: 1px solid rgba(218, 220, 224, 0.82);
  margin-bottom: 12px;
}

.native-settings-page-head h3 {
  margin: 0 !important;
  font-size: 24px !important;
  letter-spacing: -0.03em !important;
  color: #202124;
}

.minimal-settings-main .native-settings-body {
  min-height: 0;
  overflow: auto;
  padding-right: 0 !important;
}

.minimal-settings-main .native-settings-card {
  border-radius: 18px !important;
  padding: 16px !important;
  background: #ffffff !important;
  border: 1px solid rgba(218, 220, 224, 0.82) !important;
  box-shadow: 0 1px 2px rgba(60,64,67,0.06) !important;
}

.minimal-settings-main .native-settings-card h3 {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #202124;
}

.minimal-settings-main .native-settings-readout,
.minimal-settings-main .native-settings-callout {
  background: #f8f9fa !important;
  border: 1px solid rgba(218, 220, 224, 0.82) !important;
  box-shadow: none !important;
}

.minimal-settings-main .field input,
.minimal-settings-main .field select,
.minimal-settings-main .field textarea {
  background: #ffffff !important;
  border-color: #dadce0 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  color: #202124 !important;
}

.minimal-settings-main .field input:focus,
.minimal-settings-main .field select:focus,
.minimal-settings-main .field textarea:focus {
  border-color: #1a73e8 !important;
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.12) !important;
}

.native-settings-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px !important;
  color: #5f6368 !important;
}

.native-settings-hint::before {
  content: '?';
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef3fd;
  color: #1a73e8;
  font-weight: 700;
  font-size: 12px;
}

@media (max-width: 1120px) {
  .auth-google-reference-card {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
    gap: 28px !important;
    padding: 30px 26px 24px !important;
  }

  .auth-google-reference-form,
  .auth-google-reference-register-form {
    width: 100% !important;
  }

  .auth-google-reference-copy h1 {
    font-size: 40px !important;
  }
}

@media (max-width: 860px) {
  .native-settings-shell-minimal {
    grid-template-columns: 1fr !important;
  }

  .native-settings-tabbar-vertical {
    flex-direction: row;
    overflow: auto;
  }

  .native-settings-tabbar-vertical button {
    min-width: 140px !important;
  }
}

@media (max-width: 760px) {
  .auth-google-reference-screen {
    padding: 20px 16px 18px !important;
  }

  .auth-google-reference-shell {
    width: calc(100vw - 32px) !important;
    gap: 18px !important;
  }

  .auth-google-reference-card {
    width: 100% !important;
    padding: 22px 18px 18px !important;
    border-radius: 22px !important;
  }

  .auth-google-reference-copy h1 {
    font-size: 34px !important;
  }

  .auth-google-reference-actions {
    flex-direction: column-reverse;
    align-items: stretch !important;
  }

  .auth-actions-left {
    min-height: 0;
  }

  .auth-account-entry-menu {
    left: 0;
    right: 0;
    width: auto;
  }

  .auth-google-reference-card .primary {
    width: 100%;
  }

  .minimal-settings-main {
    padding: 14px !important;
  }
}

/* r66 auth/taskview/sync polish */
.auth-panel[hidden],
.auth-login-stage[hidden] {
  display: none !important;
}

.auth-google-shell-screen {
  min-height: 100vh;
  display: flex !important;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(48px, 9vh, 84px) 24px 28px !important;
  background: #f0f4f9 !important;
}

.auth-google-shell {
  width: min(1040px, calc(100vw - 48px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.auth-google-card {
  width: 100%;
  min-height: 416px;
  display: grid;
  grid-template-columns: minmax(250px, 360px) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 92px);
  align-items: start;
  padding: 42px 40px 34px;
  border-radius: 28px;
  background: rgba(255,255,255,0.92);
  border: 1px solid #dadce0;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.18), 0 8px 32px rgba(60, 64, 67, 0.10);
}

.auth-google-brand {
  display: grid;
  align-content: start;
  gap: 24px;
}

.auth-google-wordmark {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #dadce0;
  background: #ffffff;
  color: #5f6368;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.auth-google-brand-copy {
  display: grid;
  gap: 12px;
}

.auth-google-brand-copy h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #202124;
}

.auth-google-brand-copy p {
  margin: 0;
  max-width: 16ch;
  font-size: 18px;
  line-height: 1.45;
  color: #444746;
}

.auth-google-identity {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #dadce0;
  background: #ffffff;
  color: #202124;
  box-shadow: none;
}

.auth-google-identity:hover,
.auth-google-identity:focus-visible {
  border-color: #1a73e8;
  background: #f8fbff;
  outline: none;
}

.auth-google-identity-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #e8f0fe;
  color: #1a73e8;
  font-size: 12px;
}

.auth-google-identity-copy {
  display: grid;
  gap: 2px;
  text-align: left;
}

.auth-google-identity-copy strong {
  font-size: 14px;
  font-weight: 600;
}

.auth-google-identity-copy small {
  font-size: 12px;
  color: #5f6368;
}

.auth-google-content {
  display: grid;
  align-items: start;
}

.auth-google-form,
.auth-google-register-form {
  width: min(360px, 100%);
  justify-self: end;
  display: grid;
  gap: 20px;
}

.auth-google-register-form {
  width: min(440px, 100%);
}

.auth-google-register-head {
  display: grid;
  gap: 8px;
}

.auth-google-register-head h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #202124;
}

.auth-google-register-head p {
  margin: 0;
  font-size: 15px;
  color: #5f6368;
}

.auth-google-register-grid {
  display: grid;
  gap: 16px;
}

.auth-google-field {
  display: grid;
  gap: 8px;
}

.auth-google-field > span {
  font-size: 13px;
  color: #5f6368;
}

.auth-google-input-wrap {
  position: relative;
}

.auth-google-input-wrap input,
.auth-google-field input,
.auth-google-field textarea,
.auth-google-field select {
  width: 100%;
  min-height: 56px;
  padding: 18px 48px 14px 14px;
  border-radius: 4px;
  border: 1px solid #dadce0;
  background: #ffffff;
  color: #202124;
  font: inherit;
  box-sizing: border-box;
}

.auth-google-field textarea {
  min-height: 110px;
  padding: 14px;
  resize: vertical;
}

.auth-google-input-wrap input:focus,
.auth-google-field input:focus,
.auth-google-field textarea:focus,
.auth-google-field select:focus {
  border-color: #1a73e8;
  box-shadow: inset 0 0 0 1px #1a73e8;
  outline: none;
}

.auth-google-floating-label {
  position: absolute;
  left: 10px;
  top: 18px;
  padding: 0 4px;
  background: #ffffff;
  font-size: 16px;
  line-height: 1;
  color: #5f6368;
  pointer-events: none;
  transition: top 160ms ease, font-size 160ms ease, color 160ms ease;
}

.auth-google-floating-field input:focus + .auth-google-floating-label,
.auth-google-floating-field input:not(:placeholder-shown) + .auth-google-floating-label {
  top: -8px;
  font-size: 12px;
  color: #1a73e8;
}

.auth-google-floating-field input:not(:focus):not(:placeholder-shown) + .auth-google-floating-label {
  color: #5f6368;
}

.auth-login-stage-stack {
  position: relative;
  min-height: 176px;
}

.auth-login-stage {
  display: grid;
  gap: 24px;
  align-content: start;
  opacity: 1;
  transform: translateY(0);
}

.auth-login-stage.is-entering {
  animation: authStageEnter 240ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.auth-login-stage.is-leaving {
  pointer-events: none;
  animation: authStageLeave 240ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes authStageEnter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes authStageLeave {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-8px); }
}

.auth-google-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.auth-google-actions .primary {
  min-width: 108px;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 24px;
  background: #1a73e8;
  color: #ffffff;
}

.auth-google-actions .primary:hover,
.auth-google-actions .primary:focus-visible {
  background: #1765cc;
}

.auth-google-actions .link-button {
  min-height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1a73e8;
  box-shadow: none;
}

.auth-google-actions .link-button:hover,
.auth-google-actions .link-button:focus-visible {
  background: transparent;
  color: #1558b0;
}

.auth-google-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 4px;
  font-size: 13px;
  color: #5f6368;
}

.auth-google-language,
.auth-google-links button {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
}

.auth-google-language {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.auth-google-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.auth-account-expiry {
  font-size: 11px !important;
  color: #5f6368 !important;
}

.workspace-desktop-preview,
.workspace-preview,
.workspace-loading-preview-surface,
.workspace-taskview-desktop-canvas,
.workspace-taskview-empty-preview {
  position: relative;
  min-height: 158px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(189, 215, 255, 0.18);
  background:
    radial-gradient(circle at 18% 24%, color-mix(in srgb, var(--workspace-accent, #60a5fa) 18%, transparent), transparent 28%),
    radial-gradient(circle at 82% 76%, rgba(56, 189, 248, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(21, 33, 53, 0.96), rgba(6, 12, 24, 0.98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.workspace-loading-preview-surface,
.workspace-taskview-desktop-canvas {
  min-height: 132px;
}

.workspace-desktop-thumb-backdrop,
.workspace-desktop-thumb-grid,
.workspace-desktop-thumb-icons,
.workspace-desktop-thumb-taskbar,
.workspace-desktop-thumb-window {
  position: absolute;
}

.workspace-desktop-thumb-backdrop {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.32;
}

.workspace-desktop-thumb-grid {
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0));
}

.workspace-desktop-thumb-icons {
  top: 12px;
  left: 12px;
  display: inline-flex;
  gap: 8px;
}

.workspace-desktop-thumb-icons span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.08);
}

.workspace-desktop-thumb-window {
  border-radius: 14px;
  border: 1px solid rgba(196, 226, 255, 0.20);
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(10,16,28,0.62));
  box-shadow: 0 14px 26px rgba(2, 7, 18, 0.28), inset 0 1px 0 rgba(255,255,255,0.18);
  overflow: hidden;
}

.workspace-desktop-thumb-window.active {
  border-color: color-mix(in srgb, var(--workspace-accent, #60a5fa) 56%, rgba(196, 226, 255, 0.22));
  box-shadow: 0 18px 30px rgba(2, 7, 18, 0.34), 0 0 0 1px rgba(96, 165, 250, 0.18), inset 0 1px 0 rgba(255,255,255,0.24);
}

.workspace-desktop-thumb-window-head {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 0 8px;
  background: rgba(9, 15, 25, 0.42);
  color: rgba(244, 248, 255, 0.92);
  font-size: 11px;
}

.workspace-desktop-thumb-window-head small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-desktop-thumb-taskbar {
  left: 10px;
  right: 10px;
  bottom: 10px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.14);
}

.workspace-desktop-thumb-empty {
  position: absolute;
  inset: auto 0 28px;
  text-align: center;
  font-size: 12px;
  color: rgba(215, 229, 247, 0.78);
}

.workspace-taskview-overlay {
  position: absolute;
  inset: 0;
  z-index: 3100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.workspace-taskview-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.workspace-taskview-overlay.is-closing {
  opacity: 0;
  pointer-events: none;
}

.workspace-taskview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 11, 20, 0.44);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.workspace-taskview-surface {
  position: absolute;
  inset: 36px 32px 28px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 18px;
  color: #f8fbff;
}

.workspace-taskview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.workspace-taskview-title {
  display: grid;
  gap: 4px;
}

.workspace-taskview-title strong {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.workspace-taskview-title small {
  font-size: 13px;
  color: rgba(214, 229, 247, 0.8);
}

.workspace-taskview-close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(196, 226, 255, 0.18);
  background: rgba(255,255,255,0.08);
  color: #f8fbff;
  box-shadow: none;
}

.workspace-taskview-close:hover,
.workspace-taskview-close:focus-visible {
  background: rgba(255,255,255,0.14);
}

.workspace-taskview-stage {
  min-height: 0;
}

.workspace-taskview-window-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  min-height: 100%;
  align-content: start;
}

.workspace-taskview-window-tile {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(196, 226, 255, 0.16);
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 14px 36px rgba(2, 7, 18, 0.18);
  text-align: left;
}

.workspace-taskview-window-tile:hover,
.workspace-taskview-window-tile:focus-visible,
.workspace-taskview-window-tile.active {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.32);
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06));
}

.workspace-taskview-window-surface {
  min-height: 170px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(196, 226, 255, 0.18);
  background: linear-gradient(180deg, rgba(18, 30, 49, 0.96), rgba(5, 11, 22, 0.98));
}

.workspace-taskview-window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 10px;
  background: rgba(255,255,255,0.08);
  font-size: 12px;
}

.workspace-taskview-window-bar small {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(244,248,255,0.88);
}

.workspace-taskview-window-body {
  min-height: 142px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    radial-gradient(circle at 20% 20%, rgba(125, 211, 252, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(7, 17, 32, 0.92), rgba(4, 9, 18, 0.96));
  background-size: 22px 22px, 22px 22px, auto, auto;
}

.workspace-taskview-window-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(244,248,255,0.92);
}

.workspace-taskview-empty {
  min-height: 100%;
  display: grid;
  place-items: center;
  gap: 16px;
}

.workspace-taskview-empty p {
  margin: 0;
  font-size: 14px;
  color: rgba(214, 229, 247, 0.82);
}

.workspace-taskview-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 260px);
  gap: 14px;
  align-items: end;
  overflow-x: auto;
  padding-bottom: 4px;
}

.workspace-taskview-desktop {
  display: grid;
  gap: 10px;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid rgba(196, 226, 255, 0.14);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  text-align: left;
  min-width: 0;
}

.workspace-taskview-desktop:hover,
.workspace-taskview-desktop:focus-visible,
.workspace-taskview-desktop.active {
  border-color: rgba(125, 211, 252, 0.30);
  background: linear-gradient(180deg, rgba(255,255,255,0.13), rgba(255,255,255,0.05));
  transform: translateY(-2px);
}

.workspace-taskview-desktop-copy {
  display: grid;
  gap: 3px;
}

.workspace-taskview-desktop-copy strong {
  font-size: 14px;
  font-weight: 600;
  color: #f8fbff;
}

.workspace-taskview-desktop-copy small {
  font-size: 12px;
  color: rgba(214, 229, 247, 0.74);
}

.window-header,
.window-titlebar {
  position: relative;
  z-index: 3;
}

.window-resizer {
  position: absolute !important;
  pointer-events: auto !important;
  user-select: none;
  touch-action: none;
  z-index: 8 !important;
}

.window-resizer-right {
  top: 46px;
  right: -2px;
  bottom: 22px;
  width: 12px !important;
  height: auto !important;
  cursor: ew-resize !important;
  background: transparent !important;
}

.window-resizer-bottom {
  left: 22px;
  right: 46px;
  bottom: -2px;
  height: 12px !important;
  width: auto !important;
  cursor: ns-resize !important;
  background: transparent !important;
}

.window-resizer-corner {
  right: 0 !important;
  bottom: 0 !important;
  width: 26px !important;
  height: 26px !important;
  cursor: nwse-resize !important;
  background:
    linear-gradient(135deg, transparent 0 44%, rgba(197, 226, 255, 0.86) 46% 50%, transparent 52% 60%, rgba(197, 226, 255, 0.62) 62% 66%, transparent 68%) !important;
}

.window.maximized-window .window-resizer {
  display: none !important;
}

body.window-interacting iframe {
  pointer-events: none !important;
}

.native-settings-help-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.native-settings-help {
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid #d2e3fc;
  background: #eef3fd;
  color: #1a73e8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  box-shadow: none;
}

.native-settings-status {
  margin-top: 10px;
  font-size: 12px;
  color: #5f6368;
}

@media (max-width: 980px) {
  .auth-google-card {
    grid-template-columns: 1fr;
    gap: 30px;
    min-height: auto;
    padding: 32px 28px 28px;
  }

  .auth-google-form,
  .auth-google-register-form {
    width: 100%;
    justify-self: stretch;
  }

  .workspace-taskview-surface {
    inset: 26px 20px 20px;
  }
}

@media (max-width: 720px) {
  .auth-google-shell-screen {
    padding: 20px 16px 18px !important;
  }

  .auth-google-shell {
    width: calc(100vw - 32px);
    gap: 16px;
  }

  .auth-google-card {
    padding: 22px 18px 18px;
    border-radius: 22px;
  }

  .auth-google-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .auth-google-actions .primary {
    width: 100%;
  }

  .auth-google-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-google-links {
    gap: 16px;
    flex-wrap: wrap;
  }

  .workspace-taskview-surface {
    inset: 18px 14px 16px;
    gap: 14px;
  }

  .workspace-taskview-window-grid {
    grid-template-columns: 1fr;
  }
}


/* r68 capture/settings shortcuts */
.desktop-header-end {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 12px;
  margin-left: auto;
  min-width: min(760px, 64vw);
}

.desktop-header-quick-actions {
  display: inline-flex;
  align-items: stretch;
  gap: 8px;
  flex: 0 0 auto;
}

.desktop-quick-action {
  min-width: 72px;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 16px;
  border: 1px solid rgba(196, 226, 255, 0.16);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025)), rgba(9, 18, 32, 0.72);
  color: rgba(236, 245, 255, 0.92);
  box-shadow: 0 18px 38px rgba(3, 8, 20, 0.24), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: transform calc(120ms * var(--window-motion-scale, 1)) ease, background calc(120ms * var(--window-motion-scale, 1)) ease, border-color calc(120ms * var(--window-motion-scale, 1)) ease;
}

.desktop-quick-action span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.desktop-quick-action:hover,
.desktop-quick-action:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.34);
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04)), rgba(9, 18, 32, 0.78);
}

.desktop-shell.hide-desktop-resources .desktop-resources {
  display: none !important;
}

.desktop-shell.hide-header-quick-actions .desktop-header-quick-actions {
  display: none !important;
}

.desktop-shell.start-menu-compact .start-menu {
  width: min(580px, calc(100vw - 24px)) !important;
}

.desktop-shell.start-menu-compact .start-menu .start-menu-banner {
  padding: 10px !important;
}

.desktop-shell.start-menu-compact .start-menu .start-item,
.desktop-shell.start-menu-compact .start-menu .start-group-button,
.desktop-shell.start-menu-compact .start-menu .start-main-button,
.desktop-shell.start-menu-compact .start-menu .start-footer-button {
  min-height: 42px !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

.desktop-shell .desktop-surface {
  background-image:
    linear-gradient(rgba(148, 163, 184, var(--desktop-grid-opacity, 0.05)) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, var(--desktop-grid-opacity, 0.05)) 1px, transparent 1px) !important;
}

.desktop-shell .window.window-shell {
  border-radius: var(--window-corner-radius, 24px) !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, var(--window-shadow-strength, 0.42)), 0 2px 0 rgba(255,255,255,0.04) inset !important;
  transition-duration: calc(140ms * var(--window-motion-scale, 1)) !important;
}

.desktop-shell .window.window-shell.active-window {
  box-shadow: 0 34px 95px rgba(0,0,0,calc(var(--window-shadow-strength, 0.42) + 0.08)), 0 0 0 1px rgba(125,211,252,0.25), 0 0 48px rgba(14,165,233,0.14) !important;
}

.desktop-shell .window.window-shell,
.desktop-shell .window-header,
.desktop-shell .start-menu,
.desktop-shell .taskbar-app,
.desktop-shell .desktop-resource-card,
.desktop-shell .desktop-icon,
.desktop-shell .desktop-quick-action {
  transition-duration: calc(140ms * var(--window-motion-scale, 1)) !important;
}

.native-capture-app {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.native-capture-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1.08fr);
  gap: 16px;
  height: 100%;
  min-height: 0;
}

.native-capture-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}

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

.native-capture-actions {
  margin-top: auto;
}

.native-capture-preview-card {
  min-height: 0;
}

.native-capture-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.native-capture-preview-head small {
  color: var(--text-2);
}

.native-capture-preview-surface {
  min-height: 280px;
  height: 100%;
  border-radius: 20px;
  border: 1px solid rgba(196, 226, 255, 0.14);
  background: linear-gradient(180deg, rgba(5, 10, 20, 0.82), rgba(10, 16, 28, 0.9));
  display: grid;
  place-items: center;
  overflow: hidden;
}

.native-capture-preview-surface.ready {
  background: rgba(4, 10, 22, 0.82);
}

.native-capture-preview-surface img,
.native-capture-preview-surface video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.native-capture-placeholder {
  color: rgba(226, 237, 247, 0.62);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.native-capture-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-2);
  font-size: 13px;
}

.status-pill.recording {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.36);
  background: rgba(127, 29, 29, 0.32);
}

@media (max-width: 1280px) {
  .desktop-header-end {
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
  }

  .desktop-header-quick-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 900px) {
  .native-capture-shell {
    grid-template-columns: 1fr;
  }

  .native-capture-grid {
    grid-template-columns: 1fr;
  }
}


/* r69 media + office persistent native apps */
.media-office-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, .22);
  background: linear-gradient(180deg, rgba(15, 23, 42, .92), rgba(15, 23, 42, .76));
  backdrop-filter: blur(16px);
}

.media-office-toolbar strong {
  margin-right: 4px;
  letter-spacing: .02em;
}

.media-office-toolbar button,
.media-office-toolbar select,
.media-office-toolbar input[type="range"] {
  min-height: 28px;
}

.media-office-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(226, 232, 240, .88);
  font-size: 12px;
}

.media-office-toolbar .toolbar-spacer {
  flex: 1 1 24px;
}

.office-divider {
  width: 1px;
  align-self: stretch;
  min-height: 26px;
  background: rgba(148, 163, 184, .26);
}

.media-office-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.media-office-list button {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}

.video-player-app,
.model-viewer-app,
.powerpoints-app,
.word-processor-app {
  min-height: 100%;
  color: rgba(241, 245, 249, .95);
  background:
    radial-gradient(circle at 14% 8%, rgba(59, 130, 246, .16), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(168, 85, 247, .12), transparent 36%),
    linear-gradient(135deg, rgba(15, 23, 42, .98), rgba(17, 24, 39, .96));
}

.video-player-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 260px);
  gap: 14px;
  height: calc(100% - 52px);
  min-height: 360px;
  padding: 14px;
  box-sizing: border-box;
}

.video-player-stage video {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: contain;
  border-radius: 18px;
  background: #020617;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  border: 1px solid rgba(148, 163, 184, .22);
}

.video-player-side {
  padding: 14px;
  overflow: auto;
}

.video-player-side .pane-title,
.deck-sidebar .pane-title {
  font-weight: 700;
  margin-bottom: 8px;
}

.model-viewer-stage {
  position: relative;
  height: calc(100% - 52px);
  min-height: 420px;
  overflow: hidden;
}

.model-viewer-stage canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

.model-viewer-stage canvas:active {
  cursor: grabbing;
}

.model-viewer-help {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(226, 232, 240, .88);
  font-size: 12px;
}

.powerpoints-app {
  display: flex;
  flex-direction: column;
}

.deck-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 14px;
  flex: 1 1 auto;
  min-height: 0;
  padding: 14px;
  box-sizing: border-box;
}

.deck-sidebar {
  min-height: 0;
  overflow: auto;
  padding: 10px;
}

.deck-slide-thumb {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 14px;
  background: rgba(15, 23, 42, .6);
  color: rgba(241, 245, 249, .92);
  text-align: left;
  cursor: pointer;
}

.deck-slide-thumb.active {
  border-color: rgba(96, 165, 250, .86);
  box-shadow: 0 0 0 2px rgba(96, 165, 250, .2);
}

.deck-slide-thumb .slide {
  font-size: 11px;
  color: rgba(148, 163, 184, .95);
}

.deck-editor {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 96px;
  gap: 12px;
  min-height: 0;
}

.deck-stage {
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: auto;
}

.deck-slide {
  width: min(960px, 92%);
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  padding: 54px 64px;
  box-sizing: border-box;
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 255, 255, .2), transparent 32%),
    linear-gradient(135deg, rgba(30, 64, 175, .96), rgba(88, 28, 135, .94));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .38);
  border: 1px solid rgba(255, 255, 255, .18);
}

.deck-slide input,
.deck-slide textarea {
  width: 100%;
  box-sizing: border-box;
  border: none;
  outline: none;
  color: #f8fafc;
  background: transparent;
  resize: none;
}

.deck-slide input {
  font-size: clamp(26px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.05;
}

.deck-slide textarea {
  min-height: 52%;
  margin-top: 24px;
  font-size: clamp(16px, 2vw, 26px);
  line-height: 1.45;
}

.deck-slide input::placeholder,
.deck-slide textarea::placeholder {
  color: rgba(226, 232, 240, .55);
}

.deck-notes {
  width: 100%;
  box-sizing: border-box;
  border-radius: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, .28);
  background: rgba(15, 23, 42, .64);
  color: rgba(241, 245, 249, .96);
  resize: none;
}

.powerpoints-app.presenting .deck-layout {
  display: block;
}

.powerpoints-app.presenting .deck-sidebar,
.powerpoints-app.presenting .deck-notes {
  display: none;
}

.powerpoints-app.presenting .deck-stage {
  height: calc(100vh - 72px);
}

.word-processor-app {
  display: flex;
  flex-direction: column;
}

.word-workspace {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 28px;
  box-sizing: border-box;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .06), transparent 42%),
    rgba(2, 6, 23, .42);
}

.word-page {
  width: min(820px, 100%);
  min-height: 1000px;
  margin: 0 auto;
  padding: 72px 78px;
  box-sizing: border-box;
  border-radius: 12px;
  background: rgba(248, 250, 252, .98);
  color: #111827;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .38);
  outline: none;
  line-height: 1.65;
  font-size: 16px;
}

.word-page h1,
.word-page h2,
.word-page h3 {
  line-height: 1.18;
}

.word-workspace.focus-mode {
  padding: 0;
  background: rgba(248, 250, 252, .98);
}

.word-workspace.focus-mode .word-page {
  width: 100%;
  max-width: none;
  min-height: 100%;
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 840px) {
  .video-player-stage,
  .deck-layout {
    grid-template-columns: 1fr;
  }

  .video-player-side {
    max-height: 180px;
  }

  .deck-sidebar {
    max-height: 160px;
  }

  .word-workspace {
    padding: 14px;
  }

  .word-page {
    padding: 44px 34px;
  }
}


/* r70 owlspace glyph auth/taskbar upgrade */
.owlspace-glyph {
  --owl-size: 48px;
  --owl-tilt-x: 0deg;
  --owl-tilt-y: 0deg;
  --owl-gaze-x: 0px;
  --owl-gaze-y: 0px;
  --owl-float-y: 0px;
  --owl-glow-strength: 0.46;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--owl-size);
  height: calc(var(--owl-size) * 1.02);
  perspective: 560px;
  transform-style: preserve-3d;
  filter: drop-shadow(0 8px 18px rgba(15, 23, 42, 0.20));
}

.owlspace-glyph--auth {
  --owl-size: 60px;
}

.owlspace-glyph--taskbar {
  --owl-size: 24px;
}

.owlspace-glyph-stage {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: translateY(var(--owl-float-y)) rotateX(var(--owl-tilt-x)) rotateY(var(--owl-tilt-y));
}

.owlspace-glyph-aura,
.owlspace-glyph-floor,
.owlspace-glyph-body,
.owlspace-glyph-head,
.owlspace-glyph-face,
.owlspace-glyph-ear,
.owlspace-glyph-eye,
.owlspace-glyph-iris,
.owlspace-glyph-pupil,
.owlspace-glyph-spark,
.owlspace-glyph-beak {
  position: absolute;
  box-sizing: border-box;
}

.owlspace-glyph-aura {
  inset: 8%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(110, 168, 254, calc(var(--owl-glow-strength) * 0.95)) 0%, rgba(110, 168, 254, 0.14) 34%, rgba(110, 168, 254, 0) 72%);
  filter: blur(8px);
  opacity: calc(0.68 + (var(--owl-glow-strength) * 0.22));
  transform: translateZ(-24px) scale(1.06);
}

.owlspace-glyph-floor {
  left: 16%;
  right: 16%;
  bottom: 2%;
  height: 14%;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.38), rgba(15, 23, 42, 0) 72%);
  filter: blur(6px);
  transform: translateZ(-32px);
}

.owlspace-glyph-body {
  left: 18%;
  right: 18%;
  bottom: 10%;
  height: 44%;
  border-radius: 42% 42% 38% 38% / 34% 34% 56% 56%;
  background: linear-gradient(180deg, #a17a46 0%, #8b6537 58%, #6e4c28 100%);
  box-shadow: inset 0 10px 18px rgba(255,255,255,0.16), inset 0 -8px 16px rgba(55, 34, 14, 0.22), 0 12px 20px rgba(15, 23, 42, 0.18);
  transform: translateZ(14px);
}

.owlspace-glyph-head {
  left: 11%;
  right: 11%;
  top: 8%;
  height: 60%;
  border-radius: 44% 44% 36% 36% / 42% 42% 34% 34%;
  background: linear-gradient(180deg, #9f7a47 0%, #8c6739 62%, #735029 100%);
  box-shadow: inset 0 12px 18px rgba(255,255,255,0.15), inset 0 -10px 16px rgba(54, 34, 13, 0.24), 0 12px 22px rgba(15, 23, 42, 0.16);
  transform: translateZ(30px);
}

.owlspace-glyph-face {
  left: 16%;
  right: 16%;
  top: 14%;
  bottom: 14%;
  border-radius: 44% 44% 34% 34% / 40% 40% 32% 32%;
  background: radial-gradient(circle at 50% 30%, rgba(255, 244, 223, 0.24), rgba(255, 244, 223, 0.04) 62%, rgba(255, 244, 223, 0) 78%);
  transform: translateZ(4px);
}

.owlspace-glyph-ear {
  top: -2%;
  width: 22%;
  height: 28%;
  border-radius: 62% 62% 10% 10%;
  background: linear-gradient(180deg, #987245 0%, #7a5530 100%);
  box-shadow: inset 0 6px 10px rgba(255,255,255,0.12), 0 4px 6px rgba(15, 23, 42, 0.12);
}

.owlspace-glyph-ear--left {
  left: 9%;
  transform: translateZ(16px) rotate(-18deg) skewX(-8deg);
}

.owlspace-glyph-ear--right {
  right: 9%;
  transform: translateZ(16px) rotate(18deg) skewX(8deg);
}

.owlspace-glyph-eye {
  top: 28%;
  width: 30%;
  height: 28%;
  border-radius: 999px;
  background: radial-gradient(circle at 42% 32%, #fffef6 0%, #f6ecd0 56%, #e7d3ab 100%);
  box-shadow: inset 0 4px 10px rgba(255,255,255,0.58), inset 0 -4px 8px rgba(120, 93, 52, 0.18), 0 4px 8px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  transform: translateZ(38px);
}

.owlspace-glyph-eye::after {
  content: '';
  position: absolute;
  left: -4%;
  right: -4%;
  top: -62%;
  height: 74%;
  border-radius: 0 0 50% 50%;
  background: linear-gradient(180deg, #a37e49 0%, #876336 100%);
  transform: translateY(-100%);
  animation: owlspaceBlink 8.2s infinite;
}

.owlspace-glyph-eye--left {
  left: 12%;
}

.owlspace-glyph-eye--right {
  right: 12%;
}

.owlspace-glyph-iris {
  left: 50%;
  top: 50%;
  width: 58%;
  height: 58%;
  border-radius: 999px;
  background: radial-gradient(circle at 34% 32%, #f4bd6f 0%, #d48c2a 58%, #7a4d17 100%);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.26), 0 1px 2px rgba(15, 23, 42, 0.12);
  transform: translate(calc(-50% + var(--owl-gaze-x)), calc(-50% + var(--owl-gaze-y)));
}

.owlspace-glyph-pupil {
  left: 50%;
  top: 50%;
  width: 44%;
  height: 44%;
  border-radius: 999px;
  background: radial-gradient(circle, #030712 0%, #141923 68%, #000000 100%);
  transform: translate(-50%, -50%);
}

.owlspace-glyph-spark {
  left: 30%;
  top: 22%;
  width: 16%;
  height: 16%;
  border-radius: 999px;
  background: rgba(255,255,255,0.96);
  filter: blur(0.3px);
}

.owlspace-glyph-beak {
  left: 50%;
  bottom: 24%;
  width: 17%;
  height: 16%;
  background: linear-gradient(180deg, #1f232b 0%, #05070a 100%);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  transform: translateX(-50%) translateZ(42px);
}

@keyframes owlspaceBlink {
  0%, 45%, 48%, 88%, 91%, 100% {
    transform: translateY(-100%);
  }
  46%, 89% {
    transform: translateY(34%);
  }
}

.auth-google-shell-screen {
  padding: clamp(56px, 9vh, 88px) 24px 30px !important;
  background: linear-gradient(180deg, #f7faff 0%, #f0f4f9 100%) !important;
}

.auth-google-shell {
  width: min(1296px, calc(100vw - 64px));
  gap: 22px;
}

.auth-google-card {
  min-height: 548px;
  grid-template-columns: minmax(320px, 420px) minmax(540px, 1fr);
  gap: clamp(54px, 7vw, 112px);
  align-items: center;
  padding: 50px 54px 40px;
  border-radius: 32px;
  background: #ffffff;
  border: 1px solid #dadce0;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.16), 0 18px 52px rgba(60, 64, 67, 0.10), inset 0 1px 0 rgba(255,255,255,0.78);
}

.auth-google-card[data-mode="register"] {
  align-items: start;
}

.auth-google-brand {
  gap: 20px;
  padding-top: 4px;
}

.auth-google-brand-mark-row {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  min-height: 60px;
}

.auth-google-brand-product {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #202124;
}

.auth-google-brand-copy {
  gap: 10px;
}

.auth-google-brand-copy h1 {
  font-size: clamp(52px, 6vw, 62px);
  line-height: 1.02;
}

.auth-google-brand-copy p {
  max-width: 18ch;
  font-size: 19px;
  line-height: 1.48;
}

.auth-google-content {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.auth-google-form,
.auth-google-register-form {
  gap: 24px;
}

.auth-google-form {
  width: min(560px, 100%);
}

.auth-google-register-form {
  width: min(640px, 100%);
}

.auth-login-stage-stack {
  min-height: 228px;
}

.auth-google-input-wrap input,
.auth-google-field input,
.auth-google-field textarea,
.auth-google-field select {
  min-height: 72px;
  padding: 30px 54px 14px 16px;
  border-radius: 8px;
  border-color: #c9ced6;
  font-size: 18px;
}

.auth-google-field textarea {
  min-height: 128px;
  padding: 16px;
}

.auth-google-input-wrap input:focus,
.auth-google-field input:focus,
.auth-google-field textarea:focus,
.auth-google-field select:focus {
  box-shadow: inset 0 0 0 1px #1a73e8, 0 0 0 4px rgba(26, 115, 232, 0.10);
}

.auth-google-floating-label {
  left: 11px;
  top: 26px;
  font-size: 18px;
}

.auth-google-floating-field input:focus + .auth-google-floating-label,
.auth-google-floating-field input:not(:placeholder-shown) + .auth-google-floating-label {
  top: -9px;
  font-size: 12px;
}

.auth-account-suggestions-toggle {
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f8f9fa;
  color: #5f6368;
}

.auth-account-suggestions-toggle:hover,
.auth-account-suggestions-toggle:focus-visible {
  background: #e8f0fe;
  color: #1a73e8;
}

.auth-google-identity {
  min-height: 38px;
  padding: 0 14px 0 10px;
}

.auth-google-actions {
  padding-top: 4px;
}

.auth-google-actions .primary {
  min-width: 116px;
  min-height: 48px;
  font-size: 15px;
}

.auth-google-actions .link-button {
  font-size: 14px;
}

.auth-google-footer {
  width: min(1296px, calc(100vw - 64px));
  padding: 0 8px;
}

.start-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 132px;
  padding: 0 18px !important;
  color: #062341 !important;
  background: linear-gradient(135deg, rgba(255,255,255,0.32), rgba(188, 232, 255, 0.26) 32%, rgba(73, 169, 255, 0.92) 100%) !important;
  border-color: rgba(234, 246, 255, 0.42) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.82), 0 16px 28px rgba(22, 88, 154, 0.30), 0 0 0 1px rgba(255,255,255,0.10) !important;
}

.start-button-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  flex: 0 0 auto;
  overflow: hidden;
  line-height: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.24));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.78), 0 8px 18px rgba(20, 71, 129, 0.18);
}

.start-button-label {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.start-button.is-open {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.88), 0 18px 34px rgba(22, 88, 154, 0.34), 0 0 0 1px rgba(255,255,255,0.18) !important;
}

.start-button.is-open .start-button-mark {
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.34));
}

.desktop-shell.compact-taskbar .start-button,
.compact-taskbar .start-button {
  min-width: 58px !important;
  justify-content: center;
  gap: 0;
  padding: 0 10px !important;
}

.desktop-shell.compact-taskbar .start-button-label,
.compact-taskbar .start-button-label {
  display: none;
}

@media (max-width: 1140px) {
  .auth-google-card {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 34px;
    padding: 34px 30px 28px;
  }

  .auth-google-content {
    justify-content: stretch;
  }

  .auth-google-form,
  .auth-google-register-form {
    width: 100%;
    justify-self: stretch;
  }

  .auth-google-brand-copy h1 {
    font-size: 44px;
  }

  .auth-google-brand-copy p {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .owlspace-glyph--auth {
    --owl-size: 52px;
  }

  .auth-google-shell-screen {
    padding: 22px 16px 18px !important;
  }

  .auth-google-shell {
    width: calc(100vw - 32px);
    gap: 18px;
  }

  .auth-google-card {
    padding: 24px 18px 18px;
    border-radius: 24px;
  }

  .auth-google-brand-mark-row {
    gap: 12px;
    min-height: 52px;
  }

  .auth-google-brand-product {
    font-size: 16px;
  }

  .auth-google-brand-copy h1 {
    font-size: 38px;
  }

  .auth-google-brand-copy p {
    font-size: 16px;
  }

  .auth-google-input-wrap input,
  .auth-google-field input,
  .auth-google-field textarea,
  .auth-google-field select {
    min-height: 64px;
    padding: 24px 48px 12px 14px;
    font-size: 16px;
  }

  .auth-google-floating-label {
    top: 22px;
    font-size: 16px;
  }

  .auth-google-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .auth-google-actions .primary {
    width: 100%;
  }

  .auth-google-footer {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .owlspace-glyph-stage,
  .start-button,
  .auth-login-stage,
  .auth-google-card,
  .auth-google-actions .primary {
    transition: none !important;
    animation: none !important;
  }

  .owlspace-glyph-eye::after {
    animation: none !important;
  }
}


/* r71 owlspace 3d logo + sheets + legacy upgrade */
.owlspace-glyph {
  --owl-size: 56px;
  position: relative;
  display: inline-flex;
  width: var(--owl-size);
  height: var(--owl-size);
  flex: 0 0 auto;
  pointer-events: none;
  filter: drop-shadow(0 10px 20px rgba(15, 23, 42, 0.22));
}

.owlspace-glyph--taskbar {
  --owl-size: 34px;
}

.owlspace-glyph--desktop {
  --owl-size: 46px;
}

.owlspace-glyph--auth {
  --owl-size: 62px;
}

.owlspace-glyph-canvas-shell {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  display: block;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 20%, rgba(255,255,255,0.28), rgba(255,255,255,0) 32%),
    linear-gradient(180deg, rgba(255,255,255,0.84), rgba(255,255,255,0.28));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.78),
    0 10px 18px rgba(14, 71, 128, 0.18);
}

.owlspace-glyph-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.owlspace-glyph-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity 160ms ease;
}

.owlspace-glyph-fallback-face {
  position: relative;
  width: 68%;
  height: 66%;
  border-radius: 48% 48% 54% 54%;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(210,236,255,.88));
  box-shadow: inset 0 -5px 10px rgba(88, 122, 173, .12), 0 8px 18px rgba(15, 23, 42, .18);
}

.owlspace-glyph-fallback-eye {
  position: absolute;
  top: 27%;
  width: 26%;
  height: 26%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.96), rgba(226,232,240,.88));
  box-shadow: inset 0 -2px 4px rgba(30, 41, 59, .12);
}

.owlspace-glyph-fallback-eye--left { left: 18%; }
.owlspace-glyph-fallback-eye--right { right: 18%; }
.owlspace-glyph-fallback-eye > span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48%;
  height: 48%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(125,211,252,.96), rgba(37,99,235,.96));
  box-shadow: 0 0 0 2px rgba(15, 23, 42, .20);
}

.owlspace-glyph-fallback-beak {
  position: absolute;
  left: 50%;
  bottom: 16%;
  width: 18%;
  height: 14%;
  transform: translateX(-50%);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  background: linear-gradient(180deg, #fbbf24, #f59e0b);
  filter: drop-shadow(0 2px 4px rgba(120, 53, 15, .24));
}

.owlspace-glyph.is-ready .owlspace-glyph-fallback {
  opacity: 0;
}

.owlspace-logo {
  display: inline-flex;
  min-width: 0;
}

.owlspace-logo-shell {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  color: #072645;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.62), rgba(203, 233, 255, 0.44) 44%, rgba(124, 195, 255, 0.32) 100%);
  border: 1px solid rgba(227, 242, 255, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.8),
    0 18px 30px rgba(11, 70, 126, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.owlspace-logo-copy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.owlspace-logo-wordmark {
  display: inline-block;
  min-width: 0;
  font-size: 1.06rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  white-space: nowrap;
}

.owlspace-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #0c3f6b;
  background: rgba(255,255,255,0.58);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
}

.owlspace-logo--auth .owlspace-logo-shell {
  padding: 8px 18px 8px 10px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(236, 243, 252, 0.88) 42%, rgba(210, 229, 249, 0.78) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.92),
    0 18px 38px rgba(32, 79, 134, 0.12);
}

.owlspace-logo--desktop .owlspace-logo-shell {
  padding-right: 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.28), rgba(195, 233, 255, 0.24) 40%, rgba(88, 173, 255, 0.26) 100%);
  color: #eff6ff;
  border-color: rgba(225, 242, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.2),
    0 14px 28px rgba(2, 10, 24, 0.28);
}

.owlspace-logo--desktop .owlspace-logo-badge {
  color: #d9efff;
  background: rgba(255,255,255,0.12);
}

.desktop-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.desktop-brand-stack {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.desktop-brand .brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #eff7ff;
}

.desktop-brand .brand-subtitle {
  max-width: 28ch;
  color: rgba(228, 241, 255, 0.78);
}

.auth-google-brand-mark-row {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 72px;
}

.start-button-mark {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  padding: 4px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.38));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.84), 0 10px 20px rgba(20, 71, 129, 0.18);
}

.start-button-mark .owlspace-glyph {
  --owl-size: 34px;
}

.workspace-taskview-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.workspace-taskview-legacy {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.3);
  background: linear-gradient(180deg, rgba(44, 119, 188, 0.28), rgba(255,255,255,0.08));
  color: #f8fbff;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14);
}

.workspace-taskview-legacy:hover,
.workspace-taskview-legacy:focus-visible {
  background: linear-gradient(180deg, rgba(61, 146, 221, 0.34), rgba(255,255,255,0.1));
}

.media-office-toolbar .office-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(15, 23, 42, 0.1);
  margin: 0 2px;
}

.sheets-app {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  height: 100%;
  padding: 14px;
  overflow: hidden;
}

.sheets-tabbar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.sheets-tabbar button {
  flex: 0 0 auto;
}

.sheets-tab {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255,255,255,0.72);
  color: #0f172a;
  font-weight: 700;
  box-shadow: none;
}

.sheets-tab.active {
  background: linear-gradient(135deg, rgba(59,130,246,0.18), rgba(168,85,247,0.18));
  border-color: rgba(59,130,246,0.3);
}

.sheets-grid-shell {
  min-height: 0;
  overflow: auto;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255,255,255,0.75);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.66);
}

.sheets-grid {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.sheets-grid th,
.sheets-grid td {
  border-right: 1px solid rgba(148, 163, 184, 0.16);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  padding: 0;
  min-width: 128px;
  height: 36px;
  background: rgba(255,255,255,0.66);
}

.sheets-grid th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(248,250,252,0.98), rgba(241,245,249,0.94));
  font-size: 12px;
  color: #475569;
  text-align: center;
}

.sheets-grid th:first-child {
  left: 0;
  z-index: 3;
  min-width: 58px;
  max-width: 58px;
}

.sheets-grid td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 58px;
  max-width: 58px;
  background: linear-gradient(180deg, rgba(248,250,252,0.98), rgba(241,245,249,0.94));
  text-align: center;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.sheets-cell-input {
  width: 100%;
  min-width: 128px;
  height: 36px;
  border: 0;
  outline: none;
  background: transparent;
  padding: 0 10px;
  border-radius: 0;
  box-shadow: none;
  font: 500 14px/1.3 Inter, system-ui, sans-serif;
  color: #0f172a;
}

.sheets-grid td:focus-within {
  box-shadow: inset 0 0 0 2px rgba(59,130,246,0.38);
  background: rgba(255,255,255,0.98);
}

.sheets-empty {
  padding: 18px;
  color: #64748b;
}

@media (max-width: 1140px) {
  .desktop-brand {
    gap: 12px;
  }

  .desktop-brand-stack {
    gap: 2px;
  }

  .owlspace-logo-wordmark {
    font-size: 0.98rem;
  }
}

@media (max-width: 760px) {
  .owlspace-glyph--auth {
    --owl-size: 54px;
  }

  .owlspace-logo-shell {
    gap: 10px;
    padding-right: 12px;
  }

  .auth-google-brand-mark-row {
    min-height: 60px;
  }

  .workspace-taskview-header-actions {
    gap: 8px;
  }

  .workspace-taskview-legacy {
    padding: 0 12px;
  }

  .sheets-grid th,
  .sheets-grid td,
  .sheets-cell-input {
    min-width: 112px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .owlspace-glyph,
  .owlspace-logo-shell,
  .workspace-taskview-legacy,
  .start-button {
    transition: none !important;
    animation: none !important;
  }
}

/* r72 window/settings/powerpoints polish */
.window-resizer,
.window-resizer-right,
.window-resizer-bottom,
.window-resizer-corner {
  background: transparent !important;
  background-image: none !important;
  background-repeat: no-repeat !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

.window-resizer-right {
  top: 44px !important;
  right: -4px !important;
  bottom: 18px !important;
  width: 14px !important;
}

.window-resizer-bottom {
  left: 18px !important;
  right: 18px !important;
  bottom: -4px !important;
  height: 14px !important;
}

.window-resizer-corner {
  right: -4px !important;
  bottom: -4px !important;
  width: 18px !important;
  height: 18px !important;
  cursor: nwse-resize !important;
}

.window-body::-webkit-resizer,
.window-body::-webkit-scrollbar-corner,
.native-settings-body::-webkit-resizer,
.native-settings-body::-webkit-scrollbar-corner,
.native-settings-sidebar::-webkit-resizer,
.native-settings-sidebar::-webkit-scrollbar-corner,
.deck-sidebar::-webkit-resizer,
.deck-sidebar::-webkit-scrollbar-corner,
.deck-stage::-webkit-resizer,
.deck-stage::-webkit-scrollbar-corner {
  background: transparent !important;
}

.start-button {
  min-width: 146px !important;
  gap: 14px !important;
  padding: 0 20px !important;
}

.start-button-mark {
  width: 50px !important;
  height: 50px !important;
  padding: 4px !important;
  border-radius: 18px !important;
}

.start-button-mark .owlspace-glyph {
  --owl-size: 40px !important;
}

.start-button-label {
  font-size: 14px;
}

.desktop-shell.compact-taskbar .start-button,
.compact-taskbar .start-button {
  min-width: 66px !important;
  padding: 0 10px !important;
}

.desktop-shell.compact-taskbar .start-button-mark,
.compact-taskbar .start-button-mark {
  width: 44px !important;
  height: 44px !important;
  border-radius: 16px !important;
}

.desktop-shell.compact-taskbar .start-button-mark .owlspace-glyph,
.compact-taskbar .start-button-mark .owlspace-glyph {
  --owl-size: 34px !important;
}

.native-settings-app,
.native-settings-minimal-app {
  height: 100%;
  min-height: 0;
  padding: 0 !important;
  background:
    radial-gradient(circle at 16% 10%, rgba(56, 189, 248, 0.10), transparent 24%),
    radial-gradient(circle at 84% 0%, rgba(99, 102, 241, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(10, 18, 33, 0.88), rgba(6, 11, 21, 0.94)) !important;
  color: #eef6ff !important;
}

.native-settings-shell-minimal {
  display: grid !important;
  grid-template-columns: 272px minmax(0, 1fr) !important;
  gap: 16px !important;
  height: 100%;
  min-height: 0;
  padding: 16px !important;
  align-items: stretch;
}

.native-settings-sidebar {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  align-content: stretch !important;
  gap: 16px !important;
  min-height: 0;
  overflow: hidden;
  padding: 20px !important;
  border-radius: 28px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04) 18%, rgba(9, 16, 28, 0.16) 100%),
    rgba(6, 14, 27, 0.72) !important;
  border: 1px solid rgba(196, 226, 255, 0.18) !important;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255,255,255,0.08) !important;
}

.native-settings-sidebar-head {
  gap: 8px !important;
}

.native-settings-eyebrow {
  display: inline-flex !important;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08) !important;
  color: rgba(215, 229, 244, 0.72) !important;
  box-shadow: inset 0 0 0 1px rgba(196, 226, 255, 0.12) !important;
}

.native-settings-sidebar-head h2 {
  font-size: 26px !important;
  letter-spacing: -0.03em !important;
  color: #f8fbff !important;
}

.native-settings-sidebar-head p {
  display: block !important;
  color: rgba(205, 221, 239, 0.68) !important;
}

.native-settings-tabbar-vertical {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  align-content: flex-start !important;
  gap: 8px !important;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.native-settings-tabbar-vertical button {
  display: grid !important;
  grid-template-columns: 28px 1fr !important;
  gap: 0 12px !important;
  align-items: center !important;
  min-height: 58px !important;
  padding: 12px 14px !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04)) !important;
  border: 1px solid rgba(196, 226, 255, 0.14) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 10px 24px rgba(0,0,0,0.12) !important;
  transform: none !important;
}

.native-settings-tabbar-vertical button span {
  width: 28px !important;
  height: 28px !important;
  background: rgba(255,255,255,0.08) !important;
  color: rgba(223,236,248,0.86) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10) !important;
}

.native-settings-tabbar-vertical button strong {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #f8fbff !important;
}

.native-settings-tabbar-vertical button small {
  display: block !important;
  color: rgba(205, 221, 239, 0.62) !important;
}

.native-settings-tabbar-vertical button.active,
.native-settings-tabbar-vertical button:hover,
.native-settings-tabbar-vertical button:focus-visible {
  background:
    linear-gradient(180deg, rgba(125, 211, 252, 0.24), rgba(255,255,255,0.08)),
    rgba(8, 16, 28, 0.52) !important;
  border-color: rgba(125, 211, 252, 0.34) !important;
  box-shadow: 0 18px 34px rgba(14, 165, 233, 0.16), inset 0 1px 0 rgba(255,255,255,0.12) !important;
  transform: translateY(-1px) !important;
}

.native-settings-sidebar-footer {
  padding-top: 12px;
  border-top: 1px solid rgba(196, 226, 255, 0.10);
}

.native-settings-sidebar-footer .primary {
  width: 100%;
  min-height: 48px !important;
  border-radius: 16px !important;
  color: #062341 !important;
  background: linear-gradient(135deg, rgba(255,255,255,0.90), rgba(196, 233, 255, 0.86) 40%, rgba(125, 211, 252, 0.92) 100%) !important;
  border-color: rgba(234, 246, 255, 0.42) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.82), 0 14px 26px rgba(14, 84, 146, 0.20) !important;
}

.minimal-settings-main {
  min-width: 0;
  min-height: 0;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  gap: 16px !important;
  padding: 20px !important;
  border-radius: 30px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04) 18%, rgba(9, 16, 28, 0.18) 100%),
    rgba(7, 15, 29, 0.72) !important;
  border: 1px solid rgba(196, 226, 255, 0.18) !important;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255,255,255,0.08) !important;
}

.native-settings-page-head {
  padding: 2px 4px 16px !important;
  margin: 0 !important;
  border-bottom: 1px solid rgba(196, 226, 255, 0.10) !important;
}

.native-settings-page-kicker {
  display: inline-flex !important;
  background: rgba(255,255,255,0.08) !important;
  color: rgba(205, 221, 239, 0.64) !important;
  box-shadow: inset 0 0 0 1px rgba(196, 226, 255, 0.10) !important;
}

.native-settings-page-head h3 {
  margin: 4px 0 0 !important;
  font-size: 30px !important;
  letter-spacing: -0.04em !important;
  color: #f8fbff !important;
}

.native-settings-page-head p {
  display: block !important;
  margin-top: 8px !important;
  color: rgba(205, 221, 239, 0.66) !important;
}

.minimal-settings-main .native-settings-body {
  min-height: 0;
  overflow: auto;
  padding-right: 6px !important;
  scrollbar-gutter: stable both-edges;
}

.minimal-settings-main .native-settings-card {
  border-radius: 24px !important;
  padding: 18px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03) 20%, rgba(5, 12, 24, 0.16) 100%),
    rgba(7, 16, 30, 0.56) !important;
  border: 1px solid rgba(196, 226, 255, 0.14) !important;
  box-shadow: 0 18px 40px rgba(0,0,0,0.16), inset 0 1px 0 rgba(255,255,255,0.06) !important;
  color: #f8fbff !important;
}

.minimal-settings-main .native-settings-card h3 {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #f8fbff !important;
}

.minimal-settings-main .native-settings-readout,
.minimal-settings-main .native-settings-callout {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(196, 226, 255, 0.12) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06) !important;
  color: #eef7ff !important;
}

.minimal-settings-main .native-settings-readout *,
.minimal-settings-main .native-settings-callout * {
  color: inherit !important;
}

.minimal-settings-main .field input,
.minimal-settings-main .field select,
.minimal-settings-main .field textarea {
  background: rgba(6, 14, 28, 0.52) !important;
  border: 1px solid rgba(196, 226, 255, 0.14) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04) !important;
  color: #f8fbff !important;
}

.minimal-settings-main .field input::placeholder,
.minimal-settings-main .field textarea::placeholder {
  color: rgba(203, 213, 225, 0.54) !important;
}

.minimal-settings-main .field input:focus,
.minimal-settings-main .field select:focus,
.minimal-settings-main .field textarea:focus {
  border-color: rgba(125, 211, 252, 0.48) !important;
  box-shadow: 0 0 0 4px rgba(125, 211, 252, 0.14) !important;
}

.native-settings-grid {
  gap: 14px !important;
}

.native-settings-app input[type="range"],
.native-settings-app input[type="checkbox"] {
  accent-color: #7dd3fc;
}

.native-settings-help {
  border-color: rgba(196, 226, 255, 0.14) !important;
  background: rgba(255,255,255,0.08) !important;
  color: #dbeafe !important;
}

.native-settings-hint,
.native-settings-status {
  color: rgba(205, 221, 239, 0.66) !important;
}

.powerpoints-app {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.powerpoints-app .hidden {
  display: none !important;
}

.deck-workbench {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 290px;
  gap: 14px;
  padding: 14px;
  box-sizing: border-box;
}

.deck-sidebar,
.deck-stage-shell,
.deck-edit-form,
.deck-inspector {
  min-height: 0;
}

.deck-sidebar,
.deck-inspector,
.deck-stage-shell,
.deck-edit-form {
  border-radius: 24px;
  overflow: hidden;
}

.deck-sidebar,
.deck-inspector {
  padding: 12px;
  overflow: auto;
}

.deck-slide-thumb {
  display: grid;
  gap: 10px;
  width: 100%;
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(196, 226, 255, 0.12);
  background: rgba(7, 15, 29, 0.64);
  color: #f8fbff;
  text-align: left;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.deck-slide-thumb:hover,
.deck-slide-thumb:focus-visible,
.deck-slide-thumb.active {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, 0.36);
  background: rgba(9, 19, 36, 0.78);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.16);
}

.deck-slide-thumb-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: rgba(220, 235, 255, 0.84);
  font-size: 12px;
  font-weight: 800;
}

.deck-slide-thumb-preview {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(196, 226, 255, 0.12);
  background: rgba(2, 6, 23, 0.32);
}

.deck-slide-thumb strong {
  font-size: 13px;
  font-weight: 700;
  color: #f8fbff;
}

.deck-slide-thumb small {
  color: rgba(203, 213, 225, 0.68);
  line-height: 1.45;
}

.deck-main {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
}

.deck-stage-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 14px;
}

.deck-stage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 10px;
}

.deck-stage {
  --deck-zoom: 1;
  min-height: 0;
  overflow: auto;
  display: grid;
  place-items: center;
  padding: 16px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 18% 18%, rgba(56, 189, 248, 0.10), transparent 24%),
    radial-gradient(circle at 82% 72%, rgba(139, 92, 246, 0.08), transparent 28%),
    rgba(2, 6, 23, 0.36);
}

.deck-stage-canvas {
  width: min(100%, 1180px);
  transform: scale(var(--deck-zoom, 1));
  transform-origin: center center;
  transition: transform 160ms ease;
}

.deck-editor-panels {
  min-height: 0;
}

.deck-edit-form {
  padding: 14px;
}

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

.deck-field {
  display: grid;
  gap: 8px;
}

.deck-field--full {
  grid-column: 1 / -1;
}

.deck-field textarea {
  min-height: 116px;
  resize: vertical;
}

.deck-notes {
  min-height: 96px !important;
}

.deck-inspector {
  display: grid;
  align-content: start;
  gap: 14px;
}

.deck-inspector-section {
  display: grid;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(196, 226, 255, 0.12);
  background: rgba(7, 15, 29, 0.54);
}

.deck-inspector-section h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #f8fbff;
}

.deck-checkbox {
  min-height: 44px;
  padding: 0 2px;
}

.deck-inspector-actions {
  display: grid;
  gap: 8px;
}

.deck-inspector-actions button,
.deck-presentation-controls button {
  min-height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(196, 226, 255, 0.14);
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  color: #f8fbff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.deck-inspector-actions button:hover,
.deck-presentation-controls button:hover {
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.22), rgba(255,255,255,0.06));
}

.deck-slide {
  position: relative;
  width: min(1100px, 100%);
  aspect-ratio: var(--deck-aspect, 16 / 9);
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid var(--deck-border, rgba(255,255,255,0.16));
  background:
    radial-gradient(circle at 16% 14%, rgba(255,255,255,0.20), transparent 26%),
    radial-gradient(circle at 84% 18%, var(--deck-glow, rgba(125,211,252,0.30)), transparent 30%),
    linear-gradient(135deg, var(--deck-bg-start, #17325f), var(--deck-bg-end, #5b21b6));
  box-shadow: 0 30px 90px rgba(0,0,0,0.38);
  color: var(--deck-text, #f8fbff);
}

.deck-slide-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.22), rgba(255,255,255,0.08) 18%, rgba(255,255,255,0) 42%),
    radial-gradient(circle at 50% 120%, rgba(255,255,255,0.08), transparent 38%);
  opacity: 0.9;
}

.deck-slide-topline {
  position: absolute;
  left: 34px;
  right: 34px;
  top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--deck-muted, rgba(220, 235, 255, 0.80));
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.deck-slide-brand,
.deck-slide-number {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.deck-slide-content {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 88px 70px 62px;
  box-sizing: border-box;
  display: grid;
  align-content: start;
  gap: 28px;
}

.deck-slide-content--center {
  justify-items: center;
  align-content: center;
  text-align: center;
}

.deck-slide-content--section {
  gap: 22px;
}

.deck-slide-content--closing {
  gap: 26px;
}

.deck-slide-content--blank {
  align-content: stretch;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.deck-slide-heading h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.deck-slide-heading--hero h2 {
  font-size: clamp(42px, 7vw, 88px);
}

.deck-slide-subtitle,
.deck-section-copy p,
.deck-closing-copy p,
.deck-title-only-copy p {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 30px);
  line-height: 1.4;
  color: var(--deck-muted, rgba(220, 235, 255, 0.80));
}

.deck-slide-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 28px;
  min-height: 0;
  align-items: start;
}

.deck-slide-column,
.deck-blank-block {
  padding: 22px 24px;
  border-radius: 24px;
  background: var(--deck-panel, rgba(7,18,38,0.26));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.deck-slide-column--single {
  min-height: 0;
}

.deck-bullets {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 14px;
  font-size: clamp(20px, 2.4vw, 34px);
  line-height: 1.4;
}

.deck-bullets li::marker {
  color: var(--deck-accent, #7dd3fc);
}

.deck-placeholder {
  min-height: 120px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255,255,255,0.22);
  border-radius: 20px;
  color: var(--deck-muted, rgba(220, 235, 255, 0.80));
  font-size: 18px;
}

.deck-placeholder--center {
  min-height: 100%;
}

.deck-slide.is-compact {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.24);
}

.deck-slide.is-compact .deck-slide-topline {
  top: 10px;
  left: 12px;
  right: 12px;
  font-size: 8px;
}

.deck-slide.is-compact .deck-slide-brand,
.deck-slide.is-compact .deck-slide-number {
  min-height: 14px;
  padding: 0 6px;
}

.deck-slide.is-compact .deck-slide-content {
  padding: 28px 18px 14px;
  gap: 10px;
}

.deck-slide.is-compact .deck-slide-heading h2 {
  font-size: 16px;
}

.deck-slide.is-compact .deck-slide-subtitle,
.deck-slide.is-compact .deck-section-copy p,
.deck-slide.is-compact .deck-closing-copy p,
.deck-slide.is-compact .deck-title-only-copy p {
  font-size: 9px;
}

.deck-slide.is-compact .deck-slide-columns,
.deck-slide.is-compact .deck-slide-content--blank {
  gap: 8px;
}

.deck-slide.is-compact .deck-slide-column,
.deck-slide.is-compact .deck-blank-block {
  padding: 8px 10px;
  border-radius: 12px;
}

.deck-slide.is-compact .deck-bullets {
  gap: 6px;
  font-size: 9px;
}

.deck-slide.is-compact .deck-placeholder {
  min-height: 40px;
  border-radius: 12px;
  font-size: 8px;
}

.deck-presentation-layer {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
  padding: 18px;
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.deck-presentation-topbar,
.deck-presentation-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.deck-presentation-stage {
  min-height: 0;
  display: grid;
  place-items: center;
}

.deck-presentation-stage .deck-slide {
  width: min(1320px, calc(100vw - 72px));
  max-height: calc(100vh - 180px);
  box-shadow: 0 42px 110px rgba(0,0,0,0.52);
}

.deck-presentation-notes {
  justify-self: end;
  max-width: min(460px, 42vw);
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(196, 226, 255, 0.16);
  background: rgba(7, 15, 29, 0.74);
  color: rgba(226, 237, 247, 0.90);
  box-shadow: 0 20px 40px rgba(0,0,0,0.20);
}

.deck-presentation-notes strong {
  display: block;
  margin-bottom: 8px;
}

.deck-presentation-controls {
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 1240px) {
  .deck-workbench {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .deck-inspector {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .native-settings-shell-minimal {
    grid-template-columns: 1fr !important;
  }

  .native-settings-tabbar-vertical {
    flex-direction: row !important;
    overflow: auto;
  }

  .native-settings-tabbar-vertical button {
    min-width: 180px !important;
  }

  .deck-workbench {
    grid-template-columns: 1fr;
  }

  .deck-sidebar {
    max-height: 260px;
  }

  .deck-inspector {
    grid-template-columns: 1fr;
  }

  .deck-edit-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .start-button {
    min-width: 126px !important;
  }

  .start-button-mark {
    width: 44px !important;
    height: 44px !important;
  }

  .start-button-mark .owlspace-glyph {
    --owl-size: 34px !important;
  }

  .deck-stage {
    padding: 12px;
  }

  .deck-slide,
  .deck-presentation-stage .deck-slide {
    width: min(100%, calc(100vw - 28px));
    border-radius: 24px;
  }

  .deck-slide-content {
    padding: 72px 28px 28px;
    gap: 18px;
  }

  .deck-slide-columns,
  .deck-slide-content--blank {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .deck-presentation-layer {
    padding: 12px;
  }

  .deck-presentation-notes {
    max-width: none;
    justify-self: stretch;
  }
}

/* r74 cold boot splash + office import polish */
.word-processor-app,
.sheets-app {
  position: relative;
}

.office-busy-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 8, 23, 0.46);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 20;
}

.office-busy-overlay.hidden {
  display: none !important;
}

.office-busy-card {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: min(440px, calc(100% - 32px));
  padding: 18px 20px;
  border-radius: 22px;
  color: #eff6ff;
  background: linear-gradient(180deg, rgba(9, 17, 30, 0.96), rgba(15, 23, 42, 0.88));
  border: 1px solid rgba(191, 219, 254, 0.16);
  box-shadow: 0 24px 60px rgba(2, 8, 23, 0.42), inset 0 1px 0 rgba(255,255,255,0.08);
}

.office-busy-card strong {
  display: block;
  margin-bottom: 4px;
}

.office-busy-card [data-role="office-busy-label"] {
  color: rgba(219, 234, 254, 0.76);
  font-size: 13px;
}

.office-busy-spinner {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 3px solid rgba(191, 219, 254, 0.22);
  border-top-color: #7dd3fc;
  animation: office-busy-spin 0.86s linear infinite;
  flex: 0 0 auto;
}

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

.word-page h1 {
  font-size: 2.05em;
  margin: 0 0 0.58em;
}

.word-page h2 {
  font-size: 1.5em;
  margin: 1.2em 0 0.55em;
}

.word-page h3 {
  font-size: 1.18em;
  margin: 1em 0 0.45em;
}

.word-page ul,
.word-page ol {
  padding-left: 1.45em;
}

.word-import-list {
  margin: 0.7em 0;
}

.word-import-list-item.word-list-level-1 {
  margin-left: 1.15em;
}

.word-import-list-item.word-list-level-2 {
  margin-left: 2.3em;
}

.word-import-list-item.word-list-level-3 {
  margin-left: 3.45em;
}

.word-import-list-item.word-list-level-4,
.word-import-list-item.word-list-level-5,
.word-import-list-item.word-list-level-6 {
  margin-left: 4.6em;
}

.word-page a {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.word-table-wrap {
  margin: 22px 0;
  overflow-x: auto;
}

.word-page table,
.word-import-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.word-page th,
.word-page td,
.word-import-table th,
.word-import-table td {
  border: 1px solid #cbd5e1;
  padding: 10px 12px;
  vertical-align: top;
}

.word-page th,
.word-import-table th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 800;
}

.word-page blockquote,
.word-citation {
  margin: 20px 0;
  padding: 16px 18px;
  border-left: 4px solid #60a5fa;
  border-radius: 0 16px 16px 0;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.96), rgba(248, 250, 252, 0.96));
  color: #1e293b;
}

.word-page blockquote p:last-child,
.word-citation p:last-child {
  margin-bottom: 0;
}

.word-page blockquote cite,
.word-citation cite {
  display: block;
  margin-top: 10px;
  color: #64748b;
  font-size: 0.92em;
  font-style: normal;
}

.sheets-app {
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 10px;
}

.sheets-formula-bar {
  display: grid;
  grid-template-columns: 88px 42px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 2px;
}

.sheets-name-box,
.sheets-fx-badge,
.sheets-formula-input {
  min-height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255,255,255,0.78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.sheets-name-box,
.sheets-fx-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  font-weight: 800;
}

.sheets-name-box {
  font-variant-numeric: tabular-nums;
}

.sheets-fx-badge {
  color: #475569;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.sheets-formula-input {
  width: 100%;
  padding: 0 14px;
  color: #0f172a;
  font: 600 14px/1.35 Inter, system-ui, sans-serif;
}

.sheets-formula-input:focus-visible,
.sheets-grid td.active-cell {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(59, 130, 246, 0.46), 0 0 0 1px rgba(255,255,255,0.48);
}

.sheets-grid td.active-cell {
  background: rgba(239, 246, 255, 0.98);
}

.sheets-grid td.active-cell .sheets-cell-input {
  background: rgba(239, 246, 255, 0.96);
}

.sheets-cell-input.is-formula,
.sheets-formula-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.sheets-cell-input.is-formula {
  color: #1d4ed8;
}

.sheets-row-header {
  font-variant-numeric: tabular-nums;
}

.start-button {
  min-width: 122px !important;
  gap: 10px !important;
  padding: 0 14px !important;
}

.start-button-mark {
  width: 38px !important;
  height: 38px !important;
  padding: 3px !important;
  border-radius: 14px !important;
}

.start-button-mark .owlspace-glyph {
  --owl-size: 30px !important;
}

.desktop-shell.compact-taskbar .start-button,
.compact-taskbar .start-button {
  min-width: 58px !important;
  padding: 0 9px !important;
}

.desktop-shell.compact-taskbar .start-button-mark,
.compact-taskbar .start-button-mark {
  width: 38px !important;
  height: 38px !important;
  border-radius: 14px !important;
}

.desktop-shell.compact-taskbar .start-button-mark .owlspace-glyph,
.compact-taskbar .start-button-mark .owlspace-glyph {
  --owl-size: 30px !important;
}

.desktop-header-end {
  min-width: 0 !important;
  max-width: min(960px, 68vw);
  flex: 1 1 auto;
  gap: 10px;
  align-items: stretch;
}

.desktop-resources {
  min-width: 0;
  flex: 1 1 auto;
}

.desktop-header-quick-actions {
  flex: 0 0 auto;
  align-self: stretch;
}

.desktop-quick-action {
  min-width: 68px;
  padding-inline: 10px;
}

.desktop-shell .window.window-shell {
  background: linear-gradient(180deg, rgba(9, 15, 28, 0.9), rgba(7, 12, 24, 0.82));
}

.desktop-shell .window.window-shell > .window-header {
  border-top-left-radius: calc(var(--window-corner-radius, 24px) - 1px) !important;
  border-top-right-radius: calc(var(--window-corner-radius, 24px) - 1px) !important;
  overflow: hidden;
}

.desktop-shell .window.window-shell > .window-body {
  border-bottom-left-radius: calc(var(--window-corner-radius, 24px) - 1px) !important;
  border-bottom-right-radius: calc(var(--window-corner-radius, 24px) - 1px) !important;
  overflow: hidden;
  background-clip: padding-box;
}

.desktop-shell .window.window-shell > .window-body > * {
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
}

.desktop-shell .window.window-shell .window-actions {
  flex: 0 0 auto;
}

@media (max-width: 1280px) {
  .desktop-header-end {
    max-width: none;
  }

  .desktop-header-quick-actions {
    width: auto;
    margin-left: auto;
  }
}

@media (max-width: 860px) {
  .sheets-formula-bar {
    grid-template-columns: 74px 36px minmax(0, 1fr);
  }

  .desktop-header-end {
    width: 100%;
    flex-wrap: wrap;
  }

  .desktop-resources,
  .desktop-header-quick-actions {
    width: 100%;
  }

  .desktop-header-quick-actions {
    justify-content: flex-end;
  }
}

/* r49 real PPTX PowerPoints workspace */
.powerpoints-ribbon {
  display: grid;
  gap: 0;
  padding: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(226, 232, 240, 0.92));
  color: #0f172a;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
}

.office-ribbon-titlebar {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px 4px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
}

.office-ribbon-titlebar strong {
  font-size: 15px;
  letter-spacing: -0.01em;
}

.office-ribbon-tabs {
  min-height: 32px;
  display: flex;
  align-items: end;
  gap: 2px;
  padding: 0 10px;
  background: rgba(241, 245, 249, 0.74);
  overflow-x: auto;
}

.office-ribbon-tabs button {
  appearance: none;
  border: 0;
  border-radius: 8px 8px 0 0;
  padding: 7px 14px 8px;
  background: transparent;
  color: #1e293b;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}

.office-ribbon-tabs button.active,
.office-ribbon-tabs button:hover {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.office-ribbon-groups {
  min-height: 82px;
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 9px 10px 10px;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.96);
}

.office-ribbon-group {
  display: flex;
  align-items: center;
  align-content: center;
  gap: 7px;
  flex-wrap: wrap;
  min-width: 150px;
  max-width: 300px;
  padding: 4px 12px 18px;
  position: relative;
  border-right: 1px solid rgba(148, 163, 184, 0.28);
}

.office-ribbon-group > span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  text-align: center;
  font-size: 11px;
  color: #64748b;
  pointer-events: none;
}

.office-ribbon-group button {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 8px;
  padding: 6px 9px;
  background: linear-gradient(180deg, #ffffff, #eef2ff);
  color: #172033;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.office-ribbon-group button:hover,
.office-ribbon-group button:focus-visible {
  border-color: rgba(59, 130, 246, 0.62);
  background: linear-gradient(180deg, #eff6ff, #dbeafe);
}

.powerpoints-app .deck-workbench {
  min-height: 0;
}

.powerpoints-app .deck-stage-shell {
  min-height: 360px;
}

.deck-stage-canvas {
  width: 100%;
  display: grid;
  place-items: center;
  cursor: default;
}

.deck-slide.has-pptx-elements {
  background: #ffffff;
  color: #111827;
  border-radius: 20px;
  border-color: rgba(15, 23, 42, 0.18);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.deck-slide.has-pptx-elements .deck-slide-topline,
.deck-slide.has-pptx-elements .deck-slide-sheen {
  display: none;
}

.deck-slide-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-repeat: no-repeat;
}

.deck-slide-element-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: auto;
}

.deck-slide-element {
  position: absolute;
  box-sizing: border-box;
  overflow: hidden;
  display: block;
  padding: 0.6% 0.8%;
  border: 1px dashed transparent;
  border-radius: 7px;
  color: #111827;
  background: transparent;
  font-size: clamp(12px, 1.7vw, 26px);
  line-height: 1.18;
  white-space: pre-wrap;
  cursor: pointer;
}

.deck-slide-element:hover,
.deck-slide-element.is-selected {
  border-color: rgba(37, 99, 235, 0.72);
  outline: 2px solid rgba(96, 165, 250, 0.42);
  outline-offset: 2px;
}

.deck-slide-element[data-direct-edit="true"] {
  cursor: text;
  user-select: text;
  caret-color: #2563eb;
}

.deck-slide-element[data-direct-edit="true"]:focus {
  border-color: rgba(79, 70, 229, 0.82);
  outline: 3px solid rgba(129, 140, 248, 0.36);
  background: rgba(255, 255, 255, 0.18);
}

.deck-slide-element[data-direct-edit="true"] .deck-element-resize {
  pointer-events: auto;
}

.office-ribbon-group button[data-action="exportDsl"] {
  border-color: rgba(99, 102, 241, 0.58);
  background: linear-gradient(180deg, #eef2ff, #e0e7ff);
}

.deck-slide-element p {
  margin: 0 0 0.28em;
}

.deck-slide-element p:last-child {
  margin-bottom: 0;
}

.deck-slide-element pre {
  margin: 0;
  font: inherit;
  white-space: pre-wrap;
}

.deck-slide-element--image {
  padding: 0;
  border-radius: 5px;
  background: rgba(241, 245, 249, 0.5);
}

.deck-slide-element--image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  user-select: none;
}

.deck-slide-element--role-title {
  font-weight: 760;
  font-size: clamp(22px, 3.2vw, 48px);
  letter-spacing: -0.02em;
}

.deck-slide-element--role-subtitle {
  color: #475569;
}

.deck-element-empty {
  display: grid;
  place-items: center;
  min-height: 100%;
  color: #94a3b8;
  border: 1px dashed rgba(148, 163, 184, 0.42);
  border-radius: 6px;
}

.deck-slide-import-badge {
  position: absolute;
  right: 16px;
  bottom: 12px;
  z-index: 4;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.68);
  color: #f8fafc;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
}

.deck-slide.is-compact.has-pptx-elements {
  border-radius: 8px;
  box-shadow: none;
}

.deck-slide.is-compact .deck-slide-element {
  border: 0;
  outline: 0;
  padding: 1px 2px;
  border-radius: 2px;
  font-size: 5px !important;
  line-height: 1.08;
}

.deck-slide.is-compact .deck-slide-import-badge {
  display: none;
}

.deck-bulk-panel {
  display: grid;
  gap: 9px;
  padding: 12px;
  min-height: 170px;
}

.deck-bulk-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.deck-bulk-header .muted {
  font-size: 12px;
}

.deck-bulk-header button,
.deck-object-inspector button {
  min-height: 28px;
}

.deck-bulk-panel textarea {
  width: 100%;
  min-height: 128px;
  resize: vertical;
  box-sizing: border-box;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.42);
  color: #e5edf8;
  font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.deck-object-inspector {
  gap: 8px;
}

.deck-object-inspector > strong {
  display: block;
  font-size: 13px;
  color: #e8f2ff;
}

.deck-object-inspector textarea {
  width: 100%;
  min-height: 116px;
  resize: vertical;
  box-sizing: border-box;
  border-radius: 12px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.44);
  color: #f8fafc;
  line-height: 1.42;
}

.deck-object-inspector textarea:disabled {
  opacity: 0.64;
  cursor: not-allowed;
}

@media (max-width: 1100px) {
  .office-ribbon-groups {
    min-height: 104px;
  }

  .office-ribbon-group {
    min-width: 172px;
  }
}

/* r50 deeper PowerPoints object editing, shapes, media and slideshow */
.deck-slide-element--shape {
  display: grid;
  place-items: center;
  padding: 0.5% 0.8%;
  background: rgba(219, 234, 254, 0.82);
  border-style: solid;
}

.deck-slide-element--shape-line {
  height: 0 !important;
  min-height: 0;
  padding: 0;
  border-left: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  background: transparent !important;
  overflow: visible;
}

.deck-slide-element--video,
.deck-slide-element--audio {
  padding: 0;
  background: rgba(15, 23, 42, 0.08);
  border-style: solid;
}

.deck-slide-element--video video,
.deck-slide-element--audio audio {
  width: 100%;
  height: 100%;
  display: block;
}

.deck-slide-element--video video {
  object-fit: contain;
  background: #020617;
}

.deck-audio-card {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  padding: 8px;
  box-sizing: border-box;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 64, 175, 0.78));
  color: #f8fafc;
  border-radius: inherit;
}

.deck-audio-card span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
}

.deck-element-resize {
  position: absolute;
  z-index: 20;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid #2563eb;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.deck-element-resize--nw { left: -6px; top: -6px; cursor: nwse-resize; }
.deck-element-resize--n { left: calc(50% - 5px); top: -6px; cursor: ns-resize; }
.deck-element-resize--ne { right: -6px; top: -6px; cursor: nesw-resize; }
.deck-element-resize--e { right: -6px; top: calc(50% - 5px); cursor: ew-resize; }
.deck-element-resize--se { right: -6px; bottom: -6px; cursor: nwse-resize; }
.deck-element-resize--s { left: calc(50% - 5px); bottom: -6px; cursor: ns-resize; }
.deck-element-resize--sw { left: -6px; bottom: -6px; cursor: nesw-resize; }
.deck-element-resize--w { left: -6px; top: calc(50% - 5px); cursor: ew-resize; }

.deck-element-lock {
  position: absolute;
  right: 4px;
  top: 4px;
  z-index: 21;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 10px;
  pointer-events: none;
}

.deck-slide-element.is-locked {
  cursor: not-allowed;
}

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

.deck-object-grid label {
  display: grid;
  gap: 4px;
  min-width: 0;
  font-size: 11px;
  color: rgba(226, 232, 240, 0.78);
}

.deck-object-grid input,
.deck-object-grid select {
  width: 100%;
  min-height: 30px;
  box-sizing: border-box;
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.46);
  color: #f8fafc;
  padding: 4px 7px;
}

.deck-object-grid input[type="color"] {
  padding: 2px;
}

.deck-object-lock {
  grid-column: 1 / -1;
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px !important;
}

.deck-object-lock input {
  width: auto;
  min-height: auto;
}

.deck-inspector-actions--wrap {
  flex-wrap: wrap;
}

.deck-presentation-layer.active {
  animation: deckPresentationFadeIn 0.18s ease both;
}

.deck-presentation-stage .deck-slide-element--video video,
.deck-presentation-stage .deck-slide-element--audio audio {
  pointer-events: auto;
}

@keyframes deckPresentationFadeIn {
  from { opacity: 0; transform: scale(0.985); }
  to { opacity: 1; transform: scale(1); }
}

.deck-object-check {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px !important;
}

.deck-object-check input {
  width: auto;
  min-height: auto;
}

/* r51 near-real Office suite: Word and Sheets object-level editing */
.word-real-office-app,
.sheets-real-office-app {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.word-ribbon,
.sheets-ribbon {
  flex: 0 0 auto;
}

.word-ribbon .office-ribbon-group,
.sheets-ribbon .office-ribbon-group {
  min-width: 172px;
  max-width: 360px;
}

.word-ribbon .office-ribbon-titlebar .muted,
.sheets-ribbon .office-ribbon-titlebar .muted {
  margin-left: auto;
  color: #64748b;
  font-size: 12px;
}

.word-real-office-app .word-workspace {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 22px;
  background:
    linear-gradient(90deg, rgba(148,163,184,.12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(148,163,184,.10) 1px, transparent 1px),
    #e2e8f0;
  background-size: 28px 28px;
}

.word-real-office-app .word-page {
  min-height: 1122px;
  max-width: 816px;
  margin: 0 auto;
  padding: 86px 92px;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
  transform: scale(var(--word-zoom, 1));
  transform-origin: top center;
  border-radius: 6px;
  outline: 1px solid rgba(15, 23, 42, .10);
}

.word-real-office-app .word-page:focus {
  outline: 2px solid rgba(37, 99, 235, .42);
}

.word-floating-object {
  display: inline-grid;
  gap: 8px;
  max-width: 100%;
  margin: 12px 10px 12px 0;
  padding: 10px;
  vertical-align: top;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, .34);
  background: rgba(248, 250, 252, .92);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .10);
  resize: both;
  overflow: auto;
}

.word-floating-object img,
.word-floating-object video {
  max-width: 100%;
  width: 100%;
  min-width: 160px;
  border-radius: 10px;
  display: block;
}

.word-floating-object audio {
  width: min(520px, 100%);
}

.word-floating-object figcaption {
  min-height: 18px;
  color: #475569;
  font-size: 12px;
  line-height: 1.35;
}

.word-object-placeholder {
  min-width: 180px;
  min-height: 88px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(37, 99, 235, .42);
  border-radius: 12px;
  color: #334155;
  background: #eff6ff;
  font-weight: 700;
}

.word-object-shape {
  min-width: 180px;
  min-height: 92px;
  padding: 18px 20px;
  color: #0f172a;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border: 2px solid #2563eb;
  resize: both;
  overflow: auto;
}

.word-object-shape p:last-child {
  margin-bottom: 0;
}

.word-shape-round {
  border-radius: 28px;
}

.word-shape-ellipse {
  border-radius: 999px;
  text-align: center;
  align-content: center;
}

.word-shape-callout {
  position: relative;
  border-radius: 22px;
}

.word-shape-callout::after {
  content: '';
  position: absolute;
  left: 28px;
  bottom: -18px;
  border: 10px solid transparent;
  border-top-color: #2563eb;
}

.word-shape-line {
  min-height: 0;
  height: 8px;
  padding: 0;
  border: 0;
  border-top: 4px solid #2563eb;
  background: transparent;
}

.word-page-break {
  margin: 20px 0;
  height: 0;
  border-top: 2px dashed #94a3b8;
  text-align: center;
  color: #64748b;
  page-break-after: always;
}

.word-page-break span {
  position: relative;
  top: -12px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
}

.word-toc {
  padding: 18px 22px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #dbe4ef;
}

.word-toc ol {
  margin: 10px 0 0;
}

.word-toc-level-2 { margin-left: 18px; }
.word-toc-level-3 { margin-left: 36px; color: #475569; }

.word-inline-placeholder {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-size: .9em;
}

.sheets-real-office-app .sheets-formula-bar,
.sheets-real-office-app .sheets-tabbar {
  flex: 0 0 auto;
}

.sheets-real-office-app .sheets-grid-shell {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  background: #f8fafc;
}

.sheets-real-office-app .sheets-grid td {
  position: relative;
  padding: 0;
  background-clip: padding-box;
}

.sheets-real-office-app .sheets-cell-input {
  color: inherit;
  text-align: inherit;
  background: transparent;
}

.sheets-real-office-app .sheets-grid td[style*="background"] .sheets-cell-input {
  background: transparent;
}

.sheets-floating-objects {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 0 18px;
}

.sheets-floating-object {
  width: 220px;
  min-height: 120px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 6px;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, .34);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .10);
}

.sheets-floating-object img {
  max-width: 100%;
  max-height: 150px;
  object-fit: contain;
  justify-self: center;
  align-self: center;
  border-radius: 10px;
}

.sheets-floating-object figcaption {
  color: #475569;
  font-size: 12px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheets-floating-chart div {
  min-height: 82px;
  display: grid;
  place-items: center;
  font-size: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

@media (max-width: 980px) {
  .word-real-office-app .word-page {
    padding: 48px 34px;
    min-height: 900px;
  }

  .word-ribbon .office-ribbon-group,
  .sheets-ribbon .office-ribbon-group {
    min-width: 190px;
  }
}

/* Office editing surfaces */
.office-native-dsl-details {
  grid-column: 1 / -1;
  margin: 8px 0 10px;
  padding: 8px 10px;
  border: 1px solid rgba(59, 130, 246, .22);
  border-radius: 14px;
  background: rgba(239, 246, 255, .72);
}

.office-native-dsl-details summary {
  cursor: pointer;
  font-weight: 800;
  color: #1e40af;
}

.office-native-dsl-details textarea,
.word-native-panel textarea,
.sheets-native-panel textarea {
  width: 100%;
  min-height: 180px;
  margin: 8px 0;
  box-sizing: border-box;
  border: 1px solid rgba(148, 163, 184, .46);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(15, 23, 42, .94);
  color: #dbeafe;
  font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  resize: vertical;
}

.deck-native-table {
  width: 100%;
  height: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: rgba(255, 255, 255, .9);
  color: #0f172a;
  font-size: inherit;
}

.deck-native-table th,
.deck-native-table td {
  border: 1px solid rgba(71, 85, 105, .32);
  padding: .28em .42em;
  text-align: left;
  vertical-align: top;
  word-break: break-word;
}

.deck-native-table th {
  background: rgba(219, 234, 254, .96);
  font-weight: 800;
}

.deck-object-actions .deck-object-alignments,
.deck-object-actions .deck-object-transform {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.word-real-office-app .word-workspace {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(280px, 380px);
  gap: 20px;
  align-items: start;
}

.word-real-office-app .word-workspace.focus-mode {
  display: block;
}

.word-real-office-app .word-workspace.focus-mode .word-native-panel {
  display: none;
}

.word-real-office-app .word-page {
  margin: 0 auto;
}

.word-native-panel,
.sheets-native-panel {
  min-height: 0;
  padding: 14px;
  border-radius: 18px;
  box-sizing: border-box;
}

.word-native-panel {
  position: sticky;
  top: 14px;
  max-height: calc(100vh - 180px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.word-native-panel textarea {
  flex: 1 1 auto;
  min-height: 420px;
}

.word-native-panel-header,
.sheets-native-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.word-native-panel-header span,
.sheets-native-panel-header span {
  color: #64748b;
  font-size: 12px;
}

.word-native-panel-actions,
.sheets-native-panel-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.word-comment {
  display: inline-block;
  margin: 0 2px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: .88em;
  font-weight: 700;
}

.word-equation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  margin: 4px 6px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  font-family: Cambria Math, STIX Two Math, Georgia, serif;
  font-size: 1.1em;
}

.word-section-header-footer {
  margin: 16px 0;
  padding: 12px 18px;
  border: 1px dashed #94a3b8;
  border-radius: 14px;
  background: #f8fafc;
  color: #475569;
}

.sheets-real-office-app {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 0 14px;
  min-height: 0;
}

.sheets-real-office-app .sheets-ribbon,
.sheets-real-office-app .sheets-formula-bar,
.sheets-real-office-app .sheets-tabbar {
  grid-column: 1 / -1;
}

.sheets-real-office-app .sheets-grid-shell {
  grid-column: 1;
  grid-row: 4;
  min-height: 0;
}

.sheets-native-panel {
  grid-column: 2;
  grid-row: 4;
  margin: 0 14px 14px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sheets-native-panel textarea {
  flex: 1 1 auto;
  min-height: 360px;
}

@media (max-width: 1180px) {
  .word-real-office-app .word-workspace,
  .sheets-real-office-app {
    display: flex;
    flex-direction: column;
  }

  .word-native-panel,
  .sheets-native-panel {
    position: static;
    max-height: none;
    margin: 14px;
  }

  .word-native-panel textarea,
  .sheets-native-panel textarea {
    min-height: 260px;
  }
}


/* r76-ui-split-lab-fixes */
/* Screenshot fixes: center runtime dialogs, keep monitor cards inside the header, and hide visible resize grips. */
.modal-root {
  z-index: 12000;
}

.modal-root .modal-overlay,
.modal-root .overlay.modal-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: auto;
  background: rgba(2, 6, 23, 0.58) !important;
  backdrop-filter: blur(16px) saturate(1.15);
}

.modal-root .modal-overlay .dialog-card,
.modal-root .overlay.modal-overlay .dialog-card {
  width: min(480px, calc(100vw - 48px));
  max-height: min(80vh, 520px);
  overflow: auto;
  border-radius: 24px;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.97), rgba(15, 23, 42, 0.97));
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--text-primary, #e5edf7);
}

.modal-root .modal-overlay .pane-title,
.modal-root .overlay.modal-overlay .pane-title,
.modal-root .modal-overlay .dialog-title,
.modal-root .overlay.modal-overlay .dialog-title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary, #f8fafc);
}

.modal-root .modal-overlay .dialog-message-pre,
.modal-root .overlay.modal-overlay .dialog-message-pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: rgba(226, 232, 240, 0.76);
  line-height: 1.55;
}

.modal-root .modal-overlay .dialog-actions,
.modal-root .overlay.modal-overlay .dialog-actions,
.modal-root .modal-overlay .multi-action-buttons,
.modal-root .overlay.modal-overlay .multi-action-buttons {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.modal-root .modal-overlay .dialog-actions button,
.modal-root .overlay.modal-overlay .dialog-actions button,
.modal-root .modal-overlay .multi-action-buttons button,
.modal-root .overlay.modal-overlay .multi-action-buttons button {
  min-height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.82);
  color: var(--text-primary, #e5edf7);
  padding: 8px 14px;
  font-weight: 700;
}

.modal-root .modal-overlay .dialog-actions button.primary,
.modal-root .overlay.modal-overlay .dialog-actions button.primary,
.modal-root .modal-overlay .multi-action-buttons button.primary,
.modal-root .overlay.modal-overlay .multi-action-buttons button.primary {
  border-color: rgba(96, 165, 250, 0.55);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.92), rgba(14, 165, 233, 0.82));
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.22);
}

.desktop-header-end,
.desktop-resources {
  min-height: 0;
}

.desktop-resources {
  align-items: center !important;
  overflow: hidden;
}

.desktop-resource-card {
  height: min(64px, calc(var(--header-height, 76px) - 16px));
  min-height: 56px;
  padding: 6px 10px !important;
  gap: 2px !important;
  align-content: center;
  grid-template-rows: auto auto auto minmax(10px, 12px);
}

.desktop-resource-head {
  min-height: 12px;
  line-height: 1;
}

.desktop-resource-label,
.desktop-resource-side {
  font-size: 10px !important;
  line-height: 1.1 !important;
}

.desktop-resource-value {
  margin: 0;
  font-size: clamp(15px, 1.45vw, 20px) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.02em;
}

.desktop-resource-meta {
  min-height: 12px !important;
  font-size: 10px !important;
  line-height: 1.15 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.desktop-resource-spark {
  height: 12px !important;
  min-height: 0;
  overflow: hidden;
}

.desktop-resource-spark svg,
.desktop-resource-spark canvas {
  max-height: 12px !important;
}

.window-resizer,
.window-resizer-right,
.window-resizer-bottom,
.window-resizer-corner,
.window-resizer::before,
.window-resizer::after,
.window-resizer-right::before,
.window-resizer-right::after,
.window-resizer-bottom::before,
.window-resizer-bottom::after,
.window-resizer-corner::before,
.window-resizer-corner::after {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  outline: 0 !important;
  opacity: 0 !important;
}

.window-resizer::before,
.window-resizer::after,
.window-resizer-right::before,
.window-resizer-right::after,
.window-resizer-bottom::before,
.window-resizer-bottom::after,
.window-resizer-corner::before,
.window-resizer-corner::after {
  content: none !important;
  display: none !important;
}

.window-resizer-right {
  top: 44px !important;
  right: 0 !important;
  bottom: 16px !important;
  width: 10px !important;
}

.window-resizer-bottom {
  left: 16px !important;
  right: 16px !important;
  bottom: 0 !important;
  height: 10px !important;
}

.window-resizer-corner {
  right: 0 !important;
  bottom: 0 !important;
  width: 16px !important;
  height: 16px !important;
}

.window.maximized-window .window-resizer,
.window.maximized-window .window-resizer-right,
.window.maximized-window .window-resizer-bottom,
.window.maximized-window .window-resizer-corner {
  display: none !important;
}

*::-webkit-resizer,
*::-webkit-scrollbar-corner {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 980px) {
  .desktop-resources {
    min-width: 0 !important;
    flex: 1 1 auto;
  }

  .desktop-resource-card {
    min-width: 128px !important;
    max-width: 168px !important;
  }
}


/* r81 unified icon system: vector app/icons, no character logos */
.os-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  color: rgba(236, 245, 255, 0.98);
}
.os-icon-svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(8, 15, 28, 0.18));
}
.desktop-icon-glyph,
.taskbar-app-icon,
.window-app-icon,
.app-loading-orb,
.desktop-quick-action,
.taskbar-search,
.taskbar-workspaces,
.taskbar-icon-button {
  line-height: 0;
}
.desktop-icon-glyph > .os-icon,
.desktop-icon-glyph > .os-icon .owlspace-glyph {
  width: 100%;
  height: 100%;
}
.desktop-icon-mark,
.taskbar-app-mark,
.window-app-mark,
.desktop-quick-mark,
.taskbar-inline-mark,
.app-loading-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.desktop-icon-mark,
.desktop-icon-mark .owlspace-glyph {
  width: 100%;
  height: 100%;
}
.taskbar-app-mark,
.taskbar-app-mark .owlspace-glyph,
.window-app-mark,
.window-app-mark .owlspace-glyph,
.desktop-quick-mark,
.desktop-quick-mark .owlspace-glyph,
.taskbar-inline-mark,
.taskbar-inline-mark .owlspace-glyph,
.app-loading-icon,
.app-loading-icon .owlspace-glyph {
  width: 100%;
  height: 100%;
}
.taskbar-app-icon .taskbar-app-mark { width: 20px; height: 20px; }
.window-app-icon .window-app-mark { width: 20px; height: 20px; }
.app-loading-orb .app-loading-icon { width: 58px; height: 58px; }
.desktop-quick-action .desktop-quick-mark { width: 18px; height: 18px; margin-right: 8px; }
.taskbar-search .taskbar-inline-mark,
.taskbar-workspaces .taskbar-inline-mark { width: 16px; height: 16px; margin-right: 8px; }
.taskbar-icon-button .taskbar-inline-mark { width: 17px; height: 17px; }
.taskbar-search,
.taskbar-workspaces,
.desktop-quick-action,
.taskbar-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.taskbar-search,
.taskbar-workspaces,
.desktop-quick-action {
  gap: 0;
}
.taskbar-icon-button {
  position: relative;
}


/* r82 office user-facing polish: hide raw document-structure panels and keep ribbons clickable */
.office-native-dsl-details,
.word-native-panel,
.sheets-native-panel {
  display: none !important;
}

.word-real-office-app .word-workspace {
  grid-template-columns: minmax(520px, 1fr) !important;
}

.sheets-real-office-app {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
}

.sheets-real-office-app .sheets-grid-shell {
  grid-column: 1 / -1 !important;
}

.office-ribbon-tabs button {
  pointer-events: auto;
}

.office-ribbon-group--focus {
  outline: 2px solid rgba(59, 130, 246, 0.48);
  outline-offset: -2px;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.92), rgba(255, 255, 255, 0.98));
}

/* r83 office usability */
.word-separator {
  border: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.62);
  margin: 18px 0;
}

.sheets-grid td.merged-cell {
  background: rgba(239, 246, 255, 0.88);
}

.sheets-grid td.sheets-frozen-row,
.sheets-grid td.sheets-frozen-col {
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.16);
}

.sheets-grid td.sheets-frozen-row .sheets-cell-input,
.sheets-grid td.sheets-frozen-col .sheets-cell-input {
  background: transparent;
}

.office-ribbon-group button:active,
.deck-inspector button:active,
.deck-bulk-panel button:active {
  transform: translateY(1px);
}

/* r84 office polish */
.word-checklist {
  margin: 12px 0;
  padding-left: 0;
  list-style: none;
}

.word-checklist li {
  margin: 6px 0;
}

.word-code-block {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.06);
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.word-signature-block {
  display: grid;
  gap: 8px;
  margin: 22px 0 8px;
  max-width: 320px;
}

.word-signature-line {
  border-bottom: 1px solid rgba(15, 23, 42, 0.42);
  height: 28px;
}

.word-signature-caption {
  font-size: 12px;
  color: #64748b;
}

.sheets-floating-chart svg {
  width: 100%;
  min-height: 106px;
  display: block;
  color: #2563eb;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(219, 234, 254, 0.88));
  border-radius: 12px;
  padding: 8px;
}

.sheets-floating-chart rect,
.sheets-floating-chart circle {
  fill: currentColor;
}

.sheets-floating-chart polyline,
.sheets-floating-chart line {
  stroke: currentColor;
}

.deck-stage.drag-ready {
  outline: 2px dashed rgba(37, 99, 235, 0.42);
  outline-offset: -8px;
}

/* r85 office reliability and editing polish */
.office-ribbon,
.office-ribbon * {
  pointer-events: auto;
}

.office-ribbon-group button,
.deck-inspector-actions button,
.deck-bulk-panel button,
.deck-presentation-controls button,
.sheets-tab,
.sheets-cell-input,
.sheets-formula-input {
  touch-action: manipulation;
}

.word-footnote-mark {
  color: #2563eb;
  font-weight: 800;
}

.word-footnote {
  display: block;
  margin: 8px 0 14px;
  padding: 8px 10px;
  border-left: 3px solid #93c5fd;
  background: #eff6ff;
  color: #334155;
  font-size: 0.9em;
}

.word-imported-file {
  display: block;
  margin: 14px 0;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.9);
}

.word-imported-file > strong:first-child {
  display: block;
  margin-bottom: 8px;
  color: #1e293b;
}

.sheets-grid td.active-cell {
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.58), 0 0 0 1px rgba(37, 99, 235, 0.28);
  background: rgba(255, 255, 255, 0.98);
}

.sheets-cell-input.is-formula,
.sheets-formula-input:focus {
  color: #1d4ed8;
  font-weight: 700;
}

.powerpoints-ribbon .office-ribbon-group--focus,
.word-ribbon .office-ribbon-group--focus,
.sheets-ribbon .office-ribbon-group--focus {
  scroll-margin-inline: 18px;
}

/* r86 office editing polish */
.word-cover-page {
  min-height: 640px;
  display: grid;
  align-content: center;
  gap: 18px;
  margin: -24px 0 28px;
  padding: 56px;
  border-radius: 28px;
  color: #f8fafc;
  background: radial-gradient(circle at 16% 18%, rgba(255,255,255,.25), transparent 32%), linear-gradient(135deg, #0f172a, #2563eb);
  page-break-after: always;
}

.word-cover-page h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1;
  letter-spacing: -.05em;
}

.word-cover-page p {
  margin: 0;
  color: rgba(248, 250, 252, .82);
  font-size: 18px;
}

.word-cover-kicker,
.word-cover-author {
  letter-spacing: .06em;
  text-transform: uppercase;
}

.word-callout-box {
  display: block;
  margin: 18px 0;
  padding: 16px 18px;
  border-left: 5px solid #2563eb;
  border-radius: 16px;
  background: #eff6ff;
  color: #1e293b;
}

.word-callout-box strong {
  display: block;
  margin-bottom: 6px;
  color: #1d4ed8;
}

.word-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0;
}

.word-two-column > div {
  padding: 16px 18px;
  border: 1px solid rgba(148, 163, 184, .32);
  border-radius: 16px;
  background: #f8fafc;
}

.word-two-column h3 {
  margin-top: 0;
}

@media (max-width: 780px) {
  .word-cover-page { padding: 34px; min-height: 480px; }
  .word-two-column { grid-template-columns: 1fr; }
}

/* r87 office stability and practical blocks */
.office-ribbon {
  position: relative;
  z-index: 30;
  isolation: isolate;
}

.office-ribbon button,
.deck-inspector button,
.deck-bulk-panel button,
.deck-presentation-controls button,
.word-real-office-app button,
.sheets-real-office-app button,
.powerpoints-app button {
  position: relative;
  z-index: 1;
  pointer-events: auto !important;
  user-select: none;
}

.office-busy-overlay.hidden {
  pointer-events: none !important;
}

.word-summary-card {
  margin: 16px 0;
  padding: 16px 18px;
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(239, 246, 255, .98), rgba(255, 255, 255, .96));
}

.word-summary-card > strong:first-child {
  display: block;
  margin-bottom: 8px;
  color: #1d4ed8;
}

.word-bookmark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-inline: 2px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: .82em;
  text-decoration: none;
}

.word-status-chip {
  display: inline-flex;
  margin: 0 3px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: .86em;
  font-weight: 700;
}

.word-mini-chart {
  margin: 18px 0;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, .34);
  border-radius: 18px;
  background: #fff;
}

.word-mini-chart svg {
  display: block;
  width: 100%;
  min-height: 120px;
  color: #2563eb;
}

.word-mini-chart rect {
  fill: currentColor;
}

.word-mini-chart line {
  stroke: rgba(100, 116, 139, .55);
  stroke-width: 2;
}

.word-mini-chart figcaption {
  margin-top: 8px;
  color: #64748b;
  font-size: .9em;
}

.word-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.word-image-grid figure {
  display: grid;
  min-height: 120px;
  place-items: center;
  margin: 0;
  border: 1px dashed rgba(148, 163, 184, .55);
  border-radius: 16px;
  background: #f8fafc;
  color: #64748b;
}

.word-table-bordered,
.word-table-bordered th,
.word-table-bordered td {
  border: 1px solid rgba(100, 116, 139, .56) !important;
  border-collapse: collapse;
}

.sheets-grid td.sheets-cell-duplicate .sheets-cell-input {
  background: #fef3c7;
}

.sheets-grid td.sheets-cell-negative .sheets-cell-input {
  color: #b91c1c;
  font-weight: 700;
}

.deck-slide.has-slide-background .deck-slide-topline,
.deck-slide.has-pptx-elements .deck-slide-topline {
  z-index: 3;
}

.deck-slide-element.is-locked {
  cursor: default;
}

.deck-element-lock {
  position: absolute;
  right: 5px;
  top: 5px;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .72);
  color: #fff;
  font-size: 10px;
  line-height: 1.4;
}

@media (max-width: 780px) {
  .word-image-grid { grid-template-columns: 1fr; }
}

.office-ribbon [data-action]:focus-visible,
.office-ribbon [data-cmd]:focus-visible,
.deck-inspector [data-action]:focus-visible,
.sheets-toolbar [data-action]:focus-visible,
.word-toolbar [data-action]:focus-visible,
.word-toolbar [data-cmd]:focus-visible {
  outline: 2px solid rgba(37, 99, 235, .62);
  outline-offset: 2px;
}

.word-textbox {
  margin: 12px 0;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, .55);
  border-radius: 14px;
  background: rgba(248, 250, 252, .92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

.word-page-number {
  margin: 18px 0 8px;
  text-align: center;
  color: #64748b;
  font-size: 12px;
}

.word-key-value-table th {
  width: 28%;
  background: rgba(241, 245, 249, .96);
}

.sheets-grid td[style*="white-space"] .sheets-cell-input {
  white-space: normal;
  overflow-wrap: anywhere;
  min-height: 32px;
  height: auto;
}

.sheets-grid td.sheets-cell-top .sheets-cell-input {
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 700;
}

.deck-slide-element[data-kind="image"] img,
.deck-slide-element[data-kind="video"] video {
  background: rgba(15, 23, 42, .08);
}

.auth-temp-lab-actions {
  margin-top: 12px;
}

.auth-temp-lab-actions .primary {
  width: 100%;
  justify-content: center;
}

.auth-temp-lab-hint {
  margin: 8px 0 0;
  color: #5f6368;
  font-size: 12px;
  line-height: 1.5;
}

.native-meeting-video-tile.server-media-offline .video-placeholder,
.video-tile.server-media-offline .video-placeholder {
  color: rgba(255,255,255,.78);
}
