: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;
  scroll-margin-top: 5.5rem;
}

.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.has-attachments .attachment-list,
.chat-prompt.has-attachments .attachment-list {
  grid-row: 1;
  grid-column: 1 / -1;
}

.command-bar.has-attachments .upload-plus,
.command-bar.has-attachments textarea,
.command-bar.has-attachments .level-picker,
.command-bar.has-attachments .dictate-button,
.command-bar.has-attachments .voice-button,
.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;
}

.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[type="text"],
.command-bar 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.1rem;
  line-height: 1.45;
  resize: none;
  overflow-y: auto;
  font-family: inherit;
}

.command-bar textarea {
  align-self: center;
  min-height: 1.6rem;
}

.command-bar input::placeholder,
.command-bar textarea::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 {
  height: 100vh;
  overflow: hidden;
}

html:has(body.workdesk-page) {
  height: 100%;
  overflow: hidden;
}

.workdesk-page .site-header {
  padding-right: 5rem;
}

.header-toggle-button {
  position: fixed;
  z-index: 50;
  top: 0.85rem;
  right: 0.85rem;
  display: inline-grid;
}

.header-toggle-button.header-hide-toggle {
  position: fixed;
  top: 0.85rem;
  right: 0.85rem;
}

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

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

.restore-footer-button {
  position: fixed;
  z-index: 20;
  right: 1rem;
  bottom: 1rem;
  display: none;
}

.workdesk-footer-hidden .restore-footer-button {
  display: inline-grid;
}

.arrow-icon-toggle {
  place-items: center;
  gap: 0.18rem;
  width: 38px;
  height: 38px;
  padding: 0;
  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);
}

.arrow-icon-toggle span {
  display: none;
}

.header-hide-toggle,
.footer-show-toggle,
.footer-hide-toggle {
  position: relative;
}

.arrow-icon-toggle::before,
.arrow-icon-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  border-radius: 999px;
}

.arrow-icon-toggle::before {
  top: 50%;
  width: 11px;
  height: 11px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: translate(-50%, -35%) rotate(45deg);
}

.arrow-icon-toggle::after {
  top: 50%;
  width: 2px;
  height: 14px;
  background: currentColor;
  transform: translate(-50%, -10%);
}

.workdesk-header-hidden .header-hide-toggle::before,
.footer-hide-toggle::before {
  transform: translate(-50%, -65%) rotate(225deg);
}

.workdesk-header-hidden .header-hide-toggle::after,
.footer-hide-toggle::after {
  transform: translate(-50%, -90%);
}

.restore-footer-button.footer-show-toggle {
  position: fixed;
}

.header-toggle-button,
.footer-show-toggle {
  color: #ffffff;
  border-color: rgba(17, 23, 53, 0.88);
  background: #111735;
  box-shadow: 0 14px 34px rgba(17, 23, 53, 0.28);
}

.header-toggle-button:hover,
.header-toggle-button:focus-visible,
.footer-show-toggle:hover,
.footer-show-toggle:focus-visible {
  outline: 0;
  background: #2563ff;
  border-color: rgba(37, 99, 255, 0.95);
}

.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%;
  height: calc(100vh - 76px);
  min-height: 0;
  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: none;
  overflow: visible;
  padding: 0.2rem;
}

.desktop-icons.is-draggable {
  position: absolute;
  inset: clamp(1.2rem, 3vw, 2rem) clamp(1.2rem, 3vw, 2rem) 0.75rem 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;
}

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

.system-icons-collapsed .pinned-connect-shortcut,
.system-icons-collapsed .pinned-settings-shortcut,
.system-icons-collapsed .pinned-credits-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.email,
.desktop-icon.microsoft,
.desktop-icon.workflows,
.desktop-icon.automations,
.desktop-icon.approvals,
.desktop-icon.activity {
  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;
}

.workdesk-footer-hidden .desktop-window-layer {
  bottom: clamp(1rem, 3vw, 1.7rem);
}

.app-window {
  position: absolute;
  width: min(540px, calc(100vw - 2rem));
  height: 430px;
  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 > div:first-child {
  min-width: 0;
}

.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-header-extra {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  margin-left: auto;
}

.ask-itt-header-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  width: auto !important;
  min-width: 0;
  height: 34px !important;
  padding: 0 0.68rem !important;
  color: #111735 !important;
  border: 1px solid rgba(37, 99, 255, 0.16) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 10px 24px rgba(37, 99, 255, 0.1);
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.ask-itt-header-button:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 255, 0.35) !important;
  box-shadow: 0 14px 30px rgba(37, 99, 255, 0.16);
}

.ask-itt-header-button img {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 0.28rem;
}

.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;
}

.drive-titlebar-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.drive-titlebar-actions em {
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(37, 99, 255, 0.1);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.drive-titlebar-actions em.connected {
  color: var(--green);
  background: rgba(25, 166, 106, 0.12);
}

.drive-titlebar-actions em.warning {
  color: var(--amber);
  background: rgba(245, 159, 24, 0.12);
}

.app-window-titlebar .drive-titlebar-actions button {
  width: auto;
  min-width: 30px;
  padding: 0 0.6rem;
  color: var(--blue);
  border: 1px solid rgba(37, 99, 255, 0.18);
  background: rgba(255, 255, 255, 0.86);
}

.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;
  align-content: start;
  gap: 0.9rem;
  max-height: calc(100% - 58px);
  min-height: 0;
  padding: 1rem;
  overflow: auto;
}

.app-window[data-app-id="google-drive"] .app-window-body {
  align-content: stretch;
  height: calc(100% - 58px);
  overflow: hidden;
}

.app-window[data-app-id="google-drive"]:has(.drive-flow.is-preview-focus) .app-window-titlebar {
  min-height: 44px;
  padding: 0.4rem 0.75rem;
}

.app-window[data-app-id="google-drive"]:has(.drive-flow.is-preview-focus) .app-window-titlebar span {
  display: none;
}

.app-window[data-app-id="google-drive"]:has(.drive-flow.is-preview-focus) .app-window-body {
  height: calc(100% - 44px);
  max-height: calc(100% - 44px);
  padding: 0.4rem 0.55rem 0.55rem;
}

.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 {
  position: relative;
  container-type: inline-size;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 0.75rem;
  height: 100%;
  min-height: 0;
}

.drive-flow.is-preview-focus {
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.35rem;
  align-content: stretch;
}

.drive-command-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(8.8rem, auto) minmax(7rem, auto) auto auto auto auto;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.drive-command-bar input,
.drive-command-bar select {
  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-command-bar button,
.drive-browser-menu > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 42px;
  padding: 0 0.82rem;
  color: var(--blue);
  border: 1px solid rgba(37, 99, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  font-weight: 900;
  white-space: nowrap;
}

.drive-command-bar svg,
.drive-browser-menu svg,
.drive-view-toggle svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.drive-icon-command {
  width: 42px;
  padding: 0;
}

.drive-new-command {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}

.drive-browser-menu {
  position: relative;
}

.drive-browser-menu > summary {
  list-style: none;
  cursor: pointer;
}

.drive-browser-menu > summary::-webkit-details-marker {
  display: none;
}

.drive-browser-menu > div {
  position: absolute;
  z-index: 8;
  top: calc(100% + 0.35rem);
  right: 0;
  display: grid;
  min-width: 10rem;
  padding: 0.35rem;
  border: 1px solid rgba(37, 99, 255, 0.14);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(50, 66, 130, 0.18);
}

.drive-browser-menu .drive-sort-arrow {
  width: 1.05rem;
  height: 1.05rem;
  font-size: 0.7rem;
}

.drive-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  min-height: 42px;
  padding: 0.2rem;
  border: 1px solid rgba(37, 99, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
}

.drive-view-toggle button {
  width: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
}

.drive-view-toggle button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}

.drive-context-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(8rem, auto) auto;
  align-items: center;
  gap: 0.7rem;
  min-height: 28px;
  padding: 0 0.2rem;
}

.drive-context-line > span,
.drive-context-line > strong {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drive-context-line > span {
  flex: 1 1 auto;
}

.drive-context-line > strong {
  color: var(--blue);
  flex: 0 1 16rem;
  text-align: right;
}

.drive-context-line button {
  min-height: 28px;
  padding: 0 0.7rem;
  color: var(--blue);
  border: 1px solid rgba(37, 99, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.drive-context-line button:disabled {
  cursor: not-allowed;
  color: rgba(104, 114, 142, 0.72);
  border-color: rgba(104, 114, 142, 0.16);
  background: rgba(245, 247, 251, 0.72);
  box-shadow: none;
  opacity: 0.72;
}

.drive-chat-only-state {
  display: grid;
  place-items: center;
  gap: 0.4rem;
  min-height: 240px;
  padding: 1.2rem;
  color: var(--muted);
  text-align: center;
  border: 1px dashed rgba(37, 99, 255, 0.24);
  border-radius: 1rem;
  background: rgba(246, 249, 255, 0.62);
}

.drive-chat-only-state strong {
  color: #111735;
  font-size: 1rem;
}

.drive-chat-only-state span {
  max-width: 34rem;
  line-height: 1.45;
}

.drive-chat-dock {
  position: sticky;
  z-index: 3;
  bottom: -1rem;
  margin: 0 -1rem -1rem;
  padding: 0.7rem 1rem 1rem;
  background: linear-gradient(180deg, rgba(246, 249, 255, 0), rgba(246, 249, 255, 0.98) 32%, rgba(246, 249, 255, 0.98));
}

.drive-chat-dock .app-window-prompt {
  width: min(46rem, 100%);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) auto auto;
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(50, 66, 130, 0.12);
}

.drive-chat-dock .app-window-prompt input {
  min-height: 38px;
}

.drive-chat-dock .app-window-prompt .dictate-button,
.drive-chat-dock .app-window-prompt .voice-button {
  width: 34px;
  height: 34px;
}

.drive-new-menu {
  position: relative;
  z-index: 50;
}

.drive-new-menu summary::marker,
.drive-new-menu-more summary::marker {
  content: "";
}

.drive-new-menu summary::-webkit-details-marker,
.drive-new-menu-more summary::-webkit-details-marker {
  display: none;
}

.drive-new-menu-popover {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 80;
  width: min(20rem, 86vw);
  padding: 0.35rem 0;
  border: 1px solid rgba(37, 99, 255, 0.16);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(17, 23, 53, 0.18);
}

.drive-new-menu-popover hr {
  height: 1px;
  margin: 0.3rem 0;
  border: 0;
  background: rgba(17, 23, 53, 0.12);
}

.drive-new-menu-popover button,
.drive-new-menu-more summary {
  display: grid;
  grid-template-columns: 1.35rem minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  width: 100%;
  min-height: 2.35rem;
  padding: 0.35rem 0.75rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #202124;
  font: inherit;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
}

.drive-new-menu-popover button:hover,
.drive-new-menu-more summary:hover {
  background: rgba(37, 99, 255, 0.08);
}

.drive-new-menu-popover button:disabled {
  color: rgba(32, 33, 36, 0.44);
  cursor: not-allowed;
}

.drive-new-menu-icon {
  display: inline-grid;
  width: 1.15rem;
  height: 1.15rem;
  place-items: center;
  border-radius: 0.2rem;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.drive-new-menu-icon.folder,
.drive-new-menu-icon.upload,
.drive-new-menu-icon.upload-folder {
  color: #5f6368;
  background: transparent;
  border: 1.5px solid currentColor;
}

.drive-new-menu-icon.doc,
.drive-new-menu-icon.text,
.drive-new-menu-icon.sites {
  background: #4285f4;
}

.drive-new-menu-icon.sheet {
  background: #0f9d58;
}

.drive-new-menu-icon.slide,
.drive-new-menu-icon.drawing {
  background: #fbbc04;
}

.drive-new-menu-icon.form {
  background: #673ab7;
}

.drive-new-menu-icon.maps {
  background: #ea4335;
}

.drive-new-menu-icon.ai,
.drive-new-menu-icon.script {
  background: #1a73e8;
}

.drive-new-menu-icon.more,
.drive-new-menu-icon.connect {
  color: #202124;
  background: transparent;
  font-size: 1.2rem;
}

.drive-new-menu-popover kbd,
.drive-new-menu-more kbd {
  color: #5f6368;
  font: inherit;
  font-size: 0.72rem;
}

.drive-new-menu-more {
  position: relative;
}

.drive-new-menu-more > div {
  display: none;
  position: absolute;
  top: -0.35rem;
  left: calc(100% + 0.25rem);
  width: min(18rem, 72vw);
  padding: 0.35rem 0;
  border: 1px solid rgba(37, 99, 255, 0.16);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(17, 23, 53, 0.18);
}

.drive-new-menu-more[open] > div,
.drive-new-menu-more:hover > div {
  display: block;
}

.drive-create-panel {
  position: relative;
  z-index: 12;
  margin: 0.45rem 0 0.65rem;
  border: 1px solid rgba(37, 99, 255, 0.14);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(50, 66, 130, 0.1);
}

.drive-create-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.6rem;
}

.drive-create-form strong {
  color: #111735;
  font-size: 0.88rem;
  white-space: nowrap;
}

.drive-create-form input {
  min-height: 38px;
  padding: 0 0.75rem;
  color: #111735;
  border: 1px solid rgba(37, 99, 255, 0.2);
  border-radius: 999px;
  outline: 0;
  background: rgba(246, 249, 255, 0.9);
  font: inherit;
}

.drive-create-form button[type="submit"] {
  min-height: 38px;
  padding: 0 0.95rem;
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  font-weight: 850;
}

.drive-create-close {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #111735;
  border: 1px solid rgba(37, 99, 255, 0.16);
  border-radius: 999px;
  background: #f5f8ff;
  font-size: 0.85rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.drive-create-close:hover {
  background: #eaf0ff;
}

.drive-create-form small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
}

.drive-flow-layout {
  position: relative;
  z-index: 1;
  grid-row: 4;
  display: grid;
  grid-template-columns: minmax(320px, var(--drive-explorer-width, 0.95fr)) 10px minmax(440px, 1.05fr);
  gap: 0.45rem;
  min-height: 0;
}

.drive-flow.is-preview-focus .drive-flow-layout {
  grid-row: 2;
  grid-template-columns: minmax(0, 1fr);
}

.drive-flow.is-preview-focus .drive-file-panel {
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.drive-flow.is-preview-focus .drive-account-strip {
  display: none;
}

.drive-flow.is-preview-focus .drive-context-line {
  grid-template-columns: auto;
  justify-content: end;
  min-height: 0;
  padding: 0;
}

.drive-flow.is-preview-focus .drive-context-line > span,
.drive-flow.is-preview-focus .drive-context-line > strong {
  display: none;
}

.drive-column-splitter {
  align-self: stretch;
  width: 10px;
  min-width: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: col-resize;
}

.drive-column-splitter::before {
  content: "";
  display: block;
  width: 2px;
  height: 100%;
  margin: 0 auto;
  border-radius: 999px;
  background: rgba(37, 99, 255, 0.14);
}

.drive-column-splitter:hover::before,
.drive-column-splitter:focus-visible::before {
  background: linear-gradient(180deg, var(--blue), var(--violet));
}

.drive-file-list-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  align-content: stretch;
  gap: 0.55rem;
  min-width: 0;
  min-height: 0;
}

.drive-file-list-panel.is-drive-dragging::after {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  color: var(--blue);
  border: 2px dashed rgba(37, 99, 255, 0.55);
  border-radius: 1rem;
  background: rgba(246, 249, 255, 0.78);
  box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0.36);
  content: "Drop files or folders to upload to this Drive folder";
  font-size: 0.95rem;
  font-weight: 900;
  text-align: center;
  pointer-events: none;
}

.drive-upload-status {
  margin: 0;
  padding: 0.35rem 0.55rem;
  color: #435070;
  border: 1px solid rgba(37, 99, 255, 0.14);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
  font-weight: 750;
}

.drive-file-list-panel.is-restoring-scroll .drive-browser {
  opacity: 0;
  pointer-events: none;
  transition: none;
}

.drive-flow .drive-browser {
  align-content: start;
  grid-auto-rows: max-content;
  height: 100%;
  max-height: none;
  min-height: 0;
  overflow: auto;
}

.drive-flow .drive-browser.is-grid-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  align-content: start;
  gap: 0.7rem;
}

.drive-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  padding: 0 0.15rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.drive-breadcrumbs button {
  min-width: 0;
  max-width: 14rem;
  padding: 0.25rem 0.5rem;
  overflow: hidden;
  color: var(--blue);
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.drive-breadcrumbs button[aria-current="page"] {
  color: #111735;
  background: rgba(37, 99, 255, 0.08);
}

.drive-flow .drive-row {
  grid-template-columns: auto minmax(0, 1fr) minmax(9.5rem, auto);
  grid-template-areas:
    "icon name meta"
    "icon date meta";
  min-height: 62px;
  padding: 0.55rem 0.7rem;
  align-items: center;
}

.drive-flow .drive-row b {
  color: var(--muted);
  font-size: 0.72rem;
}

.drive-flow .drive-row div {
  display: grid;
  min-width: 0;
  gap: 0.18rem;
}

.drive-flow .drive-row strong {
  grid-area: name;
  overflow: hidden;
  color: #111735;
  font-size: 0.92rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drive-flow .drive-row b {
  grid-area: date;
  overflow: hidden;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drive-flow .drive-row small,
.drive-flow .drive-row em {
  align-self: start;
  overflow: hidden;
  max-width: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drive-flow .drive-row .file-type {
  grid-area: icon;
}

.drive-flow .drive-row small {
  grid-area: meta;
  align-self: center;
  width: 9.5rem;
  text-align: right;
}

.drive-flow .drive-row em {
  display: none;
}

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

.drive-flow .drive-row[data-drive-type="folder"] {
  background: rgba(255, 250, 235, 0.72);
}

.drive-flow .drive-row[data-drive-type="folder"].is-selected {
  border-color: rgba(245, 158, 11, 0.34);
  background: rgba(255, 247, 214, 0.92);
}

.drive-flow .drive-browser.is-grid-view .drive-row {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "icon"
    "name"
    "date"
    "meta";
  min-height: 142px;
  align-content: start;
  justify-items: start;
  padding: 0.85rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 36px rgba(43, 69, 145, 0.08);
}

.drive-flow .drive-browser.is-grid-view .drive-row .file-type {
  width: 42px;
  height: 42px;
}

.drive-flow .drive-browser.is-grid-view .drive-row strong {
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.drive-flow .drive-browser.is-grid-view .drive-row b {
  white-space: normal;
}

.drive-flow .drive-browser.is-grid-view .drive-row small {
  width: auto;
  text-align: left;
  white-space: normal;
}

.drive-empty-state {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 1rem;
  text-align: center;
  border: 1px dashed rgba(37, 99, 255, 0.28);
  border-radius: 1rem;
  background: rgba(246, 249, 255, 0.62);
}

.drive-empty-state strong {
  color: #111735;
}

.drive-empty-state span {
  max-width: 26rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.drive-file-panel {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.5rem;
  min-height: 0;
  padding: 0.7rem;
  overflow: auto;
  border: 1px solid rgba(37, 99, 255, 0.18);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.76);
}

.drive-file-panel.is-folder-empty-reader {
  align-content: stretch;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
}

.drive-file-panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.65rem;
}

.drive-file-panel-head > div:not(.drive-file-toolbar) {
  display: grid;
  min-width: 0;
  gap: 0.16rem;
}

.drive-file-panel-head strong {
  overflow: hidden;
  color: #111735;
  font-size: 0.98rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.drive-panel-status {
  margin: 0;
  padding: 0.45rem 0.6rem;
  color: var(--blue);
  border: 1px solid rgba(37, 99, 255, 0.16);
  border-radius: 0.7rem;
  background: rgba(246, 249, 255, 0.84);
  font-size: 0.78rem;
  font-weight: 850;
}

.drive-list-sortbar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 34px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.drive-list-sortbar button {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 30px;
  padding: 0 0.35rem 0 0.55rem;
  color: #111735;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-weight: 850;
}

.drive-list-sortbar button:hover,
.drive-list-sortbar button:focus-visible,
.drive-list-sortbar button.is-active {
  outline: 0;
  color: var(--blue);
  background: rgba(37, 99, 255, 0.08);
}

.drive-sort-arrow {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  color: var(--blue);
  border-radius: 999px;
  background: rgba(37, 99, 255, 0.16);
  font-size: 0.85rem;
  line-height: 1;
}

.drive-sort-arrow.is-desc {
  transform: rotate(180deg);
}

.drive-file-toolbar [hidden] {
  display: none;
}

.drive-file-toolbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.28rem;
  min-width: max-content;
  align-self: start;
}

.drive-file-toolbar > button,
.drive-file-toolbar > a,
.drive-more-menu > summary {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  color: #2f3b58;
  border: 0;
  border-radius: 999px;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
}

.drive-file-toolbar > button:disabled,
.drive-file-toolbar.is-disabled > button {
  color: rgba(47, 59, 88, 0.32);
  cursor: not-allowed;
}

.drive-file-toolbar > button:disabled:hover,
.drive-file-toolbar.is-disabled > button:hover {
  color: rgba(47, 59, 88, 0.32);
  background: transparent;
}

.drive-file-toolbar > button:hover,
.drive-file-toolbar > a:hover,
.drive-more-menu > summary:hover,
.drive-file-toolbar > button:focus-visible,
.drive-file-toolbar > a:focus-visible,
.drive-more-menu > summary:focus-visible {
  outline: 0;
  color: var(--blue);
  background: rgba(37, 99, 255, 0.1);
}

.drive-file-toolbar svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.drive-more-menu {
  position: relative;
}

.drive-more-menu > summary {
  list-style: none;
}

.drive-more-menu > summary::-webkit-details-marker {
  display: none;
}

.drive-more-menu > div {
  position: absolute;
  z-index: 10;
  top: calc(100% + 0.35rem);
  right: 0;
  display: grid;
  min-width: 13.5rem;
  padding: 0.35rem;
  border: 1px solid rgba(37, 99, 255, 0.14);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(50, 66, 130, 0.18);
}

.drive-more-menu button {
  display: grid;
  grid-template-columns: 1.2rem minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  min-height: 34px;
  padding: 0 0.65rem;
  color: #111735;
  border: 0;
  border-radius: 0.45rem;
  background: transparent;
  font: inherit;
  font-size: 0.84rem;
  text-align: left;
  cursor: pointer;
}

.drive-more-menu button:hover,
.drive-more-menu button:focus-visible {
  outline: 0;
  color: var(--blue);
  background: rgba(37, 99, 255, 0.08);
}

.drive-more-menu button.danger {
  color: #c81e3a;
}

.drive-row-context-menu {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 0.12rem;
  width: fit-content;
  max-width: calc(100% - 5rem);
  min-height: 36px;
  margin: -0.28rem 0 0.35rem 4.75rem;
  padding: 0.2rem 0.3rem;
  overflow: hidden;
  color: #17213f;
  border: 1px solid rgba(37, 99, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(31, 48, 92, 0.1);
}

.drive-row-context-menu button,
.drive-row-context-menu .drive-more-menu > summary {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  padding: 0;
  color: #17213f;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.drive-row-context-menu button:hover,
.drive-row-context-menu button:focus-visible,
.drive-row-context-menu .drive-more-menu > summary:hover,
.drive-row-context-menu .drive-more-menu > summary:focus-visible {
  outline: 0;
  color: var(--blue);
  border-color: rgba(37, 99, 255, 0.18);
  background: rgba(37, 99, 255, 0.08);
}

.drive-row-context-menu button.danger {
  color: #c81e3a;
}

.drive-row-context-menu svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.drive-row-context-menu .drive-more-menu > div {
  top: calc(100% + 0.45rem);
  right: 0;
}

.drive-row-context-menu .drive-more-menu button {
  display: grid;
  width: auto;
  height: auto;
  min-height: 34px;
  justify-content: start;
  place-items: initial;
  padding: 0 0.65rem;
  border-radius: 0.45rem;
}

.drive-flow .drive-browser.is-grid-view .drive-row-context-menu {
  max-width: 100%;
  margin: -0.2rem 0 0.25rem;
}

.drive-inline-panel {
  display: grid;
  gap: 0.5rem;
  padding: 0.65rem;
  border: 1px solid rgba(37, 99, 255, 0.16);
  border-radius: 0.9rem;
  background: rgba(246, 249, 255, 0.9);
}

.drive-action-dialog {
  position: absolute;
  z-index: 18;
  top: 3.55rem;
  right: 0.75rem;
  width: min(460px, calc(100% - 1.5rem));
  max-height: calc(100% - 4.5rem);
  overflow: auto;
  padding: 1rem;
  border-color: rgba(37, 99, 255, 0.2);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(31, 48, 92, 0.2);
}

.drive-action-dialog .drive-inline-panel-head strong {
  font-size: 1.05rem;
  font-weight: 850;
}

.drive-action-dialog .drive-rename-form,
.drive-action-dialog .drive-share-form {
  grid-template-columns: 1fr;
}

.drive-action-dialog .drive-share-form label {
  justify-self: start;
}

.drive-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
}

.drive-dialog-actions button,
.drive-action-dialog form > button {
  min-height: 36px;
  padding: 0 1rem;
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  font-weight: 900;
  cursor: pointer;
}

.drive-dialog-actions button:disabled {
  cursor: not-allowed;
  color: rgba(17, 23, 53, 0.45);
  background: rgba(17, 23, 53, 0.12);
}

.drive-dialog-actions button.ghost {
  color: var(--blue);
  border: 1px solid rgba(37, 99, 255, 0.18);
  background: #ffffff;
}

.drive-current-location {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0.4rem;
  padding: 0.3rem 0.55rem;
  color: #31405f;
  border: 1px solid rgba(37, 99, 255, 0.14);
  border-radius: 999px;
  background: rgba(246, 249, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 800;
}

.drive-current-location svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.drive-danger-panel {
  border-color: rgba(200, 30, 58, 0.22);
  background: rgba(255, 246, 248, 0.94);
}

.drive-danger-panel p {
  margin: 0;
  color: #31405f;
  font-size: 0.82rem;
  line-height: 1.45;
}

.drive-danger-panel p strong {
  color: #111735;
}

.drive-inline-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.drive-inline-panel-head strong,
.drive-inline-panel > strong {
  color: #111735;
  font-size: 0.86rem;
}

.drive-inline-panel-head button,
.drive-preview-head button {
  display: inline-grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  color: #111735;
  border: 1px solid rgba(37, 99, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.drive-rename-form,
.drive-share-form,
.drive-move-form {
  display: grid;
  gap: 0.45rem;
}

.drive-rename-form,
.drive-move-form {
  grid-template-columns: minmax(0, 1fr) auto;
}

.drive-share-form {
  grid-template-columns: minmax(0, 1fr) minmax(7.5rem, auto) auto auto;
  align-items: center;
}

.drive-rename-form input,
.drive-move-form select,
.drive-share-form input,
.drive-share-form select {
  min-width: 0;
  min-height: 36px;
  padding: 0 0.7rem;
  color: #111735;
  border: 1px solid rgba(37, 99, 255, 0.22);
  border-radius: 999px;
  outline: 0;
  background: rgba(255, 255, 255, 0.88);
  font: inherit;
}

.drive-share-form label {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.drive-share-form label input {
  width: auto;
  min-height: auto;
  padding: 0;
  border-radius: 0.25rem;
}

.drive-move-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.45rem;
}

.drive-move-picker button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  min-height: 54px;
  padding: 0.55rem 0.65rem;
  color: var(--ink);
  border: 1px solid rgba(37, 99, 255, 0.16);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.82);
  text-align: left;
}

.drive-move-picker button.is-selected {
  border-color: rgba(37, 99, 255, 0.52);
  background: rgba(235, 241, 255, 0.96);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 255, 0.18);
}

.drive-move-picker svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.drive-move-picker span {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.drive-move-picker strong,
.drive-move-picker small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drive-move-picker strong {
  font-size: 0.82rem;
}

.drive-move-picker small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.drive-rename-form button,
.drive-move-form button,
.drive-share-form button,
.drive-approval-preview button {
  min-height: 36px;
  padding: 0 0.72rem;
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  font-weight: 850;
  white-space: nowrap;
}

.drive-approval-preview {
  display: grid;
  gap: 0.35rem;
  padding: 0.55rem;
  border: 1px solid rgba(37, 99, 255, 0.16);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.82);
}

.drive-approval-preview.is-danger {
  border-color: rgba(200, 30, 58, 0.22);
  background: rgba(255, 255, 255, 0.92);
}

.drive-approval-preview.is-folder-move {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(255, 251, 235, 0.94);
}

.drive-approval-preview p {
  margin: 0;
  color: #8a5a05;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.4;
}

.drive-approval-preview span {
  overflow: hidden;
  color: #111735;
  font-size: 0.78rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drive-approval-preview b {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.drive-approval-preview div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.drive-danger-confirm {
  justify-self: start;
  min-height: 36px;
  padding: 0 0.8rem;
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4565, #b42342);
  font-weight: 850;
}

.drive-approval-preview button + button {
  color: #111735;
  border: 1px solid rgba(37, 99, 255, 0.18);
  background: rgba(255, 255, 255, 0.92);
}

.drive-inline-panel small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1.35;
}

.drive-preview-panel {
  display: grid;
  gap: 0.55rem;
  max-height: none;
  overflow: auto;
  padding: 0.8rem;
  border: 1px solid rgba(37, 99, 255, 0.16);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.82);
}

.drive-reader-empty-state {
  display: grid;
  min-height: 100%;
  place-content: center;
  place-items: center;
  gap: 0.7rem;
  padding: 2rem;
  color: #111735;
  border: 1px solid rgba(17, 23, 53, 0.08);
  border-radius: 0.9rem;
  background: #ffffff;
  text-align: center;
}

.drive-file-panel.is-folder-empty-reader .drive-reader-empty-state {
  height: 100%;
  min-height: 28rem;
  border: 0;
  border-radius: inherit;
}

.drive-reader-empty-state svg {
  width: 3rem;
  height: 3rem;
  fill: none;
  stroke: #111735;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.drive-reader-empty-state strong {
  color: #111735;
  font-size: 1rem;
  font-weight: 500;
}

.drive-preview-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
  min-height: 28px;
}

.drive-preview-head strong {
  justify-self: start;
  min-width: 0;
}

.drive-preview-nav {
  display: inline-flex;
  grid-column: 2;
  align-items: center;
  justify-self: center;
  gap: 0.25rem;
}

.drive-preview-nav button {
  display: inline-grid;
  width: 28px;
  height: 24px;
  place-items: center;
  color: var(--blue);
  border: 1px solid rgba(37, 99, 255, 0.18);
  border-radius: 999px;
  background: #ffffff;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
}

.drive-preview-nav button:hover:not(:disabled) {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}

.drive-preview-nav button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.drive-preview-panel strong {
  color: #111735;
  font-size: 0.86rem;
}

.drive-preview-panel p,
.drive-preview-head span {
  grid-column: 3;
  justify-self: end;
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.4;
}

.drive-preview-panel pre {
  max-height: none;
  overflow: auto;
  margin: 0;
  padding: 0.75rem;
  color: #111735;
  border: 1px solid rgba(37, 99, 255, 0.12);
  border-radius: 0.75rem;
  background: rgba(246, 249, 255, 0.8);
  font: 0.78rem/1.5 Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
}

.drive-preview-panel img {
  max-width: 100%;
  max-height: 62vh;
  object-fit: contain;
  border-radius: 0.75rem;
  background: rgba(246, 249, 255, 0.8);
}

.drive-preview-panel iframe {
  width: 100%;
  height: min(62vh, 760px);
  border: 1px solid rgba(37, 99, 255, 0.14);
  border-radius: 0.75rem;
  background: #ffffff;
}

.drive-native-preview-panel {
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 520px;
  overflow: hidden;
}

.drive-native-preview-frame {
  height: 100%;
  min-height: 520px;
}

.drive-native-scroll-stage {
  min-width: 0;
  height: 100%;
  min-height: 520px;
  overflow: auto;
  border-radius: 0.75rem;
}

.drive-native-scroll-stage .drive-native-preview-frame {
  display: block;
}

.drive-native-scroll-stage.is-spreadsheet-preview .drive-native-preview-frame {
  min-width: 1180px;
}

.drive-flow.is-preview-focus .drive-preview-panel {
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.drive-flow.is-preview-focus .drive-preview-panel pre,
.drive-flow.is-preview-focus .drive-preview-panel iframe,
.drive-flow.is-preview-focus .drive-native-scroll-stage {
  height: 100%;
  max-height: none;
}

.drive-flow.is-preview-focus .drive-preview-panel img {
  width: 100%;
  height: 100%;
  max-height: none;
}

@container (max-width: 920px) {
  .drive-flow-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: minmax(260px, auto);
  }

  .drive-column-splitter {
    display: none;
  }

  .drive-file-list-panel {
    min-height: 320px;
  }

  .drive-file-panel {
    overflow: visible;
  }

  .drive-file-panel-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .drive-file-toolbar {
    justify-content: flex-start;
    flex-wrap: wrap;
    min-width: 0;
  }
}

@container (max-width: 720px) {
  .drive-command-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .drive-command-bar input {
    flex: 1 1 15rem;
    min-width: 0;
  }

  .drive-command-bar select,
  .drive-command-bar .drive-browser-menu {
    flex: 1 1 7rem;
  }

  .drive-command-bar button,
  .drive-browser-menu > summary,
  .drive-view-toggle {
    flex: 0 0 auto;
  }

  .drive-preview-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .drive-preview-nav {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .drive-preview-head span {
    grid-column: 2;
  }
}

@container (max-width: 560px) {
  .drive-context-line {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .drive-context-line > strong {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: 100%;
    text-align: left;
  }

  .drive-flow .drive-row {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "icon name"
      "icon date"
      "icon meta";
  }

  .drive-flow .drive-row small {
    width: auto;
    text-align: left;
  }

  .drive-create-form,
  .drive-share-form,
  .drive-rename-form,
  .drive-move-form {
    grid-template-columns: 1fr;
  }
}

.drive-folder-state {
  min-height: 150px;
  place-content: center;
}

.drive-folder-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.drive-folder-actions button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 36px;
  padding: 0.45rem 0.7rem;
  color: var(--blue);
  border: 1px solid rgba(37, 99, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  font-weight: 850;
  cursor: pointer;
}

.drive-folder-actions button:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}

.drive-folder-actions svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.drive-edit-panel {
  display: grid;
  gap: 0.6rem;
  padding: 0.7rem;
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 0.9rem;
  background: rgba(250, 247, 255, 0.9);
}

.drive-edit-form {
  display: grid;
  gap: 0.5rem;
}

.drive-edit-mode-tabs {
  display: inline-flex;
  justify-self: start;
  gap: 0.25rem;
  padding: 0.2rem;
  border: 1px solid rgba(37, 99, 255, 0.14);
  border-radius: 999px;
  background: rgba(246, 249, 255, 0.92);
}

.drive-edit-mode-tabs button {
  padding: 0.4rem 0.75rem;
  color: #52607f;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.drive-edit-mode-tabs button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}

.drive-edit-unavailable {
  display: grid;
  gap: 0.45rem;
  padding: 0.75rem;
  border: 1px solid rgba(37, 99, 255, 0.14);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.78);
}

.drive-edit-action-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.2rem;
}

.drive-edit-action-cards button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 34px;
  padding: 0 0.7rem;
  color: #162044;
  border: 1px solid rgba(37, 99, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.drive-edit-action-cards button:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}

.drive-edit-action-cards svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.drive-edit-form textarea {
  width: 100%;
  min-height: 76px;
  resize: vertical;
  padding: 0.65rem 0.75rem;
  color: #111735;
  border: 1px solid rgba(37, 99, 255, 0.2);
  border-radius: 0.8rem;
  outline: 0;
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
  line-height: 1.45;
}

.drive-edit-form button,
.drive-apply-disabled {
  min-height: 36px;
  padding: 0 0.82rem;
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  font-weight: 850;
}

.drive-edit-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.4;
}

.drive-edit-compare {
  display: grid;
  gap: 0.5rem;
}

.drive-edit-compare article {
  display: grid;
  gap: 0.35rem;
}

.drive-edit-compare small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.drive-edit-compare pre {
  max-height: 150px;
  overflow: auto;
  margin: 0;
  padding: 0.65rem;
  color: #111735;
  border: 1px solid rgba(37, 99, 255, 0.12);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.82);
  font: 0.76rem/1.45 Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
}

.app-window[data-app-id^="itt-editor"] .app-window-body {
  padding: 0.9rem;
  overflow: auto;
}

.itt-editor-app {
  display: grid;
  gap: 0.8rem;
  min-height: 100%;
  align-content: start;
}

.itt-editor-app.is-empty {
  place-items: center;
}

.itt-editor-empty,
.itt-editor-unavailable {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  border: 1px solid rgba(37, 99, 255, 0.16);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.86);
}

.itt-editor-empty {
  max-width: 520px;
  text-align: center;
}

.itt-editor-empty span,
.itt-editor-unavailable p,
.itt-editor-filebar span,
.itt-editor-status {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.itt-editor-filebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(37, 99, 255, 0.16);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.86);
}

.itt-editor-filebar > div:first-child {
  min-width: 0;
}

.itt-editor-filebar strong {
  display: block;
  overflow: hidden;
  color: #111735;
  font-size: 1rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.itt-editor-file-actions,
.itt-editor-action-cards,
.itt-editor-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.itt-editor-file-actions a,
.itt-editor-file-actions button,
.itt-editor-action-cards button,
.itt-editor-form-actions button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 34px;
  padding: 0 0.7rem;
  color: #162044;
  border: 1px solid rgba(37, 99, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.itt-editor-file-actions a:hover,
.itt-editor-file-actions button:hover,
.itt-editor-action-cards button:hover,
.itt-editor-form-actions button:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}

.itt-editor-file-actions svg,
.itt-editor-action-cards svg,
.itt-editor-form-actions svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.itt-editor-preview-panel {
  min-height: 320px;
}

.itt-editor-preview-panel.drive-native-preview-panel {
  min-height: 420px;
}

.itt-editor-preview-panel .drive-native-preview-frame {
  min-height: 420px;
}

.itt-editor-preview-panel iframe {
  height: min(52vh, 620px);
}

.itt-editor-preview-panel img {
  width: 100%;
  max-height: min(52vh, 620px);
}

.itt-editor-mode-tabs {
  display: inline-flex;
  justify-self: start;
  gap: 0.25rem;
  padding: 0.22rem;
  border: 1px solid rgba(37, 99, 255, 0.16);
  border-radius: 999px;
  background: rgba(246, 249, 255, 0.94);
}

.itt-editor-mode-tabs button {
  min-height: 34px;
  padding: 0 0.85rem;
  color: #52607f;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.itt-editor-mode-tabs button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}

.itt-editor-form {
  display: grid;
  gap: 0.65rem;
}

.itt-editor-form label {
  display: grid;
  gap: 0.45rem;
  color: #111735;
  font-weight: 900;
}

.itt-editor-form textarea {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  padding: 0.85rem;
  color: #111735;
  border: 1px solid rgba(37, 99, 255, 0.2);
  border-radius: 1rem;
  outline: 0;
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
  line-height: 1.5;
}

.itt-editor-sheet-wrap {
  width: 100%;
  max-height: min(58vh, 620px);
  overflow: auto;
  border: 1px solid rgba(37, 99, 255, 0.18);
  border-radius: 1rem;
  background: #ffffff;
}

.itt-editor-sheet-grid {
  display: grid;
  grid-template-columns: 42px repeat(var(--sheet-cols), minmax(140px, 1fr));
  width: max-content;
  min-width: 100%;
  align-items: stretch;
}

.itt-editor-sheet-corner,
.itt-editor-sheet-col,
.itt-editor-sheet-row {
  position: sticky;
  z-index: 2;
  display: grid;
  min-height: 34px;
  place-items: center;
  color: #52607f;
  border-right: 1px solid rgba(37, 99, 255, 0.12);
  border-bottom: 1px solid rgba(37, 99, 255, 0.12);
  background: rgba(246, 249, 255, 0.96);
  font-size: 0.75rem;
  font-weight: 900;
}

.itt-editor-sheet-corner,
.itt-editor-sheet-col {
  top: 0;
}

.itt-editor-sheet-corner,
.itt-editor-sheet-row {
  left: 0;
}

.itt-editor-sheet-corner {
  z-index: 4;
}

.itt-editor-sheet-row {
  z-index: 3;
}

.itt-editor-sheet-grid input {
  min-width: 140px;
  height: 34px;
  padding: 0 0.45rem;
  color: #111735;
  border: 0;
  border-right: 1px solid rgba(37, 99, 255, 0.1);
  border-bottom: 1px solid rgba(37, 99, 255, 0.1);
  outline: 0;
  background: #ffffff;
  font: 0.82rem/1.35 Arial, sans-serif;
}

.itt-editor-sheet-grid input:focus {
  position: relative;
  z-index: 5;
  box-shadow: inset 0 0 0 2px var(--blue);
}

.itt-editor-form button[type="submit"],
.itt-editor-apply-disabled {
  min-height: 40px;
  padding: 0 1rem;
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  font-weight: 900;
}

.itt-editor-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.itt-editor-compare article {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

.itt-editor-compare small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.itt-editor-compare pre {
  min-height: 180px;
  max-height: 280px;
  overflow: auto;
  margin: 0;
  padding: 0.75rem;
  border: 1px solid rgba(37, 99, 255, 0.14);
  border-radius: 0.9rem;
  background: rgba(246, 249, 255, 0.92);
  color: #111735;
  font-size: 0.82rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.app-window[data-app-id^="itt-presentation"] .app-window-body {
  padding: 0.9rem;
  overflow: auto;
}

.itt-presentation-app {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  min-height: 100%;
}

.itt-presentation-app.is-empty {
  place-items: center;
}

.itt-presentation-preview-panel {
  position: relative;
  min-height: 0;
}

.itt-presentation-preview-actions {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 3;
}

.itt-presentation-preview-actions button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2rem;
  padding: 0 0.75rem;
  border: 1px solid rgba(37, 99, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #2563ff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  box-shadow: 0 12px 28px rgba(37, 99, 255, 0.12);
  cursor: pointer;
}

.itt-presentation-preview-actions button:hover {
  transform: translateY(-1px);
}

.itt-presentation-preview-actions svg {
  width: 1rem;
  height: 1rem;
}

.itt-presentation-preview-panel .drive-native-preview-frame {
  min-height: 460px;
  height: min(68vh, 720px);
}

.itt-presentation-preview-panel:fullscreen,
.itt-presentation-preview-panel .drive-native-scroll-stage:fullscreen,
.itt-presentation-preview-panel .drive-native-preview-frame:fullscreen,
.itt-share-image-stage:fullscreen,
.itt-share-text-stage:fullscreen,
.itt-share-empty-stage:fullscreen {
  background: #fff;
}

.itt-share-image-stage {
  display: grid;
  min-height: 460px;
  place-items: center;
  overflow: auto;
  border-radius: 0.8rem;
  background: rgba(246, 249, 255, 0.92);
}

.itt-share-image-stage img {
  display: block;
  max-width: 100%;
  max-height: min(68vh, 720px);
  object-fit: contain;
}

.itt-share-text-stage {
  min-height: 460px;
  max-height: min(68vh, 720px);
  overflow: auto;
  margin: 0;
  padding: 1rem;
  border: 1px solid rgba(37, 99, 255, 0.12);
  border-radius: 0.8rem;
  background: rgba(246, 249, 255, 0.92);
  color: #111735;
  font: 0.9rem/1.55 Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
}

.itt-share-empty-stage {
  display: grid;
  min-height: 320px;
  place-items: center;
  gap: 0.45rem;
  padding: 1rem;
  color: var(--muted);
  text-align: center;
  border: 1px dashed rgba(37, 99, 255, 0.2);
  border-radius: 0.8rem;
  background: rgba(246, 249, 255, 0.72);
}

.itt-share-empty-stage strong {
  color: #111735;
}

.drive-apply-disabled:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.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;
}

.itt-email-flow,
.itt-file-explorer-flow,
.itt-calendar-flow {
  display: grid;
  gap: 0.75rem;
}

.email-drive-context {
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem;
  border: 1px solid rgba(37, 99, 255, 0.18);
  border-radius: 12px;
  background: rgba(246, 249, 255, 0.92);
}

.email-drive-context > div:first-child {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.email-drive-context svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.email-drive-context span {
  display: grid;
  min-width: 0;
  gap: 0.1rem;
}

.email-drive-context strong,
.email-drive-context small,
.email-drive-context p {
  overflow: hidden;
  text-overflow: ellipsis;
}

.email-drive-context strong {
  color: #111735;
  white-space: nowrap;
}

.email-drive-context small,
.email-drive-context p {
  color: var(--muted);
  font-size: 0.78rem;
}

.email-drive-context p {
  margin: 0;
}

.email-drive-context > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.email-drive-context button {
  min-height: 34px;
  padding: 0 0.8rem;
  color: var(--blue);
  border: 1px solid rgba(37, 99, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.email-drive-context button:hover,
.email-drive-context button:focus-visible {
  outline: 0;
  background: rgba(37, 99, 255, 0.09);
}

.email-account-strip,
.file-account-strip,
.calendar-account-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.email-account-strip {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.file-account-strip,
.calendar-account-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.file-account-strip {
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}

.calendar-account-strip {
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}

.email-account-strip button,
.file-account-strip button,
.calendar-account-strip button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  min-height: 70px;
  padding: 0.65rem;
  color: #17213f;
  text-align: left;
  border: 1px solid rgba(37, 99, 255, 0.16);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.78);
}

.calendar-account-strip button {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 72px;
  padding: 0.65rem 0.7rem;
}

.email-account-strip button {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 72px;
  padding: 0.65rem 0.7rem;
}

.file-account-strip button {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 72px;
  padding: 0.65rem 0.7rem;
}

.file-account-strip button div {
  min-width: 0;
}

.file-account-strip button strong {
  display: block;
  overflow: hidden;
  color: #111735;
  font-size: 0.88rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.email-account-strip button div {
  min-width: 0;
}

.email-account-strip button strong {
  display: block;
  overflow: hidden;
  color: #111735;
  font-size: 0.88rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-account-strip button div {
  min-width: 0;
}

.calendar-account-strip button strong {
  display: block;
  overflow: hidden;
  color: #111735;
  font-size: 0.86rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.email-account-strip button span,
.file-account-strip button span,
.calendar-account-strip button span {
  display: inline-grid;
  place-items: center;
  grid-row: span 2;
  width: 2.25rem;
  height: 2.25rem;
  color: #ffffff;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  font-weight: 900;
}

.email-account-strip button small,
.file-account-strip button small,
.calendar-account-strip button small {
  color: var(--muted);
  font-size: 0.74rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-account-strip button small {
  display: block;
  margin-top: 0.18rem;
  max-width: 100%;
}

.email-account-strip button small {
  display: block;
  margin-top: 0.18rem;
  max-width: 100%;
}

.file-account-strip button small {
  display: block;
  margin-top: 0.18rem;
  max-width: 100%;
}

.email-account-strip button em,
.file-account-strip button em,
.calendar-account-strip button em {
  grid-row: span 2;
  color: var(--green);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.calendar-account-strip button em {
  grid-column: 2;
  grid-row: auto;
  justify-self: start;
  margin-top: -0.15rem;
}

.email-account-strip button em {
  grid-column: 2;
  grid-row: auto;
  justify-self: start;
  margin-top: -0.15rem;
}

.file-account-strip button em {
  grid-column: 2;
  grid-row: auto;
  justify-self: start;
  margin-top: -0.15rem;
}

.file-account-strip button:nth-child(2) span {
  background: linear-gradient(135deg, #2563ff, #18a5ff);
}

.file-account-strip button:nth-child(3) span {
  background: linear-gradient(135deg, #0061ff, #60a5fa);
}

.file-account-strip button:nth-child(4) span {
  background: linear-gradient(135deg, #111735, #2563ff);
}

.file-account-strip button:nth-child(5) span {
  background: linear-gradient(135deg, #111735, #7c3cff);
}

.unified-file-layout {
  grid-template-columns: minmax(0, 1.25fr) minmax(230px, 0.75fr);
}

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

.calendar-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;
}

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

.calendar-flow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(230px, 0.8fr);
  gap: 0.75rem;
}

.unified-calendar-agenda {
  max-height: 300px;
  overflow: auto;
}

.unified-calendar-agenda button {
  grid-template-columns: 3.1rem minmax(0, 1fr);
  align-items: center;
  min-height: 64px;
  padding: 0.72rem 0.85rem;
}

.unified-calendar-agenda time {
  grid-row: auto;
  width: 2.7rem;
  height: 2.2rem;
  font-size: 0.84rem;
}

.unified-calendar-agenda button div {
  display: grid;
  min-width: 0;
  gap: 0.18rem;
}

.unified-calendar-agenda strong {
  overflow: hidden;
  color: #111735;
  font-size: 0.92rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unified-calendar-agenda span {
  grid-column: auto;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unified-calendar-agenda button.is-selected {
  border-color: rgba(37, 99, 255, 0.34);
  background: rgba(246, 249, 255, 0.95);
}

.calendar-event-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);
}

.calendar-event-panel span,
.calendar-event-panel p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.calendar-event-actions {
  display: grid;
  gap: 0.45rem;
}

.calendar-event-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-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;
}

.unified-mail-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(230px, 0.8fr);
}

.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);
}

.file-type.pdf {
  background: var(--red);
}

.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: 64px;
  padding: 0.72rem 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: auto;
  align-self: start;
  white-space: nowrap;
}

.mail-row div {
  display: grid;
  min-width: 0;
  gap: 0.18rem;
}

.mail-row strong {
  overflow: hidden;
  color: #111735;
  font-size: 0.92rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-row small {
  overflow: hidden;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.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;
}

.unified-calendar-agenda span {
  grid-column: auto;
  overflow: hidden;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.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 button {
  flex-wrap: wrap;
  gap: 0.25rem 0.65rem;
}

.integration-status-list small {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 0.74rem;
}

.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 .testing {
  color: var(--blue);
}

.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-hero em.warning {
  color: var(--amber);
  background: rgba(245, 159, 24, 0.12);
}

.integration-detail-hero em.testing {
  color: var(--blue);
  background: rgba(37, 99, 255, 0.1);
}

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

.connection-setup-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) auto auto;
  gap: 0.65rem;
  padding: 0.78rem;
  border: 1px solid rgba(37, 99, 255, 0.16);
  border-radius: 0.95rem;
  background: rgba(246, 249, 255, 0.82);
}

.connection-setup-card div {
  display: grid;
  gap: 0.15rem;
}

.connection-setup-card span,
.connection-setup-card small,
.connection-note {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.connection-setup-card small {
  font-weight: 800;
}

.pilot-connection-card {
  display: grid;
  grid-template-columns: minmax(10rem, auto) auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  min-height: 46px;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(37, 99, 255, 0.18);
  border-radius: 0.9rem;
  background: rgba(246, 249, 255, 0.9);
}

.pilot-connection-card > div {
  min-width: 0;
}

.pilot-connection-card strong,
.pilot-connection-card span {
  display: block;
}

.pilot-connection-card span,
.pilot-connection-card small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.pilot-connection-card small {
  display: none;
  white-space: nowrap;
}

.pilot-connection-card em {
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(37, 99, 255, 0.1);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.pilot-connection-card em.connected {
  color: var(--green);
  background: rgba(25, 166, 106, 0.12);
}

.pilot-connection-card em.warning {
  color: var(--amber);
  background: rgba(245, 159, 24, 0.12);
}

.pilot-connection-card button {
  min-height: 34px;
  padding: 0 0.72rem;
  color: var(--blue);
  border: 1px solid rgba(37, 99, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  font-weight: 900;
}

.pilot-connection-card [data-drive-connect] {
  min-height: 34px;
  color: var(--blue);
  border: 1px solid rgba(37, 99, 255, 0.22);
  background: rgba(255, 255, 255, 0.82);
}

.drive-account-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.05rem 0.2rem 0.25rem;
  border-bottom: 1px solid rgba(37, 99, 255, 0.08);
}

.drive-account-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  min-width: 0;
}

.drive-account-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-width: 0;
  min-height: 34px;
  max-width: 15rem;
  padding: 0.28rem 0.55rem 0.28rem 0.42rem;
  color: var(--ink);
  border: 1px solid rgba(37, 99, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(37, 99, 255, 0.08);
}

.drive-account-tabs > button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "icon label status";
  align-items: center;
  column-gap: 0.38rem;
  min-height: 34px;
}

.drive-account-tabs button span {
  grid-area: icon;
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  font-size: 0.72rem;
}

.drive-account-tabs button strong {
  grid-area: label;
  overflow: hidden;
  max-width: 11.5rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.86rem;
  line-height: 1;
}

.drive-account-tabs button em {
  grid-area: status;
  width: 0.48rem;
  height: 0.48rem;
  overflow: hidden;
  color: transparent;
  border-radius: 999px;
  background: rgba(104, 114, 142, 0.42);
  font-size: 0;
  font-style: normal;
  line-height: 0;
}

.drive-account-tabs button em.connected {
  background: var(--green);
}

.drive-account-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  justify-content: flex-end;
}

.drive-account-actions button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  color: var(--blue);
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 255, 0.18);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(37, 99, 255, 0.08);
}

.drive-account-actions svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.provider-mini-icon img,
.provider-mini-icon .provider-svg,
.drive-account-tabs button .provider-mini-icon img,
.drive-account-tabs button .provider-mini-icon .provider-svg,
.email-account-strip button .provider-mini-icon img,
.email-account-strip button .provider-mini-icon .provider-svg,
.file-account-strip button .provider-mini-icon img,
.file-account-strip button .provider-mini-icon .provider-svg,
.calendar-account-strip button .provider-mini-icon img,
.calendar-account-strip button .provider-mini-icon .provider-svg {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 0;
  object-fit: contain;
}

.drive-account-tabs button .provider-mini-icon,
.email-account-strip button .provider-mini-icon,
.file-account-strip button .provider-mini-icon,
.calendar-account-strip button .provider-mini-icon {
  color: #111735;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(37, 99, 255, 0.14);
}

.drive-account-tabs button.is-selected {
  border-color: rgba(37, 99, 255, 0.34);
  background: rgba(235, 241, 255, 0.96);
  box-shadow: 0 10px 26px rgba(37, 99, 255, 0.12);
}

.drive-account-tabs button.drive-account-all {
  border-style: dashed;
}

.drive-account-tabs button.drive-account-all span {
  color: #ffffff;
  background: linear-gradient(135deg, #111735, var(--blue));
  font-size: 0.62rem;
  font-weight: 900;
}

.drive-account-mode {
  justify-self: end;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  white-space: nowrap;
}

.drive-account-actions button:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 255, 0.38);
  box-shadow: 0 12px 28px rgba(37, 99, 255, 0.14);
}

.drive-account-actions button[disabled] {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.drive-disconnect-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.65rem;
  margin: 0.1rem 0.2rem 0.4rem;
  padding: 0.7rem;
  border: 1px solid rgba(244, 63, 94, 0.22);
  border-radius: 16px;
  background: rgba(255, 247, 249, 0.94);
  box-shadow: 0 14px 30px rgba(244, 63, 94, 0.08);
}

.drive-disconnect-panel div {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}

.drive-disconnect-panel strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.drive-disconnect-panel span,
.drive-disconnect-panel small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.drive-disconnect-panel button {
  min-height: 32px;
  padding: 0 0.85rem;
  color: var(--blue);
  border: 1px solid rgba(37, 99, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  font-weight: 900;
}

.drive-disconnect-panel button.danger {
  color: #ffffff;
  border-color: rgba(244, 63, 94, 0.2);
  background: linear-gradient(135deg, #f43f5e, #b91c1c);
}

.drive-account-manager {
  display: grid;
  gap: 0.65rem;
  margin: 0.1rem 0.2rem 0.45rem;
  padding: 0.7rem;
  border: 1px solid rgba(37, 99, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 36px rgba(37, 99, 255, 0.1);
}

.drive-account-manager-head,
.drive-account-manager-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.drive-account-manager-head div {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.drive-account-manager-head strong {
  color: var(--ink);
  font-size: 0.94rem;
}

.drive-account-manager-head span,
.drive-account-manager p {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.drive-account-manager-head button,
.drive-account-manager-foot button,
.drive-account-manager-list article > button {
  min-height: 32px;
  padding: 0 0.78rem;
  color: var(--blue);
  border: 1px solid rgba(37, 99, 255, 0.2);
  border-radius: 999px;
  background: rgba(246, 249, 255, 0.9);
  font-weight: 900;
}

.drive-account-manager-head button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  min-width: 32px;
  padding: 0;
}

.drive-account-manager-list {
  display: grid;
  gap: 0.45rem;
}

.drive-account-manager-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem;
  border: 1px solid rgba(37, 99, 255, 0.12);
  border-radius: 14px;
  background: rgba(246, 249, 255, 0.68);
}

.drive-account-manager-list article > button:first-child {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.48rem;
  min-width: 0;
  min-height: 40px;
  padding: 0.3rem 0.45rem;
  color: var(--ink);
  text-align: left;
  background: rgba(255, 255, 255, 0.86);
}

.drive-account-manager-list article > button:first-child.is-selected {
  border-color: rgba(37, 99, 255, 0.42);
  background: rgba(235, 241, 255, 0.96);
}

.drive-account-manager-list article span {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.drive-account-manager-list article strong,
.drive-account-manager-list article small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drive-account-manager-list article small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.drive-account-manager-list article em {
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.drive-account-manager-list article > button.danger {
  color: #e11d48;
  border-color: rgba(244, 63, 94, 0.22);
  background: rgba(255, 241, 244, 0.92);
}

@container (max-width: 640px) {
  .pilot-connection-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .pilot-connection-card small {
    grid-column: 1 / -1;
    white-space: normal;
  }

  .drive-flow-live-status {
    display: grid;
  }

  .drive-flow-live-status span {
    white-space: normal;
  }
}

.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;
}

.credits-dashboard {
  display: grid;
  gap: 0.8rem;
}

.credits-hero {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
  border: 1px solid rgba(37, 99, 255, 0.18);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 8% 8%, rgba(25, 166, 106, 0.14), transparent 28rem),
    rgba(255, 255, 255, 0.78);
}

.credits-hero > span,
.credits-ledger-heading span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.credits-hero strong {
  color: #111735;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1;
}

.credits-hero p {
  max-width: 54rem;
  color: var(--muted);
  line-height: 1.45;
}

.credits-hero div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.credits-hero 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.86);
  font-weight: 900;
}

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

.credits-ledger {
  display: grid;
  gap: 0.55rem;
}

.credits-ledger-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.8rem;
}

.credits-ledger article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.78);
}

.credits-ledger article > span {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
}

.credits-ledger article.is-credit > span {
  background: var(--green);
}

.credits-ledger article.is-debit > span {
  background: var(--blue);
}

.credits-ledger article div {
  display: grid;
  min-width: 0;
  gap: 0.16rem;
}

.credits-ledger small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.credits-ledger em {
  color: #111735;
  font-style: normal;
  font-weight: 900;
}

.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;
  bottom: 0;
  z-index: 5;
  width: 2.15rem;
  height: 2.15rem;
  cursor: nwse-resize;
}

.app-window-resize::before {
  position: absolute;
  right: 0.45rem;
  bottom: 0.45rem;
  width: 1rem;
  height: 1rem;
  content: "";
  border-right: 3px solid rgba(37, 99, 255, 0.7);
  border-bottom: 3px solid rgba(37, 99, 255, 0.7);
  border-radius: 0.1rem;
}

.app-window-resize-edge {
  position: absolute;
  z-index: 4;
}

.app-window-resize-edge.right {
  top: 58px;
  right: 0;
  bottom: 1.2rem;
  width: 0.5rem;
  cursor: ew-resize;
}

.app-window-resize-edge.bottom {
  right: 1.2rem;
  bottom: 0;
  left: 0;
  height: 0.5rem;
  cursor: ns-resize;
}

.app-window.is-active .app-window-resize-edge.right {
  background: linear-gradient(90deg, transparent, rgba(37, 99, 255, 0.08));
}

.app-window.is-active .app-window-resize-edge.bottom {
  background: linear-gradient(180deg, transparent, rgba(37, 99, 255, 0.08));
}

.desktop-command-dock {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 0.25rem;
  width: min(420px, 34vw);
  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-wrap {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.desktop-context-chips {
  display: flex;
  gap: 0.25rem;
  max-width: min(420px, 34vw);
  overflow: hidden;
  padding-left: 0.4rem;
}

.desktop-context-chips span {
  min-width: 0;
  padding: 0.12rem 0.4rem;
  overflow: hidden;
  color: var(--muted);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  font-size: 0.68rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.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,
.desktop-command-dock .context-button,
.taskbar-pins a,
.desktop-launcher-button {
  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 .context-button {
  min-width: 74px;
  min-height: 34px;
  padding: 0 0.65rem;
  color: var(--blue);
  background: rgba(37, 99, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 900;
}

.desktop-context-menu-panel {
  position: absolute;
  z-index: 8;
  right: 3.25rem;
  bottom: calc(100% + 0.55rem);
  display: grid;
  gap: 0.45rem;
  width: 250px;
  padding: 0.75rem;
  border: 1px solid rgba(37, 99, 255, 0.16);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 50px rgba(50, 66, 130, 0.18);
  backdrop-filter: blur(16px);
}

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

.desktop-context-menu-panel strong {
  font-size: 0.82rem;
}

.desktop-context-menu-panel label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #17213f;
  font-size: 0.78rem;
  font-weight: 800;
}

.desktop-context-menu-panel input {
  accent-color: var(--blue);
}

.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 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);
  transition: transform 180ms ease, opacity 180ms ease;
}

.workdesk-footer-hidden .desktop-taskbar {
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(100% + 1rem));
}

.footer-tray-toggle {
  display: inline-grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  color: #ffffff;
  border-color: rgba(17, 23, 53, 0.88);
  background: #111735;
  box-shadow: 0 12px 28px rgba(17, 23, 53, 0.24);
}

.footer-tray-toggle:hover,
.footer-tray-toggle:focus-visible {
  outline: 0;
  background: #2563ff;
  border-color: rgba(37, 99, 255, 0.95);
  box-shadow: 0 14px 34px rgba(37, 99, 255, 0.3);
}

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

.desktop-launcher-button {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 16px 42px rgba(37, 99, 255, 0.26);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.desktop-launcher-button:hover,
.desktop-launcher-button:focus-visible {
  outline: 0;
  transform: translateY(-3px);
  box-shadow: 0 20px 52px rgba(37, 99, 255, 0.32);
}

.desktop-launcher-button img {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.48rem;
}

.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);
}

.taskbar-tray .taskbar-credit-balance {
  color: #0f8b5f;
  background: rgba(25, 166, 106, 0.12);
  font-weight: 900;
}

.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-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.18rem;
}

.connect-card-meta em {
  padding: 0.16rem 0.42rem;
  color: var(--muted);
  border-radius: 999px;
  background: rgba(246, 249, 255, 0.9);
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 900;
}

.connect-card-meta em.connected {
  color: var(--green);
  background: rgba(25, 166, 106, 0.12);
}

.connect-card-meta em.warning {
  color: var(--amber);
  background: rgba(245, 159, 24, 0.12);
}

.connect-card-meta em.testing {
  color: var(--blue);
  background: rgba(37, 99, 255, 0.1);
}

.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;
}

.desktop-icon.provider-brand {
  color: #111735;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(37, 99, 255, 0.14);
}

.desktop-icon.provider-brand img {
  width: 34px;
  height: 34px;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
}

.desktop-icon.provider-brand .provider-svg {
  width: 34px;
  height: 34px;
  stroke-width: 0;
}

.desktop-icon.provider-brand .provider-svg * {
  vector-effect: non-scaling-stroke;
}

.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-memory-panel {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.95rem;
  padding: 0.85rem;
  border: 1px solid rgba(37, 99, 255, 0.14);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.64);
}

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

.memory-tool-row label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0.65rem;
  border: 1px solid rgba(37, 99, 255, 0.12);
  border-radius: 0.85rem;
  background: rgba(246, 249, 255, 0.64);
  font-size: 0.82rem;
  font-weight: 850;
}

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

.clear-memory-button {
  justify-self: start;
  min-height: 36px;
  padding: 0 0.85rem;
  color: var(--red);
  border: 1px solid rgba(240, 68, 85, 0.22);
  border-radius: 999px;
  background: rgba(255, 245, 246, 0.86);
  font-weight: 900;
}

.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);
}

.activity-center {
  display: grid;
  gap: 0.75rem;
}

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

.activity-summary article {
  display: grid;
  gap: 0.18rem;
  padding: 0.75rem;
  border: 1px solid rgba(37, 99, 255, 0.14);
  border-radius: 0.85rem;
  background: rgba(246, 249, 255, 0.78);
}

.activity-summary strong {
  font-size: 1.2rem;
}

.activity-summary span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

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

.activity-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem;
  border: 1px solid rgba(37, 99, 255, 0.13);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.74);
}

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

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

.activity-item small {
  margin-top: 0.16rem;
  line-height: 1.4;
}

.activity-item em {
  padding: 0.3rem 0.55rem;
  color: var(--blue);
  border-radius: 999px;
  background: rgba(37, 99, 255, 0.1);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.activity-item button {
  min-height: 34px;
  padding: 0 0.75rem;
  color: var(--blue);
  border: 1px solid rgba(37, 99, 255, 0.2);
  border-radius: 999px;
  background: rgba(246, 249, 255, 0.88);
  font-weight: 900;
}

.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-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.approval-filters button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 34px;
  padding: 0 0.7rem;
  color: #17213f;
  border: 1px solid rgba(223, 229, 244, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  font-weight: 850;
}

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

.approval-filters span {
  display: inline-grid;
  min-width: 1.25rem;
  height: 1.25rem;
  place-items: center;
  border-radius: 999px;
  background: rgba(37, 99, 255, 0.1);
  font-size: 0.72rem;
}

.approval-filters button.is-active span {
  background: rgba(255, 255, 255, 0.2);
}

.approval-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: start;
  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.is-complete {
  opacity: 0.82;
}

.approval-item-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.approval-item-heading em,
.approval-status-pill {
  justify-self: end;
  padding: 0.24rem 0.52rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.approval-item-heading .risk-low {
  color: var(--green);
  background: rgba(25, 166, 106, 0.12);
}

.approval-item-heading .risk-medium {
  color: var(--amber);
  background: rgba(245, 159, 24, 0.14);
}

.approval-item-heading .risk-high {
  color: var(--red);
  background: rgba(240, 68, 85, 0.12);
}

.approval-status-pill {
  color: var(--muted);
  background: rgba(246, 249, 255, 0.9);
  text-transform: capitalize;
}

.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 dl {
  display: grid;
  gap: 0.3rem;
  margin: 0.55rem 0 0;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(104, 114, 142, 0.12);
}

.approval-item dl div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 0.5rem;
}

.approval-item dt,
.approval-item dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

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

.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;
}

.launcher-dashboard {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 0.8rem;
  margin-top: 0.75rem;
}

.launcher-dashboard[hidden] {
  display: none;
}

.launcher-dashboard section {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  min-width: 0;
}

.launcher-dashboard h2 {
  margin-top: 0;
}

.launcher-quick-actions,
.launcher-open-apps {
  display: grid;
  gap: 0.42rem;
}

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

.launcher-quick-actions button,
.launcher-open-apps button {
  display: grid;
  gap: 0.14rem;
  min-height: 58px;
  padding: 0.65rem;
  color: #111735;
  border: 1px solid rgba(37, 99, 255, 0.13);
  border-radius: 0.8rem;
  background: rgba(246, 249, 255, 0.72);
  text-align: left;
}

.launcher-quick-actions button:hover,
.launcher-quick-actions button:focus-visible,
.launcher-open-apps button:hover,
.launcher-open-apps button:focus-visible {
  outline: 0;
  border-color: rgba(37, 99, 255, 0.32);
  background: #ffffff;
}

.launcher-quick-actions strong,
.launcher-open-apps strong {
  font-size: 0.84rem;
}

.launcher-quick-actions span,
.launcher-open-apps span {
  color: var(--muted);
  font-size: 0.74rem;
}

.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) .chat-disclaimer {
  grid-row: 3;
}

.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-shell.is-empty .chat-prompt {
  grid-row: 3;
}

.chat-shell.is-empty .chat-disclaimer {
  grid-row: 6;
  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 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-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);
}

@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) {
  .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 {
    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;
    min-height: 66px;
    border-radius: 1rem;
  }

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

  .command-bar input[type="text"],
  .command-bar textarea {
    grid-area: input;
    padding-left: 0.55rem;
    font-size: 1rem;
  }

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

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

  .command-bar .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;
  }

  .command-bar .level-picker::after {
    right: 0.7rem;
  }

  .command-bar .dictate-button {
    grid-area: mic;
  }

  .command-bar .voice-button {
    grid-area: submit;
  }

  .command-bar .attachment-list {
    grid-area: attachments;
  }

  .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-shell h1 {
    font-size: clamp(1.45rem, 7vw, 2.25rem);
  }

  .chat-prompt {
    grid-template-columns: auto 1fr auto auto auto;
    gap: 0.25rem;
  }

  .chat-prompt textarea {
    padding: 0 0.55rem;
    font-size: 1rem;
  }

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

  .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;
  }

  .desktop-icons.is-draggable .pinned-credits-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,
  .memory-tool-row,
  .automation-item,
  .activity-summary,
  .activity-item,
  .approval-item {
    grid-template-columns: 1fr;
  }

  .approval-item dl div {
    grid-template-columns: 1fr;
  }

  .integration-detail-hero,
  .connection-setup-card,
  .pilot-connection-card,
  .integration-detail-grid,
  .integration-detail-columns,
  .email-account-strip,
  .file-account-strip,
  .calendar-account-strip,
  .drive-flow-toolbar,
  .drive-flow-layout,
  .calendar-flow-toolbar,
  .calendar-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;
  }

  .desktop-context-chips {
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  .launcher-dashboard,
  .launcher-quick-actions {
    grid-template-columns: 1fr;
  }

  .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";
  }
}

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