:root {
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --paper: #ffffff;
  --paper-raised: #ffffff;
  --sidebar: #f1f5f9;
  --accent: #1d4ed8;
  --accent-dark: #172554;
  --accent-soft: #dbeafe;
  --warm: #2563eb;
  --shadow: 0 18px 50px rgb(15 23 42 / 10%);
  --sidebar-width: 278px;
  --context-width: 304px;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

.auth-page {
  min-height: 100dvh;
  padding:
    max(28px, env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right))
    max(28px, env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
}

.auth-shell {
  display: grid;
  width: min(100%, 430px);
  min-height: calc(100dvh - 56px);
  margin: 0 auto;
  align-content: center;
  gap: 28px;
}

.auth-brand {
  justify-self: center;
}

.auth-card {
  padding: clamp(25px, 7vw, 36px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper-raised);
  box-shadow: var(--shadow);
}

.auth-heading {
  margin-bottom: 26px;
}

.auth-heading h1 {
  margin: 8px 0 9px;
  white-space: normal;
}

.auth-heading p,
.auth-note {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.5;
}

.auth-heading p {
  margin-bottom: 0;
  font-size: 14px;
}

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

.auth-form[hidden] {
  display: none;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  min-height: 47px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: white;
  font-size: 16px;
}

.auth-form small {
  font-weight: 400;
  line-height: 1.4;
}

.auth-submit {
  min-height: 48px;
  margin-top: 2px;
  font-size: 14px;
}

.auth-submit:disabled {
  opacity: 0.55;
  cursor: wait;
}

.auth-error {
  min-height: 18px;
  margin: 16px 0 0;
  color: #a3412e;
  font-size: 12px;
  line-height: 1.45;
}

.invite-person {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border-radius: 10px;
  background: var(--accent-soft);
  font-size: 12px;
}

.invite-scope {
  margin: -8px 0 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  line-height: 1.5;
}

.auth-note {
  margin: 0;
  text-align: center;
  font-size: 12px;
}

body {
  background:
    radial-gradient(circle at 60% -20%, rgb(219 234 254 / 42%), transparent 46%),
    var(--paper);
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

[hidden] {
  display: none !important;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgb(29 78 216 / 24%);
  outline-offset: 2px;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr) var(--context-width);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  height: 100vh;
  flex-direction: column;
  padding: 24px 16px 18px;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--sidebar) 92%, white);
}

.brand-row,
.workspace-header,
.context-head,
.section-title-row,
.dialog-head,
.dialog-actions,
.composer-bottom,
.sidebar-foot {
  display: flex;
  align-items: center;
}

.brand-row,
.workspace-header,
.context-head,
.section-title-row,
.dialog-head,
.composer-bottom {
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 23px;
  font-weight: 760;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  color: white;
  background: var(--accent);
  font-style: normal;
  font-weight: 800;
}

.icon-button,
.composer-tool {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
}

.icon-button:hover,
.composer-tool:hover {
  background: rgb(15 23 42 / 7%);
}

.new-project-button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  margin: 28px 0 24px;
  padding: 11px 13px;
  border: 1px solid rgb(29 78 216 / 18%);
  border-radius: 12px;
  color: var(--accent-dark);
  background: rgb(255 255 255 / 50%);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.new-project-button:hover {
  border-color: rgb(29 78 216 / 32%);
  background: rgb(255 255 255 / 78%);
}

.new-project-button span {
  font-size: 21px;
  font-weight: 400;
  line-height: 1;
}

.product-identity {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  width: 100%;
  margin-top: 22px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: rgb(255 255 255 / 55%);
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

.product-identity:hover,
.product-identity[aria-expanded="true"] {
  border-color: rgb(29 78 216 / 32%);
  background: rgb(255 255 255 / 78%);
}

.product-identity > span:first-child {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 9px;
  color: white;
  background: var(--accent-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.product-identity small,
.product-identity strong {
  display: block;
}

.product-identity small {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.product-identity strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-chevron {
  color: var(--muted);
  font-size: 17px;
  line-height: 1;
  transition: transform 160ms ease;
}

.product-identity[aria-expanded="true"] .product-chevron {
  transform: rotate(180deg);
}

.product-menu {
  display: grid;
  gap: 4px;
  margin-top: 7px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  box-shadow: 0 14px 30px rgb(21 36 65 / 12%);
}

.product-menu-link {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 9px;
  border-radius: 9px;
  color: var(--ink);
  text-decoration: none;
}

.product-menu-link:hover,
.product-menu-link:focus-visible {
  background: var(--blue-soft);
}

.product-menu-link[aria-current="page"] {
  background: rgb(15 23 42 / 5%);
}

.product-menu-icon {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 9px;
  color: white;
  background: var(--accent-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.product-menu-link small,
.product-menu-link strong {
  display: block;
}

.product-menu-link small {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-menu-link strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-menu-state {
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.product-menu-all {
  padding: 9px 10px 7px;
  border-top: 1px solid var(--line);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.product-menu-all:hover,
.product-menu-all:focus-visible {
  text-decoration: underline;
}

.product-menu + .new-project-button {
  margin-top: 12px;
}

.resource-nav {
  margin-bottom: 20px;
}

.resource-list {
  max-height: 150px;
  overflow-y: auto;
}

.resource-link .project-link-copy span {
  max-width: 170px;
}

.resource-icon {
  color: white;
  background: var(--accent-dark);
}

.project-nav {
  min-height: 0;
  flex: 1;
}

.nav-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.project-count,
.task-count {
  display: inline-grid;
  min-width: 23px;
  height: 22px;
  padding: 0 7px;
  place-items: center;
  border-radius: 99px;
  color: var(--muted);
  background: rgb(15 23 42 / 6%);
  font-size: 11px;
}

.project-list {
  display: grid;
  gap: 5px;
  overflow-y: auto;
}

.project-link {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.project-link:hover {
  background: rgb(255 255 255 / 45%);
}

.project-link[aria-current="page"] {
  background: var(--paper-raised);
  box-shadow: 0 2px 14px rgb(15 23 42 / 6%);
}

.mini-project-icon,
.project-icon {
  display: grid;
  place-items: center;
  border: 1px solid rgb(29 78 216 / 13%);
  border-radius: 9px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.mini-project-icon {
  width: 34px;
  height: 34px;
  font-size: 14px;
}

.project-link-copy {
  min-width: 0;
}

.project-link-copy strong,
.project-link-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-link-copy strong {
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 670;
}

.project-link-copy span {
  color: var(--muted);
  font-size: 11px;
}

.sidebar-foot {
  gap: 10px;
  padding: 16px 8px 0;
  border-top: 1px solid var(--line);
}

.availability-dot,
.status-dot {
  display: block;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 0 3px rgb(37 99 235 / 12%);
}

.availability-dot {
  width: 9px;
  height: 9px;
}

.status-dot {
  width: 6px;
  height: 6px;
}

.account-copy {
  min-width: 0;
  flex: 1;
  color: inherit;
  text-decoration: none;
}

.account-copy strong,
.account-copy span {
  display: block;
}

.account-copy strong {
  font-size: 12px;
}

.account-copy span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.workspace {
  display: grid;
  min-width: 0;
  height: 100vh;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.workspace-header {
  min-height: 84px;
  padding: 15px 30px;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 88%);
  backdrop-filter: blur(18px);
}

.project-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 13px;
}

.project-icon {
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  border-radius: 13px;
  font-size: 18px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

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

h1 {
  overflow: hidden;
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(21px, 2.3vw, 28px);
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.subtle-button,
.primary-button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.subtle-button {
  border: 1px solid var(--line);
  background: rgb(255 255 255 / 50%);
}

.subtle-button:hover {
  background: white;
}

.primary-button {
  border: 1px solid var(--accent);
  color: white;
  background: var(--accent);
}

.primary-button:hover {
  background: var(--accent-dark);
}

.conversation {
  overflow-y: auto;
  scroll-behavior: smooth;
}

.conversation-inner {
  width: min(100%, 790px);
  min-height: 100%;
  margin: 0 auto;
  padding: 34px 30px 28px;
}

.date-divider {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.date-divider::before,
.date-divider::after {
  height: 1px;
  flex: 1;
  content: "";
  background: var(--line);
}

.messages {
  display: grid;
  gap: 23px;
}

.message {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  gap: 12px;
  animation: enter 220ms ease both;
}

.message.user {
  grid-template-columns: minmax(0, 1fr) 35px;
  padding-left: clamp(20px, 10vw, 90px);
}

.message-avatar {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 11px 11px 11px 4px;
  color: white;
  background: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-style: italic;
  font-weight: 700;
}

.message.user .message-avatar {
  order: 2;
  border-radius: 11px 11px 4px 11px;
  color: var(--accent-dark);
  background: #e2e8f0;
  font-family: inherit;
  font-style: normal;
}

.message-body {
  min-width: 0;
}

.message.user .message-body {
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px 4px 14px 14px;
  background: #f8fafc;
}

.message-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 1px 0 6px;
  color: var(--muted);
  font-size: 10px;
}

.message-meta strong {
  color: var(--ink);
  font-size: 11px;
}

.message-channel {
  padding: 2px 6px;
  border-radius: 99px;
  background: rgb(29 78 216 / 8%);
}

.message-failed {
  color: #b42318;
  font-weight: 700;
}

.message.failed .message-body {
  border-color: rgb(180 35 24 / 28%);
  background: #fff8f7;
}

.message-text {
  color: #334155;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.68;
  white-space: pre-wrap;
}

.message.generating {
  animation: enter 220ms ease both;
}

.typing-indicator {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 4px 14px 14px;
  background: white;
  box-shadow: 0 5px 18px rgb(15 23 42 / 5%);
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: typing-bounce 1.15s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 150ms;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 300ms;
}

.message.user .message-text {
  font-family: inherit;
  font-size: 13px;
  line-height: 1.55;
}

.empty-message {
  padding: 48px 20px;
  color: var(--muted);
  text-align: center;
}

.empty-message strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.resource-article {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: clamp(22px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: 0 14px 40px rgb(15 23 42 / 6%);
}

.resource-body {
  margin-top: 20px;
  color: #334155;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.conversation-inner:has(.product-overview) {
  width: min(100%, 980px);
  padding-top: 28px;
}

.product-overview {
  display: grid;
  gap: 24px;
}

.overview-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr);
  gap: 30px;
  align-items: end;
  padding: clamp(28px, 5vw, 45px);
  overflow: hidden;
  border-radius: 24px;
  color: white;
  background:
    radial-gradient(circle at 95% -15%, rgb(255 255 255 / 16%), transparent 43%),
    linear-gradient(135deg, #1d4ed8, #172554);
  box-shadow: 0 24px 60px rgb(23 37 84 / 18%);
}

.overview-hero.investor {
  background:
    radial-gradient(circle at 90% 0%, rgb(59 130 246 / 27%), transparent 38%),
    linear-gradient(135deg, #172554, #0f172a);
}

.overview-hero .eyebrow {
  color: rgb(219 234 254 / 88%);
}

.overview-hero h2 {
  max-width: 560px;
  margin: 10px 0 13px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(29px, 4.3vw, 45px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.overview-hero p {
  max-width: 590px;
  margin-bottom: 0;
  color: rgb(239 246 255 / 82%);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.6;
}

.overview-primary-action {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  width: 100%;
  min-height: 78px;
  padding: 14px;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 16px;
  color: var(--ink);
  text-align: left;
  background: white;
  box-shadow: 0 15px 35px rgb(15 23 42 / 18%);
  cursor: pointer;
}

.overview-primary-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgb(15 23 42 / 24%);
}

.overview-action-plus {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  color: white;
  background: var(--accent);
  font-size: 22px;
}

.overview-primary-action strong,
.overview-primary-action small {
  display: block;
}

.overview-primary-action strong {
  margin-bottom: 4px;
  font-size: 12px;
}

.overview-primary-action small {
  color: var(--muted);
  font-size: 9px;
}

.overview-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 6px 2px 0;
}

.overview-section-head h3 {
  margin: 5px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  letter-spacing: -0.02em;
}

.overview-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.overview-feature-grid.with-resources {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-continue-card,
.overview-resource-card,
.overview-summary-card {
  min-height: 250px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  text-align: left;
  background: white;
  box-shadow: 0 8px 28px rgb(15 23 42 / 5%);
}

button.overview-continue-card,
button.overview-resource-card {
  cursor: pointer;
}

button.overview-continue-card:hover,
button.overview-resource-card:hover {
  transform: translateY(-2px);
  border-color: rgb(29 78 216 / 24%);
  box-shadow: 0 14px 35px rgb(15 23 42 / 9%);
}

.overview-card-meta {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.overview-continue-icon,
.overview-resource-symbol {
  display: grid;
  width: 43px;
  height: 43px;
  margin: 22px 0 17px;
  place-items: center;
  border-radius: 13px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
}

.overview-resource-symbol {
  color: white;
  background: var(--accent-dark);
}

.overview-continue-card h3,
.overview-resource-card > strong {
  display: block;
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
}

.overview-continue-card p,
.overview-resource-card > span:not(.overview-card-meta, .overview-resource-symbol, .overview-resource-open) {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.overview-continue-foot,
.overview-resource-open {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  color: var(--muted);
  font-size: 10px;
}

.overview-continue-foot strong,
.overview-resource-open {
  color: var(--accent-dark);
  font-weight: 700;
}

.overview-summary-card {
  display: flex;
  flex-direction: column;
  background: #f8fafc;
}

.overview-summary-number {
  margin-top: 25px;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 54px;
  line-height: 1;
}

.overview-summary-card > strong {
  margin-top: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
}

.overview-summary-stats {
  display: flex;
  gap: 18px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
}

.overview-summary-stats strong {
  color: var(--ink);
  font-size: 12px;
}

.recent-heading {
  margin-top: 8px;
}

.text-button {
  padding: 7px 0;
  border: 0;
  color: var(--accent);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.overview-project-list {
  display: grid;
  gap: 8px;
}

.overview-project-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: left;
  background: white;
  cursor: pointer;
}

.overview-project-card:hover {
  border-color: rgb(29 78 216 / 24%);
  box-shadow: 0 8px 25px rgb(15 23 42 / 6%);
}

.overview-card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.overview-card-copy {
  min-width: 0;
}

.overview-card-copy strong,
.overview-card-copy > span:last-child {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-card-copy strong {
  margin: 3px 0;
  font-size: 12px;
}

.overview-card-copy > span:last-child {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
}

.overview-card-arrow {
  color: var(--accent);
}

.overview-empty {
  padding: 24px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
}

.overview-empty strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
}

.composer {
  padding: 0 28px 24px;
  background: linear-gradient(to bottom, transparent, var(--paper) 22%);
}

.composer-inner {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 12px 13px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  background: var(--paper-raised);
  box-shadow: 0 12px 36px rgb(15 23 42 / 8%);
}

.composer textarea {
  display: block;
  width: 100%;
  max-height: 145px;
  resize: none;
  padding: 1px 3px 9px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
  line-height: 1.5;
}

.composer textarea:focus {
  outline: 0;
}

.composer textarea::placeholder {
  color: #94a3b8;
}

.composer-tools {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
}

.composer-tool {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  font-size: 18px;
}

.send-button {
  display: grid;
  width: 31px;
  height: 31px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: white;
  background: var(--accent);
  font-size: 17px;
  cursor: pointer;
}

.send-button:hover {
  background: var(--accent-dark);
}

.send-button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.composer.is-generating .send-button {
  animation: generating-pulse 1.25s infinite ease-in-out;
}

.context-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: rgb(248 250 252 / 72%);
}

.context-head {
  min-height: 84px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.context-section {
  padding: 23px 22px;
  border-bottom: 1px solid var(--line);
}

.context-section h2 {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.context-section > p,
.context-note p {
  margin-bottom: 0;
  color: #475569;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  line-height: 1.55;
}

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

.task-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid rgb(226 232 240 / 75%);
}

.task-item:last-child {
  border-bottom: 0;
}

.task-check {
  display: grid;
  width: 17px;
  height: 17px;
  padding: 0;
  place-items: center;
  border: 1px solid #94a3b8;
  border-radius: 5px;
  color: white;
  background: transparent;
  font-size: 10px;
  cursor: pointer;
}

.task-item.completed .task-check {
  border-color: var(--accent);
  background: var(--accent);
}

.task-copy strong,
.task-copy span {
  display: block;
}

.task-copy strong {
  font-size: 11px;
  font-weight: 620;
  line-height: 1.4;
}

.task-item.completed .task-copy strong {
  color: var(--muted);
  text-decoration: line-through;
}

.task-copy span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.task-empty {
  padding: 8px 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  line-height: 1.5;
}

.context-note {
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 10px;
  margin: 18px;
  padding: 16px;
  border: 0;
  border-radius: 13px;
  background: var(--accent-soft);
}

.context-note-icon {
  color: var(--accent);
  font-size: 17px;
}

.context-note strong {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
}

.context-note p {
  font-size: 11px;
}

.project-dialog {
  width: min(92vw, 480px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: transparent;
  box-shadow: var(--shadow);
}

.project-dialog::backdrop {
  background: rgb(15 23 42 / 34%);
  backdrop-filter: blur(3px);
}

.dialog-card {
  display: grid;
  gap: 20px;
  padding: 26px;
  border: 1px solid rgb(255 255 255 / 40%);
  border-radius: 20px;
  background: var(--paper-raised);
}

.dialog-head h2 {
  margin: 5px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
}

.dialog-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.dialog-card input,
.dialog-card textarea {
  width: 100%;
  padding: 11px 12px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: white;
  font-size: 13px;
}

.dialog-actions {
  justify-content: flex-end;
  gap: 9px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  max-width: 330px;
  padding: 11px 14px;
  transform: translateY(20px);
  border-radius: 10px;
  color: white;
  background: #172554;
  box-shadow: var(--shadow);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: 180ms ease;
}

.toast.visible {
  transform: translateY(0);
  opacity: 1;
}

.loading-card {
  display: grid;
  gap: 10px;
  padding: 8px 0 8px 48px;
}

.loading-line {
  width: 72%;
  height: 10px;
  border-radius: 99px;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}

.loading-line.short {
  width: 22%;
}

.loading-line.medium {
  width: 52%;
}

.home-page {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 75% 0%, rgb(219 234 254 / 62%), transparent 38%),
    #f8fafc;
}

.home-header {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  padding:
    max(18px, env(safe-area-inset-top))
    max(24px, env(safe-area-inset-right))
    18px
    max(24px, env(safe-area-inset-left));
  border-bottom: 1px solid rgb(226 232 240 / 80%);
  background: rgb(255 255 255 / 80%);
  backdrop-filter: blur(16px);
}

.home-account {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.account-link {
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
}

.account-link:hover,
.account-copy:hover strong {
  color: var(--accent);
}

.home-main {
  width: min(100% - 40px, 1040px);
  margin: 0 auto;
  padding: clamp(56px, 10vw, 105px) 0 70px;
}

.home-intro {
  max-width: 660px;
  margin-bottom: 38px;
}

.home-intro h1 {
  margin: 9px 0 12px;
  font-size: clamp(35px, 6vw, 58px);
  white-space: normal;
}

.home-intro p {
  max-width: 570px;
  margin-bottom: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.55;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  position: relative;
  display: flex;
  min-height: 330px;
  flex-direction: column;
  padding: clamp(25px, 4vw, 36px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--ink);
  background: white;
  box-shadow: 0 14px 42px rgb(15 23 42 / 7%);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgb(29 78 216 / 28%);
  box-shadow: 0 22px 55px rgb(15 23 42 / 11%);
}

.product-card.investor {
  background:
    linear-gradient(145deg, rgb(255 255 255 / 97%), rgb(239 246 255 / 92%)),
    white;
}

.product-card-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 32px;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 700;
}

.product-card.investor .product-card-icon {
  background: var(--accent-dark);
}

.product-card-kicker {
  color: var(--accent);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-card h2 {
  margin: 8px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.02em;
}

.product-card p {
  max-width: 390px;
  margin-bottom: 22px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.55;
}

.product-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.product-stats span {
  padding: 6px 9px;
  border-radius: 99px;
  color: #475569;
  background: #f1f5f9;
  font-size: 10px;
}

.product-open {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
}

.product-loading,
.product-empty {
  grid-column: 1 / -1;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--muted);
  background: white;
}

.account-page {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 80% -10%, rgb(219 234 254 / 52%), transparent 37%),
    #f8fafc;
}

.account-main {
  width: min(100% - 40px, 940px);
  margin: 0 auto;
  padding: 36px 0 75px;
}

.back-link {
  display: inline-block;
  margin-bottom: 48px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
}

.account-intro {
  max-width: 680px;
  margin-bottom: 30px;
}

.account-intro h1 {
  margin: 8px 0 12px;
  font-size: clamp(34px, 6vw, 50px);
  white-space: normal;
}

.account-intro p {
  margin-bottom: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.6;
}

.account-profile-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 17px;
  align-items: center;
  min-height: 118px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: 0 10px 34px rgb(15 23 42 / 6%);
}

.account-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 17px;
  color: white;
  background: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
}

.account-profile-copy h2 {
  margin: 5px 0 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
}

.account-profile-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.account-connection {
  min-width: 190px;
  padding: 13px 15px;
  border-radius: 12px;
  background: #f1f5f9;
}

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

.account-connection span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-connection strong {
  font-size: 12px;
  line-height: 1.5;
}

.account-workspaces {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.access-card {
  padding: clamp(22px, 4vw, 30px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: 0 10px 34px rgb(15 23 42 / 5%);
}

.access-card-head {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
}

.access-product-symbol {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border-radius: 13px;
  color: white;
  background: var(--accent-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 700;
}

.access-card-head h2 {
  margin: 4px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.role-pill {
  padding: 6px 9px;
  border-radius: 99px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-size: 9px;
  font-weight: 750;
  text-transform: capitalize;
}

.access-explainer {
  margin: 18px 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  line-height: 1.55;
}

.member-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.member-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-height: 67px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
}

.member-row:last-child {
  border-bottom: 0;
}

.member-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-size: 11px;
  font-weight: 750;
}

.member-copy strong,
.member-copy span {
  display: block;
}

.member-copy strong {
  margin-bottom: 3px;
  font-size: 12px;
}

.member-copy span,
.member-phone {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

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

.product-empty strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
}

.mobile-only,
.sidebar-scrim {
  display: none;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

@keyframes enter {
  from {
    transform: translateY(4px);
    opacity: 0;
  }
}

@keyframes typing-bounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }

  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

@keyframes generating-pulse {
  50% {
    transform: scale(0.9);
    opacity: 0.55;
  }
}

@media (max-width: 1080px) {
  :root {
    --context-width: 274px;
    --sidebar-width: 250px;
  }
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  }

  .context-panel {
    display: none;
  }
}

@media (max-width: 680px) {
  .mobile-only {
    display: grid;
  }

  .desktop-only {
    display: none;
  }

  .app-shell {
    display: block;
    width: 100%;
    overflow: hidden;
  }

  .workspace {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }

  .sidebar {
    position: fixed;
    z-index: 30;
    width: min(86vw, 310px);
    transform: translateX(-105%);
    box-shadow: var(--shadow);
    transition: transform 200ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-scrim {
    position: fixed;
    inset: 0;
    z-index: 20;
    background: rgb(15 23 42 / 34%);
  }

  .sidebar-scrim.visible {
    display: block;
  }

  .workspace-header {
    min-height: 72px;
    padding: 11px 15px;
  }

  .project-heading {
    flex: 1;
    margin-left: 8px;
  }

  .project-icon {
    width: 37px;
    height: 37px;
  }

  h1 {
    max-width: 48vw;
    font-size: 20px;
  }

  .conversation-inner {
    padding: 27px 17px 20px;
  }

  .message {
    grid-template-columns: 31px minmax(0, 1fr);
    gap: 9px;
  }

  .message.user {
    grid-template-columns: minmax(0, 1fr) 31px;
    padding-left: 20px;
  }

  .message-avatar {
    width: 31px;
    height: 31px;
  }

  .composer {
    width: 100%;
    padding: 0 12px 12px;
  }

  .composer-inner {
    width: 100%;
    max-width: 100%;
  }

  .composer textarea {
    min-width: 0;
    font-size: 16px;
  }

  .conversation-inner:has(.product-overview) {
    padding: 18px 13px 32px;
  }

  .product-overview {
    gap: 19px;
  }

  .overview-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 27px 22px 22px;
    border-radius: 19px;
  }

  .overview-hero h2 {
    font-size: 31px;
  }

  .overview-feature-grid,
  .overview-feature-grid.with-resources {
    grid-template-columns: 1fr;
  }

  .overview-continue-card,
  .overview-resource-card,
  .overview-summary-card {
    min-height: 235px;
  }

  .overview-section-head h3 {
    font-size: 21px;
  }

  .overview-project-card {
    grid-template-columns: 39px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
  }

  .composer-tools span {
    display: none;
  }

  .toast {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .home-header {
    padding-right: 16px;
    padding-left: 16px;
  }

  .home-account > span {
    display: none;
  }

  .home-account .account-link {
    display: none;
  }

  .home-main {
    width: min(100% - 28px, 1040px);
    padding-top: 44px;
  }

  .home-intro {
    margin-bottom: 26px;
  }

  .home-intro h1 {
    font-size: 37px;
  }

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

  .product-card {
    min-height: 300px;
  }

  .account-main {
    width: min(100% - 28px, 940px);
    padding-top: 25px;
  }

  .back-link {
    margin-bottom: 36px;
  }

  .account-profile-card {
    grid-template-columns: 50px minmax(0, 1fr);
    padding: 18px;
  }

  .account-avatar {
    width: 50px;
    height: 50px;
  }

  .account-connection {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .access-card-head {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }

  .member-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .member-phone {
    grid-column: 2;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
