:root {
  --brand: #0f766e;
  --brand-soft: #e8f5f1;
  --ink: #192b34;
  --muted: #71818a;
  --border: #e5ebed;
  --paper: #fff;
  --canvas: #f5f7f8;
  --sidebar: 244px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
}
a {
  color: var(--brand);
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #7acdc1;
  outline-offset: 3px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 30px 18px 20px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  color: var(--ink);
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.6px;
  padding: 0 14px;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 35px;
  height: 35px;
  background: var(--brand);
  color: white;
  border-radius: 10px;
  font-size: 23px;
  font-weight: 900;
}
.nav-caption {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #96a1a6;
  font-weight: 750;
  margin: 39px 14px 16px;
}
.sidebar nav {
  display: grid;
  gap: 5px;
}
.sidebar nav a {
  padding: 12px 15px;
  color: #596c77;
  font-size: 12px;
  font-weight: 550;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.sidebar nav a > span {
  font-size: 18px;
  width: 20px;
  color: #81949e;
}
.sidebar nav a:hover {
  background: #f7faf9;
}
.sidebar nav a.active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
}
.sidebar nav a.active > span {
  color: var(--brand);
}
.nav-dot {
  margin-left: auto;
  width: 5px;
  height: 5px;
  background: var(--brand);
  border-radius: 50%;
}
.sidebar-foot {
  margin-top: auto;
  font-size: 10px;
  color: #75868d;
  padding: 23px 12px 0;
}
.sidebar-foot small {
  display: block;
  margin-top: 7px;
  font-size: 9px;
  color: #a1abb0;
}
.tiny-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #3ba78a;
  border-radius: 50%;
  margin-right: 7px;
}
.workspace {
  margin-left: var(--sidebar);
}
.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  background: #ffffffeb;
  border-bottom: 1px solid var(--border);
}
.workspace-name {
  display: flex;
  align-items: center;
  font-weight: 650;
}
.workspace-name select {
  border: 0;
  background: none;
  max-width: 300px;
  color: #475e69;
  font-size: 12px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #61717b;
  font-size: 11px;
}
.avatar {
  background: #e9e9df;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #666a53;
  font-size: 12px;
  font-weight: 700;
}
.icon-button {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 6px 10px;
  color: #61717b;
}
.text-button {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 11px;
}
.mobile-menu {
  display: none;
}
main {
  padding: 32px 38px 50px;
  max-width: 1800px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  gap: 15px;
}
.eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #89979e;
  margin-bottom: 10px;
}
h1 {
  font-size: 27px;
  letter-spacing: -0.8px;
  font-weight: 700;
  margin: 0 0 8px;
}
h2 {
  font-size: 18px;
  font-weight: 680;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 14px;
  font-weight: 650;
  margin: 0;
}
p {
  line-height: 1.6;
}
.subtitle {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  --bs-btn-hover-bg: #0a625c;
  --bs-btn-hover-border-color: #0a625c;
  font-size: 12px;
  padding: 10px 16px;
  font-weight: 600;
}
.btn-light {
  background: #fff;
  border: 1px solid var(--border);
  font-size: 12px;
  padding: 9px 14px;
  color: #50616b;
}
.btn-sm {
  padding: 5px 9px;
  font-size: 11px;
}
.btn-danger {
  font-size: 12px;
}
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.card-panel {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 23px;
}
.card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 19px;
}
.card-title small {
  color: var(--muted);
  font-size: 10px;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 23px;
}
.kpi {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 19px 22px;
}
.kpi-top {
  display: flex;
  justify-content: space-between;
  color: #7b8b93;
  font-size: 11px;
}
.kpi-icon {
  color: var(--brand);
  font-size: 17px;
  background: var(--brand-soft);
  border-radius: 6px;
  padding: 1px 7px;
}
.kpi-value {
  font-size: 29px;
  letter-spacing: -1px;
  font-weight: 650;
  margin: 9px 0 5px;
}
.kpi small {
  font-size: 9px;
  color: #93a0a6;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 20px;
}
.welcome-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  background: #eaf3ef;
  border: 1px solid #d8e7e1;
  border-radius: 10px;
  padding: 23px 27px;
  margin-bottom: 24px;
}
.welcome-banner h2 {
  font-size: 16px;
  margin-bottom: 6px;
}
.welcome-banner p {
  font-size: 11px;
  color: #6a8479;
  margin: 0;
}
.pill {
  display: inline-flex;
  padding: 4px 8px;
  font-size: 9px;
  letter-spacing: 0.1px;
  background: #eef2f4;
  border: 1px solid #e6ebee;
  color: #6b7e88;
  border-radius: 5px;
  white-space: nowrap;
}
.pill.good {
  background: #e8f5ed;
  color: #27845a;
  border-color: #dcefe3;
}
.pill.warn {
  background: #fff4df;
  color: #a27a24;
  border-color: #f4e8cc;
}
.pill.bad {
  background: #fbecea;
  color: #b65c54;
  border-color: #f4ddda;
}
.toolbar {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 0 0 17px;
}
.search {
  max-width: 320px;
  min-width: 220px;
}
.form-control,
.form-select {
  font-size: 12px;
  border-color: #dfe7ea;
  padding: 10px 12px;
  border-radius: 7px;
}
.form-control:focus,
.form-select:focus {
  border-color: #72bfb4;
  box-shadow: 0 0 0 3px #daf1ed;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 17px;
}
.field label {
  font-size: 11px;
  color: #586d77;
  font-weight: 600;
}
.field small {
  font-size: 10px;
  color: #8c9ba2;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.form-grid .full {
  grid-column: 1/-1;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
.grid-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.table-wrap {
  overflow-x: auto;
}
.grid-table th {
  text-align: left;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #8b99a0;
  border-bottom: 1px solid var(--border);
  background: #f9fbfb;
  padding: 12px;
}
.grid-table td {
  padding: 15px 12px;
  border-bottom: 1px solid #eff2f3;
  vertical-align: middle;
  color: #596d77;
}
.grid-table td:first-child {
  font-weight: 600;
  color: #334b57;
}
.grid-table tr:last-child td {
  border-bottom: 0;
}
.grid-table tr:hover td {
  background: #fbfdfc;
}
.grid-table .actions {
  justify-content: flex-end;
  flex-wrap: nowrap;
}
.empty-state {
  padding: 45px 25px;
  text-align: center;
  color: #8b9ba3;
}
.empty-state .empty-icon {
  font-size: 30px;
  color: #a7bbb7;
  display: block;
  margin-bottom: 10px;
}
.empty-state h3 {
  color: #566f79;
  margin-bottom: 7px;
}
.empty-state p {
  font-size: 11px;
  max-width: 330px;
  margin: 0 auto 17px;
}
.loading-state {
  padding: 55px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
  overflow: auto;
}
.tabs button {
  white-space: nowrap;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  padding: 13px 1px;
  color: #8b979d;
  font-size: 12px;
}
.tabs button.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
  font-weight: 650;
}
.modal-backdrop-custom {
  position: fixed;
  inset: 0;
  background: #162c3b70;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 25px;
}
.dialog {
  background: white;
  border-radius: 13px;
  box-shadow: 0 15px 90px #1233;
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
.dialog.wide {
  max-width: 1100px;
}
.dialog-header {
  padding: 21px 25px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dialog-body {
  padding: 24px 25px;
  overflow: auto;
}
.dialog-footer {
  padding: 17px 25px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}
.dialog-error {
  background: #fff0ed;
  color: #a34d42;
  padding: 12px;
  font-size: 12px;
  border-radius: 7px;
  margin-bottom: 16px;
}
.toast-box {
  position: fixed;
  bottom: 25px;
  right: 25px;
  max-width: 400px;
  z-index: 200;
  background: #173c36;
  color: white;
  box-shadow: 0 6px 30px #0002;
  border-radius: 9px;
  padding: 16px 20px;
  font-size: 12px;
}
.toast-box.error {
  background: #8a3c37;
}
.toast-box[hidden] {
  display: none;
}
.pagination-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 17px;
  color: #89979f;
  font-size: 10px;
}
.checklist {
  display: grid;
  gap: 0;
}
.check-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #edf1f2;
}
.check-item:last-child {
  border-bottom: 0;
}
.check-icon {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f0f2f2;
  color: #a0acb1;
  font-size: 11px;
}
.check-icon.done {
  background: #e4f3eb;
  color: #2c8d60;
}
.check-copy {
  flex: 1;
}
.check-copy b {
  display: block;
  font-size: 11px;
  font-weight: 600;
}
.check-copy small {
  display: block;
  font-size: 10px;
  color: #8d9aa1;
  margin-top: 3px;
}
.bar-row {
  display: grid;
  grid-template-columns: 115px 1fr 35px;
  gap: 12px;
  align-items: center;
  margin: 18px 0;
  font-size: 10px;
  color: #6e838c;
}
.bar-track {
  height: 7px;
  background: #f0f4f3;
  border-radius: 5px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: var(--brand);
  border-radius: 5px;
  min-width: 0;
}
.kanban {
  display: flex;
  gap: 15px;
  overflow: auto;
  padding-bottom: 15px;
}
.kanban-column {
  min-width: 255px;
  width: 270px;
  flex-shrink: 0;
  background: #edf1f2;
  padding: 12px;
  border-radius: 10px;
  min-height: 390px;
}
.kanban-heading {
  display: flex;
  justify-content: space-between;
  font-weight: 650;
  font-size: 11px;
  padding: 7px 4px 16px;
}
.deal {
  background: white;
  border: 1px solid #dfe6e8;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 10px;
  box-shadow: 0 2px 2px #182b3204;
  cursor: grab;
}
.deal h3 {
  font-size: 12px;
  margin-bottom: 10px;
}
.deal .deal-value {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.4px;
  margin: 12px 0;
}
.deal small {
  color: #8b99a0;
  font-size: 10px;
}
.deal .actions {
  margin-top: 12px;
  justify-content: space-between;
}
.chat-layout {
  display: grid;
  grid-template-columns: 290px minmax(320px, 1fr) 260px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
  height: calc(100vh - 214px);
  min-height: 570px;
  overflow: hidden;
}
.chat-list-panel {
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-filters {
  padding: 17px;
  border-bottom: 1px solid var(--border);
  max-height: 55%;
  overflow-y: auto;
}
.chat-extra-filters {
  margin: 12px 0;
}
.chat-extra-filters summary {
  cursor: pointer;
  color: var(--brand);
}
.chat-extra-filters .field {
  margin-top: 10px;
}
.chat-paging {
  padding: 8px;
  gap: 5px;
  flex-wrap: wrap;
  font-size: 11px;
}
.chat-paging .btn {
  padding: 5px 8px;
}
.chat-filters input {
  margin: 12px 0 8px;
}
.conversation-list {
  overflow: auto;
  flex: 1;
}
.conversation-item {
  display: block;
  width: 100%;
  text-align: left;
  background: white;
  border: 0;
  border-bottom: 1px solid #eef2f4;
  padding: 17px;
}
.conversation-item.active {
  background: #edf7f3;
  border-left: 3px solid var(--brand);
  padding-left: 14px;
}
.conversation-item strong {
  font-size: 12px;
}
.conversation-item p {
  font-size: 11px;
  color: #90a0a8;
  margin: 7px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
.conversation-item small {
  font-size: 9px;
  color: #8fa29c;
}
.chat-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #f8faf9;
}
.chat-header {
  padding: 15px 19px;
  border-bottom: 1px solid var(--border);
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.chat-header strong {
  font-size: 13px;
}
.chat-history {
  flex: 1;
  overflow: auto;
  padding: 22px 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bubble {
  max-width: 85%;
  padding: 11px 14px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px 10px 10px 2px;
  align-self: flex-start;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.bubble.out {
  align-self: flex-end;
  background: #e4f2eb;
  border-color: #d6e9de;
  border-radius: 10px 10px 2px 10px;
}
.bubble.internal {
  background: #fff6df;
  border-color: #f1e7c9;
  align-self: center;
  width: 95%;
  max-width: 95%;
}
.bubble small {
  display: block;
  color: #839b91;
  font-size: 8px;
  text-align: right;
  margin-top: 5px;
}
.bubble b {
  display: block;
  font-size: 9px;
  color: #5d8171;
  margin-bottom: 4px;
}
.composer {
  padding: 15px 18px;
  background: #fff;
  border-top: 1px solid var(--border);
}
.composer textarea {
  min-height: 65px;
  height: 65px;
  max-height: 140px;
  margin: 9px 0;
}
.chat-context {
  border-left: 1px solid var(--border);
  padding: 22px 18px;
  overflow: auto;
  background: #fff;
}
.context-avatar {
  display: grid;
  place-items: center;
  width: 55px;
  height: 55px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #ebf2ee;
  color: #719382;
  font-size: 19px;
}
.context-title {
  text-align: center;
  font-size: 13px;
}
.context-subtitle {
  text-align: center;
  color: #8d9aa1;
  font-size: 10px;
  margin: 6px 0 23px;
}
.context-group {
  border-top: 1px solid var(--border);
  padding: 17px 0;
}
.context-group label {
  font-size: 9px;
  letter-spacing: 1px;
  color: #96a2a8;
  display: block;
  margin-bottom: 10px;
}
.context-group p {
  font-size: 11px;
  color: #657d87;
  white-space: pre-wrap;
}
.health-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.connection-title {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}
.connection-title h3 {
  margin-bottom: 8px;
}
.metric-label {
  font-size: 9px;
  color: #8a9ba3;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
.connection-detail {
  font-size: 11px;
  margin: 6px 0 18px;
  color: #6f858e;
}
.notice {
  padding: 15px 18px;
  background: #f0f5f4;
  border: 1px solid #deebe7;
  border-radius: 8px;
  font-size: 11px;
  color: #5d7c71;
  margin-bottom: 20px;
}
.notice.warning {
  background: #fff8e9;
  border-color: #f1e6cd;
  color: #8d7951;
}
.template-preview {
  max-width: 350px;
  background: #f1f5ee;
  padding: 22px;
  border-radius: 9px;
}
.template-preview .bubble {
  max-width: 100%;
  background: white;
  box-shadow: 0 1px 3px #2038200d;
}
.report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: white;
}
.auth-story {
  background: #123c35;
  min-height: 100vh;
  padding: 40px 58px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-story:after {
  content: "";
  position: absolute;
  width: 650px;
  height: 650px;
  border: 1px solid #ffffff09;
  border-radius: 50%;
  bottom: -390px;
  left: -150px;
  pointer-events: none;
}
.auth-story .brand {
  color: white;
  padding: 0;
}
.auth-story .brand-mark {
  background: #bce4ce;
  color: #123c35;
}
.auth-story h1 {
  font-size: 46px;
  line-height: 1.15;
  letter-spacing: -2px;
  font-weight: 600;
}
.auth-story h1 em {
  font-style: normal;
  color: #b7dfc7;
}
.auth-story p {
  color: #9dbdb3;
  font-size: 13px;
  line-height: 1.8;
}
.auth-story .eyebrow {
  font-size: 9px;
  letter-spacing: 2px;
  color: #81aa9d;
}
.auth-story > small {
  font-size: 10px;
  color: #81aa9d;
}
.auth-main {
  padding: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.auth-card {
  width: 100%;
  max-width: 390px;
}
.auth-card h2 {
  font-size: 27px;
  margin: 10px 0 12px;
}
.auth-kicker {
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 1.8px;
  color: #91a39d;
}
.auth-card .subtitle {
  margin-bottom: 30px;
}
.auth-card .btn {
  width: 100%;
  margin: 8px 0 15px;
  padding: 13px;
}
.auth-legal {
  font-size: 10px;
  text-align: center;
  margin-top: 35px;
  color: #a4b1ac;
}
.auth-legal a {
  color: #8a9e95;
}
.auth-illustration {
  max-width: 360px;
  margin-top: 40px;
}
.mini-chat {
  padding: 14px 18px;
  border: 1px solid #ffffff18;
  background: #ffffff0b;
  border-radius: 12px 12px 12px 2px;
  font-size: 11px;
  color: #c0d6cd;
  max-width: 290px;
  margin-bottom: 12px;
}
.mini-chat.sent {
  margin-left: 60px;
  background: #2f6657;
  border-radius: 12px 12px 2px 12px;
}
.mini-pipeline {
  font-size: 9px;
  color: #89b49f;
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}
.mini-pipeline span {
  color: #658b7b;
}
.legal-page {
  max-width: 830px;
  margin: 45px auto;
  background: white;
  padding: 45px;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.legal-page p {
  font-size: 13px;
  color: #6d7e86;
}
.legal-page h1 {
  margin: 25px 0;
}
.form-note {
  font-size: 11px;
  color: #8a9a93;
}
.inline-result {
  white-space: pre-wrap;
  font-size: 12px;
  background: #f5f8f6;
  padding: 15px;
  border-radius: 8px;
  margin-top: 12px;
}
.line-item {
  display: grid;
  grid-template-columns: 2fr 0.7fr 1fr 0.8fr auto;
  gap: 7px;
  margin-bottom: 10px;
}
.list-item {
  border-bottom: 1px solid var(--border);
  padding: 13px 0;
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.danger-text {
  color: #b55248;
}
.badge-count {
  background: #dde5e5;
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 9px;
}
.code-diagnostic {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
  background: #f4f6f7;
  padding: 15px;
  border-radius: 7px;
}
@media (max-width: 1250px) {
  .chat-layout {
    grid-template-columns: 260px minmax(300px, 1fr);
  }
  .chat-context {
    display: none;
  }
  .dashboard-grid {
    grid-template-columns: 1.25fr 1fr;
  }
  .sidebar {
    --sidebar: 220px;
    width: 220px;
  }
  .workspace {
    margin-left: 220px;
  }
  main {
    padding: 28px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .auth-story {
    padding: 35px;
  }
  .auth-story h1 {
    font-size: 38px;
  }
}
@media (max-width: 950px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .sidebar.open {
    transform: none;
    box-shadow: 0 0 0 100vw #0005;
  }
  .workspace {
    margin-left: 0;
  }
  .mobile-menu {
    display: block;
  }
  .topbar {
    gap: 12px;
    padding: 0 20px;
  }
  .workspace-name {
    margin-right: auto;
  }
  .kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .auth-story {
    display: none;
  }
  .auth-page {
    grid-template-columns: 1fr;
  }
  .auth-main {
    min-height: 100vh;
  }
  .health-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  main {
    padding: 23px 16px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .top-actions #user-name {
    display: none;
  }
  .top-actions {
    gap: 10px;
  }
  .topbar {
    height: 65px;
  }
  .workspace-name select {
    max-width: 130px;
  }
  .dashboard-grid,
  .report-grid {
    grid-template-columns: 1fr;
  }
  .welcome-banner {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
  }
  .kpis {
    gap: 10px;
  }
  .kpi {
    padding: 14px;
  }
  .kpi-value {
    font-size: 25px;
  }
  .card-panel {
    padding: 17px;
  }
  .chat-layout {
    display: flex;
    height: calc(100vh - 224px);
    min-height: 540px;
  }
  .chat-list-panel {
    width: 100%;
    flex-shrink: 0;
  }
  .chat-main {
    display: none;
    width: 100%;
    flex-shrink: 0;
  }
  .chat-layout.selected .chat-list-panel {
    display: none;
  }
  .chat-layout.selected .chat-main {
    display: flex;
  }
  .chat-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
  }
  .chat-history {
    padding: 15px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .modal-backdrop-custom {
    padding: 10px;
  }
  .dialog {
    max-height: 95vh;
  }
  .dialog-body {
    padding: 18px;
  }
  .grid-table th,
  .grid-table td {
    padding: 10px 8px;
  }
  .line-item {
    grid-template-columns: 1fr 1fr;
  }
  .auth-main {
    padding: 30px 24px;
  }
  .health-grid {
    grid-template-columns: 1fr;
  }
  .toast-box {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
  .search {
    min-width: 180px;
  }
  .actions {
    gap: 5px;
  }
}
@media print {
  .sidebar,
  .topbar,
  .page-heading,
  .actions,
  .no-print {
    display: none !important;
  }
  .workspace {
    margin: 0;
  }
  main {
    padding: 0;
  }
  body {
    background: white;
  }
  .card-panel {
    border: 0;
  }
}
[hidden] {
  display: none !important;
}

.public-page {
  background: #f1f5f4;
  padding: 40px 18px;
}
.public-card {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px;
  background: white;
  border: 1px solid #dfe8e4;
  border-radius: 18px;
}
.public-card h1 {
  margin: 30px 0 20px;
}
.public-card nav {
  margin-top: 32px;
}
.preserve {
  white-space: pre-wrap;
  line-height: 1.7;
}
.proposal table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
}
.proposal th,
.proposal td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}
@media print {
  .no-print {
    display: none;
  }
  .public-page {
    padding: 0;
    background: white;
  }
  .public-card {
    border: 0;
    padding: 0;
    max-width: none;
  }
}

.brand-logo {
  max-width: 40px;
  max-height: 40px;
  object-fit: contain;
}
