:root {
  color-scheme: light;
  --bg: #f7f9ff;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --ink: #070b24;
  --muted: #5a6380;
  --line: #dfe5f4;
  --blue: #2563ff;
  --indigo: #654cff;
  --violet: #954cff;
  --teal: #13a8a8;
  --green: #19a66a;
  --amber: #f59f18;
  --red: #f04455;
  --pink: #e84faa;
  --shadow: 0 24px 80px rgba(50, 66, 130, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 4%, rgba(245, 159, 24, 0.22), transparent 28rem),
    radial-gradient(circle at 88% 8%, rgba(232, 79, 170, 0.16), transparent 28rem),
    radial-gradient(circle at 50% 16%, rgba(37, 99, 255, 0.12), transparent 36rem),
    linear-gradient(180deg, #fbfcff 0%, var(--bg) 52%, #ffffff 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button.desktop-shortcut {
  border: 0;
  background: transparent;
}

button {
  cursor: pointer;
}

svg {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
  padding: 0 6vw;
  border-bottom: 1px solid rgba(216, 224, 243, 0.78);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.22rem;
  font-weight: 800;
  white-space: nowrap;
}

.brand-initial {
  color: var(--blue);
}

.brand-mark {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.45rem;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  color: #111735;
  font-size: 0.94rem;
  font-weight: 600;
}

.desktop-nav a {
  transition: color 180ms ease;
}

.desktop-nav a:hover {
  color: var(--blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ghost-button,
.primary-button,
.dark-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.25rem;
  border-radius: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.ghost-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.primary-button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 16px 36px rgba(92, 80, 255, 0.28);
}

.primary-button.small {
  min-height: 42px;
}

.dark-button {
  width: fit-content;
  color: #ffffff;
  background: #070b24;
}

main {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(440px, calc(100vh - 260px), 560px);
  padding: 2.6rem 0 1.35rem;
  text-align: center;
}

.hero-copy {
  display: grid;
  justify-items: center;
  width: min(100%, 1060px);
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1.2rem;
  padding: 0.5rem 0.9rem;
  color: #401388;
  border: 1px solid rgba(149, 76, 255, 0.18);
  border-radius: 999px;
  background: rgba(149, 76, 255, 0.08);
  font-size: 0.88rem;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 1000px;
  margin-bottom: 1rem;
  font-size: clamp(2.85rem, 5.3vw, 5.05rem);
  line-height: 1.03;
  letter-spacing: 0;
}

h1 span {
  display: inline-block;
  padding-bottom: 0.08em;
  color: transparent;
  background: linear-gradient(90deg, var(--violet), var(--blue) 55%, var(--teal));
  background-clip: text;
}

h1::after {
  content: none;
}

.hero-subtitle {
  max-width: 780px;
  margin-bottom: 1.6rem;
  color: #303954;
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  line-height: 1.6;
}

.text-emphasis {
  color: var(--blue);
  font-weight: 800;
}

.command-bar {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  width: min(100%, 980px);
  min-height: 76px;
  padding: 0.55rem;
  border: 2px solid transparent;
  border-radius: 1.35rem;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(90deg, var(--blue), var(--violet), var(--pink)) border-box;
  box-shadow: 0 18px 48px rgba(85, 98, 180, 0.19);
}

.command-bar.has-attachments,
.chat-prompt.has-attachments {
  grid-template-rows: auto auto;
}

.command-bar:focus-within {
  outline: 3px solid rgba(37, 99, 255, 0.16);
}

.command-bar.is-dragging,
.chat-prompt.is-dragging {
  outline: 3px solid rgba(37, 99, 255, 0.24);
  background:
    linear-gradient(rgba(246, 249, 255, 0.96), rgba(246, 249, 255, 0.96)) padding-box,
    linear-gradient(90deg, var(--blue), var(--violet), var(--pink)) border-box;
}

.command-bar.is-dragging .upload-plus,
.chat-prompt.is-dragging .upload-plus {
  color: #ffffff;
  background: var(--blue);
}

.command-bar input {
  min-width: 0;
  height: 100%;
  padding: 0 1rem;
  color: var(--ink);
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 1.1rem;
}

.command-bar input::placeholder {
  color: #66708f;
}

.level-disclaimer-under-prompt {
  width: min(100%, 980px);
  margin: 0.42rem 6.6rem 0 0;
  color: #68728e;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: right;
  justify-self: center;
}

.attachment-list {
  display: none;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.35rem 0.35rem 0.45rem;
}

.has-attachments .attachment-list {
  display: flex;
}

.attachment-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: min(100%, 360px);
  gap: 0.4rem;
  padding: 0.4rem 0.55rem;
  color: #17213f;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(247, 249, 255, 0.96);
  font-size: 0.82rem;
  font-weight: 700;
}

.image-attachment-chip {
  width: 96px;
  height: 96px;
  padding: 0;
  overflow: visible;
  border-radius: 0.8rem;
  background: transparent;
  box-shadow: 0 8px 24px rgba(17, 23, 53, 0.14);
}

.attachment-thumbnail-button {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(17, 23, 53, 0.12);
  border-radius: 0.8rem;
  background: #ffffff;
}

.attachment-thumbnail-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attachment-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-preview-button,
.attachment-remove-button {
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.attachment-preview-button {
  min-width: 2.55rem;
  height: 1.45rem;
  padding: 0 0.55rem;
  color: var(--blue);
  background: rgba(37, 99, 255, 0.09);
  font-size: 0.72rem;
  font-weight: 900;
}

.attachment-preview-button:hover {
  background: rgba(37, 99, 255, 0.16);
}

.attachment-remove-button {
  width: 1.15rem;
  height: 1.15rem;
  color: #64708f;
}

.image-attachment-chip .attachment-remove-button {
  position: absolute;
  top: -0.45rem;
  right: -0.45rem;
  width: 1.65rem;
  height: 1.65rem;
  color: #ffffff;
  background: #071026;
  box-shadow: 0 8px 18px rgba(7, 16, 38, 0.28);
}

.attachment-remove-button:hover {
  color: var(--red);
  background: rgba(240, 68, 85, 0.1);
}

.image-attachment-chip .attachment-remove-button:hover {
  color: #ffffff;
  background: #ef3349;
}

.file-preview-modal[hidden] {
  display: none;
}

.file-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.file-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 11, 36, 0.48);
  backdrop-filter: blur(14px);
}

.file-preview-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(980px, 100%);
  max-height: min(82vh, 780px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 1.45rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 32px 90px rgba(14, 21, 52, 0.34);
}

.file-preview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.file-preview-kicker {
  display: inline-flex;
  margin-bottom: 0.35rem;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.file-preview-header h2 {
  max-width: 680px;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 1.15rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-preview-header p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.file-preview-close {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 0.85rem;
  border: 1px solid rgba(37, 99, 255, 0.16);
  border-radius: 0.8rem;
  color: var(--blue);
  background: rgba(37, 99, 255, 0.08);
  font-weight: 900;
}

.file-preview-body {
  min-height: 260px;
  overflow: auto;
  padding: 1rem;
  background: #f7f9ff;
}

.file-preview-body img,
.file-preview-body video,
.file-preview-body audio,
.file-preview-body iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
  border-radius: 1rem;
  background: #ffffff;
}

.file-preview-body img {
  height: auto;
  max-height: 62vh;
  object-fit: contain;
}

.file-preview-body video,
.file-preview-body iframe {
  min-height: 58vh;
}

.file-preview-body audio {
  margin-top: 1rem;
}

.file-preview-text {
  margin: 0;
  overflow: auto;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  color: #10182f;
  background: #ffffff;
  font: 0.92rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
}

.file-preview-empty {
  display: grid;
  gap: 0.65rem;
  align-content: center;
  min-height: 220px;
  padding: 1rem;
  border: 1px dashed rgba(37, 99, 255, 0.25);
  border-radius: 1rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
}

.file-preview-empty strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.quick-actions,
.example-list {
  display: grid;
  gap: 0.85rem;
}

.quick-actions {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 0;
}

.action-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 86px;
  gap: 0.75rem;
  padding: 0.9rem;
  color: #111735;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(53, 65, 120, 0.08);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease;
}

.action-card:hover {
  border-color: rgba(37, 99, 255, 0.36);
  transform: translateY(-2px);
}

.action-card span:last-child {
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
}

.action-icon,
.tool-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 0.75rem;
}

.blue {
  color: var(--blue);
  background: rgba(37, 99, 255, 0.11);
}

.green {
  color: var(--green);
  background: rgba(25, 166, 106, 0.11);
}

.amber {
  color: var(--amber);
  background: rgba(245, 159, 24, 0.13);
}

.red {
  color: var(--red);
  background: rgba(240, 68, 85, 0.11);
}

.purple {
  color: var(--violet);
  background: rgba(149, 76, 255, 0.12);
}

.pink {
  color: var(--pink);
  background: rgba(232, 79, 170, 0.12);
}

.teal {
  color: var(--teal);
  background: rgba(19, 168, 168, 0.12);
}

.upload-panel {
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  margin: 1.65rem 0;
  padding: clamp(1.8rem, 5vw, 3.2rem);
  text-align: center;
  border: 2px dashed rgba(101, 76, 255, 0.55);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.58);
}

.upload-panel.is-dragging {
  border-color: rgba(37, 99, 255, 0.8);
  background: rgba(246, 249, 255, 0.9);
  box-shadow: 0 22px 62px rgba(85, 98, 180, 0.16);
}

.upload-icon {
  color: var(--indigo);
}

.upload-icon svg {
  width: 3rem;
  height: 3rem;
}

.upload-panel h2 {
  margin-bottom: 0;
  font-size: clamp(1.25rem, 2.3vw, 1.65rem);
}

.upload-panel h2 span {
  color: var(--blue);
}

.upload-inline-button {
  padding: 0;
  color: var(--blue);
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: inherit;
  cursor: pointer;
}

.upload-inline-button:hover,
.upload-inline-button:focus {
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: 0;
}

.upload-panel p,
.examples p {
  margin-bottom: 0.35rem;
  color: var(--muted);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.6rem 1rem;
  margin-top: 0.45rem;
  color: #424b68;
  font-size: 0.92rem;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.trust-row svg {
  width: 1rem;
  height: 1rem;
  color: #424b68;
}

.trust-row span + span::before {
  content: "•";
  margin-right: 1rem;
  color: #8a93af;
}

.examples {
  margin: 1.8rem 0;
  text-align: center;
}

.examples > p {
  font-weight: 700;
}

.example-list {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: stretch;
}

.example-list button,
.example-list a {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.75rem;
  min-height: 68px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.86);
  color: #142049;
  font-size: 0.88rem;
  font-weight: 750;
  text-align: left;
}

.example-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  color: var(--blue);
}

.example-icon {
  display: inline-grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 0.72rem;
}

.example-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.dashboard-grid,
.split-section {
  display: grid;
  gap: 1.2rem;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
}

.split-section {
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.86fr);
  margin-top: 1.2rem;
}

.panel,
.pro-panel {
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 18px 46px rgba(53, 65, 120, 0.1);
}

.panel {
  background: var(--surface);
}

.tool-panel,
.how-panel,
.fix-panel {
  padding: clamp(1.1rem, 2.6vw, 1.55rem);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-heading h2,
.fix-panel h2,
.how-panel h2,
.pro-panel h2 {
  margin-bottom: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
}

.section-heading a,
.tool-grid a,
.fix-all {
  color: var(--blue);
  font-weight: 750;
}

.tool-grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, minmax(168px, auto));
  grid-auto-columns: calc((100% - 0.95rem) / 2);
  gap: 0.95rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding-bottom: 0.35rem;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(86, 101, 255, 0.5) rgba(226, 232, 255, 0.72);
  scrollbar-width: thin;
}

.tool-grid article {
  scroll-snap-align: start;
  min-height: 168px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.72);
}

.tool-grid::-webkit-scrollbar {
  height: 0.55rem;
}

.tool-grid::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(226, 232, 255, 0.72);
}

.tool-grid::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--violet));
}

.tool-icon {
  margin-bottom: 0.75rem;
}

.tool-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.tool-grid h3,
.steps h3 {
  margin-bottom: 0.35rem;
  font-size: 0.98rem;
}

.tool-grid p,
.steps p {
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.fix-panel {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.fix-panel h2 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.45rem;
}

.fix-heading-icon,
.fix-icon {
  display: inline-grid;
  place-items: center;
  color: var(--red);
  background: rgba(240, 68, 85, 0.1);
}

.fix-heading-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
}

.fix-heading-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.fix-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.35rem 1rem 1rem;
  border: 1px solid rgba(240, 68, 85, 0.16);
  border-radius: 0.85rem;
  background: rgba(255, 245, 247, 0.82);
}

.fix-item::after {
  position: absolute;
  right: 1rem;
  top: 50%;
  content: "›";
  color: #64708f;
  font-size: 1.6rem;
  transform: translateY(-50%);
}

.fix-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.72rem;
}

.fix-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.fix-copy {
  display: grid;
  gap: 0.15rem;
}

.fix-copy strong {
  font-weight: 800;
}

.fix-copy small {
  color: var(--muted);
}

.fix-all {
  display: inline-flex;
  justify-content: center;
  gap: 0.45rem;
  min-height: 50px;
  align-items: center;
  margin-top: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.72);
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.35rem;
}

.steps article {
  position: relative;
  text-align: center;
}

.steps article:not(:last-child)::after {
  position: absolute;
  top: 3.25rem;
  right: calc(-0.5rem - 0.6em);
  width: 1.2em;
  content: "→";
  color: rgba(175, 126, 115, 0.36);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  text-align: center;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.85rem;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  font-weight: 900;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 3.05rem;
  height: 3.05rem;
  margin: 0 auto 1rem;
  border-radius: 0.9rem;
}

.step-icon svg {
  width: 1.45rem;
  height: 1.45rem;
}

.pro-panel {
  display: grid;
  align-content: center;
  padding: clamp(1.35rem, 3vw, 2rem);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(236, 242, 255, 0.9)),
    radial-gradient(circle at 78% 36%, rgba(101, 76, 255, 0.22), transparent 13rem);
}

.pro-badge {
  width: fit-content;
  margin-bottom: 1rem;
  padding: 0.45rem 0.8rem;
  color: #755000;
  border-radius: 999px;
  background: rgba(245, 159, 24, 0.18);
  font-size: 0.82rem;
  font-weight: 850;
}

.pro-panel ul {
  display: grid;
  gap: 0.65rem;
  padding: 0;
  margin: 1.2rem 0 1.5rem;
  color: #303954;
  list-style: none;
}

.pro-panel li {
  position: relative;
  padding-left: 1.4rem;
}

.pro-panel li::before {
  position: absolute;
  left: 0;
  content: "✓";
  color: var(--blue);
  font-weight: 900;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 2rem 0 3rem;
}

.stats div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.85rem;
  min-height: 92px;
  padding: 1rem;
  border-radius: 0.85rem;
}

.stat-icon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  color: #5f67ca;
}

.stat-icon svg {
  width: 2.15rem;
  height: 2.15rem;
  stroke-width: 1.8;
}

.stat-icon.shield {
  color: #5a78c8;
}

.stat-copy {
  display: grid;
  gap: 0.35rem;
}

.stats strong {
  font-size: 1.08rem;
}

.stats span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(0, 2fr);
  gap: 2rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.2rem 0 1.5rem;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: grid;
  align-content: start;
  gap: 0.85rem;
}

.footer-brand p {
  max-width: 360px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.footer-links div {
  display: grid;
  align-content: start;
  gap: 0.65rem;
}

.footer-links h2 {
  margin-bottom: 0.2rem;
  color: var(--ink);
  font-size: 0.9rem;
}

.footer-links a,
.footer-bottom {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--blue);
}

.footer-bottom {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(223, 229, 244, 0.76);
}

.workdesk-page {
  background:
    radial-gradient(circle at 12% 5%, rgba(245, 159, 24, 0.18), transparent 27rem),
    radial-gradient(circle at 88% 10%, rgba(232, 79, 170, 0.14), transparent 28rem),
    radial-gradient(circle at 50% 20%, rgba(37, 99, 255, 0.14), transparent 38rem),
    linear-gradient(180deg, #fbfcff 0%, #f6f8ff 52%, #ffffff 100%);
}

.workdesk-main {
  display: grid;
  gap: 1.2rem;
  padding: 2rem 0 3rem;
}

.workdesk-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: end;
  gap: 1.4rem;
  padding-top: 1rem;
}

.workdesk-hero h1 {
  max-width: 760px;
  margin-bottom: 0.85rem;
  font-size: clamp(2.3rem, 4vw, 4.15rem);
}

.workdesk-hero p:not(.eyebrow) {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.65;
}

.workdesk-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  padding: 0.65rem;
  border: 1px solid rgba(37, 99, 255, 0.28);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 70px rgba(53, 65, 120, 0.13);
}

.workdesk-command input {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 0.75rem;
  color: var(--ink);
  background: transparent;
}

.workdesk-stats,
.workdesk-grid,
.catalog-grid {
  display: grid;
  gap: 1rem;
}

.workdesk-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.workdesk-stats article,
.integration-catalog,
.catalog-grid article {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 46px rgba(53, 65, 120, 0.08);
}

.workdesk-stats article {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
}

.workdesk-stats strong {
  font-size: 1.35rem;
}

.workdesk-stats span,
.workdesk-section-heading p,
.integration-list small,
.workstream-list small,
.queue-list span,
.security-note p,
.catalog-grid p {
  color: var(--muted);
}

.workdesk-grid {
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.55fr) minmax(250px, 0.9fr);
  align-items: start;
}

.integration-sidebar,
.workstream-panel,
.workflow-sidebar,
.integration-catalog {
  padding: 1.15rem;
}

.workdesk-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.workdesk-section-heading h2 {
  margin-bottom: 0;
  font-size: 1.18rem;
}

.workdesk-section-heading p {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.workdesk-section-heading button,
.workstream-list button,
.catalog-grid button {
  min-height: 36px;
  padding: 0 0.85rem;
  color: var(--blue);
  border: 1px solid rgba(37, 99, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.integration-list,
.workstream-list,
.queue-list {
  display: grid;
  gap: 0.75rem;
}

.integration-list article,
.workstream-list article {
  display: grid;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(223, 229, 244, 0.82);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.72);
}

.integration-list article {
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 0.78rem;
}

.integration-list strong,
.workstream-list strong,
.catalog-grid strong {
  display: block;
  margin-bottom: 0.18rem;
}

.integration-list em {
  color: var(--green);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 850;
}

.integration-icon,
.workstream-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: #ffffff;
  border-radius: 0.75rem;
  font-size: 0.82rem;
  font-weight: 900;
}

.integration-icon {
  width: 2.25rem;
  height: 2.25rem;
}

.integration-icon.google {
  background: linear-gradient(135deg, #4285f4, #34a853);
}

.integration-icon.microsoft {
  background: linear-gradient(135deg, #2563ff, #7c3aed);
}

.integration-icon.mail {
  background: linear-gradient(135deg, #2563ff, #13a8a8);
}

.integration-icon.slack {
  background: linear-gradient(135deg, #e84faa, #f59f18);
}

.integration-icon.teal,
.integration-icon.secure {
  background: linear-gradient(135deg, var(--teal), var(--green));
}

.workstream-list article {
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 0.9rem;
}

.workstream-icon {
  width: 2.55rem;
  height: 2.55rem;
}

.workstream-icon.blue {
  background: rgba(37, 99, 255, 0.1);
  color: var(--blue);
}

.workstream-icon.green {
  background: rgba(25, 166, 106, 0.1);
  color: var(--green);
}

.workstream-icon.amber {
  background: rgba(245, 159, 24, 0.13);
  color: var(--amber);
}

.workstream-icon.purple {
  background: rgba(149, 76, 255, 0.11);
  color: var(--violet);
}

.workstream-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.queue-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.queue-list li {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem;
  border: 1px solid rgba(223, 229, 244, 0.82);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.72);
}

.security-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(25, 166, 106, 0.18);
  border-radius: 1rem;
  background: rgba(240, 253, 248, 0.76);
}

.security-note p {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
}

.integration-catalog {
  margin-top: 0.2rem;
}

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

.catalog-grid article {
  display: grid;
  align-content: start;
  gap: 0.65rem;
  padding: 1rem;
}

.catalog-grid p {
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.workdesk-page {
  overflow: hidden;
}

.header-toggle-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 1rem;
  color: #111735;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 750;
  white-space: nowrap;
}

.workdesk-header-hidden .site-header {
  display: none;
}

.workdesk-header-hidden .desktop-surface {
  min-height: 100vh;
}

.restore-header-button {
  position: absolute;
  z-index: 6;
  top: 0.85rem;
  right: 0.85rem;
  display: none;
  align-items: center;
  gap: 0.45rem;
  min-height: 38px;
  padding: 0 0.75rem 0 0.45rem;
  color: #111735;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 16px 42px rgba(50, 66, 130, 0.14);
  backdrop-filter: blur(18px);
  font-weight: 800;
}

.restore-header-button img {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 0.45rem;
}

.workdesk-header-hidden .restore-header-button {
  display: inline-flex;
}

.system-icons-toggle {
  position: absolute;
  z-index: 7;
  top: 0.85rem;
  left: 0.85rem;
  display: inline-grid;
  place-items: center;
  gap: 0.18rem;
  width: 38px;
  height: 38px;
  color: #111735;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 42px rgba(50, 66, 130, 0.14);
  backdrop-filter: blur(18px);
}

.system-icons-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.system-icons-collapsed .system-icons-toggle span:first-child {
  transform: translateY(5px) rotate(45deg);
}

.system-icons-collapsed .system-icons-toggle span:nth-child(2) {
  opacity: 0;
}

.system-icons-collapsed .system-icons-toggle span:last-child {
  transform: translateY(-5px) rotate(-45deg);
}

.desktop-surface {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 76px);
  margin: 0;
  padding: clamp(1.2rem, 3vw, 2rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.9), transparent 15rem),
    radial-gradient(circle at 84% 16%, rgba(232, 79, 170, 0.18), transparent 26rem),
    radial-gradient(circle at 52% 60%, rgba(37, 99, 255, 0.18), transparent 34rem),
    linear-gradient(135deg, #fdf8ea 0%, #f6f8ff 42%, #eef5ff 100%);
}

.workdesk-page[data-wallpaper="sky"] .desktop-surface {
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.92), transparent 15rem),
    radial-gradient(circle at 82% 14%, rgba(19, 168, 168, 0.18), transparent 26rem),
    radial-gradient(circle at 52% 64%, rgba(37, 99, 255, 0.2), transparent 34rem),
    linear-gradient(135deg, #f8fbff 0%, #edf6ff 46%, #f7fbff 100%);
}

.workdesk-page[data-wallpaper="sunset"] .desktop-surface {
  background:
    radial-gradient(circle at 16% 18%, rgba(245, 159, 24, 0.26), transparent 18rem),
    radial-gradient(circle at 84% 12%, rgba(232, 79, 170, 0.22), transparent 28rem),
    radial-gradient(circle at 50% 64%, rgba(149, 76, 255, 0.18), transparent 34rem),
    linear-gradient(135deg, #fff8ee 0%, #fff3f8 48%, #f7f4ff 100%);
}

.workdesk-page[data-wallpaper="mono"] .desktop-surface {
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.78), transparent 17rem),
    radial-gradient(circle at 72% 20%, rgba(90, 99, 128, 0.13), transparent 30rem),
    linear-gradient(135deg, #f9fafc 0%, #eef1f7 52%, #ffffff 100%);
}

.desktop-surface::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 78%);
}

.desktop-onboarding {
  position: absolute;
  left: 50%;
  bottom: 7.2rem;
  z-index: 6;
  display: grid;
  gap: 0.9rem;
  width: min(620px, calc(100vw - 2rem));
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 70px rgba(50, 66, 130, 0.2);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.desktop-onboarding[hidden] {
  display: none;
}

.desktop-onboarding h1,
.desktop-onboarding p {
  margin: 0;
}

.desktop-onboarding h1 {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1.1;
}

.desktop-onboarding p {
  max-width: 54ch;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.desktop-onboarding > div:first-child > span {
  display: inline-flex;
  margin-bottom: 0.4rem;
  padding: 0.25rem 0.55rem;
  color: var(--blue);
  border-radius: 999px;
  background: rgba(37, 99, 255, 0.1);
  font-size: 0.76rem;
  font-weight: 900;
}

.onboarding-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.onboarding-steps article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.65rem;
  border: 1px solid rgba(37, 99, 255, 0.14);
  border-radius: 0.85rem;
  background: rgba(246, 249, 255, 0.72);
}

.onboarding-steps strong {
  display: inline-grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  font-size: 0.78rem;
}

.onboarding-steps span {
  color: #17213f;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.25;
}

.onboarding-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.onboarding-actions button,
.onboarding-dismiss {
  min-height: 38px;
  padding: 0 0.85rem;
  color: var(--blue);
  border: 1px solid rgba(37, 99, 255, 0.22);
  border-radius: 999px;
  background: rgba(246, 249, 255, 0.9);
  font-weight: 850;
}

.onboarding-actions button:first-child {
  color: #ffffff;
  border: 0;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}

.onboarding-dismiss {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  min-height: 32px;
  padding: 0 0.65rem;
  color: var(--muted);
  background: rgba(13, 22, 52, 0.05);
}

.setup-modal-card {
  display: grid;
  gap: 1rem;
}

.setup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.05fr;
  gap: 0.85rem;
}

.setup-panel {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  min-height: 100%;
  padding: 0.9rem;
  border: 1px solid rgba(37, 99, 255, 0.13);
  border-radius: 1rem;
  background: rgba(246, 249, 255, 0.72);
}

.setup-panel h3 {
  margin: 0;
  color: #0a1026;
  font-size: 1rem;
}

.setup-kicker {
  width: max-content;
  padding: 0.2rem 0.5rem;
  color: var(--blue);
  border-radius: 999px;
  background: rgba(37, 99, 255, 0.1);
  font-size: 0.72rem;
  font-weight: 900;
}

.setup-role-options,
.setup-level-options,
.setup-app-list {
  display: grid;
  gap: 0.55rem;
}

.setup-role-options button,
.setup-level-options label,
.setup-app-list label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.55rem;
  width: 100%;
  padding: 0.7rem;
  color: #121a35;
  border: 1px solid rgba(37, 99, 255, 0.14);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.76);
  text-align: left;
}

.setup-role-options button {
  grid-template-columns: 1fr;
}

.setup-role-options button.is-active,
.setup-level-options label:has(input:checked),
.setup-app-list label:has(input:checked) {
  border-color: rgba(37, 99, 255, 0.46);
  background: rgba(235, 241, 255, 0.95);
  box-shadow: 0 12px 30px rgba(37, 99, 255, 0.12);
}

.setup-role-options strong,
.setup-level-options strong,
.setup-app-list strong {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.86rem;
}

.setup-role-options small,
.setup-level-options small,
.setup-app-list small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

.setup-level-options input,
.setup-app-list input {
  margin-top: 0.15rem;
  accent-color: var(--blue);
}

.setup-app-list {
  max-height: 308px;
  overflow: auto;
  padding-right: 0.15rem;
}

.setup-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.setup-modal-actions button {
  min-height: 42px;
  padding: 0 1rem;
  color: var(--blue);
  border: 1px solid rgba(37, 99, 255, 0.2);
  border-radius: 999px;
  background: rgba(246, 249, 255, 0.92);
  font-weight: 900;
}

.setup-modal-actions button:first-child {
  color: #ffffff;
  border: 0;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}

.desktop-icons {
  position: relative;
  z-index: 1;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(6, 106px);
  grid-auto-columns: 92px;
  gap: 0.8rem 1.05rem;
  width: max-content;
  max-width: calc(100vw - 2.4rem);
  max-height: calc(100vh - 230px);
  overflow: auto;
  padding: 0.2rem;
  scrollbar-width: thin;
}

.desktop-icons.is-draggable {
  position: absolute;
  inset: clamp(1.2rem, 3vw, 2rem) clamp(1.2rem, 3vw, 2rem) 5rem clamp(1.2rem, 3vw, 2rem);
  display: block;
  width: auto;
  max-width: none;
  max-height: none;
  overflow: visible;
  padding: 0;
}

.desktop-shortcut {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.42rem;
  min-width: 0;
  padding: 0.45rem 0.25rem;
  border-radius: 0.9rem;
  color: #111735;
  text-align: center;
  transition: background 160ms ease, transform 160ms ease;
}

.desktop-shortcut.is-positioned {
  position: absolute;
  width: 104px;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.desktop-icons.is-draggable .pinned-connect-shortcut {
  position: absolute;
  top: 0;
  left: 0;
  width: 104px;
  cursor: pointer;
}

.desktop-icons.is-draggable .pinned-settings-shortcut {
  position: absolute;
  top: 106px;
  left: 0;
  width: 104px;
  cursor: pointer;
}

.system-icons-collapsed .pinned-connect-shortcut,
.system-icons-collapsed .pinned-settings-shortcut {
  display: none;
}

.desktop-shortcut.is-hidden {
  display: none !important;
}

.workdesk-page:not(.desktop-apps-ready) [data-desktop-shortcut] {
  display: none !important;
}

.desktop-shortcut.is-dragging {
  z-index: 8;
  cursor: grabbing;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 20px 48px rgba(50, 66, 130, 0.18);
  transform: scale(1.04);
}

.desktop-shortcut:hover,
.desktop-shortcut:focus-visible,
.desktop-shortcut.is-selected {
  outline: 0;
  background: rgba(255, 255, 255, 0.58);
  transform: translateY(-2px);
}

.desktop-shortcut::after {
  position: absolute;
  top: 0.3rem;
  right: 0.55rem;
  min-width: 0.72rem;
  height: 0.72rem;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  content: "";
  box-shadow: 0 6px 14px rgba(50, 66, 130, 0.16);
}

.shortcut-count {
  position: absolute;
  top: -0.15rem;
  right: 0.1rem;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.28rem;
  color: #ffffff;
  border-radius: 999px;
  background: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.88);
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
}

.shortcut-count[hidden] {
  display: none;
}

.desktop-shortcut[data-status="ready"]::after {
  background: var(--blue);
}

.desktop-shortcut[data-status="connected"]::after {
  background: var(--green);
}

.desktop-shortcut[data-status="needs-login"]::after {
  background: var(--amber);
}

.desktop-shortcut[data-status="queued"]::after {
  background: var(--pink);
}

.desktop-shortcut[data-status="add"]::after {
  background: #111735;
}

.desktop-shortcut > span:last-child {
  max-width: 104px;
  padding: 0.12rem 0.3rem;
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 22px rgba(50, 66, 130, 0.08);
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.2;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.desktop-icon {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #ffffff;
  border-radius: 1.15rem;
  box-shadow: 0 14px 34px rgba(50, 66, 130, 0.18);
  font-size: 1.35rem;
  font-weight: 900;
}

.desktop-icon img {
  width: 58px;
  height: 58px;
  border-radius: 1.15rem;
}

.desktop-icon svg {
  width: 1.7rem;
  height: 1.7rem;
  stroke-width: 2.1;
}

.desktop-icon.itt,
.desktop-icon.microsoft,
.desktop-icon.workflows,
.desktop-icon.automations,
.desktop-icon.approvals {
  background: linear-gradient(135deg, var(--blue), var(--violet));
}

.desktop-icon.files,
.desktop-icon.docs,
.desktop-icon.notes {
  background: linear-gradient(135deg, #2563ff, #13a8a8);
}

.desktop-icon.google {
  background: linear-gradient(135deg, #4285f4, #34a853);
}

.desktop-icon.outlook,
.desktop-icon.calendar {
  background: linear-gradient(135deg, #2563ff, #48a7ff);
}

.desktop-icon.slack {
  background: linear-gradient(135deg, #e84faa, #f59f18);
}

.desktop-icon.sheets {
  background: linear-gradient(135deg, var(--green), var(--teal));
}

.desktop-icon.apps {
  background: linear-gradient(135deg, var(--violet), var(--pink));
}

.desktop-icon.credits {
  background: linear-gradient(135deg, var(--amber), var(--pink));
}

.desktop-icon.add {
  background: linear-gradient(135deg, #070b24, var(--blue));
}

.desktop-icon.settings {
  background: linear-gradient(135deg, #17213f, #64708f);
}

.desktop-icon.folder {
  color: #ffffff;
  background: linear-gradient(135deg, #f59f18, #2563ff);
}

.desktop-window-layer {
  position: absolute;
  z-index: 2;
  inset: clamp(1rem, 3vw, 1.7rem) clamp(1rem, 3vw, 1.7rem) 5rem clamp(1rem, 3vw, 1.7rem);
  pointer-events: none;
}

.app-window {
  position: absolute;
  width: min(520px, calc(100vw - 2rem));
  height: auto;
  min-height: 320px;
  min-width: 340px;
  max-width: calc(100vw - 2rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 28px 90px rgba(50, 66, 130, 0.22);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

.app-window.is-active {
  outline: 3px solid rgba(37, 99, 255, 0.14);
}

.app-window.is-minimized {
  display: none;
}

.app-window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 58px;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(223, 229, 244, 0.8);
  cursor: grab;
}

.app-window-titlebar strong,
.app-window-titlebar span {
  display: block;
}

.app-window-titlebar strong {
  font-size: 0.98rem;
}

.app-window-titlebar span {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.1rem;
}

.app-window-titlebar nav {
  display: flex;
  gap: 0.4rem;
}

.app-window-titlebar button {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #17213f;
  border: 0;
  border-radius: 999px;
  background: rgba(13, 22, 52, 0.06);
  font-weight: 900;
}

.window-snap-menu {
  position: absolute;
  z-index: 4;
  top: 3.25rem;
  right: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(104px, 1fr));
  gap: 0.4rem;
  width: min(260px, calc(100% - 2rem));
  padding: 0.55rem;
  border: 1px solid rgba(37, 99, 255, 0.16);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 50px rgba(50, 66, 130, 0.18);
  backdrop-filter: blur(16px);
}

.window-snap-menu[hidden] {
  display: none;
}

.window-snap-menu button {
  min-height: 34px;
  padding: 0 0.55rem;
  color: #17213f;
  border: 1px solid rgba(37, 99, 255, 0.12);
  border-radius: 0.65rem;
  background: rgba(246, 249, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 850;
  text-align: left;
}

.window-snap-menu button:hover {
  color: var(--blue);
  border-color: rgba(37, 99, 255, 0.34);
  background: #ffffff;
}

.app-window-body {
  display: grid;
  gap: 0.9rem;
  max-height: calc(100% - 58px);
  padding: 1rem;
  overflow: auto;
}

.app-window-prompt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.55rem;
  padding: 0.55rem;
  border: 1px solid rgba(37, 99, 255, 0.22);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 34px rgba(50, 66, 130, 0.08);
}

.app-window-prompt input {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 0.65rem;
  color: var(--ink);
  background: transparent;
}

.app-window-prompt .dictate-button,
.app-window-prompt .voice-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
}

.app-window-prompt .dictate-button {
  color: #0d1634;
  background: transparent;
}

.app-window-prompt .dictate-button:hover {
  background: rgba(13, 22, 52, 0.06);
}

.app-window-prompt .voice-button {
  color: #ffffff;
  background: #050505;
}

.app-window-prompt .has-input .voice-button,
.app-window-prompt.has-input .voice-button {
  background: #050505;
}

.app-window-prompt svg {
  width: 1rem;
  height: 1rem;
}

.app-window-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.app-window-actions button,
.app-window-list button {
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.74);
  font-weight: 800;
}

.app-window-actions button {
  min-height: 36px;
  padding: 0 0.85rem;
  color: var(--blue);
}

.app-window-list {
  display: grid;
  gap: 0.55rem;
}

.app-window-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 46px;
  padding: 0 0.8rem;
  color: #17213f;
  text-align: left;
}

.app-window-list span {
  color: var(--blue);
  font-size: 0.78rem;
}

.app-window-list .simulated-user-message {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}

.app-window-list .simulated-user-message span {
  color: rgba(255, 255, 255, 0.82);
}

.app-window-list .simulated-assistant-message {
  color: #17213f;
  border-color: rgba(37, 99, 255, 0.18);
  background: rgba(246, 249, 255, 0.95);
}

.app-window-list .simulated-assistant-message span {
  color: var(--blue);
}

.drive-browser,
.mail-layout,
.calendar-agenda,
.sheet-preview,
.workflow-steps,
.integration-status-list,
.credit-cards {
  display: grid;
  gap: 0.55rem;
}

.drive-row,
.mail-row,
.calendar-agenda button,
.workflow-steps button,
.integration-status-list button {
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.74);
}

.drive-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.7rem;
  min-height: 52px;
  padding: 0 0.75rem;
  text-align: left;
}

.drive-flow {
  display: grid;
  gap: 0.75rem;
}

.drive-flow-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
}

.drive-flow-toolbar input {
  min-height: 42px;
  padding: 0 0.85rem;
  color: #111735;
  border: 1px solid rgba(37, 99, 255, 0.22);
  border-radius: 999px;
  outline: 0;
  background: rgba(246, 249, 255, 0.9);
  font: inherit;
}

.drive-flow-toolbar span {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.drive-flow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(190px, 0.7fr);
  gap: 0.75rem;
}

.drive-flow .drive-browser {
  max-height: 250px;
  overflow: auto;
}

.drive-flow .drive-row {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  min-height: 58px;
}

.drive-flow .drive-row b {
  grid-column: 2 / -1;
  color: var(--muted);
  font-size: 0.72rem;
}

.drive-flow .drive-row.is-selected {
  border-color: rgba(37, 99, 255, 0.34);
  background: rgba(246, 249, 255, 0.95);
}

.drive-file-panel {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  padding: 0.85rem;
  border: 1px solid rgba(37, 99, 255, 0.18);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.76);
}

.drive-file-panel span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.drive-file-actions {
  display: grid;
  gap: 0.45rem;
}

.drive-file-actions button {
  min-height: 36px;
  color: var(--blue);
  border: 1px solid rgba(37, 99, 255, 0.22);
  border-radius: 999px;
  background: rgba(246, 249, 255, 0.88);
  font-weight: 850;
}

.mail-flow {
  display: grid;
  gap: 0.75rem;
}

.mail-flow-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
}

.mail-flow-toolbar input {
  min-height: 42px;
  padding: 0 0.85rem;
  color: #111735;
  border: 1px solid rgba(37, 99, 255, 0.22);
  border-radius: 999px;
  outline: 0;
  background: rgba(246, 249, 255, 0.9);
  font: inherit;
}

.mail-flow-toolbar span {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.mail-flow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(200px, 0.7fr);
  gap: 0.75rem;
}

.mail-flow .mail-layout {
  max-height: 270px;
  overflow: auto;
}

.mail-flow .mail-row.is-selected {
  border-color: rgba(37, 99, 255, 0.34);
  background: rgba(246, 249, 255, 0.95);
}

.mail-thread-panel {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  padding: 0.85rem;
  border: 1px solid rgba(37, 99, 255, 0.18);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.76);
}

.mail-thread-panel span,
.mail-thread-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.sending-policy {
  padding: 0.65rem;
  border: 1px solid rgba(37, 99, 255, 0.16);
  border-radius: 0.75rem;
  background: rgba(246, 249, 255, 0.78);
}

.mail-thread-actions {
  display: grid;
  gap: 0.45rem;
}

.mail-thread-actions button {
  min-height: 36px;
  color: var(--blue);
  border: 1px solid rgba(37, 99, 255, 0.22);
  border-radius: 999px;
  background: rgba(246, 249, 255, 0.88);
  font-weight: 850;
}

.messaging-flow {
  display: grid;
  gap: 0.8rem;
}

.messaging-flow-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid rgba(37, 99, 255, 0.18);
  border-radius: 0.95rem;
  background: rgba(246, 249, 255, 0.88);
}

.messaging-flow-hero .desktop-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.9rem;
}

.messaging-flow-hero strong,
.messaging-flow-hero span {
  display: block;
}

.messaging-flow-hero span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.messaging-compose-form {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.65rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.74);
}

.messaging-compose-form label {
  display: grid;
  gap: 0.28rem;
}

.messaging-compose-form label.full,
.messaging-compose-actions {
  grid-column: 1 / -1;
}

.messaging-compose-form span {
  color: #17213f;
  font-size: 0.74rem;
  font-weight: 850;
}

.messaging-compose-form input,
.messaging-compose-form select,
.messaging-compose-form textarea {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  outline: 0;
  background: #ffffff;
  color: #111735;
  font: inherit;
}

.messaging-compose-form input,
.messaging-compose-form select {
  min-height: 40px;
  padding: 0 0.75rem;
}

.messaging-compose-form textarea {
  min-height: 96px;
  resize: vertical;
  padding: 0.75rem;
  line-height: 1.45;
}

.messaging-compose-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.messaging-compose-actions button {
  min-height: 36px;
  padding: 0 0.85rem;
  color: var(--blue);
  border: 1px solid rgba(37, 99, 255, 0.22);
  border-radius: 999px;
  background: rgba(246, 249, 255, 0.88);
  font-weight: 850;
}

.messaging-compose-actions button[type="submit"] {
  color: #ffffff;
  border: 0;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}

.messaging-preview {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem;
  border: 1px solid rgba(37, 99, 255, 0.18);
  border-radius: 0.95rem;
  background: rgba(246, 249, 255, 0.74);
}

.messaging-preview span,
.messaging-preview p,
.messaging-preview em {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.messaging-preview em {
  color: var(--blue);
  font-style: normal;
  font-weight: 850;
}

.commerce-flow,
.ads-flow {
  display: grid;
  gap: 0.8rem;
}

.workspace-flow-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid rgba(37, 99, 255, 0.18);
  border-radius: 0.95rem;
  background: rgba(246, 249, 255, 0.88);
}

.workspace-flow-hero .desktop-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.9rem;
}

.workspace-flow-hero strong,
.workspace-flow-hero span {
  display: block;
}

.workspace-flow-hero span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.workspace-flow-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
}

.workspace-flow-toolbar input {
  min-height: 42px;
  padding: 0 0.85rem;
  color: #111735;
  border: 1px solid rgba(37, 99, 255, 0.22);
  border-radius: 999px;
  outline: 0;
  background: rgba(246, 249, 255, 0.9);
  font: inherit;
}

.workspace-flow-toolbar span {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.workspace-flow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(210px, 0.75fr);
  gap: 0.75rem;
}

.workspace-flow-list {
  display: grid;
  gap: 0.5rem;
  max-height: 290px;
  overflow: auto;
}

.workspace-flow-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  min-height: 62px;
  padding: 0 0.75rem;
  color: #17213f;
  text-align: left;
}

.workspace-flow-row span {
  display: inline-grid;
  place-items: center;
  grid-row: span 2;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--blue);
  border-radius: 0.75rem;
  background: rgba(37, 99, 255, 0.11);
  font-weight: 900;
}

.ads-campaign-row span {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}

.workspace-flow-row small,
.workspace-flow-row em {
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
}

.workspace-flow-row em {
  grid-row: span 2;
  font-weight: 850;
  white-space: nowrap;
}

.workspace-flow-row.is-selected {
  border-color: rgba(37, 99, 255, 0.34);
  background: rgba(246, 249, 255, 0.95);
}

.workspace-flow-panel {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  padding: 0.85rem;
  border: 1px solid rgba(37, 99, 255, 0.18);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.76);
}

.workspace-flow-panel span,
.workspace-flow-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.workspace-flow-actions {
  display: grid;
  gap: 0.45rem;
}

.workspace-flow-actions button {
  min-height: 36px;
  color: var(--blue);
  border: 1px solid rgba(37, 99, 255, 0.22);
  border-radius: 999px;
  background: rgba(246, 249, 255, 0.88);
  font-weight: 850;
}

.file-type {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  color: #ffffff;
  border-radius: 0.6rem;
  background: var(--blue);
  font-size: 0.8rem;
  font-weight: 900;
}

.file-type.folder {
  background: var(--amber);
}

.file-type.sheet {
  background: var(--green);
}

.file-type.zip {
  background: var(--violet);
}

.drive-row small,
.drive-row em,
.mail-row small,
.mail-row em {
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
}

.mail-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  min-height: 62px;
  padding: 0 0.75rem;
  text-align: left;
}

.mail-row span {
  display: inline-grid;
  place-items: center;
  grid-row: span 2;
  width: 2.25rem;
  height: 2.25rem;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  font-weight: 900;
}

.mail-row em {
  grid-row: span 2;
}

.calendar-agenda button,
.workflow-steps button,
.integration-status-list button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.65rem 0.75rem;
  color: #17213f;
  text-align: left;
  font-weight: 800;
}

.calendar-agenda time,
.workflow-steps span {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2rem;
  color: var(--blue);
  border-radius: 0.65rem;
  background: rgba(37, 99, 255, 0.1);
  font-size: 0.78rem;
  font-weight: 900;
}

.calendar-agenda span {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.78rem;
}

.sheet-preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
}

.sheet-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  min-height: 40px;
  border-top: 1px solid var(--line);
}

.sheet-row:first-child {
  border-top: 0;
}

.sheet-row span {
  padding: 0.65rem;
  border-left: 1px solid var(--line);
  font-size: 0.82rem;
}

.sheet-row span:first-child {
  border-left: 0;
}

.sheet-head {
  color: #17213f;
  background: rgba(37, 99, 255, 0.08);
  font-weight: 900;
}

.integration-status-list button,
.credit-cards article {
  display: flex;
  justify-content: space-between;
}

.integration-status-list span {
  font-size: 0.78rem;
  font-weight: 900;
}

.integration-status-list .connected {
  color: var(--green);
}

.integration-status-list .warning {
  color: var(--amber);
}

.integration-status-list .ready {
  color: var(--blue);
}

.integration-detail {
  display: grid;
  gap: 0.8rem;
}

.integration-detail-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid rgba(37, 99, 255, 0.18);
  border-radius: 1rem;
  background: rgba(246, 249, 255, 0.88);
}

.integration-detail-hero .desktop-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.9rem;
}

.integration-detail-hero strong,
.integration-detail-hero span {
  display: block;
}

.integration-detail-hero span {
  color: var(--muted);
  font-size: 0.82rem;
}

.integration-detail-hero em {
  padding: 0.35rem 0.55rem;
  color: var(--amber);
  border-radius: 999px;
  background: rgba(245, 159, 24, 0.1);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.integration-detail-hero em.connected {
  color: var(--green);
  background: rgba(25, 166, 106, 0.12);
}

.integration-detail-actions,
.integration-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.integration-detail-actions button,
.integration-detail-columns button,
.integration-prompts button {
  min-height: 36px;
  padding: 0 0.78rem;
  color: var(--blue);
  border: 1px solid rgba(37, 99, 255, 0.22);
  border-radius: 999px;
  background: rgba(246, 249, 255, 0.88);
  font-weight: 850;
}

.integration-detail-actions [data-integration-action="connect"] {
  color: #ffffff;
  border: 0;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}

.integration-detail-actions [data-integration-action="disconnect"] {
  color: var(--red);
  border-color: rgba(240, 68, 85, 0.22);
  background: rgba(255, 245, 246, 0.86);
}

.integration-detail-grid,
.integration-detail-columns {
  display: grid;
  gap: 0.65rem;
}

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

.integration-detail-grid article,
.integration-detail-columns section,
.integration-prompts {
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.74);
}

.integration-detail-grid strong,
.integration-detail-grid span {
  display: block;
}

.integration-detail-grid span,
.integration-detail-columns p {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

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

.integration-detail-columns h3,
.integration-prompts h3 {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
}

.integration-detail-columns p {
  margin: 0.35rem 0;
}

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

.credit-cards article {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.74);
}

.credit-cards span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.notes-app {
  display: grid;
  gap: 0.75rem;
}

.notes-app textarea {
  min-height: 260px;
  resize: vertical;
  padding: 0.95rem;
  color: #101735;
  border: 1px solid rgba(37, 99, 255, 0.18);
  border-radius: 0.95rem;
  outline: 0;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font: inherit;
  line-height: 1.55;
}

.notes-app textarea:focus {
  border-color: rgba(37, 99, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(37, 99, 255, 0.1);
}

.notes-app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.notes-app-actions button {
  min-height: 36px;
  padding: 0 0.85rem;
  color: var(--blue);
  border: 1px solid rgba(37, 99, 255, 0.22);
  border-radius: 999px;
  background: rgba(246, 249, 255, 0.88);
  font-weight: 850;
}

.notes-save-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.folder-window-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.folder-app-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.76);
}

.folder-app-card .desktop-icon {
  width: 44px;
  height: 44px;
  border-radius: 0.85rem;
}

.folder-app-card .desktop-icon img {
  width: 44px;
  height: 44px;
  border-radius: 0.85rem;
}

.folder-app-card strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.folder-app-card div {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.folder-app-card button,
.folder-picker-list > button,
.folder-create-form button {
  min-height: 34px;
  border: 1px solid rgba(37, 99, 255, 0.24);
  border-radius: 999px;
  background: rgba(246, 249, 255, 0.88);
  color: var(--blue);
  font-weight: 850;
}

.folder-app-card button {
  padding: 0 0.7rem;
}

.folder-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.9rem;
  color: var(--muted);
  border: 1px dashed rgba(104, 114, 142, 0.28);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.58);
  line-height: 1.5;
}

.app-window-resize {
  position: absolute;
  right: 0.2rem;
  bottom: 0.2rem;
  width: 1.15rem;
  height: 1.15rem;
  cursor: nwse-resize;
}

.app-window-resize::before {
  position: absolute;
  right: 0.1rem;
  bottom: 0.1rem;
  width: 0.8rem;
  height: 0.8rem;
  content: "";
  border-right: 2px solid rgba(90, 99, 128, 0.48);
  border-bottom: 2px solid rgba(90, 99, 128, 0.48);
  border-radius: 0 0 0.35rem 0;
}

.desktop-command-dock {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.25rem;
  width: min(320px, 30vw);
  min-width: 220px;
  padding: 0.3rem;
  border: 1px solid rgba(223, 229, 244, 0.8);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.desktop-command-dock input {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 0.65rem;
  color: var(--ink);
  background: transparent;
  font-size: 0.9rem;
}

.desktop-command-dock .dictate-button,
.desktop-command-dock .voice-button,
.taskbar-pins a {
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
}

.desktop-command-dock .dictate-button,
.desktop-command-dock .voice-button {
  width: 34px;
  height: 34px;
}

.desktop-command-dock .dictate-button {
  color: #0d1634;
  background: transparent;
}

.desktop-command-dock .voice-button {
  color: #ffffff;
  background: #050505;
}

.desktop-command-dock button svg {
  width: 0.95rem;
  height: 0.95rem;
}

.desktop-taskbar {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: auto auto auto minmax(0, 1fr) minmax(220px, auto) auto;
  align-items: center;
  gap: 0.7rem;
  min-height: 64px;
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 52px rgba(50, 66, 130, 0.12);
  backdrop-filter: blur(18px);
}

.taskbar-pins {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.taskbar-pins a {
  width: 44px;
  height: 44px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.72);
  transition: transform 160ms ease, background 160ms ease;
}

.taskbar-pins a:hover,
.taskbar-pins a:focus-visible {
  outline: 0;
  background: rgba(37, 99, 255, 0.1);
  transform: translateY(-3px);
}

.taskbar-pins img,
.taskbar-pins svg {
  width: 1.45rem;
  height: 1.45rem;
}

.taskbar-divider {
  width: 1px;
  height: 36px;
  background: rgba(104, 114, 142, 0.22);
}

.open-app-tabs {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.open-app-tab {
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.45rem;
  min-width: 138px;
  max-width: 190px;
  min-height: 42px;
  padding: 0 0.35rem 0 0.75rem;
  color: #17213f;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  font-weight: 800;
}

.open-app-tab[aria-selected="true"] {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}

.open-app-tab span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.open-app-tab small {
  opacity: 0.74;
  font-size: 0.68rem;
  font-weight: 800;
}

.open-app-tab i {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  font-style: normal;
  font-size: 1rem;
}

.open-app-tab i:hover {
  background: rgba(255, 255, 255, 0.22);
}

.taskbar-status {
  display: grid;
  justify-items: end;
  gap: 0.1rem;
  color: #17213f;
  font-size: 0.78rem;
  text-align: right;
}

.taskbar-status strong {
  font-size: 0.82rem;
}

.taskbar-status span {
  color: var(--muted);
}

.taskbar-status a {
  color: var(--blue);
  font-weight: 850;
}

.taskbar-tray {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding-left: 0.4rem;
  color: #17213f;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.taskbar-tray span {
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

.notification-toggle {
  position: relative;
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 0.28rem;
  min-height: 32px;
  padding: 0.35rem 0.55rem;
  color: #17213f;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  font: inherit;
  font-weight: 850;
}

.notification-toggle svg {
  width: 1rem;
  height: 1rem;
}

.notification-toggle span {
  display: inline-grid;
  place-items: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.25rem;
  color: #ffffff;
  background: var(--pink);
  font-size: 0.68rem;
}

.notification-panel {
  position: absolute;
  right: 1rem;
  bottom: 4.8rem;
  z-index: 8;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.7rem;
  width: min(360px, calc(100vw - 2rem));
  max-height: min(400px, calc(100vh - 10.5rem));
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 70px rgba(50, 66, 130, 0.2);
  backdrop-filter: blur(18px);
}

.notification-panel[hidden] {
  display: none;
}

.notification-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.notification-panel-heading div {
  display: flex;
  gap: 0.4rem;
}

.notification-panel-heading button {
  display: inline-grid;
  place-items: center;
  min-height: 30px;
  padding: 0 0.65rem;
  color: var(--blue);
  border: 1px solid rgba(37, 99, 255, 0.2);
  border-radius: 999px;
  background: rgba(246, 249, 255, 0.86);
  font-weight: 850;
}

.notification-panel-heading [data-close-notifications] {
  width: 30px;
  padding: 0;
  color: #17213f;
  background: rgba(13, 22, 52, 0.06);
  font-size: 1rem;
  line-height: 1;
}

.notification-list {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  min-height: 0;
  overflow: auto;
}

.notification-item,
.notification-empty {
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.76);
}

.notification-item {
  width: 100%;
  color: #17213f;
  text-align: left;
  font: inherit;
}

.notification-item[data-notification-action="approvals"] {
  cursor: pointer;
}

.notification-item[data-notification-action="approvals"]:hover {
  border-color: rgba(37, 99, 255, 0.32);
  background: rgba(246, 249, 255, 0.96);
}

.notification-item.is-unread {
  border-color: rgba(37, 99, 255, 0.28);
  background: rgba(246, 249, 255, 0.94);
}

.notification-item strong,
.notification-item span {
  display: block;
}

.notification-item span,
.notification-empty {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.desktop-context-menu {
  position: fixed;
  z-index: 40;
  display: grid;
  gap: 0.25rem;
  width: 190px;
  padding: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 22px 60px rgba(50, 66, 130, 0.18);
  backdrop-filter: blur(18px);
}

.desktop-context-menu[hidden],
.desktop-modal[hidden] {
  display: none;
}

.desktop-context-menu strong {
  padding: 0.35rem 0.45rem 0.45rem;
  color: #111735;
  font-size: 0.84rem;
}

.desktop-context-menu button {
  min-height: 34px;
  padding: 0 0.55rem;
  color: #17213f;
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
  text-align: left;
  font-weight: 700;
}

.desktop-context-menu button:hover {
  color: var(--blue);
  background: rgba(37, 99, 255, 0.08);
}

.desktop-context-menu [data-context-action="remove"]:hover {
  color: var(--red);
  background: rgba(240, 68, 85, 0.08);
}

.desktop-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(7, 11, 36, 0.22);
  backdrop-filter: blur(10px);
}

.desktop-modal-card {
  width: min(620px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 26px 84px rgba(50, 66, 130, 0.22);
}

.desktop-modal-card.compact {
  width: min(480px, 100%);
}

.desktop-modal-card.wide {
  width: min(980px, 100%);
}

.desktop-modal-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.desktop-modal-heading h2 {
  margin-bottom: 0.25rem;
  font-size: 1.25rem;
}

.desktop-modal-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.desktop-modal-heading > button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(13, 22, 52, 0.06);
  font-size: 1.35rem;
  line-height: 1;
}

.approval-preview-card {
  display: grid;
  gap: 0.8rem;
  padding: 0.95rem;
  border: 1px solid rgba(37, 99, 255, 0.18);
  border-radius: 1rem;
  background: rgba(246, 249, 255, 0.86);
}

.approval-preview-card > span {
  justify-self: start;
  padding: 0.35rem 0.6rem;
  color: var(--blue);
  border-radius: 999px;
  background: rgba(37, 99, 255, 0.1);
  font-size: 0.76rem;
  font-weight: 900;
}

.approval-preview-card strong {
  font-size: 1rem;
}

.approval-preview-card dl {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.approval-preview-card dl div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(104, 114, 142, 0.16);
}

.approval-preview-card dt,
.approval-preview-card dd {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
}

.approval-preview-card dt {
  color: #17213f;
  font-weight: 900;
}

.approval-preview-card dd {
  color: var(--muted);
}

.approval-preview-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.approval-preview-actions button {
  min-height: 38px;
  padding: 0 0.85rem;
  color: var(--blue);
  border: 1px solid rgba(37, 99, 255, 0.22);
  border-radius: 999px;
  background: rgba(246, 249, 255, 0.88);
  font-weight: 850;
}

.approval-preview-actions [data-approval-preview-confirm] {
  color: #ffffff;
  border: 0;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}

.connect-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  max-height: min(48vh, 480px);
  overflow: auto;
  padding-right: 0.15rem;
}

.connect-options button {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  min-height: 74px;
  padding: 0.7rem;
  color: #111735;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.75);
  text-align: left;
  font-weight: 850;
}

.connect-options button > span:last-child {
  display: grid;
  gap: 0.15rem;
}

.connect-options button strong,
.connect-options button small {
  display: block;
}

.connect-options button small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.25;
}

.connect-options button.is-added {
  border-color: rgba(25, 166, 106, 0.34);
  background: rgba(240, 253, 248, 0.82);
}

.connect-options button.is-added::after {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  color: var(--green);
  content: "Added";
  font-size: 0.7rem;
  font-weight: 900;
}

.connect-options .desktop-icon {
  width: 46px;
  height: 46px;
  border-radius: 0.9rem;
}

.desktop-icon.integration {
  background: linear-gradient(135deg, #2563ff, #8b4dff);
  font-size: 1rem;
}

.connect-catalog-controls {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.connect-catalog-controls input {
  width: 100%;
  min-height: 44px;
  padding: 0 0.9rem;
  color: #111735;
  border: 1px solid rgba(37, 99, 255, 0.24);
  border-radius: 999px;
  outline: 0;
  background: rgba(246, 249, 255, 0.9);
  font: inherit;
}

.connect-category-tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.1rem;
  scrollbar-width: thin;
}

.connect-category-tabs button {
  min-height: 34px;
  padding: 0 0.75rem;
  color: #17213f;
  border: 1px solid rgba(223, 229, 244, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  font-weight: 850;
  white-space: nowrap;
}

.connect-category-tabs button.is-active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}

.connect-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1rem;
  color: var(--muted);
  border: 1px dashed rgba(104, 114, 142, 0.28);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.62);
}

.wallpaper-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.wallpaper-options button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  min-height: 70px;
  padding: 0.75rem;
  color: #111735;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.75);
  text-align: left;
  font-weight: 850;
}

.wallpaper-options button.is-selected {
  border-color: rgba(37, 99, 255, 0.34);
  background: rgba(246, 249, 255, 0.9);
}

.wallpaper-swatch {
  width: 3rem;
  height: 2.2rem;
  border-radius: 0.65rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.wallpaper-swatch.aurora {
  background: linear-gradient(135deg, #fdf8ea, #eef5ff);
}

.wallpaper-swatch.sky {
  background: linear-gradient(135deg, #f8fbff, #dff2ff);
}

.wallpaper-swatch.sunset {
  background: linear-gradient(135deg, #fff8ee, #f7d8ff);
}

.wallpaper-swatch.mono {
  background: linear-gradient(135deg, #f9fafc, #dfe4ee);
}

.folder-create-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.8fr) auto;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.95rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: rgba(246, 249, 255, 0.82);
}

.folder-create-form strong,
.folder-create-form span {
  display: block;
}

.folder-create-form span {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.folder-create-form input {
  min-width: 0;
  min-height: 40px;
  padding: 0 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
  background: #ffffff;
}

.folder-create-form button {
  padding: 0 0.95rem;
}

.settings-automation-panel {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.95rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.68);
}

.settings-panel-heading strong,
.settings-panel-heading span {
  display: block;
}

.settings-panel-heading span {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.automation-create-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px minmax(0, 1.25fr) auto;
  align-items: end;
  gap: 0.65rem;
  padding: 0.75rem;
  border: 1px solid rgba(223, 229, 244, 0.84);
  border-radius: 0.9rem;
  background: rgba(246, 249, 255, 0.72);
}

.automation-create-form.reminder {
  grid-template-columns: minmax(0, 1.35fr) 190px auto;
}

.automation-create-form.compact {
  grid-template-columns: minmax(0, 0.85fr) 120px minmax(0, 1fr) auto;
  padding: 0.65rem;
}

.automation-create-form.reminder.compact {
  grid-template-columns: minmax(0, 1fr) 176px auto;
}

.automation-create-form label {
  display: grid;
  gap: 0.28rem;
}

.automation-create-form label.wide {
  min-width: 0;
}

.automation-create-form span {
  color: #17213f;
  font-size: 0.74rem;
  font-weight: 850;
}

.automation-create-form input,
.automation-create-form select {
  min-width: 0;
  min-height: 38px;
  padding: 0 0.75rem;
  color: #111735;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  outline: 0;
  background: #ffffff;
  font: inherit;
}

.automation-create-form button {
  min-height: 38px;
  padding: 0 0.9rem;
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  font-weight: 850;
}

.automation-tool-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.automation-tool-row label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0 0.75rem;
  color: #17213f;
  border: 1px solid rgba(223, 229, 244, 0.84);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  font-weight: 750;
}

.automation-tool-row input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--blue);
}

.automation-list {
  display: grid;
  gap: 0.55rem;
  max-height: 190px;
  overflow: auto;
  padding-right: 0.15rem;
}

.automation-app {
  display: grid;
  gap: 0.75rem;
}

.app-automation-list {
  max-height: 250px;
}

.automation-empty {
  margin: 0;
  padding: 0.85rem;
  color: var(--muted);
  border: 1px dashed rgba(104, 114, 142, 0.28);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.6);
  font-size: 0.86rem;
  line-height: 1.45;
}

.automation-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem;
  border: 1px solid rgba(223, 229, 244, 0.9);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.78);
}

.automation-item.is-paused {
  opacity: 0.64;
}

.automation-item strong,
.automation-item span,
.automation-item small {
  display: block;
}

.automation-item span,
.automation-item small {
  color: var(--muted);
  font-size: 0.78rem;
}

.automation-item small {
  margin-top: 0.16rem;
  overflow-wrap: anywhere;
}

.automation-item button {
  min-height: 32px;
  padding: 0 0.7rem;
  color: var(--blue);
  border: 1px solid rgba(37, 99, 255, 0.22);
  border-radius: 999px;
  background: rgba(246, 249, 255, 0.86);
  font-weight: 850;
}

.automation-item [data-automation-action="delete"] {
  color: var(--red);
  border-color: rgba(240, 68, 85, 0.22);
  background: rgba(255, 245, 246, 0.86);
}

.approval-app {
  display: grid;
  gap: 0.75rem;
}

.approval-summary {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem;
  border: 1px solid rgba(37, 99, 255, 0.18);
  border-radius: 0.9rem;
  background: rgba(246, 249, 255, 0.88);
}

.approval-summary span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.approval-list {
  display: grid;
  gap: 0.6rem;
  max-height: 320px;
  overflow: auto;
}

.approval-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem;
  border: 1px solid rgba(223, 229, 244, 0.9);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.8);
}

.approval-item strong,
.approval-item span,
.approval-item small {
  display: block;
}

.approval-item span,
.approval-item small,
.approval-empty {
  color: var(--muted);
  font-size: 0.8rem;
}

.approval-item small {
  margin-top: 0.2rem;
  line-height: 1.4;
}

.approval-item button {
  min-height: 34px;
  padding: 0 0.75rem;
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--teal));
  font-weight: 850;
}

.approval-item [data-approval-action="reject"] {
  color: var(--red);
  border: 1px solid rgba(240, 68, 85, 0.22);
  background: rgba(255, 245, 246, 0.86);
}

.approval-empty {
  margin: 0;
  padding: 0.9rem;
  border: 1px dashed rgba(104, 114, 142, 0.28);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.58);
  line-height: 1.45;
}

.command-palette-modal {
  place-items: start center;
  padding-top: min(12vh, 6rem);
}

.command-palette {
  width: min(640px, 100%);
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 30px 90px rgba(50, 66, 130, 0.24);
  backdrop-filter: blur(18px);
}

.command-palette h2 {
  margin: 0.75rem 0 0.45rem;
  padding: 0 0.25rem;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.command-palette-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(37, 99, 255, 0.22);
  border-radius: 0.9rem;
  background: rgba(246, 249, 255, 0.86);
}

.command-palette-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111735;
  font: inherit;
  font-size: 1rem;
}

.command-palette-search span {
  padding: 0.25rem 0.45rem;
  color: var(--muted);
  border-radius: 0.45rem;
  background: rgba(13, 22, 52, 0.06);
  font-size: 0.72rem;
  font-weight: 850;
}

.command-palette-results {
  display: grid;
  gap: 0.35rem;
  max-height: min(420px, 55vh);
  overflow: auto;
}

.command-palette-results button {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
  padding: 0 0.75rem;
  color: #111735;
  border: 0;
  border-radius: 0.75rem;
  background: transparent;
  text-align: left;
  font-weight: 850;
}

.command-palette-results button:hover,
.command-palette-results button:focus-visible {
  outline: 0;
  background: rgba(37, 99, 255, 0.08);
}

.command-palette-results span,
.command-palette-results p {
  color: var(--muted);
}

.command-palette-results p {
  margin: 0;
  padding: 0.75rem;
}

.folder-picker-list {
  display: grid;
  gap: 0.65rem;
}

.folder-picker-list > button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 64px;
  padding: 0.65rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.76);
  color: #111735;
  text-align: left;
}

.folder-picker-list .desktop-icon {
  width: 44px;
  height: 44px;
  border-radius: 0.85rem;
}

.folder-picker-list small {
  color: var(--muted);
  font-weight: 800;
}

.chat-page {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  min-height: 100vh;
  height: 100vh;
  background:
    radial-gradient(circle at 16% 6%, rgba(245, 159, 24, 0.2), transparent 28rem),
    radial-gradient(circle at 86% 12%, rgba(232, 79, 170, 0.16), transparent 28rem),
    radial-gradient(circle at 50% 36%, rgba(37, 99, 255, 0.16), transparent 40rem),
    linear-gradient(180deg, #fbfcff 0%, #f4f7ff 100%);
}

.page-drop-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 2rem;
  background: rgba(247, 249, 255, 0.74);
  backdrop-filter: blur(10px);
}

.page-drop-overlay.is-visible {
  display: grid;
}

.page-drop-overlay div {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  width: min(420px, 100%);
  padding: 2rem;
  color: var(--blue);
  border: 2px dashed rgba(37, 99, 255, 0.65);
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 80px rgba(50, 66, 130, 0.18);
  font-size: 1.15rem;
  font-weight: 850;
}

.page-drop-overlay svg {
  width: 3rem;
  height: 3rem;
}

.desktop-nav a[aria-current="page"] {
  color: var(--blue);
}

.chat-main {
  display: grid;
  place-items: stretch center;
  width: min(1120px, calc(100% - 2rem));
  min-height: 0;
  height: calc(100vh - 72px);
  padding: 1rem 0 0.55rem;
  overflow: hidden;
}

.chat-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  justify-items: center;
  width: 100%;
  max-width: 960px;
  min-height: 0;
  text-align: center;
}

.chat-shell.is-empty {
  grid-template-rows: 1fr auto auto auto 1fr auto;
  align-content: stretch;
  min-height: 0;
}

.chat-shell h1 {
  max-width: 980px;
  margin: 0 0 1.35rem;
  font-size: clamp(1.55rem, 2.6vw, 2.5rem);
  font-weight: 500;
  line-height: 1.16;
}

.chat-shell h1::after {
  content: none;
}

.chat-shell:not(.is-empty) h1 {
  display: none;
}

.chat-shell:not(.is-empty) {
  grid-template-rows: minmax(0, 1fr) auto auto auto;
}

.chat-shell:not(.is-empty) .chat-thread {
  grid-row: 1;
}

.chat-shell:not(.is-empty) .chat-prompt {
  grid-row: 2;
}

.chat-shell:not(.is-empty) .level-disclaimer-under-prompt {
  grid-row: 3;
  align-self: start;
}

.chat-shell:not(.is-empty) .chat-disclaimer {
  grid-row: 4;
}

.chat-prompt {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  align-self: end;
  width: 100%;
  min-height: 86px;
  padding: 0.65rem;
  border: 2px solid transparent;
  border-radius: 1.3rem;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(90deg, var(--blue), var(--violet), var(--pink)) border-box;
  box-shadow: 0 22px 62px rgba(85, 98, 180, 0.2);
}

.chat-prompt.has-attachments {
  grid-template-rows: auto auto;
}

.chat-prompt.has-attachments .attachment-list {
  grid-row: 1;
  grid-column: 1 / -1;
}

.chat-prompt.has-attachments .upload-plus,
.chat-prompt.has-attachments textarea,
.chat-prompt.has-attachments .level-picker,
.chat-prompt.has-attachments .dictate-button,
.chat-prompt.has-attachments .voice-button {
  grid-row: 2;
}

.chat-shell.is-empty .chat-prompt {
  grid-row: 3;
}

.chat-shell.is-empty .level-disclaimer-under-prompt {
  grid-row: 4;
  align-self: start;
}

.chat-shell.is-empty .chat-disclaimer {
  grid-row: 5;
  align-self: end;
}

.chat-disclaimer {
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  margin: 0.55rem 0 0;
  color: #68728e;
  font-size: 0.76rem;
  line-height: 1.35;
  text-align: center;
}

.chat-disclaimer {
  align-self: end;
}

.chat-disclaimer a {
  color: #27324f;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.voice-status {
  min-height: 1em;
  color: var(--blue);
  font-weight: 800;
}

.voice-status:empty {
  display: none;
}

.chat-prompt:focus-within {
  outline: 3px solid rgba(37, 99, 255, 0.16);
}

.chat-prompt textarea {
  min-width: 0;
  width: 100%;
  max-height: 9.5rem;
  padding: 0 1rem;
  color: var(--ink);
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 1.18rem;
  line-height: 1.45;
  resize: none;
  overflow-y: auto;
  scrollbar-width: thin;
}

.chat-prompt textarea::placeholder {
  color: #66708f;
}

.upload-plus,
.level-picker select,
.dictate-button,
.voice-button {
  border: 0;
}

.upload-plus {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--blue);
  border-radius: 0.95rem;
  background: rgba(37, 99, 255, 0.08);
}

.upload-plus:hover {
  background: rgba(37, 99, 255, 0.13);
}

.dictate-button,
.voice-button {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
}

.level-picker {
  position: relative;
  display: inline-grid;
  align-items: center;
}

.level-picker select {
  appearance: none;
  min-width: 5.35rem;
  height: 42px;
  padding: 0 1.45rem 0 0.65rem;
  color: #66708f;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  outline: 0;
  cursor: pointer;
}

.level-picker::after {
  content: "";
  position: absolute;
  right: 0.55rem;
  width: 0.42rem;
  height: 0.42rem;
  border-right: 1.8px solid #66708f;
  border-bottom: 1.8px solid #66708f;
  transform: translateY(-18%) rotate(45deg);
  pointer-events: none;
}

.level-picker select:hover,
.level-picker select:focus {
  color: var(--blue);
  background: rgba(37, 99, 255, 0.08);
}

.level-picker:has(select:hover)::after,
.level-picker:has(select:focus)::after {
  border-color: var(--blue);
}

.dictate-button {
  color: #0d1634;
  background: transparent;
}

.dictate-button:hover {
  background: rgba(13, 22, 52, 0.06);
}

.dictate-button.is-listening,
.is-listening .dictate-button {
  color: var(--blue);
  background: rgba(37, 99, 255, 0.1);
}

.voice-button {
  color: #ffffff;
  background: #050505;
}

.voice-button:hover {
  background: #1c1c1c;
}

.voice-button.is-listening,
.is-listening .voice-button {
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(37, 99, 255, 0.12);
}

.voice-button.voice-mode-active,
.voice-mode-active .voice-button {
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(37, 99, 255, 0.14);
}

.voice-button svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 2.3;
}

.voice-button .enter-icon {
  display: none;
}

.has-input .voice-button .voice-icon {
  display: none;
}

.has-input .voice-button .enter-icon {
  display: block;
}

.voice-button.has-text .voice-icon {
  display: none;
}

.voice-button.has-text .enter-icon {
  display: block;
}

.voice-button span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.chat-thread {
  display: grid;
  align-content: start;
  gap: 1rem;
  width: 100%;
  min-height: 0;
  margin-bottom: 1rem;
  padding: 0.25rem 0.25rem 0;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.chat-shell.is-empty .chat-thread {
  display: block;
  grid-row: 1;
  visibility: hidden;
}

.chat-thread:empty {
  visibility: hidden;
}

.chat-message {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
  text-align: left;
}

.chat-message.user {
  grid-template-columns: minmax(0, 1fr) auto;
}

.chat-message.user .chat-avatar {
  order: 2;
}

.chat-message.user .chat-bubble {
  justify-self: end;
  max-width: min(72%, 640px);
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  border-color: transparent;
}

.chat-message.user.has-message-attachments {
  justify-items: end;
}

.chat-user-stack {
  display: grid;
  justify-items: end;
  gap: 0.45rem;
  max-width: min(72%, 640px);
}

.chat-user-stack .chat-bubble {
  max-width: 100%;
}

.chat-message-attachments {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 100%;
}

.chat-message-image {
  display: block;
  max-width: min(360px, 100%);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(17, 23, 53, 0.1);
  border-radius: 1.25rem;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(85, 98, 180, 0.14);
}

.chat-message-image img {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: contain;
}

.chat-message-file {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  max-width: min(360px, 100%);
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(17, 23, 53, 0.1);
  border-radius: 1rem;
  color: #17213f;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(85, 98, 180, 0.12);
  text-align: left;
}

.chat-message-file-icon {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.65rem;
  color: var(--blue);
  background: rgba(37, 99, 255, 0.09);
  font-size: 0.62rem;
  font-weight: 900;
}

.chat-message-file strong,
.chat-message-file small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-message-file small {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.chat-avatar {
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  color: var(--blue);
  border-radius: 999px;
  background: rgba(37, 99, 255, 0.1);
  font-size: 0.72rem;
  font-weight: 900;
}

.chat-bubble {
  max-width: min(84%, 720px);
  padding: 1rem 1.1rem;
  color: #17213f;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 38px rgba(85, 98, 180, 0.1);
  line-height: 1.6;
}

.chat-bubble strong {
  font-weight: 850;
}

.chat-message[data-state="loading"] .chat-bubble {
  color: var(--muted);
}

.chat-message[data-state="error"] .chat-bubble {
  border-color: rgba(240, 68, 85, 0.28);
  background: rgba(255, 245, 247, 0.9);
}

.chat-message[data-state="pivot"] .chat-bubble {
  border-color: rgba(37, 99, 255, 0.18);
  background: rgba(255, 255, 255, 0.92);
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.chat-suggestions button {
  padding: 0.45rem 0.7rem;
  color: var(--blue);
  border: 1px solid rgba(37, 99, 255, 0.22);
  border-radius: 999px;
  background: rgba(37, 99, 255, 0.07);
  font-size: 0.84rem;
  font-weight: 800;
}

.chat-suggestions button:hover {
  background: rgba(37, 99, 255, 0.12);
}

.chat-download-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
}

.chat-download-action a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: #060b1b;
  color: #fff;
  font-weight: 850;
  text-decoration: none;
}

.chat-download-action a:hover {
  transform: translateY(-1px);
}

.chat-download-action span {
  color: var(--muted);
  font-size: 0.9rem;
}

.chat-bubble .workflow-entry {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.35rem;
}

.chat-bubble .workflow-entry-title {
  margin: 0;
  font-weight: 850;
}

.chat-bubble .workflow-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.chat-bubble .workflow-card,
.chat-bubble .workflow-action {
  appearance: none;
  border: 1px solid rgba(37, 99, 255, 0.18);
  background: rgba(255, 255, 255, 0.88);
  color: #070d22;
  text-align: left;
  box-shadow: 0 10px 24px rgba(85, 98, 180, 0.08);
}

.chat-bubble .workflow-card {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem;
  border-radius: 1rem;
}

.chat-bubble .workflow-card:hover,
.chat-bubble .workflow-action:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 255, 0.38);
  background: rgba(246, 249, 255, 0.96);
}

.chat-bubble .workflow-card strong {
  color: var(--blue);
  font-weight: 900;
}

.chat-bubble .workflow-card span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.chat-bubble .workflow-action-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chat-bubble .workflow-action {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  color: var(--blue);
  font-weight: 850;
}

.message-files {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.message-file {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  width: min(420px, 100%);
  padding: 0.45rem;
  border: 1px solid rgba(37, 99, 255, 0.12);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.message-file img,
.message-file > span {
  grid-row: span 2;
  width: 54px;
  height: 54px;
  border-radius: 0.75rem;
  object-fit: cover;
  background: rgba(37, 99, 255, 0.08);
}

.message-file > span {
  display: grid;
  place-items: center;
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 900;
}

.message-file strong,
.message-file small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-file small {
  color: var(--muted);
}

.attachment-pill {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  max-width: min(18rem, 100%);
  padding: 0.4rem 0.5rem;
  border: 1px solid rgba(37, 99, 255, 0.12);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.88);
  color: #070d22;
  text-align: left;
}

.attachment-pill img,
.attachment-type {
  width: 42px;
  height: 42px;
  border-radius: 0.75rem;
  object-fit: cover;
  background: rgba(37, 99, 255, 0.09);
}

.attachment-type {
  display: grid;
  place-items: center;
  color: var(--blue);
  font-size: 0.65rem;
  font-weight: 900;
}

.attachment-pill strong,
.attachment-pill small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-pill small {
  color: var(--muted);
  font-size: 0.78rem;
}

.remove-attachment {
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: #060b1b;
  color: #fff;
  font-size: 1rem;
  line-height: 1;
}

.file-preview-body img {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  margin: 0 auto;
  border-radius: 1rem;
  object-fit: contain;
}

.file-preview-empty {
  display: grid;
  place-items: center;
  min-height: 14rem;
  border: 1px dashed rgba(37, 99, 255, 0.24);
  border-radius: 1rem;
  color: var(--muted);
  background: rgba(246, 249, 255, 0.8);
}

@media (max-width: 1040px) {
  .desktop-nav {
    gap: 1.1rem;
  }

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

  .tool-grid {
    grid-auto-columns: calc((100% - 0.95rem) / 2);
  }

  .dashboard-grid,
  .split-section {
    grid-template-columns: 1fr;
  }

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

  .site-footer {
    grid-template-columns: 1fr;
  }

  .workdesk-hero,
  .workdesk-grid {
    grid-template-columns: 1fr;
  }

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

  .chat-main {
    min-height: 0;
    height: calc(100vh - 118px);
    padding-top: 1rem;
  }

  .chat-shell {
    margin-top: 0;
  }

  .chat-prompt {
    min-height: 74px;
  }
}

@media (max-width: 760px) {
  .chat-bubble .workflow-card-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: static;
    flex-wrap: wrap;
    padding: 1rem;
  }

  .desktop-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .header-actions {
    margin-left: auto;
  }

  .ghost-button {
    display: none;
  }

  main {
    width: min(100% - 1rem, 1120px);
  }

  .hero {
    padding-top: 2rem;
  }

  h1 {
    font-size: clamp(2.65rem, 15vw, 4.5rem);
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .command-bar {
    min-height: 66px;
    border-radius: 1rem;
  }

  .level-disclaimer-under-prompt {
    margin-right: 5.4rem;
    font-size: 0.68rem;
  }

  .command-bar input {
    padding-left: 0.55rem;
    font-size: 1rem;
  }

  .chat-shell h1 {
    font-size: clamp(1.45rem, 7vw, 2.25rem);
  }

  .chat-prompt {
    grid-template-columns: 44px minmax(0, 1fr) 42px 42px;
    grid-template-areas:
      "attachments attachments attachments attachments"
      "upload input mic submit"
      "level level level level";
    gap: 0.45rem;
    align-items: center;
    min-height: 0;
    padding: 0.55rem;
    border-radius: 1.05rem;
  }

  .chat-prompt textarea {
    grid-area: input;
    min-width: 0;
    min-height: 42px;
    height: 42px;
    padding: 0 0.55rem;
    font-size: 1rem;
    line-height: 1.35;
    overflow-wrap: normal;
    word-break: normal;
    white-space: pre-wrap;
  }

  .chat-prompt .upload-plus {
    grid-area: upload;
    width: 44px;
    height: 44px;
    border-radius: 0.85rem;
  }

  .chat-prompt .level-picker {
    grid-area: level;
    justify-self: center;
    max-width: 100%;
  }

  .chat-prompt .level-picker select {
    width: min(100%, 18rem);
    height: 34px;
    padding-left: 0.8rem;
    padding-right: 1.6rem;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.82rem;
    text-align: center;
  }

  .chat-prompt .level-picker::after {
    right: 0.7rem;
  }

  .dictate-button,
  .voice-button {
    width: 42px;
    height: 42px;
  }

  .chat-prompt .dictate-button {
    grid-area: mic;
  }

  .chat-prompt .voice-button {
    grid-area: submit;
  }

  .chat-prompt .attachment-list {
    grid-area: attachments;
    align-items: flex-start;
  }

  .chat-prompt.has-attachments .upload-plus {
    grid-area: upload;
  }

  .chat-prompt.has-attachments textarea {
    grid-area: input;
  }

  .chat-prompt.has-attachments .level-picker {
    grid-area: level;
  }

  .chat-prompt.has-attachments .dictate-button {
    grid-area: mic;
  }

  .chat-prompt.has-attachments .voice-button {
    grid-area: submit;
  }

  .chat-prompt.has-attachments .attachment-list {
    grid-area: attachments;
  }

  .attachment-chip {
    max-width: 100%;
  }

  .image-attachment-chip {
    width: 84px;
    height: 84px;
  }

  .attachment-preview-button {
    min-width: 2.4rem;
  }

  .file-preview-modal {
    align-items: end;
    padding: 0.6rem;
  }

  .file-preview-dialog {
    max-height: 86vh;
    border-radius: 1.05rem;
  }

  .file-preview-header {
    padding: 0.9rem;
  }

  .file-preview-header h2 {
    max-width: 68vw;
    font-size: 1rem;
  }

  .file-preview-body {
    min-height: 220px;
    padding: 0.75rem;
  }

  .file-preview-body video,
  .file-preview-body iframe {
    min-height: 50vh;
  }

  .chat-user-stack {
    max-width: min(86vw, 640px);
  }

  .chat-message-image {
    max-width: min(82vw, 360px);
    border-radius: 1rem;
  }

  .chat-message-image img {
    max-height: 220px;
  }

  .chat-message-file {
    max-width: min(82vw, 360px);
  }

  .quick-actions,
  .tool-grid,
  .steps,
  .stats {
    grid-template-columns: 1fr;
  }

  .tool-grid {
    grid-auto-flow: row;
    grid-template-rows: none;
    grid-auto-columns: auto;
    overflow-x: visible;
    scroll-snap-type: none;
  }

  .quick-actions {
    margin-top: 0;
  }

  .example-list {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .steps article:not(:last-child)::after {
    content: none;
  }

  .trust-row {
    display: grid;
  }

  .trust-row span + span::before {
    content: none;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .workdesk-main {
    padding-top: 1rem;
  }

  .workdesk-hero,
  .workdesk-command,
  .workdesk-stats,
  .catalog-grid,
  .workstream-list article {
    grid-template-columns: 1fr;
  }

  .workdesk-command .primary-button,
  .workstream-list button,
  .catalog-grid button {
    width: 100%;
  }

  .workdesk-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .desktop-onboarding {
    position: relative;
    left: auto;
    bottom: auto;
    margin: 0 auto 1rem;
    transform: none;
  }

  .onboarding-steps {
    grid-template-columns: 1fr;
  }

  .setup-grid {
    grid-template-columns: 1fr;
  }

  .setup-modal-actions {
    justify-content: stretch;
  }

  .setup-modal-actions button {
    width: 100%;
  }

  .desktop-surface {
    min-height: calc(100vh - 126px);
    overflow-y: auto;
    padding-bottom: 11.5rem;
  }

  .desktop-icons {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(78px, 1fr));
    grid-template-rows: none;
    grid-auto-columns: auto;
    width: 100%;
    max-height: none;
    overflow: visible;
  }

  .desktop-icons.is-draggable {
    position: relative;
    inset: auto;
    display: grid;
  }

  .desktop-shortcut.is-positioned {
    position: relative;
    left: auto !important;
    top: auto !important;
    width: auto;
    touch-action: auto;
  }

  .desktop-icons.is-draggable .pinned-connect-shortcut {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
  }

  .desktop-icons.is-draggable .pinned-settings-shortcut {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
  }

  .folder-window-grid,
  .folder-create-form,
  .automation-create-form,
  .automation-create-form.reminder,
  .automation-create-form.compact,
  .automation-create-form.reminder.compact,
  .automation-tool-row,
  .automation-item,
  .approval-item {
    grid-template-columns: 1fr;
  }

  .integration-detail-hero,
  .integration-detail-grid,
  .integration-detail-columns,
  .drive-flow-toolbar,
  .drive-flow-layout,
  .mail-flow-toolbar,
  .mail-flow-layout,
  .messaging-flow-hero,
  .workspace-flow-hero,
  .workspace-flow-toolbar,
  .workspace-flow-layout,
  .messaging-compose-form {
    grid-template-columns: 1fr;
  }

  .desktop-taskbar {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 0.45rem;
  }

  .connect-options {
    grid-template-columns: 1fr;
    max-height: 54vh;
  }

  .taskbar-pins {
    justify-content: center;
  }

  .desktop-command-dock {
    width: 100%;
    min-width: 0;
  }

  .taskbar-divider {
    display: none;
  }

  .taskbar-status {
    justify-items: center;
    text-align: center;
  }

  .taskbar-tray {
    justify-content: center;
    flex-wrap: wrap;
  }

}

@media (max-width: 440px) {
  .brand {
    font-size: 1rem;
  }

  .primary-button.small {
    padding-inline: 0.85rem;
    font-size: 0.86rem;
  }

  .desktop-nav {
    gap: 0.85rem;
    font-size: 0.86rem;
  }

  .command-bar {
    grid-template-columns: auto 1fr auto auto auto;
  }

  .action-card {
    min-height: 72px;
  }
}

/* Support level routing is now backend-driven, not user-facing. */
.level-picker,
.level-disclaimer-under-prompt {
  display: none !important;
}

.command-bar,
.chat-prompt {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

@media (max-width: 760px) {
  .command-bar {
    grid-template-columns: 44px minmax(0, 1fr) 42px 42px;
    grid-template-areas:
      "attachments attachments attachments attachments"
      "upload input mic submit";
  }

  .chat-prompt {
    grid-template-columns: 44px minmax(0, 1fr) 42px 42px;
  }
}

@media (max-width: 440px) {
  .command-bar {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
  }
}
