/* [project]/app/globals.css [app-client] (css) */
:root {
  --ink: #17211b;
  --muted: #6f7972;
  --line: #e3e6df;
  --canvas: #f4f5f1;
  --panel: #fff;
  --nav: #17241f;
  --nav-soft: #22322c;
  --accent: #6d62d8;
  --accent-soft: #efedff;
  --green: #1d8a62;
  --teal: #248c8a;
  --amber: #b97a24;
  --danger: #bd4c4c;
  --shadow: 0 12px 40px #1c2a220f;
}

* {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  font-family: Inter, SF Pro Display, PingFang SC, Microsoft YaHei, sans-serif;
  font-size: 14px;
}

button, input, textarea, select {
  font: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

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

input, textarea, select {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  border-radius: 9px;
  outline: none;
  padding: 11px 12px;
  transition: border .2s, box-shadow .2s;
}

input:focus, textarea:focus, select:focus {
  border-color: #9188e5;
  box-shadow: 0 0 0 3px #6d62d81a;
}

textarea {
  resize: vertical;
}

.eyebrow {
  color: #8b918c;
  letter-spacing: .16em;
  margin: 0 0 7px;
  font-size: 10px;
  font-weight: 800;
}

.muted {
  color: var(--muted);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 1px #00000003;
}

.button {
  cursor: pointer;
  border: 0;
  border-radius: 9px;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 39px;
  padding: 0 15px;
  font-weight: 700;
  transition: transform .15s, background .15s, opacity .15s;
  display: inline-flex;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.button-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 6px 16px #6d62d838;
}

.button-primary:hover:not(:disabled) {
  background: #5f55ca;
}

.button-secondary {
  color: var(--ink);
  background: #f1f2ef;
  text-decoration: none;
}

.button-ghost {
  background: #f1f2ef;
}

.button-full {
  width: 100%;
}

.button-small {
  min-height: 31px;
  padding: 0 10px;
  font-size: 12px;
}

.icon-button {
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 8px;
  place-items: center;
  width: 34px;
  height: 34px;
  display: inline-grid;
}

.icon-button:hover {
  background: #f0f1ee;
}

.text-button {
  color: var(--accent);
  cursor: pointer;
  background: none;
  border: 0;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  display: inline-flex;
}

.form-error {
  color: #9f3939;
  background: #fff0f0;
  border: 1px solid #f0c8c8;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
}

.login-page {
  color: #f6faf7;
  background: var(--nav);
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 9vw;
  min-height: 100vh;
  padding: 7vw 10vw;
  display: grid;
  position: relative;
  overflow: hidden;
}

.login-page:before {
  content: "";
  opacity: .1;
  background-image: linear-gradient(#ffffff0f 1px, #0000 1px), linear-gradient(90deg, #ffffff0f 1px, #0000 1px);
  background-size: 48px 48px;
  position: absolute;
  inset: 0;
}

.login-glow {
  filter: blur(90px);
  background: #589d7c2e;
  border-radius: 50%;
  width: 560px;
  height: 560px;
  position: absolute;
  top: 45%;
  left: 16%;
}

.login-brand, .login-card {
  z-index: 1;
  position: relative;
}

.brand-mark {
  color: #fff;
  background: linear-gradient(145deg, #8d83eb, #5b51bf);
  border-radius: 9px;
  place-items: center;
  width: 32px;
  height: 32px;
  display: inline-grid;
  box-shadow: 0 6px 16px #5c4fc94d;
}

.brand-mark-large {
  border-radius: 13px;
  width: 48px;
  height: 48px;
  margin-bottom: 42px;
}

.login-brand .eyebrow {
  color: #91ab9f;
}

.login-brand h1 {
  letter-spacing: -.035em;
  margin: 0 0 24px;
  font-family: Georgia, Songti SC, serif;
  font-size: clamp(40px, 4.2vw, 68px);
  font-weight: 500;
  line-height: 1.08;
}

.login-copy {
  color: #aab8b1;
  max-width: 520px;
  font-size: 16px;
  line-height: 1.8;
}

.login-card {
  width: min(420px, 100%);
  color: var(--ink);
  background: #fffffff7;
  border-radius: 20px;
  padding: 42px;
  box-shadow: 0 35px 80px #00000040;
}

.login-card-icon {
  width: 43px;
  height: 43px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 11px;
  place-items: center;
  margin-bottom: 24px;
  display: grid;
}

.login-card h2 {
  margin-bottom: 6px;
  font-size: 24px;
}

.login-card > p {
  color: var(--muted);
}

.login-card form {
  gap: 12px;
  margin: 28px 0 24px;
  display: grid;
}

.login-card label, .form-grid label {
  color: #4f5953;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  display: grid;
}

.login-card input {
  height: 46px;
}

.login-input {
  border: 1px solid var(--line);
  color: #8c958f;
  background: #fff;
  border-radius: 9px;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  display: flex;
}

.login-input:focus-within {
  border-color: #9188e5;
  box-shadow: 0 0 0 3px #6d62d81a;
}

.login-input input {
  width: 100%;
  box-shadow: none;
  border: 0;
  padding-left: 0;
}

.login-card small {
  text-align: center;
  color: #9aa19d;
  line-height: 1.5;
  display: block;
}

.app-shell {
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100vh;
  display: grid;
}

.sidebar {
  color: #dce6e1;
  background: var(--nav);
  flex-direction: column;
  height: 100vh;
  padding: 24px 16px 17px;
  display: flex;
  position: sticky;
  top: 0;
  overflow: hidden;
}

.brand {
  align-items: center;
  gap: 11px;
  margin: 0 7px 24px;
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 600;
  display: flex;
}

.sidebar-search {
  color: #82938a;
  background: #1b2a24;
  border: 1px solid #30423a;
  border-radius: 8px;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 0 11px;
  display: flex;
}

.sidebar-search input {
  color: #e7efeb;
  width: 100%;
  height: 37px;
  box-shadow: none;
  background: none;
  border: 0;
  padding: 0;
  font-size: 12px;
}

.sidebar-search input::placeholder {
  color: #82938a;
}

.project-groups {
  scrollbar-width: thin;
  flex: 1;
  overflow-y: auto;
}

.project-group {
  margin-bottom: 17px;
}

.group-heading {
  color: #82938a;
  cursor: pointer;
  letter-spacing: .12em;
  background: none;
  border: 0;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 5px 6px 9px;
  font-size: 10px;
  font-weight: 800;
  display: flex;
}

.group-heading > span:first-child {
  align-items: center;
  gap: 6px;
  margin-right: auto;
  display: flex;
}

.group-count {
  color: #a9b7b0;
  letter-spacing: 0;
  background: #263831;
  border-radius: 10px;
  min-width: 18px;
  padding: 2px 5px;
  font-size: 10px;
}

.group-heading svg:last-child {
  transition: transform .2s;
}

.group-heading svg.rotate {
  transform: rotate(-90deg);
}

.project-links {
  gap: 3px;
  display: grid;
}

.project-link {
  border-radius: 8px;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  transition: background .15s;
  display: flex;
}

.project-link:hover {
  background: #ffffff0a;
}

.project-link.active {
  background: var(--nav-soft);
  box-shadow: inset 2px 0 var(--accent);
}

.project-dot {
  background: #4eb18b;
  border-radius: 50%;
  flex: none;
  width: 6px;
  height: 6px;
}

.project-dot[data-status="ON_HOLD"] {
  background: #c99a52;
}

.project-dot[data-status="CLOSED"] {
  background: #687870;
}

.project-link-copy {
  gap: 3px;
  min-width: 0;
  display: grid;
}

.project-link-copy strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #e2ebe6;
  font-size: 12px;
  font-weight: 650;
  overflow: hidden;
}

.project-link-copy small {
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #7f9188;
  font-size: 10px;
  overflow: hidden;
}

.empty-group {
  color: #5f7369;
  margin: 5px 10px;
  font-size: 11px;
}

.sidebar-bottom {
  border-top: 1px solid #2b3b34;
  gap: 9px;
  padding-top: 14px;
  display: grid;
}

.current-user {
  align-items: center;
  gap: 9px;
  padding: 5px 7px 9px;
  display: flex;
}

.current-user > span {
  color: #e8e4ff;
  background: #2c3c35;
  border-radius: 8px;
  place-items: center;
  width: 29px;
  height: 29px;
  font-size: 11px;
  font-weight: 800;
  display: grid;
}

.current-user div {
  gap: 2px;
  display: grid;
}

.current-user small {
  color: #6f8278;
  font-size: 8px;
}

.current-user strong {
  color: #dce6e1;
  font-size: 10px;
}

.logout-button {
  color: #819289;
  cursor: pointer;
  background: none;
  border: 0;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 8px;
  font-size: 11px;
  display: flex;
}

.logout-button:hover {
  color: #dbe5e0;
}

.main-content {
  min-width: 0;
}

.page-wrap {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 42px 48px 60px;
}

.page-header {
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 30px;
  display: flex;
}

.page-header h1 {
  letter-spacing: -.025em;
  margin-bottom: 8px;
  font-family: Georgia, Songti SC, serif;
  font-size: 34px;
  font-weight: 500;
}

.page-header > div > p:last-child {
  color: var(--muted);
}

.date-chip {
  border: 1px solid var(--line);
  color: #667069;
  background: #fff;
  border-radius: 9px;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  font-size: 11px;
  display: flex;
}

.metric-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
  display: grid;
}

.metric-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 13px;
  gap: 14px;
  min-width: 0;
  padding: 20px;
  display: flex;
}

.metric-icon {
  border-radius: 10px;
  flex: none;
  place-items: center;
  width: 39px;
  height: 39px;
  display: grid;
}

.metric-icon.indigo {
  color: #665bd1;
  background: #efedff;
}

.metric-icon.teal {
  color: #257f7e;
  background: #e7f5f4;
}

.metric-icon.amber {
  color: #a66d21;
  background: #fff3de;
}

.metric-icon.green {
  color: #26795b;
  background: #e5f3ec;
}

.metric-card div {
  display: grid;
}

.metric-card small {
  color: var(--muted);
  font-size: 11px;
}

.metric-card strong {
  margin: 3px 0;
  font-family: Georgia, serif;
  font-size: 26px;
}

.metric-card p {
  color: #9aa19d;
  margin: 0;
  font-size: 10px;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, .6fr);
  gap: 20px;
  display: grid;
}

.recent-projects, .activity-panel {
  padding: 22px;
}

.panel-head {
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
  display: flex;
}

.panel-head h2, .panel-head h3 {
  margin: 0;
  font-size: 17px;
}

.panel-head > span {
  color: #8a938d;
  font-size: 11px;
}

.deal-list {
  display: grid;
}

.deal-row {
  border-top: 1px solid #eceeea;
  grid-template-columns: 36px minmax(0, 1fr) auto 65px 18px;
  align-items: center;
  gap: 12px;
  padding: 14px 5px;
  display: grid;
}

.deal-row:hover .deal-main strong {
  color: var(--accent);
}

.deal-type {
  border-radius: 8px;
  place-items: center;
  width: 32px;
  height: 32px;
  font-size: 11px;
  font-weight: 800;
  display: grid;
}

.deal-type.buy {
  color: #655bc5;
  background: #efedff;
}

.deal-type.sell {
  color: #27796f;
  background: #e7f3ef;
}

.deal-main {
  gap: 4px;
  min-width: 0;
  display: grid;
}

.deal-main strong, .deal-main small {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.deal-main strong {
  font-size: 13px;
}

.deal-main small {
  color: #8b938e;
  font-size: 10px;
}

.deal-date {
  color: #8a938d;
  font-size: 10px;
}

.status-pill {
  border-radius: 12px;
  padding: 4px 8px;
  font-size: 9px;
  font-style: normal;
  font-weight: 750;
  display: inline-flex;
}

.status-pill.active {
  color: #1f7555;
  background: #e6f3ec;
}

.status-pill.on_hold {
  color: #9a681c;
  background: #fff1da;
}

.status-pill.closed {
  color: #68736d;
  background: #edf0ed;
}

.status-pill.failed {
  color: #ad4040;
  background: #faeaea;
}

.activity-list {
  gap: 16px;
  display: grid;
}

.activity-row {
  gap: 11px;
  display: flex;
}

.activity-dot {
  background: #fff;
  border: 2px solid #bcb5f0;
  border-radius: 50%;
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 6px;
}

.activity-dot.file {
  border-color: #6fb49d;
}

.activity-dot.note {
  border-color: #d1a354;
}

.activity-row a {
  font-size: 12px;
  font-weight: 700;
}

.activity-row p {
  color: #6f7972;
  margin: 2px 0 3px;
  font-size: 11px;
  line-height: 1.45;
}

.activity-row small {
  color: #a2a9a5;
  font-size: 9px;
}

.empty-state {
  text-align: center;
  color: #9aa19d;
  place-items: center;
  padding: 45px 20px;
  display: grid;
}

.empty-state h3 {
  color: #566059;
  margin: 12px 0 6px;
  font-size: 14px;
}

.empty-state p {
  max-width: 330px;
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
}

.modal-backdrop {
  z-index: 100;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  background: #0a140f94;
  place-items: center;
  padding: 20px;
  display: grid;
  position: fixed;
  inset: 0;
}

.modal {
  width: min(620px, 100%);
  color: var(--ink);
  background: #fff;
  border-radius: 16px;
  padding: 27px;
  box-shadow: 0 30px 80px #00000047;
}

.modal-head {
  justify-content: space-between;
  margin-bottom: 24px;
  display: flex;
}

.modal-head h2 {
  margin: 0;
  font-size: 22px;
}

.form-grid {
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  display: grid;
}

.span-2 {
  grid-column: span 2;
}

.modal-actions {
  justify-content: flex-end;
  gap: 9px;
  margin-top: 5px;
  display: flex;
}

.project-page {
  min-height: 100vh;
}

.project-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 28px 42px 0;
}

.breadcrumbs {
  color: #9aa19d;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  font-size: 10px;
  display: flex;
}

.project-title-row {
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  display: flex;
}

.project-kicker {
  color: #8a938d;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 10px;
  display: flex;
}

.type-badge {
  letter-spacing: .08em;
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 9px;
  font-weight: 800;
}

.type-badge.buy {
  color: #5c52bf;
  background: #eceaff;
}

.type-badge.sell {
  color: #237468;
  background: #e3f2ed;
}

.project-title-row h1 {
  margin-bottom: 7px;
  font-family: Georgia, Songti SC, serif;
  font-size: 30px;
  font-weight: 500;
}

.project-title-row p {
  max-width: 720px;
  color: var(--muted);
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}

.project-header-actions {
  align-items: flex-end;
  gap: 22px;
  padding-bottom: 4px;
  display: flex;
}

.project-header-actions > label {
  color: #8a938d;
  gap: 6px;
  font-size: 9px;
  display: grid;
}

.project-status-select {
  border-radius: 8px;
  min-width: 92px;
  padding: 7px 9px;
  font-size: 10px;
  font-weight: 700;
}

.project-status-select.active {
  color: #1f7555;
  background: #eff8f3;
}

.project-status-select.on_hold {
  color: #96651c;
  background: #fff7e8;
}

.project-status-select.closed {
  color: #68736d;
  background: #f0f2f0;
}

.project-progress {
  width: 210px;
  padding-bottom: 4px;
}

.progress-label {
  color: #7c867f;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 10px;
  display: flex;
}

.progress-label strong {
  color: var(--ink);
}

.progress-track, .speech-progress > div {
  background: #e9ebe8;
  border-radius: 4px;
  height: 5px;
  overflow: hidden;
}

.progress-track span, .speech-progress > div span {
  border-radius: inherit;
  background: linear-gradient(90deg, #675dcc, #9188e6);
  height: 100%;
  display: block;
}

.project-tabs {
  gap: 3px;
  margin-top: 26px;
  display: flex;
  overflow-x: auto;
}

.project-tabs button {
  color: #77817b;
  cursor: pointer;
  white-space: nowrap;
  background: none;
  border: 0;
  border-bottom: 2px solid #0000;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  font-size: 11px;
  font-weight: 650;
  display: flex;
}

.project-tabs button:hover {
  color: var(--ink);
}

.project-tabs button.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.project-content {
  padding: 28px 42px 60px;
}

.tab-section {
  max-width: 1500px;
  margin: 0 auto;
}

.section-heading {
  justify-content: space-between;
  align-items: flex-start;
  gap: 25px;
  margin-bottom: 22px;
  display: flex;
}

.section-heading h2 {
  margin-bottom: 6px;
  font-size: 21px;
}

.section-heading p:last-child {
  color: var(--muted);
  margin: 0;
  font-size: 11px;
}

.section-heading.compact {
  margin-bottom: 14px;
}

.section-heading h2 span {
  color: #9aa19d;
  font-size: 12px;
  font-weight: 500;
}

.overview-layout {
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 20px;
  max-width: 1350px;
  margin: 0 auto;
  display: grid;
}

.overview-main {
  gap: 18px;
  display: grid;
}

.info-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  display: grid;
}

.info-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 11px;
  align-items: center;
  gap: 11px;
  padding: 16px;
  display: flex;
}

.info-card > span {
  color: #6d62ce;
  background: #efedff;
  border-radius: 9px;
  place-items: center;
  width: 34px;
  height: 34px;
  display: grid;
}

.info-card div {
  gap: 4px;
  display: grid;
}

.info-card small {
  color: #89928c;
  font-size: 9px;
}

.info-card strong {
  font-size: 12px;
}

.next-step-card {
  padding: 22px;
}

.next-step {
  background: #f7f7f4;
  border-radius: 10px;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 17px;
  display: grid;
}

.stage-number {
  color: #fff;
  background: var(--nav-soft);
  border-radius: 50%;
  place-items: center;
  width: 42px;
  height: 42px;
  font-family: Georgia, serif;
  display: grid;
}

.next-step small {
  color: #7d867f;
  font-size: 9px;
}

.next-step h3 {
  margin: 3px 0;
  font-size: 14px;
}

.next-step p {
  color: #87908a;
  margin: 0;
  font-size: 10px;
}

.workflow-status {
  border-radius: 12px;
  padding: 5px 9px;
  font-size: 9px;
}

.workflow-status.in_progress {
  color: #6555be;
  background: #ece9ff;
}

.workflow-status.todo {
  color: #8d671f;
  background: #fff1d8;
}

.empty-inline {
  color: var(--green);
  align-items: center;
  gap: 9px;
  padding: 25px;
  display: flex;
}

.overview-main > .panel:last-child {
  padding: 22px;
}

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

.overview-side {
  align-content: start;
  gap: 10px;
  display: grid;
}

.quick-card {
  border: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
  background: #fff;
  border-radius: 11px;
  grid-template-columns: 38px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 14px;
  display: grid;
}

.quick-card:hover {
  border-color: #cbc7eb;
  transform: translateY(-1px);
}

.quick-card > span {
  color: #5f57bd;
  background: #efedff;
  border-radius: 9px;
  place-items: center;
  width: 36px;
  height: 36px;
  display: grid;
}

.quick-card div {
  gap: 3px;
  display: grid;
}

.quick-card strong {
  font-size: 11px;
}

.quick-card small {
  color: #909893;
  font-size: 9px;
}

.quick-card.ai {
  color: #fff;
  border-color: var(--nav);
  background: var(--nav);
}

.quick-card.ai > span {
  color: #d8d2ff;
  background: #2b3933;
}

.quick-card.ai small {
  color: #8fa198;
}

.project-facts {
  margin-top: 6px;
  padding: 20px;
}

.project-facts dl, .ai-context dl {
  gap: 12px;
  margin: 14px 0 0;
  display: grid;
}

.project-facts dl div, .ai-context dl div {
  border-bottom: 1px solid #eceeea;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 10px;
  display: flex;
}

.project-facts dt, .ai-context dt {
  color: #8b948e;
  font-size: 10px;
}

.project-facts dd, .ai-context dd {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
}

.workflow-legend {
  color: #77817b;
  gap: 14px;
  font-size: 10px;
  display: flex;
}

.workflow-legend span {
  align-items: center;
  gap: 5px;
  display: flex;
}

.legend-dot {
  background: #c6cbc7;
  border-radius: 50%;
  width: 7px;
  height: 7px;
}

.legend-dot.in-progress {
  background: #887ddd;
}

.legend-dot.done {
  background: #4aa17f;
}

.workflow-board {
  grid-template-columns: repeat(6, minmax(190px, 1fr));
  gap: 10px;
  padding-bottom: 12px;
  display: grid;
  overflow-x: auto;
}

.workflow-column {
  border: 1px solid var(--line);
  background: #eef0ec;
  border-radius: 12px;
  min-height: 450px;
  padding: 11px;
}

.workflow-column.complete {
  background: #e9f1ed;
}

.workflow-column > header {
  grid-template-columns: 31px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px 4px 14px;
  display: grid;
}

.stage-index {
  color: #7065ce;
  background: #fff;
  border-radius: 50%;
  place-items: center;
  width: 29px;
  height: 29px;
  font-size: 9px;
  font-weight: 800;
  display: grid;
}

.workflow-column header small {
  color: #939b96;
  letter-spacing: .08em;
  font-size: 8px;
}

.workflow-column header h3 {
  margin: 2px 0 0;
  font-size: 11px;
}

.stage-count {
  color: #909893;
  font-size: 9px;
}

.workflow-cards {
  gap: 8px;
  display: grid;
}

.workflow-card {
  background: #fff;
  border: 1px solid #e2e5df;
  border-radius: 9px;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 8px;
  display: flex;
  position: relative;
  box-shadow: 0 3px 12px #1c2a2209;
}

.workflow-card.done {
  opacity: .68;
}

.workflow-card.done strong {
  text-decoration: line-through;
}

.workflow-card.in_progress {
  border-left: 2px solid #8a7ee0;
}

.status-toggle, .card-delete {
  cursor: pointer;
  background: #f0f1ee;
  border: 0;
  border-radius: 6px;
  flex: none;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  display: grid;
}

.workflow-card.done .status-toggle {
  color: #fff;
  background: #3d9470;
}

.workflow-card.in_progress .status-toggle {
  color: #685dca;
  background: #eeebff;
}

.workflow-card-copy {
  gap: 5px;
  min-width: 0;
  display: grid;
}

.workflow-card-copy strong {
  font-size: 10px;
  line-height: 1.45;
}

.workflow-card-copy p {
  color: #8b948e;
  margin: 0;
  font-size: 9px;
  line-height: 1.45;
}

.workflow-card-copy small {
  color: #a07535;
  align-items: center;
  gap: 4px;
  font-size: 8px;
  display: flex;
}

.card-delete {
  opacity: 0;
  color: #a54c4c;
  background: none;
  margin-left: auto;
}

.workflow-card:hover .card-delete {
  opacity: 1;
}

.add-card-button {
  color: #7f8982;
  cursor: pointer;
  background: none;
  border: 1px dashed #c8cdc8;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 100%;
  margin-top: 9px;
  padding: 9px;
  font-size: 9px;
  display: flex;
}

.add-workflow-form {
  background: #fff;
  border-radius: 8px;
  gap: 7px;
  margin-top: 9px;
  padding: 9px;
  display: grid;
}

.add-workflow-form input, .add-workflow-form textarea {
  width: 100%;
  padding: 7px;
  font-size: 10px;
}

.add-workflow-form div {
  justify-content: flex-end;
  gap: 5px;
  display: flex;
}

.file-toolbar {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 13px;
  display: flex;
}

.category-tabs {
  gap: 4px;
  display: flex;
  overflow-x: auto;
}

.category-tabs button {
  color: #7b857e;
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 10px;
}

.category-tabs button.active {
  color: #fff;
  background: var(--nav-soft);
}

.category-tabs span {
  opacity: .7;
  margin-left: 3px;
}

.toolbar-search {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  display: flex;
}

.toolbar-search input {
  width: 150px;
  box-shadow: none;
  border: 0;
  padding: 7px 0;
  font-size: 10px;
}

.file-table {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.file-table-head, .file-row {
  grid-template-columns: minmax(240px, 1.6fr) 110px 80px 105px 100px;
  align-items: center;
  gap: 15px;
  display: grid;
}

.file-table-head {
  color: #929a95;
  letter-spacing: .04em;
  background: #f6f7f4;
  padding: 11px 17px;
  font-size: 9px;
  font-weight: 700;
}

.file-row {
  color: #737d76;
  border-top: 1px solid #eceeea;
  min-height: 68px;
  padding: 10px 17px;
  font-size: 10px;
}

.file-row:hover {
  background: #fbfbf9;
}

.file-name {
  align-items: center;
  gap: 11px;
  min-width: 0;
  display: flex;
}

.file-name > i {
  color: #6258c3;
  background: #efedff;
  border-radius: 8px;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  display: grid;
}

.file-name > span {
  gap: 4px;
  min-width: 0;
  display: grid;
}

.file-name strong, .file-name small {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.file-name strong {
  color: #333d37;
  font-size: 11px;
}

.file-name small {
  color: #9da49f;
  font-size: 8px;
}

.category-pill {
  color: #617068;
  background: #edf0ed;
  border-radius: 10px;
  padding: 4px 7px;
  font-size: 8px;
  font-style: normal;
}

.file-actions {
  justify-content: flex-end;
  gap: 3px;
  display: flex;
}

.file-actions button, .file-actions a {
  color: #77817b;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 7px;
  place-items: center;
  width: 29px;
  height: 29px;
  display: grid;
}

.file-actions button:hover, .file-actions a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.file-empty {
  min-height: 260px;
}

.notes-layout {
  grid-template-columns: minmax(300px, .65fr) minmax(0, 1.35fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
}

.note-composer {
  align-self: start;
  padding: 25px;
  position: sticky;
  top: 20px;
}

.note-composer h2 {
  margin-bottom: 8px;
}

.note-composer > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.note-composer form {
  gap: 10px;
  margin-top: 19px;
  display: grid;
}

.note-composer textarea {
  line-height: 1.7;
}

.composer-footer {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.composer-footer small {
  color: #a1a8a3;
  font-size: 9px;
}

.notes-list {
  min-width: 0;
}

.note-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 11px;
  margin-bottom: 10px;
  padding: 18px 19px 13px;
  position: relative;
}

.note-card.pinned {
  border-left: 3px solid #9b86d7;
}

.pinned-label {
  color: #6c60c7;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
  font-size: 9px;
  font-weight: 700;
  display: inline-flex;
}

.note-card > p {
  white-space: pre-wrap;
  color: #424c46;
  margin-bottom: 16px;
  font-size: 12px;
  line-height: 1.7;
}

.note-card footer {
  border-top: 1px solid #eff0ed;
  justify-content: space-between;
  align-items: center;
  padding-top: 9px;
  display: flex;
}

.note-card footer small {
  color: #9ba29e;
  font-size: 9px;
}

.note-card footer button {
  color: #939c96;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 6px;
  width: 27px;
  height: 27px;
}

.note-card footer button.active {
  color: #6d61c9;
  background: #efedff;
}

.note-card footer button:hover {
  background: #f1f2ef;
}

.speech-layout {
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 15px;
  min-height: 590px;
  display: grid;
}

.speech-jobs {
  overflow: hidden;
}

.speech-jobs .panel-head {
  border-bottom: 1px solid var(--line);
  margin: 0;
  padding: 17px;
}

.speech-jobs .panel-head h3 {
  font-size: 13px;
}

.speech-job {
  text-align: left;
  cursor: pointer;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #eceeea;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 13px 14px;
  display: grid;
}

.speech-job:hover, .speech-job.active {
  background: #f6f5ff;
}

.speech-job.active {
  box-shadow: inset 2px 0 var(--accent);
}

.speech-status {
  color: #7166ca;
  background: #efedff;
  border-radius: 8px;
  place-items: center;
  width: 32px;
  height: 32px;
  display: grid;
}

.speech-status.ready {
  color: #287959;
  background: #e7f3ec;
}

.speech-status.failed {
  color: #a74242;
  background: #faeaea;
}

.speech-job > span:nth-child(2) {
  gap: 4px;
  min-width: 0;
  display: grid;
}

.speech-job strong, .speech-job small {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.speech-job strong {
  font-size: 10px;
}

.speech-job small {
  color: #919994;
  font-size: 8px;
}

.speech-job em {
  color: #6b61c5;
  font-size: 9px;
  font-style: normal;
}

.transcript-panel {
  min-width: 0;
  padding: 23px;
  overflow: auto;
}

.transcript-head {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  display: flex;
}

.transcript-head h3 {
  margin: 0;
  font-size: 15px;
}

.speech-progress {
  margin: 19px 0;
}

.speech-progress p {
  color: #7874aa;
  align-items: center;
  gap: 6px;
  margin: 8px 0;
  font-size: 9px;
  display: flex;
}

.transcript-actions {
  align-items: center;
  gap: 9px;
  display: flex;
}

.transcript-actions .button {
  padding: 7px 10px;
  font-size: 9px;
}

.summary-box {
  background: #f6f4ff;
  border: 1px solid #dcd8f5;
  border-radius: 10px;
  margin: 18px 0;
  padding: 17px;
}

.summary-box h4, .transcript-text h4 {
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 11px;
  display: flex;
}

.summary-box p {
  white-space: pre-wrap;
  color: #535767;
  margin: 0;
  font-size: 11px;
  line-height: 1.7;
}

.transcript-text {
  margin-top: 20px;
}

.transcript-text pre {
  white-space: pre-wrap;
  word-break: break-word;
  color: #49524d;
  background: #f5f6f3;
  border-radius: 10px;
  max-height: 440px;
  margin: 0;
  padding: 18px;
  font: 11px / 1.8 inherit;
  overflow: auto;
}

.empty-state.full {
  min-height: 470px;
}

.spin {
  animation: 1.1s linear infinite spin;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.ai-layout {
  grid-template-columns: 255px minmax(0, 1fr);
  gap: 15px;
  max-width: 1200px;
  height: calc(100vh - 238px);
  min-height: 580px;
  margin: 0 auto;
  display: grid;
}

.ai-context {
  align-self: start;
  padding: 22px;
}

.context-icon {
  color: #6158bd;
  background: #efedff;
  border-radius: 10px;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 19px;
  display: grid;
}

.ai-context h3 {
  margin-bottom: 8px;
  font-size: 14px;
}

.ai-context > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.provider-note {
  color: #ded9ff;
  background: var(--nav-soft);
  border-radius: 8px;
  gap: 8px;
  margin-top: 18px;
  padding: 12px;
  font-size: 9px;
  line-height: 1.5;
  display: flex;
}

.provider-note small {
  color: #96a49d;
}

.chat-panel {
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  display: grid;
  overflow: hidden;
}

.chat-header {
  border-bottom: 1px solid var(--line);
  align-items: center;
  gap: 10px;
  padding: 15px 19px;
  display: flex;
}

.assistant-avatar {
  color: #fff;
  background: linear-gradient(145deg, #8479de, #5a50b8);
  border-radius: 10px;
  place-items: center;
  width: 37px;
  height: 37px;
  display: grid;
}

.chat-header h3 {
  margin: 0 0 3px;
  font-size: 12px;
}

.chat-header p {
  color: #929a95;
  align-items: center;
  gap: 5px;
  margin: 0;
  font-size: 8px;
  display: flex;
}

.chat-header p i {
  background: #43a67d;
  border-radius: 50%;
  width: 6px;
  height: 6px;
}

.chat-messages {
  padding: 24px 30px;
  overflow-y: auto;
}

.chat-welcome {
  text-align: center;
  max-width: 540px;
  margin: 55px auto;
}

.chat-welcome > span {
  color: #7167ce;
  background: #efedff;
  border-radius: 15px;
  place-items: center;
  width: 54px;
  height: 54px;
  display: inline-grid;
}

.chat-welcome h2 {
  margin: 16px 0 8px;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 500;
}

.chat-welcome > p {
  color: var(--muted);
  font-size: 11px;
}

.chat-welcome > div {
  gap: 7px;
  margin-top: 22px;
  display: grid;
}

.chat-welcome button {
  border: 1px solid var(--line);
  color: #5e6861;
  text-align: left;
  cursor: pointer;
  background: #fff;
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 10px;
}

.chat-welcome button:hover {
  color: var(--accent);
  background: #faf9ff;
  border-color: #cfcaf1;
}

.chat-message {
  align-items: flex-start;
  gap: 10px;
  max-width: 85%;
  margin: 0 0 19px;
  display: flex;
}

.chat-message.user {
  flex-direction: row-reverse;
  margin-left: auto;
}

.chat-message > span {
  color: #685fc4;
  background: #efedff;
  border-radius: 8px;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  display: grid;
}

.chat-message.user > span {
  color: #386c5b;
  background: #e7f2ed;
}

.chat-message > div {
  color: #48524b;
  background: #f2f3f0;
  border-radius: 4px 12px 12px;
  padding: 11px 14px;
  font-size: 11px;
  line-height: 1.7;
}

.chat-message.user > div {
  color: #fff;
  background: var(--nav-soft);
  border-radius: 12px 4px 12px 12px;
}

.chat-message p {
  margin: 0 0 8px;
}

.chat-message p:last-child {
  margin-bottom: 0;
}

.chat-message ul, .chat-message ol {
  padding-left: 20px;
}

.chat-message table {
  border-collapse: collapse;
  font-size: 10px;
}

.chat-message th, .chat-message td {
  border: 1px solid #d8dcd7;
  padding: 5px 7px;
}

.chat-message small {
  color: #969f99;
  margin-top: 6px;
  font-size: 8px;
  display: block;
}

.thinking {
  gap: 4px;
  display: flex;
}

.thinking i {
  background: #857cce;
  border-radius: 50%;
  width: 5px;
  height: 5px;
  animation: 1.1s infinite alternate pulse;
}

.thinking i:nth-child(2) {
  animation-delay: .2s;
}

.thinking i:nth-child(3) {
  animation-delay: .4s;
}

@keyframes pulse {
  to {
    opacity: .25;
    transform: translateY(-2px);
  }
}

.chat-error {
  color: #a33f3f;
  text-align: center;
  background: #faeaea;
  border-radius: 8px;
  margin: 10px 40px;
  padding: 9px;
  font-size: 10px;
}

.chat-composer {
  margin: 12px 20px 18px;
  position: relative;
}

.chat-composer textarea {
  border-color: #d8dbd6;
  width: 100%;
  min-height: 64px;
  padding: 12px 48px 20px 13px;
  line-height: 1.5;
}

.chat-composer button {
  color: #fff;
  background: var(--accent);
  cursor: pointer;
  border: 0;
  border-radius: 8px;
  place-items: center;
  width: 33px;
  height: 33px;
  display: grid;
  position: absolute;
  top: 10px;
  right: 9px;
}

.chat-composer button:disabled {
  opacity: .4;
}

.chat-composer > small {
  color: #a0a7a2;
  font-size: 8px;
  position: absolute;
  bottom: 7px;
  left: 13px;
}

@media (max-width: 1200px) {
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-grid, .overview-layout {
    grid-template-columns: 1fr;
  }

  .overview-side {
    grid-template-columns: repeat(3, 1fr);
  }

  .project-facts {
    grid-column: span 3;
  }

  .file-table-head, .file-row {
    grid-template-columns: minmax(220px, 1fr) 90px 70px 90px;
  }

  .file-table-head span:nth-child(4), .file-row > span:nth-child(4) {
    display: none;
  }
}

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

  .sidebar {
    padding: 18px 10px;
  }

  .brand {
    justify-content: center;
    margin: 0 0 20px;
  }

  .brand > span:last-child, .sidebar-search, .group-heading span:first-child, .group-count, .project-link-copy, .sidebar-bottom .button {
    display: none;
  }

  .group-heading, .project-link {
    justify-content: center;
  }

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

  .sidebar-bottom .logout-button {
    font-size: 0;
  }

  .page-wrap, .project-content, .project-header {
    padding-left: 22px;
    padding-right: 22px;
  }

  .project-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-header-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .project-progress {
    width: 100%;
  }

  .info-grid, .overview-side {
    grid-template-columns: 1fr;
  }

  .project-facts {
    grid-column: auto;
  }

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

  .notes-layout, .speech-layout, .ai-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .note-composer {
    position: static;
  }

  .ai-context {
    display: none;
  }

  .chat-panel {
    min-height: 650px;
  }

  .file-toolbar {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .login-page {
    grid-template-columns: 1fr;
    padding: 30px 20px;
  }

  .login-brand {
    display: none;
  }

  .login-card {
    padding: 30px 24px;
  }

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

  .page-header {
    flex-direction: column;
  }

  .deal-row {
    grid-template-columns: 32px minmax(0, 1fr) auto;
  }

  .deal-date, .deal-row > svg {
    display: none;
  }

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

  .span-2 {
    grid-column: auto;
  }

  .file-table-head, .file-row {
    grid-template-columns: minmax(180px, 1fr) 80px;
  }

  .file-table-head span:nth-child(2), .file-row > span:nth-child(2), .file-table-head span:nth-child(3), .file-row > span:nth-child(3) {
    display: none;
  }

  .chat-messages {
    padding: 20px 14px;
  }

  .chat-message {
    max-width: 95%;
  }
}

/*# sourceMappingURL=app_globals_0yg4wg8.css.map*/