/* Workspace shell uses the shared Wezzet light/dark palette. */
.dashboard {
  --purple: #7045e8;
  --purple-soft: color-mix(in srgb, var(--purple) 9%, var(--bg));
  margin: 0;
  background: var(--bg);
  font: 15px/1.5 var(--font-sans, system-ui, sans-serif);
  color: var(--ink);
}
.dashboard *,
.signin-page * {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
}
.dashboard a {
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #9672f4;
  outline-offset: 4px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.skip-link {
  position: fixed;
  top: -60px;
  z-index: 100;
  background: var(--bg);
  padding: 12px;
}
.skip-link:focus {
  top: 0;
}
.dash-header {
  height: 80px;
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 36px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 28px;
  font-weight: 750;
  letter-spacing: -1.3px;
  color: var(--ink);
  text-decoration: none;
  min-width: 190px;
}
.brand-dot {
  color: #7045e8;
  margin-left: -9px;
}
.brand img {
  object-fit: contain;
}
.dash-header > nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  white-space: nowrap;
  font-size: 14px;
}
.account-link {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 9px 16px;
  border-radius: 9px;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search {
  position: relative;
  width: min(460px, 40vw);
  margin: 0;
}
.search input {
  width: 100%;
  height: 42px;
  padding: 0 45px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
}
.search .icon {
  position: absolute;
  width: 18px;
  height: 18px;
  top: 12px;
  left: 15px;
  color: var(--ink-soft);
}
.ai-btn {
  position: absolute;
  right: 12px;
  top: 12px;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink-soft);
}
.results {
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  max-height: 65vh;
  overflow: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  box-shadow: 0 12px 30px #0002;
}
.results a {
  display: block;
  padding: 10px;
  border-radius: 6px;
}
.results a:hover,
.results a[aria-selected="true"] {
  background: var(--surface);
}
.sidebar {
  position: fixed;
  top: 80px;
  bottom: 0;
  width: 246px;
  border-right: 1px solid var(--line);
  padding: 30px 18px;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.nav-caption {
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 650;
  color: var(--ink-soft);
  padding: 0 14px;
  margin: 8px 0 14px;
}
.sidebar nav {
  display: grid;
  gap: 5px;
  margin-bottom: 28px;
}
.sidebar nav a {
  padding: 11px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 550;
}
.sidebar nav a > span:first-child {
  font-size: 19px;
  width: 22px;
}
.sidebar nav a:hover {
  background: var(--surface);
  color: var(--ink);
}
.sidebar nav a[aria-current="page"] {
  background: var(--purple-soft);
  color: var(--purple);
}
.sidebar-bottom {
  margin-top: auto;
  padding: 22px 14px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.sidebar-bottom strong {
  font-size: 13px;
}
.sidebar-bottom p {
  color: var(--ink-soft);
}
.sidebar-bottom a {
  color: var(--purple);
}
.dash-main {
  margin-left: 246px;
  padding: 28px 44px 110px;
  max-width: 1800px;
}
.breadcrumb {
  display: flex;
  gap: 14px;
  color: var(--ink-soft);
  font-size: 12px;
  margin-bottom: 36px;
}
.breadcrumb span:last-child {
  color: var(--ink);
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
}
.page-heading .eyebrow {
  color: var(--purple);
  margin: 0 0 10px;
}
.page-heading h1 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -1.4px;
  margin: 0 0 12px;
}
.page-heading p:last-child,
.section-heading p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 14px;
}
.primary-link {
  background: var(--purple);
  color: white !important;
  padding: 12px 18px;
  border-radius: 9px;
  font-size: 13px;
  white-space: nowrap;
  display: flex;
  gap: 24px;
}
.welcome-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
}
.spotlight,
.agent-spotlight {
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  padding: 30px;
  min-height: 254px;
}
.spotlight {
  background: #eee8fb;
  color: #352451;
  border: 1px solid #e5dcf7;
}
.spotlight h2 {
  font-size: 29px;
  letter-spacing: -0.9px;
  line-height: 1.2;
  margin: 24px 0 12px;
  position: relative;
  z-index: 1;
}
.spotlight p {
  font-size: 12px;
  max-width: 280px;
  position: relative;
  z-index: 1;
}
.spotlight-action {
  display: flex;
  gap: 24px;
  margin-top: 28px;
  font-size: 12px;
  font-weight: 650;
}
.format-art {
  position: absolute;
  right: 24px;
  top: 88px;
  transform: rotate(-12deg);
  font-size: 16px;
  border: 1px solid #d2c1ef;
  padding: 25px 15px;
  border-radius: 12px;
  background: #f9f6ff;
  box-shadow: 8px 10px 0 #dcd0f0;
  color: #7959ae;
}
.format-art b {
  display: block;
  text-align: center;
  font-size: 24px;
}
.agent-spotlight {
  background: var(--surface);
  border: 1px solid var(--line);
}
.agent-spotlight h2 {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.6px;
  margin: 46px 0 12px;
}
.agent-spotlight p {
  font-size: 12px;
  color: var(--ink-soft);
}
.agent-spotlight > span:last-child {
  font-size: 12px;
  font-weight: 650;
}
.orbit {
  position: absolute;
  right: 30px;
  top: 50px;
  font-size: 90px;
  color: #9576d0;
  line-height: 1;
  opacity: 0.65;
}
.recent {
  font-size: 12px;
  color: var(--ink-soft);
  margin: 24px 0;
}
.recent a {
  text-decoration: underline;
}
.tool-section {
  margin-top: 38px;
  scroll-margin-top: 108px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.section-heading h2 {
  font-size: 20px;
  letter-spacing: -0.5px;
  margin: 0 0 5px;
}
.section-heading p {
  font-size: 12px;
}
.section-count {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--ink-soft);
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.tool-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  padding: 20px 16px;
  border-radius: 10px;
  min-height: 100px;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.tool-card:hover {
  border-color: #b49ce8;
  background: var(--purple-soft);
}
.tool-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--purple);
}
.card-copy {
  display: grid;
  gap: 5px;
}
.card-copy strong {
  font-size: 13px;
  font-weight: 600;
}
.card-copy > span {
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.card-arrow {
  margin-left: auto;
  align-self: flex-start;
  color: var(--ink-soft);
  font-size: 14px;
}
.dash-footer {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
  color: var(--ink-soft);
}
.dash-footer nav {
  display: flex;
  gap: 20px;
}
.chat-launchers {
  position: fixed;
  bottom: 24px;
  right: 28px;
  z-index: 30;
  display: flex;
  gap: 10px;
}
.bubble {
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 12px 18px;
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 4px 20px #0001;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.support-bubble {
  background: #7045e8;
  color: white;
  border-color: #7045e8;
}
.bubble > span:first-child {
  font-size: 20px;
  line-height: 1;
}
.unread-badge {
  background: #c62e4c;
  color: white;
  border-radius: 20px;
  min-width: 20px;
  padding: 2px 5px;
  font-size: 10px;
  text-align: center;
}
.floating-panel {
  position: fixed;
  bottom: 86px;
  right: 28px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 510px;
  max-height: calc(100dvh - 110px);
  z-index: 40;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 60px #0003;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.floating-panel > header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}
.floating-panel small {
  display: block;
  color: var(--ink-soft);
  font-size: 11px;
}
.floating-panel header button {
  margin-left: auto;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 24px;
}
.support-avatar {
  display: grid;
  place-items: center;
  background: #7045e8;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.floating-panel header a {
  font-size: 11px;
}
#support-log {
  overflow: auto;
  flex: 1;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.support-message {
  margin: 0;
  background: var(--surface);
  border-radius: 12px;
  padding: 12px;
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.support-message.user {
  background: var(--purple-soft);
  margin-left: 30px;
}
.support-note {
  font-size: 11px;
  color: var(--ink-soft);
  padding: 0 18px;
  margin: 8px 0;
}
.support-note a {
  text-decoration: underline;
}
.floating-panel form {
  display: flex;
  padding: 12px;
  gap: 8px;
}
.floating-panel input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px;
  background: var(--surface);
  color: var(--ink);
}
.floating-panel form button {
  border: 0;
  border-radius: 9px;
  background: #7045e8;
  color: white;
  width: 42px;
}
.floating-panel button:disabled {
  opacity: 0.5;
}
.signin-page {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font:
    15px/1.5 system-ui,
    sans-serif;
}
.signin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 5vw;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.signin-header > a:last-child {
  font-size: 12px;
}
.signin-card {
  margin: 9vh auto;
  padding: 36px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  width: 480px;
  max-width: calc(100vw - 32px);
}
.signin-card h1 {
  font-size: 34px;
  letter-spacing: -1px;
  margin: 8px 0;
}
.signin-card > p {
  color: var(--ink-soft);
}
.signin-card .wz-acct {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  margin: 25px 0;
}
.signin-card .wz-acct input {
  flex: auto;
  padding: 12px;
}
.signin-card .wz-acct button {
  padding: 12px;
}
.account-destinations {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
@media (min-width: 1600px) {
  .tool-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1150px) {
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .format-art {
    display: none;
  }
  .dash-header {
    gap: 20px;
    padding: 0 22px;
  }
  .dash-header > nav {
    gap: 14px;
  }
  .dash-header > nav > a:first-child {
    display: none;
  }
  .dash-main {
    padding-left: 28px;
    padding-right: 28px;
  }
  .sidebar {
    width: 210px;
  }
  .dash-main {
    margin-left: 210px;
  }
  .brand {
    min-width: 170px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .orbit {
    right: 15px;
    font-size: 65px;
  }
}
@media (max-width: 760px) {
  .dash-header {
    height: auto;
    min-height: 72px;
    flex-wrap: wrap;
    padding: 16px;
    gap: 16px;
  }
  .brand {
    min-width: 0;
    font-size: 24px;
  }
  .dash-header > nav {
    gap: 10px;
  }
  .search {
    order: 3;
    width: 100%;
  }
  .sidebar {
    position: static;
    width: auto;
    padding: 12px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: block;
  }
  .sidebar nav:first-of-type {
    display: flex;
    overflow: auto;
    margin: 0;
    gap: 5px;
  }
  .sidebar nav a {
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 12px;
  }
  .sidebar nav a > span:first-child {
    display: none;
  }
  .sidebar .nav-caption,
  .sidebar nav:nth-of-type(2),
  .sidebar-bottom {
    display: none;
  }
  .dash-main {
    margin: 0;
    padding: 24px 20px 110px;
  }
  .breadcrumb {
    margin-bottom: 24px;
  }
  .welcome-grid {
    grid-template-columns: 1fr;
  }
  .spotlight {
    min-height: 245px;
  }
  .agent-spotlight {
    min-height: 200px;
  }
  .agent-spotlight h2 {
    margin-top: 24px;
  }
  .orbit {
    font-size: 90px;
    right: 30px;
  }
  .tool-grid {
    grid-template-columns: 1fr;
  }
  .tool-card {
    min-height: 88px;
  }
  .section-count {
    display: none;
  }
  .dash-footer {
    flex-direction: column;
  }
  .chat-launchers {
    bottom: 16px;
    right: 16px;
  }
  .floating-panel {
    right: 16px;
    bottom: 78px;
  }
  .signin-card {
    padding: 24px;
  }
  .signin-header .brand {
    min-width: 0;
  }
  .tool-section {
    scroll-margin-top: 160px;
  }
}

.google-signin {
  margin: 24px 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.google-signin .support-note {
  padding: 0;
  margin: 0 0 14px;
}
.google-signin [role="status"] {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.google-signin form {
  display: grid;
  gap: 12px;
}
.google-signin label {
  font-size: 14px;
}
.google-signin input[type="checkbox"] {
  width: auto;
}

.catalog-controls {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
}
.catalog-controls label {
  font-size: 13px;
  font-weight: 650;
}
.catalog-controls input {
  width: min(100%, 460px);
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
}
#catalog-status {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}
.catalog-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr));
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.catalog-list li {
  min-width: 0;
}
.catalog-list a {
  display: block;
  height: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.catalog-list a::first-letter {
  text-transform: uppercase;
}
.catalog-list a:hover {
  border-color: var(--purple);
  background: var(--purple-soft);
}

/* Hide the scrollbar, retaining scroll access for shorter desktop windows. */
.sidebar { scrollbar-width: none; }
.sidebar::-webkit-scrollbar { display: none; }
@media (min-width: 761px) and (hover: hover) {
  .dashboard .sidebar { width: 78px; padding-left: 12px; padding-right: 12px; background: var(--bg); z-index: 19; transition: width .18s ease; }
  .dashboard .sidebar:hover, .dashboard .sidebar:focus-within { width: 246px; box-shadow: 8px 0 24px #00000008; }
  .dashboard .sidebar nav a { white-space: nowrap; overflow: hidden; }
  .dashboard .sidebar:not(:hover):not(:focus-within) nav a { font-size: 0; gap: 0; padding: 11px 14px; }
  .dashboard .sidebar:not(:hover):not(:focus-within) nav a > span:first-child { display: inline-block; font-size: 19px; width: 22px; flex-shrink: 0; }
  .dashboard .sidebar:not(:hover):not(:focus-within) .nav-caption { visibility: hidden; }
  .dashboard .sidebar:not(:hover):not(:focus-within) .sidebar-bottom { visibility: hidden; }
  .dashboard .sidebar:not(:hover):not(:focus-within) .unread-badge { display: none; }
  .dashboard .dash-main { margin-left: 78px; }
  .comms-page .comms-footer { margin-left: 78px; }
}
@media (prefers-reduced-motion: reduce) { .dashboard .sidebar { transition: none; } }
:root[data-theme="dark"] .dashboard .sidebar nav a[aria-current="page"] { color: #b49aff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .dashboard .sidebar nav a[aria-current="page"] { color: #b49aff; }
}

/* Account menu (top right of the homepage) */
.account-wrap { position: relative; }
.account-link { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.account-link[aria-haspopup] { padding: 5px 12px 5px 6px; max-width: 220px; }
.account-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.account-caret { font-size: 11px; color: var(--ink-soft); }
.account-avatar { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--purple); color: #fff; font-weight: 700; font-size: 13px; }
.account-avatar.big { width: 40px; height: 40px; font-size: 17px; }
.account-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 280px; max-width: calc(100vw - 24px); padding: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16); }
.account-head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; min-width: 0; }
.account-head div { min-width: 0; display: flex; flex-direction: column; }
.account-head b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-head span:not(.account-avatar) { font-size: 12px; color: var(--ink-soft); }
.account-menu nav { display: flex; flex-direction: column; }
.account-menu nav a { display: flex; justify-content: space-between; align-items: center; padding: 9px 10px; border-radius: 8px; font-size: 14px; color: var(--ink); text-decoration: none; }
.account-menu nav a:hover, .account-menu nav a:focus-visible { background: var(--surface); }
.account-menu nav a span { font-size: 12px; color: var(--ink-soft); }
.account-out { width: 100%; margin-top: 6px; padding: 9px 10px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; border-radius: 0 0 8px 8px; }
.account-out:hover { background: var(--surface); }
/* Account details on /signin when signed in */
.acct-rows { margin: 22px 0; border: 1px solid var(--line); border-radius: 12px; }
.acct-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.acct-row:last-child { border-bottom: 0; }
.acct-row > span:first-child { color: var(--ink-soft); }
.acct-row b { overflow-wrap: anywhere; }
.acct-row form { display: flex; gap: 8px; flex: 1 1 100%; }
.acct-row form input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); font: inherit; }
.acct-row button.link, .acct-row a { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--purple); cursor: pointer; text-decoration: underline; }
.acct-msg { font-size: 13px; color: var(--ink-soft); min-height: 1.2em; margin: 0 0 12px; }
.acct-usage { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.acct-code { font: 600 14px/1.4 ui-monospace, monospace; letter-spacing: .03em; user-select: all; overflow-wrap: anywhere; }
.acct-forgot { margin-top: 10px; font-size: 14px; }
.acct-forgot form { margin-top: 8px; }
.pro-list { margin: 18px 0; padding-left: 20px; line-height: 1.7; }

/* Compact messaging launcher, with the count outside the icon. */
#messages-toggle { position: relative; width: 48px; height: 48px; padding: 12px; border-radius: 50%; justify-content: center; flex: none; }
#messages-toggle > svg { display: block; width: 23px; height: 23px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#messages-toggle { color: var(--ink); text-decoration: none; }
#messages-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
#messages-toggle .unread-badge { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border: 2px solid var(--bg); font-size: 10px; font-weight: 700; line-height: 1; }
#messages-toggle .unread-badge[hidden] { display: none; }
