:root {
  --bg: #f8f9fc;
  --paper: #fff;
  --sidebar: #fff;
  --ink: #272934;
  --muted: #7b7e8d;
  --sub: #606374;
  --line: #ebeaf0;
  --purple: #7963d2;
  --purple-dark: #6650bf;
  --purple-soft: #f1edfb;
  --green: #42816d;
  --green-soft: #eaf5ef;
  --orange: #a77935;
  --orange-soft: #fbf3e6;
  --shadow: 0 5px 18px #24203804;
  --radius: 16px;
  --font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button {
  color: inherit;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button,
a {
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s,
    box-shadow 0.18s,
    transform 0.18s;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
  background: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #b9a7ee;
  outline-offset: 4px;
}
button:disabled:hover {
  transform: none;
}
svg.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  line-height: 1.25;
  font-weight: 600;
}
h1 {
  letter-spacing: -1px;
  font-size: 30px;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 16px;
  letter-spacing: -0.2px;
}
small {
  font-size: 12px;
}
[hidden] {
  display: none !important;
}
.muted {
  color: var(--muted);
}
.sub {
  color: var(--sub);
}
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  padding: 12px 20px;
  z-index: 100;
  background: var(--purple);
  color: white;
  border-radius: 8px;
}
.skip-link:focus {
  top: 12px;
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 234px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  z-index: 30;
  display: flex;
  flex-direction: column;
  padding: 30px 18px 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 11px;
  margin-bottom: 32px;
}
.brand-name {
  font-size: 21px;
  letter-spacing: -0.8px;
  font-weight: 650;
}
.brand-symbol {
  display: grid;
  place-items: center;
  width: 33px;
  height: 35px;
  background: var(--purple);
  color: white;
  border-radius: 10px 10px 10px 4px;
  box-shadow: 0 3px 6px #7963d22a;
}
.brand-symbol svg {
  width: 21px;
  height: 21px;
}
.workspace-switch {
  margin: 0 7px 28px;
  padding: 11px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.workspace-switch .ws-symbol {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 7px;
  background: #f3f2f7;
  color: #6f6b7d;
}
.workspace-switch .ws-symbol svg {
  width: 17px;
  height: 17px;
}
.workspace-switch b {
  font-size: 12px;
  font-weight: 550;
}
.workspace-switch small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.workspace-switch .chevron {
  margin-left: auto;
  color: #706a80;
  width: 14px;
}
.nav-label {
  padding: 0 14px;
  margin-bottom: 9px;
  font-size: 11px;
  letter-spacing: 1.35px;
  color: #6c6b7b;
  font-weight: 600;
  text-transform: uppercase;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 13px;
  border-radius: 8px;
  font-size: 12px;
  color: #6f6c7b;
  margin-bottom: 4px;
  text-align: left;
  font-weight: 500;
}
.nav-item svg {
  width: 18px;
  height: 18px;
}
.nav-item:hover {
  background: #f7f5fb;
  color: var(--ink);
}
.nav-item.active {
  background: var(--purple-soft);
  color: var(--purple);
  font-weight: 600;
}
.nav-item .nav-count {
  margin-left: auto;
  border-radius: 5px;
  background: #e7dff8;
  font-size: 11px;
  line-height: 19px;
  min-width: 20px;
  text-align: center;
  color: #745ebb;
}
.nav-divider {
  margin: 24px 13px;
  border-top: 1px solid var(--line);
}
.recent-nav {
  overflow: auto;
  max-height: 240px;
}
.recent-link {
  padding: 8px 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #6f6b78;
  font-size: 11px;
  border-radius: 6px;
}
.recent-link:hover,
.recent-link.active {
  color: var(--purple);
  background: #f7f5fb;
}
.recent-link svg {
  width: 13px;
  height: 13px;
  opacity: 0.65;
}
.recent-link span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recent-empty {
  font-size: 11px;
  color: #716a7f;
  line-height: 1.8;
  padding: 4px 14px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 30px;
}
.sidebar-tip {
  background: #f8f7fc;
  border: 1px solid #f0edf7;
  border-radius: 11px;
  padding: 16px 14px;
  margin: 0 6px 15px;
}
.sidebar-tip .icon {
  width: 19px;
  height: 19px;
  color: #785cbd;
  margin-bottom: 8px;
}
.sidebar-tip b {
  display: block;
  font-size: 11px;
  font-weight: 550;
  margin-bottom: 5px;
}
.sidebar-tip p {
  font-size: 11px;
  line-height: 1.8;
  color: #706a7b;
}
.sidebar-tip button {
  padding: 0;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  color: #765fb1;
  font-weight: 550;
}
.sidebar-tip button .icon {
  width: 12px;
  height: 12px;
  margin: 0;
}
.user-block {
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding: 17px 10px 0;
}
.user-avatar {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f0e8e1;
  color: #816755;
  font-size: 11px;
  font-weight: 600;
}
.user-info {
  flex: 1;
}
.user-info b {
  font-size: 11px;
  font-weight: 550;
}
.user-info small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.user-block .icon {
  width: 15px;
  height: 15px;
  color: #6d6d6d;
}
.main-shell {
  margin-left: 234px;
  width: calc(100% - 234px);
}
.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  border-bottom: 1px solid var(--line);
  background: #ffffffa8;
  gap: 20px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 11px;
  color: #706b7b;
}
.breadcrumb span:last-child {
  color: #5c5968;
}
.breadcrumb .icon {
  width: 15px;
  height: 15px;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 19px;
}
.search-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #706b7c;
  font-size: 11px;
}
.search-trigger .icon {
  width: 16px;
  height: 16px;
}
.search-trigger kbd {
  font: 10px var(--font);
  border: 1px solid #e8e5ee;
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 25px;
  color: #726980;
}
.live-status {
  font-size: 11px;
  color: #607268;
  display: flex;
  align-items: center;
  gap: 7px;
}
.live-dot {
  width: 5px;
  height: 5px;
  background: #75a18a;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #ecf4ef;
}
.live-status.offline {
  color: #85683f;
}
.offline .live-dot {
  background: #c29756;
  box-shadow: 0 0 0 3px #f9f1e4;
}
.topbar-separator {
  height: 20px;
  border-left: 1px solid var(--line);
}
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 8px;
  color: #6f6a7e;
  position: relative;
}
.icon-button:hover {
  background: var(--purple-soft);
  color: var(--purple);
}
.icon-button .icon {
  width: 18px;
  height: 18px;
}
.notification-dot {
  position: absolute;
  right: 7px;
  top: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--purple);
  outline: 2px solid white;
}
.mobile-menu {
  display: none;
}
.content {
  max-width: 1370px;
  padding: 35px 42px 26px;
  margin: 0 auto;
  outline: none;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 29px;
}
.page-heading p {
  font-size: 12px;
  margin-top: 8px;
  color: var(--muted);
}
.page-heading h1 {
  font-size: 27px;
  letter-spacing: -0.8px;
}
.date-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6f6b7c;
  font-size: 11px;
  white-space: nowrap;
}
.date-label .icon {
  width: 16px;
  height: 16px;
  color: #7b6b5a;
}
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 229px;
  border-radius: 15px;
  overflow: hidden;
  padding: 27px 34px;
  background: #f0edf8;
  border: 1px solid #eae4f5;
  margin-bottom: 32px;
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: 60%;
}
.hero .eyebrow {
  color: #7b5fa9;
  margin-bottom: 10px;
  font-size: 11px;
  letter-spacing: 1.9px;
}
.hero h2 {
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -1.05px;
  line-height: 1.12;
  color: #494055;
}
.hero h2 em {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 40px;
  color: #7a5fa9;
}
.hero p {
  font-size: 11px;
  line-height: 1.8;
  color: #766883;
  margin-top: 12px;
  max-width: 320px;
}
.hero-buttons {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 21px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 37px;
  padding: 9px 15px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 550;
  line-height: 1.4;
  white-space: nowrap;
}
.button .icon {
  width: 14px;
  height: 14px;
}
.button.primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 3px 5px #7963d215;
}
.button.primary:hover {
  background: var(--purple-dark);
  box-shadow: 0 4px 12px #7963d22b;
  transform: translateY(-1px);
}
.button.secondary {
  background: white;
  border: 1px solid var(--line);
  color: #706b79;
}
.button.secondary:hover {
  border-color: #cfc3eb;
  background: #fbfaff;
}
.button.ghost {
  color: #776785;
  padding-left: 0;
  padding-right: 0;
  font-size: 11px;
}
.button.ghost:hover {
  color: var(--purple);
}
.hero-art {
  position: absolute;
  width: 350px;
  height: 240px;
  right: 12px;
  top: 6px;
}
.hero-art svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 16px;
}
.section-heading h2 {
  font-size: 16px;
  font-weight: 600;
}
.section-heading h2 .sub-label {
  font-size: 11px;
  font-weight: 400;
  margin-left: 9px;
  color: #706a7a;
  letter-spacing: 0;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7a629e;
  font-size: 11px;
  padding: 3px 0;
}
.text-link:hover {
  color: var(--purple-dark);
}
.text-link .icon {
  width: 13px;
  height: 13px;
}
.buddy-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 43px;
  background: #f2edf9;
  border-radius: 12px;
  flex-shrink: 0;
}
.buddy-avatar svg {
  width: 34px;
  height: 34px;
}
.buddy-avatar.researcher {
  background: #eaf4ed;
}
.buddy-avatar.data_analyst {
  background: #fbf1e3;
}
.buddy-avatar.category_manager {
  background: #e9eef8;
}
.buddy-avatar.small {
  width: 31px;
  height: 31px;
  border-radius: 9px;
}
.buddy-avatar.small svg {
  width: 26px;
  height: 26px;
}
.buddy-avatar.large {
  width: 65px;
  height: 65px;
  border-radius: 18px;
}
.buddy-avatar.large svg {
  width: 51px;
  height: 51px;
}
.bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.82fr) minmax(235px, 1fr);
  gap: 23px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.work-tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 0 20px;
}
.tab {
  position: relative;
  padding: 14px 0 12px;
  color: #736a7d;
  font-size: 11px;
  white-space: nowrap;
}
.tab .count {
  display: inline-block;
  font-size: 11px;
  min-width: 15px;
  text-align: center;
  background: #f3f0f7;
  border-radius: 4px;
  margin-left: 4px;
  padding: 0 3px;
  color: #78658f;
}
.tab.active {
  color: #7b60a8;
  font-weight: 550;
}
.tab.active:after {
  position: absolute;
  content: "";
  bottom: -1px;
  height: 2px;
  left: 0;
  right: 0;
  background: #a38bbf;
  border-radius: 2px;
}
.work-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 20px;
  text-align: left;
  border-bottom: 1px solid #f1eef5;
  background: #fff;
}
.work-row:last-child {
  border-bottom: 0;
}
.work-row:hover {
  background: #fcfaff;
}
.work-icon {
  width: 33px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #eae4f1;
  border-radius: 7px;
  color: #7e619b;
  flex-shrink: 0;
  background: #fcfaff;
}
.work-icon .icon {
  width: 17px;
  height: 17px;
}
.work-row-copy {
  min-width: 0;
  flex: 1;
}
.work-row h3 {
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.work-row p {
  font-size: 11px;
  color: #75697e;
  margin-top: 6px;
}
.work-row .icon.row-arrow {
  width: 12px;
  height: 12px;
  color: #79658a;
  margin-left: 3px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.badge.working {
  background: #f1edfa;
  color: #7d60a1;
}
.badge.review {
  background: #fcf4e7;
  color: #83693b;
}
.badge.done {
  background: #edf5ee;
  color: #56755b;
}
.badge.waiting {
  background: #f3f1f6;
  color: #736a7b;
}
.badge.issue {
  background: #fbeeee;
  color: #a75555;
}
.panel-footer {
  padding: 11px 20px;
  background: #fefdfd;
  border-top: 1px solid #f1edf5;
  color: #766781;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
}
.panel-footer .icon {
  width: 11px;
  height: 11px;
}
.activity-panel {
  padding: 4px 20px 8px;
  min-height: 211px;
}
.activity-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 0;
  min-height: 69px;
}
.activity-item:not(:last-child):after {
  content: "";
  position: absolute;
  top: 39px;
  bottom: -10px;
  left: 12px;
  width: 1px;
  background: #eee8f2;
}
.activity-symbol {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #f4f0f9;
  color: #7f609e;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.activity-symbol.done {
  background: #eef5ef;
  color: #5c745b;
}
.activity-symbol.review {
  background: #fbf5e9;
  color: #806b39;
}
.activity-symbol .icon {
  width: 12px;
  height: 12px;
}
.activity-copy {
  min-width: 0;
}
.activity-copy p {
  font-size: 11px;
  color: #766983;
  line-height: 1.7;
}
.activity-copy p strong {
  font-weight: 500;
  color: #72637f;
}
.activity-copy small {
  display: block;
  font-size: 11px;
  color: #796684;
  margin-top: 5px;
}
.page-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
  color: #736980;
  font-size: 11px;
}
.page-footer .icon {
  width: 12px;
  height: 12px;
}
.demo-label {
  color: #796491;
  font-size: 11px;
  border: 1px solid #e9e2f1;
  background: #f8f5fc;
  border-radius: 5px;
  padding: 3px 8px;
}
.connection-banner {
  padding: 9px 42px;
  background: #fff6e6;
  border-bottom: 1px solid #f2e6cc;
  font-size: 11px;
  color: #876733;
}
.attention-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 42px;
  background: #fff6e6;
  border-bottom: 1px solid #f0dfbd;
  color: #5d4a22;
  position: sticky;
  top: 0;
  z-index: 20;
}
.attention-bar[hidden] {
  display: none;
}
.attention-bar.blocking {
  background: #fdeee2;
  border-bottom-color: #f3cfb2;
  color: #6b3b1c;
}
.attention-pulse {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e0663a;
  box-shadow: 0 0 0 0 #e0663a66;
  animation: attention-ring 1.8s ease-out infinite;
}
@keyframes attention-ring {
  to {
    box-shadow: 0 0 0 10px #e0663a00;
  }
}
.attention-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.attention-copy b {
  font-size: 14px;
  font-weight: 650;
}
.attention-copy span {
  font-size: 11px;
  opacity: 0.85;
}
.attention-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.attention-actions .text-link {
  color: inherit;
}
.attention-hint {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  font-size: 11px;
  color: var(--sub);
}
.attention-hint .icon {
  width: 13px;
  height: 13px;
}
.notification-count {
  position: absolute;
  right: -3px;
  top: -3px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #e0663a;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  outline: 2px solid white;
}
.icon-button.has-alerts {
  color: #b3491f;
}
.recent-dot {
  flex: none;
  margin-left: auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e0663a;
}
.toast.actionable {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 10px 10px 18px;
  border-left: 4px solid #e0663a;
}
.toast-action {
  flex: none;
  background: #fff;
  color: #51445c;
  font-weight: 650;
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 7px;
}
.toast-close {
  flex: none;
  color: #fff;
  opacity: 0.75;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
}
.toast-close .icon {
  width: 14px;
  height: 14px;
}
@media (max-width: 760px) {
  .attention-bar {
    padding: 12px 20px;
    flex-wrap: wrap;
  }
  .attention-pulse {
    display: none;
  }
  .attention-actions {
    width: 100%;
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  .attention-pulse {
    animation: none;
  }
}
.empty-state {
  padding: 38px 22px;
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 9px;
}
.empty-state > .icon {
  color: #7e619f;
  width: 28px;
  height: 28px;
  margin-bottom: 5px;
}
.empty-state h3 {
  font-size: 13px;
  font-weight: 500;
}
.empty-state p {
  font-size: 11px;
  max-width: 290px;
  color: #756782;
}
.empty-state .button {
  margin-top: 6px;
}
.page-intro {
  max-width: 560px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.info-strip {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 22px;
  background: #f3f0f9;
  border: 1px solid #eae5f2;
  border-radius: 12px;
  color: #7c629f;
}
.info-strip .icon {
  width: 26px;
  height: 26px;
}
.info-strip b {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #796590;
}
.info-strip p {
  font-size: 11px;
  margin-top: 4px;
}
.work-list-full .work-row {
  padding: 23px;
}
.work-list-full .work-row h3 {
  font-size: 13px;
}
.work-list-full .work-row p {
  font-size: 11px;
}
.work-list-full .badge {
  font-size: 11px;
}
.results-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 13px;
}
.library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.document-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
}
.document-card:hover {
  border-color: #cfc0e8;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.document-preview {
  height: 155px;
  background: #f2eff7;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden;
  padding: 23px 35px 0;
}
.paper-preview {
  height: 145px;
  width: 140px;
  background: white;
  border-radius: 5px;
  box-shadow: 0 4px 20px #85709715;
  padding: 25px 18px;
  transform: rotate(-4deg);
}
.paper-preview .line {
  height: 3px;
  background: #ede8f2;
  margin-top: 9px;
  width: 100%;
}
.paper-preview .line.heading {
  height: 5px;
  background: #cfc0dd;
  width: 65%;
  margin-bottom: 19px;
}
.paper-preview .line.short {
  width: 70%;
}
.document-card:nth-child(2n) .document-preview {
  background: #edf3ed;
}
.document-card:nth-child(3n) .document-preview {
  background: #faf2e9;
}
.document-card-body {
  padding: 18px;
}
.document-card h3 {
  font-size: 13px;
  line-height: 1.6;
}
.document-card p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 7px;
}
.document-card .badge {
  margin-top: 12px;
}
.guideline-card {
  padding: 23px;
  display: flex;
  gap: 15px;
  margin-bottom: 14px;
}
.guideline-card > .icon {
  color: #796396;
}
.guideline-card p {
  font-size: 13px;
  color: var(--sub);
  line-height: 1.8;
}
.guideline-card small {
  display: block;
  margin-top: 7px;
  color: #766885;
  font-size: 11px;
}
.full-activity {
  padding: 8px 26px;
}
.full-activity .activity-item {
  padding: 20px 0;
}
.full-activity .activity-copy p {
  font-size: 12px;
}
.full-activity .activity-copy small {
  font-size: 11px;
}
.full-activity .activity-symbol {
  width: 30px;
  height: 30px;
}
.full-activity .activity-item:not(:last-child):after {
  left: 15px;
  top: 47px;
}
/* A conversation with a quiet, persistent view of the work. */
.content.chat-page {
  max-width: none;
  padding: 0;
  height: calc(100dvh - 76px - var(--attention-h, 0px));
  display: flex;
  flex-direction: column;
}
.chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  flex: 1;
  min-height: 0;
}
.conversation-column {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  background: #fff;
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 20px 30px;
  min-height: 90px;
}
.chat-header h1 {
  font-size: 16px;
  letter-spacing: -0.4px;
}
.chat-header p {
  font-size: 11px;
  color: #726a81;
  margin-top: 4px;
}
.chat-header .header-end {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}
.chat-header .button {
  font-size: 11px;
}
.messages {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  padding: 27px 34px 20px;
}
.chat-welcome {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 520px;
  margin: auto;
  text-align: center;
  padding: 30px 20px;
}
.chat-welcome .buddy-avatar {
  margin-bottom: 25px;
}
.chat-welcome .eyebrow {
  color: #7a6392;
  font-size: 11px;
}
.chat-welcome h2 {
  font-size: 30px;
  letter-spacing: -1px;
  margin-top: 11px;
  font-weight: 500;
}
.chat-welcome h2 em {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 37px;
  color: #7e5ea2;
  font-weight: 400;
}
.chat-welcome p {
  color: #766884;
  font-size: 12px;
  margin: 15px 0 27px;
  line-height: 1.9;
  max-width: 365px;
}
.suggestions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}
.home-prompts {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 31px;
}
.suggestion {
  border: 1px solid #eee9f3;
  border-radius: 9px;
  padding: 14px;
  text-align: left;
  color: #79658e;
  font-size: 11px;
  line-height: 1.7;
  background: #fefcfe;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.suggestion .icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 2px;
}
.suggestion:hover {
  background: #f8f4fc;
  border-color: #d7c9e8;
  color: #7d619a;
}
.suggestion.featured {
  grid-column: 1 / -1;
  align-items: center;
  padding: 16px 18px;
  border-color: var(--purple);
  background: linear-gradient(100deg, var(--purple-soft), var(--paper) 70%);
  color: var(--purple-dark);
  font-size: 14px;
  font-weight: 650;
  box-shadow:
    0 0 0 1px #7963d233,
    0 0 16px #7963d23d;
  animation: featured-glow 2.2s ease-in-out infinite;
}
.suggestion.featured .icon {
  width: 18px;
  height: 18px;
  margin-top: 0;
}
.suggestion.featured .icon:last-child {
  margin-left: auto;
}
.suggestion.featured:hover {
  background: var(--purple-soft);
  border-color: var(--purple-dark);
  color: var(--purple-dark);
}
@keyframes featured-glow {
  50% {
    box-shadow:
      0 0 0 3px #7963d22e,
      0 0 30px 4px #7963d285;
  }
}
.chat-date {
  text-align: center;
  font-size: 11px;
  color: #776785;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 3px 0 28px;
}
.chat-date:before,
.chat-date:after {
  content: "";
  height: 1px;
  background: #f0ebf5;
  flex: 1;
}
.message {
  display: flex;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto 25px;
  animation: appear 0.25s ease;
}
.message .buddy-avatar {
  width: 29px;
  height: 29px;
  border-radius: 8px;
}
.message .buddy-avatar svg {
  width: 24px;
  height: 24px;
}
.message-body {
  min-width: 0;
  flex: 1;
}
.message-meta {
  font-size: 11px;
  color: #78668c;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
}
.message-meta b {
  font-weight: 500;
  color: #6f5c80;
}
.message-meta time {
  font-size: 11px;
  color: #786783;
}
.message-content {
  font-size: 12px;
  line-height: 1.9;
  color: #74697d;
  overflow-wrap: anywhere;
}
.message-content p + p {
  margin-top: 12px;
}
.message-content h2,
.message-content h3,
.message-content h4 {
  font-size: 14px;
  line-height: 1.6;
  margin: 18px 0 8px;
  color: #695875;
}
.message-content ul,
.message-content ol {
  padding-left: 20px;
  margin: 8px 0;
}
.message-content li {
  padding-left: 2px;
  margin-bottom: 4px;
}
.message-content strong {
  font-weight: 600;
  color: #72607f;
}
.message-content code {
  font-size: 11px;
  background: #f5f1f8;
  border-radius: 3px;
  padding: 2px 4px;
}
.message-content pre {
  padding: 15px;
  background: #f6f3f9;
  border-radius: 8px;
  overflow: auto;
  white-space: pre-wrap;
}
.message-content a {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.message.user .user-avatar {
  width: 29px;
  height: 29px;
  font-size: 11px;
  background: #f0e9e1;
  flex-shrink: 0;
}
.message.user .message-content {
  background: #f7f4fa;
  border-radius: 0 11px 11px;
  padding: 13px 16px;
  display: inline-block;
  max-width: 100%;
}
.message.error .message-content {
  background: #fff1ef;
  border: 1px solid #f5dfda;
  border-radius: 9px;
  padding: 13px 16px;
  color: #8e6358;
}
.message.error .icon {
  color: #966051;
}
.typing {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 20px;
}
.typing i {
  width: 4px;
  height: 4px;
  background: #b7a1cd;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
.typing i:nth-child(2) {
  animation-delay: 0.2s;
}
.typing i:nth-child(3) {
  animation-delay: 0.4s;
}
.typing-label {
  font-size: 11px;
  color: #7a6490;
  margin-left: 7px;
}
.composer-area {
  padding: 13px 30px 18px;
  flex-shrink: 0;
}
.composer {
  border: 1px solid #e3dceb;
  border-radius: 12px;
  padding: 13px 15px 10px;
  box-shadow: 0 4px 12px #6b4c8d06;
  background: #fff;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.composer:focus-within {
  border-color: #bca8d5;
  box-shadow: 0 0 0 3px #f4effa;
}
.composer textarea {
  width: 100%;
  border: 0;
  resize: none;
  outline: none;
  background: transparent;
  color: #71627e;
  min-height: 40px;
  max-height: 180px;
  line-height: 1.7;
  font-size: 12px;
  padding: 0;
}
.composer textarea:focus-visible {
  outline: 0;
}
.composer textarea::placeholder {
  color: #79668a;
}
.composer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
}
.composer-note {
  font-size: 11px;
  color: #786688;
  display: flex;
  align-items: center;
  gap: 5px;
}
.composer-note .icon {
  width: 12px;
  height: 12px;
}
.send-button {
  display: grid;
  place-items: center;
  background: var(--purple);
  color: white;
  border-radius: 7px;
  width: 31px;
  height: 31px;
}
.send-button .icon {
  width: 17px;
  height: 17px;
}
.send-button:hover {
  background: var(--purple-dark);
}
.composer-footer {
  text-align: center;
  font-size: 11px;
  color: #776785;
  margin-top: 11px;
}
.compose-error {
  font-size: 11px;
  color: #985f51;
  padding: 0 0 10px;
}
.work-context {
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: #faf9fc;
  padding: 25px 22px;
}
.context-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.context-heading h2 {
  font-size: 12px;
}
.context-heading .icon {
  width: 15px;
  height: 15px;
  color: #79658a;
}
.context-empty {
  text-align: center;
  padding: 26px 0 33px;
}
.context-illustration {
  width: 65px;
  height: 76px;
  border: 1px solid #e5ddef;
  border-radius: 9px;
  margin: 0 auto 19px;
  background: white;
  transform: rotate(5deg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #81609e;
  box-shadow: -9px 5px 0 #f0eaf5;
}
.context-illustration .icon {
  width: 25px;
  height: 25px;
}
.context-empty h3 {
  font-size: 12px;
  color: #786787;
  font-weight: 500;
}
.context-empty p {
  font-size: 11px;
  line-height: 1.9;
  color: #7b648f;
  margin: 10px 2px;
}
.context-tip {
  border-top: 1px solid #ede7f4;
  padding-top: 24px;
  margin-top: 20px;
}
.context-tip h3 {
  font-size: 11px;
  color: #7a658e;
  margin-bottom: 14px;
  font-weight: 500;
}
.context-tip li {
  font-size: 11px;
  color: #7b648f;
  margin: 12px 0;
  padding-left: 3px;
}
.context-tip ol {
  padding-left: 17px;
}
.context-work {
  background: white;
  border: 1px solid #e9e1f1;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 14px;
}
.context-work h3 {
  font-size: 12px;
  line-height: 1.6;
  margin: 12px 0;
  color: #796786;
}
.context-work p {
  font-size: 11px;
  line-height: 1.8;
  color: #7b658c;
}
.context-work .button {
  width: 100%;
  margin-top: 13px;
  font-size: 11px;
}
.step-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}
.step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  padding: 0 0 20px;
  color: #79658a;
}
.step:not(:last-child):before {
  content: "";
  position: absolute;
  width: 1px;
  background: #e9e1f1;
  top: 18px;
  bottom: 1px;
  left: 8px;
}
.step-dot {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1px solid #e5dcec;
  border-radius: 50%;
  font-size: 11px;
  background: white;
  z-index: 1;
  color: #796689;
  flex-shrink: 0;
}
.step-dot .icon {
  width: 10px;
  height: 10px;
}
.step.complete {
  color: #7d6394;
}
.step.complete .step-dot {
  background: #eee6f6;
  border-color: #eee6f6;
  color: #7e6196;
}
.step.current {
  color: #7c6393;
}
.step.current .step-dot {
  border-color: #b89dce;
  box-shadow: 0 0 0 3px #f4edf9;
  color: #815f9f;
}
.progress-note {
  font-size: 11px;
  line-height: 1.8;
  border-left: 2px solid #d4c4e1;
  margin: 12px 0;
  padding: 2px 0 2px 10px;
  color: #7f6298;
}
.task-list {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}
.task-list li {
  display: flex;
  gap: 8px;
  font-size: 11px;
  line-height: 1.7;
  color: #7e6193;
  margin: 11px 0;
}
.task-list .icon {
  width: 13px;
  height: 13px;
  margin-top: 2px;
}
.context-mobile-toggle {
  display: none;
}
.scroll-bottom {
  position: sticky;
  bottom: 8px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--purple);
  box-shadow: var(--shadow);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
}
.scroll-bottom .icon {
  width: 12px;
  height: 12px;
}
/* Dialogs, search, and document review. */
.dialog {
  border: 1px solid #eae3f2;
  border-radius: 17px;
  padding: 0;
  width: min(640px, calc(100vw - 40px));
  max-height: 85dvh;
  color: var(--ink);
  box-shadow: 0 20px 100px #35244422;
  background: white;
}
.dialog::backdrop {
  background: #2f26343a;
  backdrop-filter: blur(5px);
}
.dialog[open] {
  animation: appear 0.18s ease;
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 23px 26px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: white;
  z-index: 2;
}
.dialog-header h2 {
  font-size: 18px;
  line-height: 1.5;
  max-width: 90%;
}
.dialog-header .eyebrow {
  font-size: 11px;
  color: #7d6298;
  margin-bottom: 5px;
}
.dialog-body {
  padding: 25px 27px;
  overflow-wrap: anywhere;
}
.dialog-body > p {
  color: #786786;
  font-size: 12px;
  line-height: 1.9;
}
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding: 18px 26px;
  border-top: 1px solid var(--line);
  position: sticky;
  bottom: 0;
  background: #fefcfe;
  z-index: 2;
  flex-wrap: wrap;
}
.dialog-actions .button {
  font-size: 11px;
}
.dialog.large {
  width: min(790px, calc(100vw - 40px));
}
.help-steps {
  display: grid;
  gap: 20px;
  margin: 25px 0 6px;
}
.help-step {
  display: flex;
  gap: 15px;
}
.help-step .number {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: #f0e9f8;
  border-radius: 8px;
  color: #7f5ea0;
  font-size: 12px;
  flex-shrink: 0;
}
.help-step h3 {
  font-size: 13px;
  margin: 3px 0 6px;
}
.help-step p {
  color: #7d648e;
  font-size: 11px;
  line-height: 1.9;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.search-box .icon {
  color: #7f6196;
}
.search-box input {
  border: 0;
  outline: 0;
  width: 100%;
  font-size: 14px;
  color: #7c648f;
}
.search-box input::placeholder {
  color: #816196;
}
.search-box kbd {
  font: 9px var(--font);
  border: 1px solid #eee5f4;
  padding: 3px 5px;
  border-radius: 4px;
  color: #816095;
}
.search-results {
  max-height: 430px;
  overflow-y: auto;
  padding: 12px;
}
.search-label {
  padding: 8px 13px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #816096;
}
.search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
}
.search-result:hover,
.search-result:focus {
  background: #f6f1fb;
}
.search-result .icon {
  width: 17px;
  height: 17px;
  color: #845ca3;
}
.search-result b {
  font-size: 12px;
  font-weight: 500;
  display: block;
}
.search-result small {
  font-size: 11px;
  color: #816095;
}
.search-result > .icon:last-child {
  margin-left: auto;
}
.search-hint {
  padding: 11px 24px;
  font-size: 11px;
  color: #82609a;
  border-top: 1px solid var(--line);
}
.document-prose {
  font-size: 13px;
  color: #786784;
  line-height: 1.95;
}
.document-prose h1 {
  font-size: 26px;
  margin: 0 0 18px;
  color: #605068;
  line-height: 1.35;
}
.document-prose h2 {
  font-size: 19px;
  margin: 25px 0 12px;
  color: #6f597d;
}
.document-prose h3,
.document-prose h4 {
  font-size: 15px;
  margin: 22px 0 10px;
  color: #715f7d;
}
.document-prose p {
  margin: 12px 0;
}
.document-prose ul,
.document-prose ol {
  padding-left: 21px;
}
.document-prose li {
  margin-bottom: 8px;
}
.document-prose a {
  color: var(--purple);
  text-decoration: underline;
}
.document-prose pre {
  padding: 18px;
  border-radius: 8px;
  background: #f5f1f8;
  overflow: auto;
  white-space: pre-wrap;
}
.document-prose code {
  background: #f5f1f8;
  font-size: 12px;
  padding: 2px 4px;
}
.document-prose blockquote {
  border-left: 3px solid #dfd0eb;
  padding-left: 16px;
  color: #835f9a;
  margin: 18px 0;
}
.document-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #826195;
  margin-bottom: 20px;
}
.review-callout {
  background: #faf3e8;
  color: #816a41;
  padding: 13px 16px;
  border: 1px solid #f1e7d3;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.8;
  margin-bottom: 22px;
}
.decision-file {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
}
.decision-file summary {
  cursor: pointer;
  padding: 12px 0;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.decision-file[open] summary {
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.review-callout.info {
  background: #f6f0fa;
  color: #826198;
  border-color: #e9dcf3;
}
.review-tabs {
  display: flex;
  gap: 20px;
  padding: 0 26px;
  border-bottom: 1px solid var(--line);
}
.review-tabs button {
  font-size: 11px;
  padding: 13px 0;
  color: #82609a;
}
.review-tabs button.active {
  color: #835f9d;
  border-bottom: 2px solid #ad90c3;
}
.dialog.large.activity-dialog {
  width: min(1180px, calc(100vw - 32px));
}
.activity-overview, .activity-overview > div, .activity-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.activity-overview {
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.activity-overview span, .activity-section-heading > span {
  color: var(--sub);
  font-size: 11px;
}
#activity-connection {
  color: var(--green);
  white-space: nowrap;
}
#activity-connection::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  background: currentColor;
  border-radius: 50%;
}
#activity-connection.offline { color: var(--orange); }
.workflow-activity-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.4fr);
  gap: 28px;
  align-items: start;
}
.activity-graph, .activity-timeline { min-width: 0; }
.activity-section-heading { margin-bottom: 16px; }
.activity-section-heading h3 { font-size: 14px; }
.activity-section-heading button, .activity-origin button, .activity-link button,
.activity-filter-label button, #workflow-activity .review-callout button {
  color: var(--purple-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: inherit;
}
.activity-section-heading button { font-size: 11px; }
.activity-node {
  padding: 15px;
  margin: 0 0 14px calc(var(--depth) * 12px);
  border: 1px solid var(--line);
  border-left: 3px solid #c9bcec;
  border-radius: 10px;
  background: #fcfbfe;
}
.activity-origin {
  font-size: 10px;
  color: var(--sub);
  line-height: 1.6;
  margin-bottom: 10px;
}
.activity-origin span { display: block; overflow-wrap: anywhere; }
.activity-select {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px;
  text-align: left;
  border-radius: 6px;
  border: 1px solid transparent;
}
.activity-select:hover { background: var(--purple-soft); }
.activity-select[aria-pressed="true"] {
  border-color: #b4a0df;
  background: var(--purple-soft);
}
.activity-select > span { min-width: 0; }
.activity-select b { display: block; font-size: 12px; line-height: 1.5; }
.activity-select small { display: block; font-size: 10px; color: var(--sub); line-height: 1.5; }
.activity-node-status { padding: 7px 8px 10px; }
.activity-steps { border-top: 1px solid var(--line); padding: 12px 8px 10px; }
.activity-steps-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 12px; line-height: 1.5; }
.activity-steps-heading span { color: var(--sub); font-size: 10px; white-space: nowrap; }
.activity-steps progress { display: block; width: 100%; height: 4px; margin: 8px 0 10px; border: 0; border-radius: 2px; overflow: hidden; background: var(--line); appearance: none; }
.activity-steps progress::-webkit-progress-bar { background: var(--line); }
.activity-steps progress::-webkit-progress-value { background: var(--green); }
.activity-steps progress::-moz-progress-bar { background: var(--green); }
.activity-steps ol { list-style: none; padding: 0; }
.activity-step { display: flex; align-items: start; gap: 9px; padding: 5px 6px; border-radius: 6px; font-size: 11px; line-height: 1.6; color: var(--muted); }
.activity-step > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.activity-step b { font-weight: 500; }
.activity-step small { display: block; font-size: 10px; color: var(--muted); }
.activity-step small.activity-step-instrument { color: var(--sub); }
.activity-step small.activity-step-instrument.waiting_activation { color: var(--orange); }
.activity-step-mark { flex: 0 0 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); font-size: 9px; line-height: 16px; text-align: center; background: var(--paper); }
.activity-step.completed { color: var(--sub); }
.activity-step.completed .activity-step-mark { background: var(--green-soft); border-color: var(--green-soft); color: var(--green); }
.activity-step[aria-current] { background: var(--purple-soft); color: var(--ink); }
.activity-step[aria-current] b { font-weight: 600; }
.activity-step[aria-current] small { color: var(--purple-dark); }
.activity-step[aria-current] .activity-step-mark { background: var(--purple); border-color: var(--purple); color: #fff; }
.activity-step.awaiting_decision { background: var(--orange-soft); }
.activity-step.awaiting_decision small { color: var(--orange); }
.activity-step.awaiting_decision .activity-step-mark { background: var(--orange); border-color: var(--orange); }
.activity-step.paused .activity-step-mark { background: var(--paper); border-color: var(--purple); color: var(--purple); }
.activity-worker { border-top: 1px solid var(--line); padding: 10px 0 3px; }
.activity-worker p { color: var(--sub); font-size: 11px; line-height: 1.7; margin: 7px 8px; }
.activity-worker .worker-select { flex-wrap: wrap; justify-content: space-between; }
.activity-worker.past-worker { background: #f6f5f8; border-radius: 6px; }
.activity-worker .badge { font-size: 9px; }
.activity-worker .activity-error { color: #a14949; }
.activity-muted, .activity-history-note, .activity-filter-label, .activity-link {
  color: var(--sub);
  font-size: 11px;
  line-height: 1.7;
  margin: 9px 0;
}
.activity-todos { list-style: none; padding: 0 8px; font-size: 11px; line-height: 1.8; }
.activity-todos small { color: var(--muted); }
.activity-request { border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 10px; font-size: 11px; line-height: 1.7; }
.activity-request p { color: var(--sub); }
.activity-filter-label { padding: 9px 12px; background: var(--purple-soft); border-radius: 6px; }
.activity-filter-label button { margin-left: 8px; }
.activity-event { border-bottom: 1px solid var(--line); padding: 15px 0; }
.activity-event summary { display: flex; align-items: start; gap: 10px; cursor: pointer; list-style: none; }
.activity-event summary::-webkit-details-marker { display: none; }
.activity-event summary:focus-visible { outline: 2px solid var(--purple); outline-offset: 4px; }
.activity-event-dot { width: 7px; height: 7px; border-radius: 50%; background: #b4a0df; flex: 0 0 7px; margin-top: 6px; }
.activity-event-dot.error { background: #c56464; }
.activity-event-summary { flex: 1; min-width: 0; }
.activity-event-summary b { font-size: 12px; line-height: 1.6; }
.activity-event-meta { display: block; font-size: 10px; color: var(--muted); line-height: 1.8; margin-top: 3px; }
.activity-event-note { display: block; color: var(--sub); font-size: 11px; line-height: 1.7; margin-top: 6px; white-space: pre-line; }
.activity-event time { color: var(--muted); font-size: 10px; white-space: nowrap; padding-top: 3px; }
.activity-event-detail { padding: 14px 0 0 17px; }
.activity-event-detail p { font-size: 10px; color: var(--sub); margin-bottom: 7px; }
.activity-event-detail pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #f6f5f9; padding: 12px; border-radius: 6px; font-size: 11px; line-height: 1.6; max-height: 400px; overflow: auto; }
.activity-older { margin-top: 18px; }
@media (max-width: 760px) {
  .workflow-activity-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .activity-overview > div { align-items: start; flex-direction: column; gap: 4px; }
  .activity-graph { max-height: 360px; overflow-y: auto; padding-right: 3px; }
  .activity-event time { font-size: 9px; }
  .review-tabs { gap: 16px; }
}
.version-label {
  font-size: 11px;
  background: #f5effa;
  color: #865ca3;
  padding: 3px 7px;
  border-radius: 4px;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: calc(50% + 117px);
  transform: translateX(-50%);
  background: #51445c;
  color: #fff;
  padding: 12px 19px;
  border-radius: 10px;
  font-size: 12px;
  z-index: 80;
  box-shadow: 0 7px 30px #49355422;
  max-width: calc(100vw - 30px);
  animation: appear 0.2s ease;
}
.skeleton {
  background: linear-gradient(100deg, #eeebf2 30%, #f5f2f8 50%, #eeebf2 70%);
  background-size: 300% 100%;
  animation: shimmer 1.8s infinite;
  border-radius: 12px;
}
.sk-heading {
  height: 50px;
  width: 55%;
  margin-bottom: 30px;
}
.sk-hero {
  height: 230px;
  margin-bottom: 30px;
}
.sk-cards {
  height: 175px;
}
.loading-inline {
  padding: 40px;
  font-size: 12px;
  color: #826099;
  text-align: center;
}
@keyframes shimmer {
  to {
    background-position: -150% 0;
  }
}
@keyframes pulse {
  0%,
  70%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  35% {
    opacity: 1;
    transform: translateY(-3px);
  }
}
@keyframes appear {
  from {
    opacity: 0;
    translate: 0 5px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@media (min-width: 1550px) {
  .content {
    padding-top: 43px;
  }
  .hero {
    min-height: 255px;
    padding: 35px 40px;
  }
  .hero-art {
    right: 30px;
    width: 390px;
    height: 265px;
  }
  .hero h2 {
    font-size: 39px;
  }
  .hero h2 em {
    font-size: 46px;
  }
  .work-row {
    padding: 20px;
  }
  .activity-item {
    padding: 17px 0;
  }
  .page-heading h1 {
    font-size: 30px;
  }
  .hero p {
    font-size: 12px;
    max-width: 365px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 205px;
    padding-left: 13px;
    padding-right: 13px;
  }
  .main-shell {
    margin-left: 205px;
    width: calc(100% - 205px);
  }
  .brand {
    gap: 9px;
  }
  .brand-name {
    font-size: 19px;
  }
  .topbar {
    padding: 0 28px;
  }
  .content {
    padding: 30px 28px;
  }
  .hero-art {
    width: 300px;
    right: -10px;
    top: 15px;
  }
  .hero-copy {
    width: 65%;
  }
  .hero {
    padding-left: 26px;
  }
  .hero h2 {
    font-size: 30px;
  }
  .hero h2 em {
    font-size: 36px;
  }
  .hero p {
    max-width: 275px;
  }
  .bottom-grid {
    gap: 18px;
    grid-template-columns: minmax(0, 1.65fr) minmax(205px, 1fr);
  }
  .work-row {
    padding: 16px 15px;
    gap: 9px;
  }
  .work-tabs {
    gap: 14px;
    padding: 0 16px;
  }
  .work-row h3 {
    max-width: 230px;
  }
  .activity-panel {
    padding: 4px 15px;
  }
  .chat-layout {
    grid-template-columns: minmax(0, 1fr) 265px;
  }
  .chat-header {
    padding: 18px 24px;
  }
  .messages {
    padding: 25px;
  }
  .composer-area {
    padding: 12px 24px 18px;
  }
  .work-context {
    padding: 24px 18px;
  }
  .toast {
    left: calc(50% + 102px);
  }
}
@media (max-width: 1020px) {
  .home-prompts {
    grid-template-columns: 1fr 1fr;
  }
  .sidebar {
    width: 190px;
    padding-left: 9px;
    padding-right: 9px;
  }
  .brand-name {
    font-size: 18px;
  }
  .brand-symbol {
    width: 30px;
    height: 32px;
  }
  .main-shell {
    margin-left: 190px;
    width: calc(100% - 190px);
  }
  .content {
    padding: 27px 23px;
  }
  .topbar {
    padding: 0 23px;
  }
  .hero-art {
    width: 245px;
    right: -25px;
    top: 23px;
    opacity: 0.85;
  }
  .hero-copy {
    width: 75%;
  }
  .hero p {
    max-width: 275px;
  }
  .bottom-grid {
    grid-template-columns: 1fr;
  }
  .activity-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    min-height: 0;
  }
  .activity-item:not(:last-child):after {
    display: none;
  }
  .activity-item {
    padding: 15px 0;
  }
  .search-trigger span {
    display: none;
  }
  .search-trigger kbd {
    margin-left: 3px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .date-label {
    font-size: 11px;
  }
  .topbar-actions {
    gap: 14px;
  }
  .chat-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .work-context {
    display: none;
  }
  .context-mobile-toggle {
    display: inline-grid;
  }
  .chat-layout.show-context {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
  .chat-layout.show-context .work-context {
    display: block;
  }
  .chat-layout.show-context .chat-header .button {
    display: none;
  }
  .library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .toast {
    left: calc(50% + 95px);
  }
}
@media (max-width: 760px) {
  .sidebar {
    transform: translateX(-100%);
    width: 234px;
    transition: transform 0.2s ease;
    padding: 25px 18px;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: #25193440;
    z-index: 29;
    backdrop-filter: blur(2px);
  }
  .main-shell {
    margin: 0;
    width: 100%;
  }
  .brand-name {
    font-size: 21px;
  }
  .mobile-menu {
    display: inline-grid;
  }
  .breadcrumb {
    gap: 9px;
  }
  .topbar {
    height: 61px;
    padding: 0 18px;
    gap: 10px;
  }
  .topbar-actions {
    gap: 11px;
  }
  .topbar .search-trigger kbd,
  .topbar-separator {
    display: none;
  }
  .search-trigger {
    padding: 4px;
  }
  .live-status {
    font-size: 11px;
  }
  .content {
    padding: 25px 20px;
  }
  .page-heading {
    margin-bottom: 22px;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .date-label {
    display: none;
  }
  .hero {
    min-height: 228px;
    padding: 25px 24px;
    margin-bottom: 27px;
  }
  .hero h2 {
    font-size: 30px;
  }
  .hero h2 em {
    font-size: 36px;
  }
  .hero-art {
    width: 260px;
    right: -15px;
    top: 24px;
  }
  .hero-copy {
    width: 70%;
  }
  .hero p {
    max-width: 240px;
    font-size: 11px;
  }
  .section-heading h2 {
    font-size: 15px;
  }
  .section-heading h2 .sub-label {
    font-size: 11px;
    margin-left: 6px;
  }
  .toast {
    left: 50%;
  }
  .content.chat-page {
    height: calc(100dvh - 61px - var(--attention-h, 0px));
  }
  .chat-header {
    padding: 17px 20px;
    min-height: 82px;
  }
  .messages {
    padding: 25px 20px;
  }
  .composer-area {
    padding: 10px 17px 16px;
  }
  .chat-layout.show-context {
    display: block;
    position: relative;
  }
  .chat-layout.show-context .conversation-column {
    height: 100%;
  }
  .chat-layout.show-context .work-context {
    position: absolute;
    inset: 0 0 0 auto;
    width: min(310px, 90vw);
    z-index: 10;
    box-shadow: -20px 0 50px #5d3d7020;
  }
  .chat-welcome {
    padding: 30px 5px;
  }
  .connection-banner {
    padding: 9px 20px;
  }
  .library-grid {
    gap: 12px;
  }
  .full-activity {
    display: block;
  }
  .full-activity .activity-item:not(:last-child):after {
    display: block;
  }
}
@media (max-width: 500px) {
  .hero {
    min-height: 239px;
    padding: 25px 22px;
  }
  .hero-art {
    width: 220px;
    right: -72px;
    top: 42px;
    opacity: 0.48;
  }
  .hero-copy {
    width: 100%;
  }
  .hero h2 {
    font-size: 30px;
  }
  .hero p {
    font-size: 11px;
    max-width: 230px;
  }
  .hero .eyebrow {
    font-size: 11px;
  }
  .hero-buttons {
    gap: 15px;
  }
  .hero-buttons .button {
    font-size: 11px;
    padding: 9px 13px;
  }
  .hero-buttons .button.ghost {
    font-size: 11px;
    padding: 0;
  }
  .section-heading h2 .sub-label {
    display: none;
  }
  .page-heading h1 {
    font-size: 23px;
  }
  .work-row h3 {
    max-width: 170px;
    font-size: 11px;
  }
  .work-row p {
    font-size: 11px;
  }
  .work-row .badge {
    font-size: 11px;
    padding: 3px 5px;
  }
  .work-row {
    gap: 9px;
    padding: 16px 13px;
  }
  .work-icon {
    width: 27px;
    height: 33px;
  }
  .work-tabs {
    gap: 15px;
    padding: 0 15px;
  }
  .tab {
    font-size: 11px;
  }
  .activity-panel {
    display: block;
    padding: 6px 17px;
  }
  .activity-item {
    padding: 13px 0;
  }
  .activity-item:not(:last-child):after {
    display: block;
  }
  .activity-copy p {
    font-size: 11px;
  }
  .activity-copy small {
    font-size: 11px;
  }
  .work-list-full .work-row {
    padding: 20px 13px;
  }
  .work-list-full .work-row h3 {
    font-size: 11px;
    max-width: 165px;
  }
  .work-list-full .badge {
    font-size: 11px;
  }
  .work-list-full .work-row p {
    font-size: 11px;
  }
  .library-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .document-preview {
    height: 120px;
    padding: 20px 15px 0;
  }
  .paper-preview {
    width: 100%;
    height: 100px;
    padding: 13px 10px;
  }
  .paper-preview .line {
    margin-top: 7px;
    height: 2px;
  }
  .paper-preview .line.heading {
    height: 3px;
    margin-bottom: 13px;
  }
  .document-card-body {
    padding: 14px 12px;
  }
  .document-card h3 {
    font-size: 11px;
  }
  .document-card p {
    font-size: 11px;
  }
  .document-card .badge {
    font-size: 11px;
  }
  .suggestions {
    gap: 8px;
  }
  .suggestion {
    padding: 12px;
    font-size: 11px;
    gap: 7px;
  }
  .chat-welcome h2 {
    font-size: 27px;
  }
  .chat-welcome h2 em {
    font-size: 34px;
  }
  .chat-welcome p {
    font-size: 11px;
  }
  .chat-header .button.secondary {
    padding: 7px 10px;
    min-height: 31px;
    font-size: 11px;
  }
  .chat-header .header-end {
    gap: 5px;
  }
  .chat-header .button .icon {
    display: none;
  }
  .chat-header h1 {
    font-size: 14px;
  }
  .chat-header p {
    font-size: 11px;
  }
  .chat-header .buddy-avatar {
    width: 36px;
    height: 36px;
  }
  .chat-header {
    gap: 10px;
  }
  .composer-note {
    font-size: 11px;
  }
  .composer-footer {
    font-size: 11px;
  }
  .message-content {
    font-size: 11px;
  }
  .message {
    gap: 10px;
  }
  .dialog {
    width: calc(100vw - 24px);
    max-height: 90dvh;
    border-radius: 13px;
  }
  .dialog.large {
    width: calc(100vw - 24px);
  }
  .dialog-header {
    padding: 19px 20px;
  }
  .dialog-header h2 {
    font-size: 16px;
  }
  .dialog-body {
    padding: 20px;
  }
  .dialog-actions {
    padding: 15px 19px;
    gap: 7px;
  }
  .dialog-actions .button {
    font-size: 11px;
    padding: 9px 12px;
  }
  .dialog-actions .button:first-child {
    margin-right: auto;
  }
  .document-prose {
    font-size: 12px;
  }
  .document-prose h1 {
    font-size: 22px;
  }
  .page-footer {
    font-size: 11px;
  }
  .info-strip {
    padding: 18px;
    align-items: flex-start;
  }
  .info-strip p {
    font-size: 11px;
  }
  .info-strip b {
    font-size: 11px;
  }
  .date-label.demo-label {
    display: block;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Comfortable reading sizes and navigation that remains usable on short screens. */
.sidebar {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.sidebar > * {
  flex-shrink: 0;
}
.recent-nav {
  flex-shrink: 0;
}
.sidebar-bottom {
  padding-top: 24px;
}
.nav-item {
  font-size: 13px;
}
.recent-link {
  font-size: 12px;
}
.nav-label {
  font-size: 10px;
}
.page-heading p {
  font-size: 13px;
}
.hero p {
  font-size: 12px;
  color: #74647f;
}
.section-heading h2 {
  font-size: 17px;
}
.work-row h3 {
  font-size: 12px;
}
.work-row p {
  font-size: 11px;
}
.message-content,
.document-prose {
  font-size: 14px;
  color: #62576d;
}
.composer textarea {
  font-size: 14px;
  color: #62576d;
}
.chat-welcome {
  padding: 20px 10px;
}
.chat-welcome p {
  font-size: 13px;
}
.chat-welcome .buddy-avatar {
  margin-bottom: 18px;
}
.chat-welcome h2 {
  margin-top: 8px;
}
.chat-welcome p {
  margin: 12px 0 20px;
}
.context-work h3 {
  font-size: 13px;
}
.context-work p,
.step,
.context-tip li,
.context-empty p {
  font-size: 12px;
}
.chat-header h1 {
  font-size: 17px;
}
.chat-header p {
  font-size: 12px;
}
.message-meta {
  font-size: 12px;
}
.dialog-header h2 {
  font-size: 20px;
}
.document-meta {
  font-size: 12px;
}
.dialog-body > p,
.help-step p {
  font-size: 13px;
}
.review-callout {
  font-size: 12px;
}
.text-link {
  font-size: 11px;
}
.button {
  font-size: 12px;
}
.skip-link:focus {
  color: #fff;
}
.button.primary,
.send-button,
.brand-symbol {
  color: #fff;
}
@media (max-height: 900px) {
  .sidebar-tip {
    display: none;
  }
  .sidebar {
    padding-top: 24px;
  }
  .brand {
    margin-bottom: 25px;
  }
  .workspace-switch {
    margin-bottom: 22px;
  }
  .nav-divider {
    margin: 20px 13px;
  }
  .sidebar-bottom {
    padding-top: 15px;
  }
}
@media (max-width: 1020px) {
  .context-work p,
  .step,
  .context-tip li,
  .context-empty p {
    font-size: 11px;
  }
}
@media (max-width: 760px) {
  .chat-welcome h2 {
    font-size: 27px;
  }
  .chat-welcome h2 em {
    font-size: 33px;
  }
  .message-content,
  .composer textarea {
    font-size: 14px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .hero p {
    font-size: 12px;
  }
  .hero-copy {
    width: 72%;
  }
  .hero-art {
    opacity: 0.65;
  }
  .activity-copy p {
    font-size: 12px;
  }
  .work-row h3 {
    font-size: 12px;
  }
  .badge {
    font-size: 10px;
  }
  .composer-note,
  .composer-footer {
    font-size: 10px;
  }
}
@media (max-width: 500px) {
  .hero-copy {
    width: 100%;
  }
  .hero-art {
    display: none;
  }
  .hero p {
    max-width: 275px;
  }
  .hero h2 {
    font-size: 31px;
  }
  .work-row h3 {
    max-width: 150px;
  }
  .work-row .badge {
    font-size: 9px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading > .button {
    font-size: 10px;
  }
  .chat-header h1 {
    font-size: 15px;
  }
  .chat-header p {
    font-size: 11px;
  }
  .suggestion {
    font-size: 12px;
  }
  .chat-welcome {
    padding: 12px 0;
  }
  .chat-welcome .buddy-avatar {
    margin-bottom: 12px;
    width: 50px;
    height: 50px;
  }
  .chat-welcome p {
    font-size: 12px;
  }
  .composer-note {
    font-size: 9px;
  }
}
@media (max-width: 500px) {
  .page-heading .demo-label,
  .page-heading h1 > span {
    display: none;
  }
  .breadcrumb > span:first-of-type,
  .breadcrumb > .icon {
    display: none;
  }
  .live-status {
    white-space: nowrap;
    font-size: 10px;
  }
  .composer textarea {
    font-size: 16px;
  }
}
@media (max-height: 800px) and (min-width: 761px) {
  .sidebar {
    overflow: hidden;
    padding-top: 22px;
  }
  .recent-nav {
    flex: 1;
    min-height: 65px;
    max-height: 175px;
    overflow: auto;
  }
  .sidebar-bottom {
    margin-top: 10px;
    padding-top: 0;
  }
  .sidebar-bottom .nav-item {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .brand {
    margin-bottom: 21px;
  }
  .workspace-switch {
    margin-bottom: 17px;
  }
  .nav-divider {
    margin: 15px 13px;
  }
  .nav-item {
    padding-top: 9px;
    padding-bottom: 9px;
  }
  .user-block {
    padding-top: 12px;
  }
}
.signin {
  min-height: 100dvh;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 32px 20px;
}
.signin .brand {
  margin-bottom: 26px;
}
.signin-card {
  width: min(372px, calc(100vw - 40px));
  display: flex;
  flex-direction: column;
  padding: 32px 30px 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px #35244410;
}
.signin-card h1 {
  margin: 0;
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.6px;
  line-height: 1.2;
  color: #494055;
}
.signin-card h1 em {
  display: block;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: 27px;
  color: #7a5fa9;
}
.signin-card > p {
  margin: 10px 0 8px;
  font-size: 12px;
  color: #766883;
}
.signin-card label {
  margin: 14px 0 6px;
  font-size: 11px;
  font-weight: 550;
  color: var(--sub);
}
.signin-card input {
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid #dddbe6;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
}
.signin-card input:focus-visible {
  outline-offset: 1px;
  border-color: #b9a7ee;
}
.signin-card .signin-error {
  margin: 14px 0 0;
  color: #985f51;
}
.signin-card .button {
  margin-top: 22px;
  min-height: 41px;
  font-size: 12px;
}
.user-block .signout {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
.user-block .signout:hover {
  background: var(--purple-soft);
}
.user-block .signout:hover .icon {
  color: var(--purple);
}
