@charset "UTF-8";

/* Triax design system: shared components and states. */

:root {
  --white: #fff;
  --red: #b53a3e;
  --green: #267354;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  --navy: #1d2c59;
  --navy-deep: #111c3a;
  --gold: #e1bd68;
  --gold-dark: #85621e;
  --ink: #202b42;
  --muted: #66738a;
  --line: #e3e7ed;
  --canvas: #f6f7fa;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 2px 5px #1c2b4810;
  --shadow-raised: 0 10px 30px #1c2b4814;
  --text-xs: .75rem;
  --text-sm: .8125rem;
  --text-md: .875rem;
  --control-height: 40px;
  --sidebar-width: 224px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  font-family: "Segoe UI",-apple-system,BlinkMacSystemFont,Arial,sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  --text-2xs: .6875rem;
}

.stage-dot,.bar-fill {
  background: #7181a4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,input,select,textarea {
  font: inherit;
}

button,a,input,select,textarea {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

h1,h2,h3,p {
  margin-top: 0;
}

small,.small-text {
  font-size: var(--text-md);
}

textarea {
  resize: vertical;
}

input[type=password] {
  letter-spacing: .04em;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}

[hidden] {
  display: none!important;
}

.muted {
  color: var(--muted);
}

.button.full-width {
  width: 100%;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.nav-link:hover {
  background: #ffffff08;
  color: #fff;
}

.nav-link.active svg {
  color: var(--gold);
}

.sidebar-note strong {
  font-weight: 500;
  color: #c9d0df;
}

.profile>span:last-child {
  min-width: 0;
}

.logout svg {
  width: 16px;
  height: 16px;
}

.topbar-left>span:first-of-type {
  color: var(--muted);
}

.divider {
  color: #c8cdd6;
}

.mobile-menu {
  display: none;
}

.section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.badge {
  font-size: var(--text-sm);
  padding: 5px 8px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  line-height: 1.4;
  font-weight: 550;
}

.dashboard-grid .panel {
  margin: 0;
}

.panel-heading h2 {
  margin: 0;
}

.panel-heading .eyebrow {
  font-size: var(--text-xs);
  margin-bottom: 6px;
}

.panel-heading>svg {
  color: #8a96af;
}

.funnel-row strong {
  text-align: right;
}

.upcoming-item>span:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.upcoming-item strong {
  font-size: var(--text-md);
  display: block;
}

.upcoming-item small {
  font-size: var(--text-xs);
  color: var(--muted);
  display: block;
  margin-top: 5px;
}

.upcoming-item>svg {
  width: 15px;
  color: #9aa4b8;
}

.product-panel>div:first-child {
  min-width: 150px;
}

.product-panel .eyebrow {
  font-size: var(--text-xs);
}

.product-panel h2 {
  margin: 0;
}

.product-stats {
  display: grid;
  grid-template-columns: repeat(6,1fr);
  flex: 1;
  gap: 12px;
}

.filters>label:not(.search-field) {
  font-size: var(--text-sm);
}

.filters input[type=date] {
  font-size: var(--text-md);
}

.kanban-column h2 {
  font-size: var(--text-md);
  font-weight: 650;
  flex: 1;
  margin: 0;
  line-height: 1.5;
}

.client-card p {
  font-size: var(--text-sm);
  color: var(--muted);
  margin: 5px 0 14px;
  overflow-wrap: anywhere;
}

tr:last-child td {
  border-bottom: 0;
}

.table-title:hover {
  text-decoration: underline;
}

.padded>h2 {
  margin-bottom: 20px;
}

.form-stack>.button {
  align-self: flex-start;
}

.form-stack>.button.full-width {
  align-self: stretch;
}

.client-facts {
  margin: 20px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.client-facts a {
  color: #476494;
}

.completion-block {
  border-radius: 10px;
  background: #f1f8f4;
  color: #337058;
  padding: 30px;
  text-align: center;
}

.completion-block>svg {
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
}

.completion-block p {
  margin: 0;
  font-size: var(--text-md);
}

.timeline-item:before {
  content: "";
  position: absolute;
  left: 4px;
  top: 23px;
  bottom: -20px;
  background: #e4e8f0;
  width: 1px;
}

.timeline-item:last-child:before {
  display: none;
}

.preserve-lines {
  white-space: pre-wrap;
}

.audit-details {
  line-height: 1.8;
}

.user-grid>.panel {
  margin: 0;
}

.user-heading>div {
  flex: 1;
  min-width: 0;
}

details {
  border-top: 1px solid var(--line);
  padding-top: 15px;
}

summary {
  color: #53637e;
  font-size: var(--text-md);
  cursor: pointer;
}

details[open] summary {
  margin-bottom: 22px;
}

.spacing-bottom {
  margin-bottom: 23px;
  font-size: var(--text-md);
}

.narrow-panel {
  max-width: 580px;
}

.pagination {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px 25px;
}

.notice.success {
  background: #eaf6ef;
  border: 1px solid #c9e6d6;
  color: #2c7252;
}

.notice.error {
  background: #ffeded;
  border: 1px solid #f2c9c9;
  color: #9b343c;
}

.notice.warning {
  background: #fff3d7;
  border: 1px solid #eed49b;
  color: #7d5b1e;
}

.notice svg {
  width: 19px;
}

.page-footer>span:first-child {
  letter-spacing: .1em;
  color: #7787a5;
}

.page-footer strong {
  font-weight: 500;
  color: #a28b57;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  padding: 12px 20px;
  background: var(--gold);
  color: var(--navy);
  z-index: 200;
}

.skip-link:focus {
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.dialog-heading .eyebrow {
  color: var(--gold-dark);
  font-size: var(--text-xs);
}

.auth-shell {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
}

.auth-wordmark {
  font-family: Georgia,serif;
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.auth-wordmark span {
  font-family: "Segoe UI",Arial,sans-serif;
  display: block;
  font-size: var(--text-xs);
  letter-spacing: .4em;
  font-weight: 400;
  color: var(--gold);
  margin-top: 7px;
}

.auth-message {
  margin: auto 0;
}

.auth-steps {
  display: flex;
  gap: 29px;
  margin-top: 46px;
  border-top: 1px solid #ffffff16;
  padding-top: 25px;
}

.auth-steps>span {
  font-size: var(--text-xs);
  color: var(--gold);
}

.auth-steps strong {
  display: block;
  font-size: var(--text-sm);
  color: #c8d0e4;
  margin-top: 9px;
  font-weight: 400;
}

.auth-footer {
  font-size: var(--text-xs);
  color: #7888ad;
  line-height: 1.5;
}

.login-brand img {
  width: 130%;
  height: 100%;
  margin-left: -15%;
  object-fit: cover;
}

.auth-card .form-stack {
  gap: 21px;
}

.password-wrap {
  position: relative;
  display: block;
}

.password-wrap input {
  padding-right: 79px;
}

.password-wrap>button {
  position: absolute;
  right: 8px;
  top: 4px;
  border: 0;
  background: transparent;
  height: 36px;
  font-size: var(--text-xs);
  color: #65748f;
  padding: 0 9px;
}

.auth-help {
  font-size: var(--text-xs);
  color: #8993a5;
  margin: 22px 0 0;
  line-height: 1.7;
  text-align: center;
}

.auth-security svg {
  width: 15px;
  height: 15px;
}

.setup-instructions {
  font-size: var(--text-md);
  line-height: 1.7;
  background: #f4f6fa;
  padding: 20px;
  border-radius: 10px;
}

.setup-instructions code {
  overflow-wrap: anywhere;
  color: var(--navy);
}

.error-page {
  max-width: 700px;
  margin: 12vh auto;
  padding: 30px;
}

.error-page p {
  color: var(--muted);
  margin: 25px 0;
}

.error-page h1 {
  font-size: 1.8rem;
}

.card-move {
  border: 0;
  background: #eff2f8;
  color: #56698d;
  font-size: var(--text-xs);
  padding: 6px 7px;
  border-radius: 5px;
  margin-left: auto;
}

.card-move:hover {
  background: #e1e7f1;
}

.checkbox-field {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  line-height: 1.5;
}

.spacing-top {
  margin-top: 20px;
}

.integration-status p {
  font-size: var(--text-md);
  color: #718095;
  margin: 12px 0 0;
}

.inline-form {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
}

.inline-form select {
  font-size: var(--text-md);
}

.secret-panel input {
  font-family: monospace;
  font-size: var(--text-sm);
}

.queue-notice>div {
  flex: 1;
}

.queue-notice p {
  font-size: var(--text-md);
  margin: 3px 0 0;
}

.sidebar .nav-section {
  margin-top: 22px;
}

.page-heading h1 {
  overflow-wrap: anywhere;
}

.client-state {
  display: table;
  margin-top: 7px;
}

.text-danger {
  color: #a13d46!important;
}

#planning {
  scroll-margin-top: 20px;
}

.temperature-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: currentColor;
}

.client-card.temperature-border-hot {
  border-left: 4px solid #c85459;
}

.client-card.temperature-border-warm {
  border-left: 4px solid #d2ad4e;
}

.client-card.temperature-border-cold {
  border-left: 4px solid #5992c8;
}

.client-card.insert-before::before,.client-card.insert-after::after {
  content: "";
  position: absolute;
  left: -3px;
  right: -3px;
  height: 4px;
  background: #b18b36;
  border-radius: 3px;
  z-index: 2;
}

.client-card.insert-before::before {
  top: -10px;
}

.client-card.insert-after::after {
  bottom: -10px;
}

.card-note-button {
  border: 0;
  background: #edf1f8;
  color: #344c75;
  padding: 6px 9px;
  border-radius: 6px;
  font-size: var(--text-xs);
  cursor: pointer;
}

#notes {
  scroll-margin-top: 20px;
}

.client-card .card-company {
  cursor: grab;
}

.client-card,.client-card a {
  -webkit-user-drag: none;
}

.client-card a {
  user-select: none;
}

.column-settings {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 16px;
  align-items: end;
}

.column-settings input {
  min-width: 0;
}

.column-setting-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.column-setting-header h2 {
  margin: 0;
}

.dashboard-single {
  display: block;
}

.card-company,.column-setting-header h2 {
  overflow-wrap: anywhere;
}

h1 {
  font-size: 1.8rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.055rem;
  margin-bottom: 8px;
}

h2 {
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -.015em;
  overflow-wrap: anywhere;
}

h3 {
  line-height: 1.5;
  font-size: var(--text-md);
}

p {
  line-height: 1.65;
}

strong {
  font-weight: 650;
}

svg {
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  vertical-align: middle;
}

::selection {
  background: #ebd79f;
  color: var(--navy-deep);
}

.eyebrow {
  line-height: 1.4;
  color: #7a8192;
  font-size: var(--text-2xs);
  letter-spacing: .12em;
  font-weight: 700;
  margin-bottom: 6px;
}

.optional {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 400;
}

button:disabled {
  cursor: not-allowed;
  opacity: .5;
  box-shadow: none;
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,[tabindex]:focus-visible {
  outline: 3px solid #4260a2;
  outline-offset: 3px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  line-height: 1.3;
  white-space: nowrap;
  gap: 7px;
  min-height: var(--control-height);
  border-radius: var(--radius-sm);
  padding: 9px 15px;
  font-size: var(--text-sm);
  font-weight: 600;
  transition: background .15s,border-color .15s,box-shadow .15s;
}

.button svg {
  width: 16px;
  height: 16px;
}

.button.primary {
  background: var(--gold);
  color: #352909;
  border-color: #d5ad50;
  box-shadow: 0 1px 2px #6d4e1215;
}

.button.primary:hover {
  background: #e9c77b;
  border-color: #c69a3e;
}

.button.navy {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.button.navy:hover {
  background: #2c4073;
}

.button.secondary {
  background: #fff;
  border-color: #dce1e9;
  color: #354560;
  box-shadow: 0 1px 2px #1c2b4805;
}

.button.secondary:hover {
  background: #f1f4f9;
  border-color: #bec8d7;
}

.button.small {
  min-height: 32px;
  padding: 7px 11px;
  font-size: var(--text-xs);
}

.button:active:not(:disabled) {
  transform: translateY(1px);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: var(--muted);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.icon-button:hover {
  color: var(--navy);
  background: #eef1f7;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--navy);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.5;
}

.text-link:hover {
  text-decoration: underline;
  color: #4162a4;
  text-underline-offset: 3px;
}

.text-link svg {
  width: 15px;
  height: 15px;
}

input,select,textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #d5dbe5;
  color: var(--ink);
  line-height: 1.4;
  min-height: var(--control-height);
  padding: 9px 12px;
  border-color: #d9dfe8;
  border-radius: var(--radius-sm);
  font-size: var(--text-md);
  transition: border-color .15s,box-shadow .15s;
}

input:hover,select:hover,textarea:hover {
  border-color: #b9c4d5;
}

input:focus,select:focus,textarea:focus {
  outline: 0;
  border-color: #627db3;
  box-shadow: 0 0 0 3px #4260a214;
}

input:disabled,select:disabled,textarea:disabled {
  cursor: not-allowed;
  background: #f1f3f7;
  color: #7c8597;
  opacity: .75;
}

input[readonly] {
  background: #f7f8fb;
}

input::placeholder,textarea::placeholder {
  color: #828b9b;
}

label {
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #394761;
  font-size: var(--text-sm);
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-help {
  color: var(--muted);
  margin: 0;
  font-size: var(--text-xs);
  line-height: 1.6;
  font-weight: 400;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 9px;
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.checkbox-field input {
  min-height: 0;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin: 0;
  accent-color: var(--navy);
}

details>summary {
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 8px 0;
  color: #435571;
}

details>summary:hover {
  color: var(--navy);
}

.sidebar {
  background: var(--navy-deep);
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  z-index: 30;
  overflow-y: auto;
  width: var(--sidebar-width);
  padding: 22px 12px 16px;
  color: #b8c3dd;
  scrollbar-width: thin;
  scrollbar-color: #3d4c70 transparent;
}

.brand {
  background: #fff;
  display: block;
  overflow: hidden;
  height: 76px;
  margin: 0 10px 25px;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.brand img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 130%;
  margin-left: -15%;
}

.workspace-label {
  padding: 0 12px;
  color: #8292b7;
  font-size: var(--text-2xs);
  font-weight: 650;
  letter-spacing: .1em;
  line-height: 1.6;
  margin-bottom: 14px;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  font-weight: 500;
  position: relative;
  min-height: 42px;
  padding: 10px 12px;
  gap: 11px;
  border: 0;
  border-radius: 7px;
  font-size: var(--text-sm);
  line-height: 1.4;
  transition: background .15s,color .15s;
}

.nav-link svg {
  width: 18px;
  height: 18px;
  color: #8d9fc5;
}

.nav-link.active {
  color: #fff;
  border-color: #ffffff08;
  background: #ffffff0d;
  box-shadow: inset 2px 0 0 var(--gold);
}

.nav-link.active:before {
  content: "";
  width: 3px;
  position: absolute;
  left: -1px;
  top: 12px;
  bottom: 12px;
  background: var(--gold);
  border-radius: 2px;
  display: none;
}

.nav-section {
  margin: 24px 12px 7px;
  color: #8292b7;
  font-size: var(--text-2xs);
  font-weight: 650;
  letter-spacing: .12em;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 20px;
  padding: 28px 10px 0;
}

.sidebar-note {
  display: flex;
  line-height: 1.7;
  gap: 10px;
  font-size: var(--text-2xs);
  color: #8fa0c5;
  margin-bottom: 22px;
}

.sidebar-note svg {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  color: #bea265;
}

.profile {
  display: flex;
  align-items: center;
  border-top: 1px solid #ffffff12;
  gap: 10px;
  padding-top: 17px;
}

.profile strong {
  color: #f8f9fc;
  display: block;
  overflow-wrap: anywhere;
  font-size: var(--text-xs);
}

.profile small {
  display: block;
  margin-top: 5px;
  font-size: var(--text-2xs);
  color: #91a3c8;
}

.logout {
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 17px 0 0;
  font-size: var(--text-2xs);
  padding-top: 14px;
  color: #9aacd0;
}

.main-shell {
  min-width: 0;
  flex: 1;
  margin-left: var(--sidebar-width);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: #fff;
  gap: 16px;
  height: 64px;
  padding: 0 32px;
}

.topbar-left,.topbar-right,.today {
  display: flex;
  align-items: center;
  font-size: var(--text-xs);
  gap: 13px;
}

.topbar-left {
  min-width: 0;
}

.topbar-left strong {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-right {
  gap: 20px;
  flex-shrink: 0;
}

.today {
  color: var(--muted);
  gap: 7px;
  white-space: nowrap;
}

.today svg {
  width: 15px;
  height: 15px;
}

main#main {
  margin: 0 auto;
  max-width: 2000px;
  padding: 28px 32px 0;
}

.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
}

.page-heading>div {
  min-width: 0;
}

.page-heading .eyebrow {
  color: var(--gold-dark);
  font-size: var(--text-2xs);
  margin-bottom: 7px;
}

.page-heading p {
  color: var(--muted);
  margin: 0;
  font-size: var(--text-sm);
}

.page-heading>.button {
  flex-shrink: 0;
}

.preview-note {
  flex-wrap: wrap;
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
  border: 1px solid #e5e9f1;
  background: #eef2f8;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: #596d8e;
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.6;
}

.preview-note span {
  color: #6f7b92;
  font-size: var(--text-2xs);
  letter-spacing: 0;
  font-weight: 400;
}

.page-footer {
  border-top: 1px solid #e0e5ef;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 34px;
  padding: 20px 0 22px;
  color: #8290a5;
  font-size: var(--text-2xs);
}

.avatar {
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  width: 36px;
  height: 36px;
  font-size: var(--text-xs);
  background: #eee4cb;
  color: #6a5728;
}

.small-avatar {
  width: 30px;
  height: 30px;
  font-size: var(--text-2xs);
}

.tiny-avatar {
  width: 24px;
  height: 24px;
  font-size: var(--text-2xs);
  background: #e8edf7;
  color: #4a608c;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 22px;
  box-shadow: 0 1px 2px #202b4203;
}

.padded {
  padding: 24px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 22px 24px 18px;
}

.panel-heading>.muted {
  font-size: var(--text-xs);
}

.panel-footnote {
  border-top: 1px solid #edf0f5;
  color: #8a91a0;
  padding: 14px 24px;
  background: #fcfcfd;
  font-size: var(--text-xs);
  line-height: 1.6;
}

.tabs {
  display: flex;
  border-bottom: 1px solid #dce2ec;
  overflow-x: auto;
  gap: 24px;
  margin-bottom: 20px;
  scrollbar-width: thin;
}

.tabs a {
  color: var(--muted);
  white-space: nowrap;
  padding: 12px 0;
  font-size: var(--text-sm);
  font-weight: 500;
}

.tabs a.active {
  border-bottom: 3px solid var(--gold);
  color: var(--navy);
  border-bottom-color: var(--gold);
  font-weight: 650;
}

.badge,.product,.outcome,.temperature-badge {
  gap: 5px;
  border-radius: 5px;
  padding: 3px 7px;
  font-size: var(--text-2xs);
  font-weight: 600;
  line-height: 1.5;
}

.badge.neutral {
  color: #58687f;
  background: #eff2f6;
}

.badge.amber {
  color: #85631e;
  background: #faf2df;
}

.badge.danger {
  color: #a03d48;
  background: #faedef;
}

.badge.green {
  color: #34715e;
  background: #eaf5f0;
}

.badge.blue {
  color: #4b66a0;
  background: #eef2fb;
}

.outcome {
  padding: 0;
  background: transparent;
  color: #8c6a27;
  font-size: var(--text-2xs);
}

.outcome-unhappy {
  font-weight: 600;
  color: var(--red);
}

.number-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 700;
  min-width: 24px;
  min-height: 23px;
  padding: 0 6px;
  font-size: var(--text-2xs);
  background: #eff2f7;
  color: #596b89;
  font-variant-numeric: tabular-nums;
}

.product {
  display: inline-flex;
  align-items: center;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: var(--text-xs);
  font-weight: 650;
  color: #526993;
  background: #edf2fa;
}

.product-food {
  color: #9b6948;
  background: #fbf0e8;
}

.product-agro {
  color: #48705c;
  background: #edf5ee;
}

.product-pet {
  color: #846897;
  background: #f3edf8;
}

.product-agenda {
  color: #4e7886;
  background: #eaf4f7;
}

.product-clinica {
  color: #507b80;
  background: #eaf5f4;
}

.stage-dot {
  display: inline-block;
  border-radius: 50%;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  background: #7d8eaf;
}

.stage-lead {
  background: #8b9fbd;
}

.stage-sold {
  background: #c3a465;
}

.stage-license {
  background: #8d81af;
}

.stage-first_contact {
  background: #6e9ab1;
}

.stage-implementing {
  background: #6685aa;
}

.stage-completed {
  background: #6d9b87;
}

.stage-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #50617c;
  font-size: var(--text-xs);
}

.empty-state {
  text-align: center;
  max-width: 500px;
  margin: auto;
  padding: 44px 24px;
}

.empty-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 43px;
  height: 43px;
  border-radius: 12px;
  background: #f1f4f8;
  color: #8c9db8;
  margin-bottom: 13px;
}

.empty-state h3 {
  margin-bottom: 8px;
  font-size: var(--text-md);
  color: #536681;
  font-weight: 600;
}

.empty-state p {
  margin: 0;
  font-size: var(--text-xs);
  color: #8b97aa;
  max-width: 390px;
}

.attention {
  border: 1px solid #e9cf94;
  overflow: hidden;
  background: #fff;
  border-color: #e8dfca;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  box-shadow: 0 2px 4px #5e461005;
}

.attention .number-pill {
  background: #f4e9d0;
  color: #836328;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.metric {
  border: 1px solid var(--line);
  background: #fff;
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: none;
}

.metric-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  line-height: 1.5;
  font-size: var(--text-xs);
  font-weight: 500;
  color: #63718a;
}

.metric-label>span {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  flex-shrink: 0;
  background: transparent;
  color: #8c9bb2;
}

.metric-label svg {
  width: 17px;
  height: 17px;
}

.metric-value {
  display: block;
  line-height: 1.2;
  margin: 15px 0 9px;
  font-size: 2rem;
  letter-spacing: -.06em;
  font-weight: 600;
  margin-top: 12px;
  color: var(--navy);
}

.metric p {
  font-size: var(--text-2xs);
  color: #8390a3;
  margin: 7px 0 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  margin-bottom: 24px;
  gap: 22px;
}

.funnel {
  gap: 18px;
  padding: 6px 24px 24px;
}

.funnel-row {
  display: grid;
  align-items: center;
  padding: 12px 0;
  grid-template-columns: 7px minmax(140px,1.1fr) minmax(40px,1fr) 25px;
  gap: 11px;
  font-size: var(--text-xs);
}

.funnel-label {
  color: #5b6b85;
}

.bar-track {
  overflow: hidden;
  height: 7px;
  background: #f1f3f7;
  border-radius: 3px;
}

.bar-fill {
  display: block;
  height: 100%;
  border-radius: 3px;
}

.upcoming-list {
  padding: 0 24px 10px;
}

.upcoming-item {
  display: flex;
  align-items: center;
  border-top: 1px solid #edf0f5;
  gap: 12px;
  padding: 13px 0;
}

.calendar-date {
  min-width: 53px;
  min-height: 53px;
  text-align: center;
  width: 46px;
  border-radius: 7px;
  background: #fafbfe;
  border: 1px solid var(--line);
  padding: 6px 4px;
}

.calendar-date strong {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 600;
}

.calendar-date small {
  margin-top: 2px;
  font-size: var(--text-2xs);
  color: #7b89a1;
}

.upcoming-item>span:nth-child(2) strong {
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
}

.upcoming-item>span:nth-child(2) small {
  font-size: var(--text-2xs);
}

.product-panel {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 22px 24px;
}

.product-stats>div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 20px;
  border-left: 1px solid var(--line);
  gap: 12px;
  border: 0;
}

.product-stats strong {
  font-size: 1.15rem;
  font-weight: 600;
}

.filters .button {
  font-size: var(--text-xs);
  min-height: var(--control-height);
}

.search-field {
  position: relative;
  flex: 1;
  max-width: 340px;
  min-width: 220px;
}

.search-field input {
  font-size: var(--text-xs);
  padding-left: 36px;
}

.search-field svg {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 16px;
  height: 16px;
  color: #8c97aa;
}

.board-meta {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-2xs);
  gap: 20px;
  margin-bottom: 12px;
  color: #728098;
  align-items: center;
}

.board-meta>span:last-child {
  max-width: 420px;
  line-height: 1.5;
}

.board {
  display: grid;
  padding-bottom: 22px;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: 292px;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  height: min(780px,calc(100dvh - 140px));
  min-height: 490px;
  padding: 3px 2px 17px;
  align-items: stretch;
  scrollbar-width: thin;
  scrollbar-color: #bec8d8 transparent;
}

.kanban-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border-radius: var(--radius);
  background: #eef1f6;
  border: 1px solid transparent;
  padding: 12px 8px 8px;
  transition: background .15s,border-color .15s;
}

.column-sector {
  border-bottom: 1px solid #dbe1ec;
  border-radius: 10px 10px 0 0;
  margin: 0 8px 7px;
  padding: 0;
  color: #7e899e;
  font-size: var(--text-2xs);
  text-transform: uppercase;
  font-weight: 650;
  letter-spacing: .085em;
  line-height: 1.5;
  background: transparent;
  border: 0;
}

.sector-support {
  color: #6e869e;
  background: transparent;
}

.sector-sales {
  color: #53688c;
  background: transparent;
}

.kanban-column>header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 13px;
  min-height: 39px;
  flex-shrink: 0;
  border: 0;
}

.kanban-column>header h2 {
  min-width: 0;
  flex: 1;
  margin: 0;
  color: #3d4d67;
  font-size: var(--text-sm);
  font-weight: 650;
  line-height: 1.4;
}

.column-count {
  padding: 3px 6px;
  background: #e2e7f0;
  color: #687995;
  height: 21px;
  min-width: 23px;
  font-size: var(--text-2xs);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

.column-cards {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px 3px 14px;
  flex: 1;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: #c5cfde transparent;
  overscroll-behavior-y: contain;
  scroll-padding-block: 12px;
}

.column-empty {
  margin-top: 2px;
  display: flex;
  min-height: 126px;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border: 1px dashed #d5dce7;
  border-radius: 8px;
  color: #8894a8;
  font-size: var(--text-xs);
  text-align: center;
  margin: 2px 0;
}

.client-card {
  user-select: none;
  position: relative;
  background: white;
  border: 1px solid #e0e5ed;
  border-radius: 9px;
  padding: 14px;
  margin: 0;
  flex: 0 0 auto;
  box-shadow: 0 2px 3px #19294905;
  cursor: grab;
  transition: box-shadow .15s,border-color .15s;
}

.client-card:hover {
  border-color: #c5d0e2;
  box-shadow: 0 4px 12px #1c2b480b;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.card-id {
  margin-left: auto;
  font-size: var(--text-2xs);
  color: #97a1b1;
}

.drag-handle {
  background: transparent;
  border: 0;
  line-height: 1;
  cursor: grab;
  touch-action: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  border-radius: 4px;
  padding: 2px;
  color: #a0acbe;
  font-size: 1rem;
}

.drag-handle:hover {
  background: #f1f4f8;
  color: #627697;
}

.drag-handle svg {
  width: 16px;
  height: 16px;
}

.card-company {
  display: block;
  overflow-wrap: anywhere;
  font-size: var(--text-md);
  line-height: 1.45;
  font-weight: 650;
  letter-spacing: -.01em;
  color: #263754;
}

.card-company:hover {
  text-decoration: underline;
  color: #4263a4;
}

.card-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 5px 0 9px;
  min-width: 0;
}

.temperature-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
  border-radius: 6px;
  line-height: 1.4;
  border: 0;
  margin: 0 0 7px;
  font-size: var(--text-2xs);
  padding: 3px 7px;
}

.temperature-badge:before {
  width: 5px;
  height: 5px;
}

button.temperature-badge:hover {
  filter: brightness(.95);
  box-shadow: 0 0 0 2px #17224c12;
}

.client-card.temperature-border-hot,.client-card.temperature-border-warm,.client-card.temperature-border-cold {
  border-left: 1px solid #e0e5ed;
}

.card-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 9px 0 11px;
  color: #7b899f;
  font-size: var(--text-2xs);
}

.card-phone svg {
  width: 12px;
  height: 12px;
  color: #a4aebf;
}

.card-observation {
  white-space: pre-line;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 8px 10px;
  background: #fbf7ed;
  border-left: 2px solid #e5ce98;
  border-radius: 0 5px 5px 0;
  font-size: .7rem!important;
  color: #897649!important;
}

.card-note-preview {
  display: block;
  border-left: 2px solid #a7b8d1;
  margin: 8px 0;
  color: #556179;
  border: 0;
  border-top: 1px solid #f0f2f6;
  padding: 9px 0 0;
  margin-bottom: 8px;
  font-size: var(--text-2xs);
  line-height: 1.55;
  background: transparent;
  border-radius: 0;
}

.card-note-preview strong {
  display: block;
  letter-spacing: .03em;
  color: #8b97a9;
  font-size: var(--text-2xs);
  font-weight: 500;
  margin-bottom: 3px;
}

.card-note-preview span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 2;
  color: #657590;
}

.card-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 -5px 4px;
  padding: 0;
}

.card-note-button,.card-move {
  min-height: 28px;
  padding: 5px 6px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #7d8ba2;
  font-size: var(--text-2xs);
}

.card-note-button:hover,.card-move:hover {
  background: #eff3f9;
  color: var(--navy);
}

.card-note-button svg {
  width: 12px;
  height: 12px;
}

.card-tools .text-link {
  font-size: var(--text-2xs);
  font-weight: 400;
  color: #8794a8;
}

.card-completed {
  display: flex;
  gap: 6px;
  color: #6b8b80;
  font-size: var(--text-2xs);
  line-height: 1.6;
  border-top: 1px solid #edf1ef;
  margin-top: 11px;
  padding-top: 9px;
  align-items: flex-start;
}

.card-completed svg {
  width: 12px;
  height: 12px;
  margin-top: 3px;
}

.client-card>.badge {
  font-size: var(--text-2xs);
  margin-top: 2px;
}

.kanban-column.drop-target {
  outline-offset: -2px;
  background: #f5efdf;
  border-color: #d1b56f;
  outline: 0;
}

.drop-target .column-count {
  background: #e9d9b5;
  color: #856323;
}

.client-card.dragging {
  pointer-events: none;
  cursor: grabbing;
  opacity: .32;
  border-style: dashed;
  border-color: #aebacf;
  box-shadow: none;
  outline: 0;
}

.client-card.drag-preview {
  position: fixed!important;
  margin: 0!important;
  pointer-events: none!important;
  max-height: 65vh;
  overflow: hidden;
  opacity: .96;
  border-color: #c4a75d;
  box-shadow: 0 20px 50px #17224c30,0 3px 8px #17224c12;
  transform: rotate(1.2deg);
  z-index: 120;
}

.insert-before:before,.insert-after:after {
  height: 3px;
  border-radius: 4px;
  background: #b18b37;
  box-shadow: 0 0 0 2px #f5efdf;
  left: -2px;
  right: -2px;
}

.insert-before:before {
  top: -8px;
}

.insert-after:after {
  bottom: -8px;
}

.drop-target .column-empty {
  border-color: #c2a35b;
  background: #fffaf0;
  color: #8a6d2e;
}

table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: var(--text-sm);
}

th {
  letter-spacing: .02em;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  font-size: var(--text-2xs);
  font-weight: 500;
  background: #fafbfd;
  padding: 13px 20px;
  color: #7b889f;
}

td {
  border-bottom: 1px solid #edf0f5;
  padding: 17px 20px;
  color: #566680;
  line-height: 1.5;
}

tbody tr:hover {
  background: #fbfcfe;
}

td small {
  display: block;
  margin-top: 5px;
  font-size: var(--text-2xs);
  color: #8a96a8;
}

td .preserve-lines {
  min-width: 160px;
  max-width: 390px;
  font-size: var(--text-xs);
  margin: 5px 0 0;
}

.table-title {
  font-weight: 600;
  color: #344865;
}

.detail-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--line);
  padding: 16px 20px;
  gap: 15px;
  border-radius: var(--radius);
  font-size: var(--text-xs);
  margin-bottom: 22px;
  color: #687995;
}

.detail-summary>.text-link {
  margin-left: auto;
  font-size: var(--text-xs);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.client-facts>div {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.client-facts dt {
  color: #8995a8;
}

.client-facts dd {
  margin: 0;
  font-weight: 600;
  color: #465874;
  overflow-wrap: anywhere;
}

.timeline {
  padding: 0 24px 24px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 10px 1fr;
  position: relative;
  gap: 15px;
  padding: 16px 0;
}

.timeline-marker {
  border: 2px solid #f3eddc;
  border-radius: 50%;
  z-index: 1;
  width: 9px;
  height: 9px;
  background: #b7c5dc;
  margin-top: 6px;
  box-shadow: 0 0 0 4px white;
}

.timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: var(--text-sm);
}

.timeline-head time {
  white-space: nowrap;
  font-size: var(--text-2xs);
  color: #8a97ac;
}

.timeline-item p {
  overflow-wrap: anywhere;
  font-size: var(--text-xs);
  color: #687993;
  margin: 7px 0 5px;
}

.timeline-item small {
  font-size: var(--text-2xs);
  color: #8a97ac;
}

.user-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 20px;
}

.user-heading {
  display: flex;
  margin-bottom: 19px;
  gap: 13px;
  align-items: flex-start;
}

.user-heading h2 {
  overflow-wrap: anywhere;
  font-size: var(--text-md);
  margin: 1px 0 5px;
}

.user-heading p {
  color: var(--muted);
  margin: 4px 0 0;
  font-size: var(--text-xs);
}

.user-auto-label {
  display: block;
  margin-top: 7px;
  font-size: var(--text-2xs);
  color: #8a97ac;
  margin: 6px 0;
}

.integration-status {
  margin: 22px 0;
  padding: 15px;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.secret-panel {
  border-color: #e9d7a8;
  background: #fffcf5;
}

dialog {
  width: calc(100% - 32px);
  color: var(--ink);
  overflow-y: auto;
  max-width: 520px;
  max-height: calc(100dvh - 48px);
  border: 1px solid #e1e6ef;
  border-radius: 16px;
  padding: 26px;
  background: white;
  box-shadow: 0 30px 100px #111c3a30;
  scrollbar-width: thin;
}

dialog::backdrop {
  background: #111c3a66;
  backdrop-filter: blur(3px);
}

.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 19px;
  margin-bottom: 22px;
  border-bottom: 1px solid #edf0f5;
}

.dialog-heading h2 {
  margin: 0;
  font-size: 1.15rem;
}

.dialog-heading .icon-button {
  margin-right: -7px;
}

dialog form>p:first-of-type {
  font-size: var(--text-sm);
  color: #708099;
}

.notice {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 13px 16px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  color: white;
  max-width: 430px;
  padding: 14px 19px;
  border: 1px solid #ffffff18;
  border-radius: var(--radius);
  box-shadow: var(--shadow-raised);
  font-size: var(--text-sm);
  line-height: 1.55;
  background: var(--navy-deep);
  z-index: 150;
}

.toast-error {
  background: #853940;
}

.ui-tooltip {
  position: fixed;
  z-index: 250;
  max-width: 230px;
  pointer-events: none;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  background: var(--navy-deep);
  color: white;
  font-size: var(--text-xs);
  line-height: 1.45;
  box-shadow: var(--shadow-raised);
}

.icon-button.mobile-menu {
  display: none;
}

.filters>select {
  font-size: var(--text-xs);
  flex: 1;
  min-width: 185px;
  max-width: 210px;
}

.filters .search-field {
  min-width: 220px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 19px;
  align-items: flex-end;
}

.table-scroll {
  overflow-x: auto;
  position: relative;
}

.phone-cell {
  white-space: nowrap;
}

.heading-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

.heading-actions .button {
  min-height: 40px;
}

.card-note-button,.card-move,.card-tools .text-link {
  font-size: var(--text-xs);
}

.card-phone,.card-note-preview {
  font-size: var(--text-xs);
  color: #66758c;
}

.client-card>p {
  font-size: var(--text-xs);
  margin: 4px 0 10px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  color: #728096;
}

.card-id,.card-tools .text-link,.card-note-button,.card-move,.client-card>p,.card-note-preview strong,.card-note-preview span,.board-meta,.column-sector,.metric p,.upcoming-item small,td small,.page-footer {
  color: var(--muted);
}

.temperature-hot {
  border-color: #f3c8c9;
  background: #fbefe8;
  color: #8d482b;
}

.temperature-warm {
  border-color: #ebd89e;
  background: #faf4e5;
  color: #79601d;
}

.temperature-cold {
  border-color: #c8dcef;
  background: #eff4fa;
  color: #4c6a8d;
}

.temperature-unrated {
  border-color: #e0e5ed;
  background: #f1f3f6;
  color: #62718b;
}

.auth-story {
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--navy-deep);
  border-bottom: 4px solid var(--gold);
  padding: 54px 64px;
}

.auth-message h1 {
  margin: 23px 0;
  font-size: clamp(2rem,3.4vw,3.4rem);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.23;
}

.auth-message>p {
  font-size: 1rem;
  line-height: 1.9;
  color: #9cacca;
}

.auth-message .eyebrow {
  color: #cdb77f;
  font-size: var(--text-2xs);
}

.auth-form-area {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 48px;
}

.auth-card {
  width: 100%;
  max-width: 365px;
}

.auth-card h2 {
  letter-spacing: -.035em;
  margin: 9px 0;
  font-size: 1.65rem;
  font-weight: 600;
}

.auth-card>.eyebrow {
  color: var(--gold-dark);
  font-size: var(--text-2xs);
}

.auth-card>.muted {
  margin-bottom: 30px;
  font-size: var(--text-sm);
}

.login-brand {
  overflow: hidden;
  width: 248px;
  height: 118px;
  margin: 0 0 40px -18px;
}

.auth-card .button {
  margin-top: 5px;
  min-height: 44px;
}

.auth-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-top: 1px solid #edf0f5;
  padding-top: 22px;
  margin-top: 32px;
  font-size: var(--text-2xs);
  color: #91a0b5;
}

/* Responsive adaptations */
@media(min-width:1100px) {

}

/* Responsive adaptations */
@media(min-width:1600px) {
  .board {
    grid-auto-columns: minmax(278px,1fr);
  }

  main#main {
    padding-inline: 40px;
  }

  .topbar {
    padding-inline: 40px;
  }
}

/* Responsive adaptations */
@media(max-width:1200px) {
  .product-panel {
    display: block;
  }

  .product-stats {
    margin-top: 25px;
  }

  .product-stats>div:first-child {
    border: 0;
    padding-left: 0;
  }

  .product-stats>div {
    padding-left: 14px;
  }

  :root {
    --sidebar-width: 204px;
  }

  .sidebar {
    padding-inline: 10px;
  }

  main#main {
    padding: 24px 24px 0;
  }

  .topbar {
    padding-inline: 24px;
  }

  .metrics {
    gap: 12px;
  }

  .metric {
    padding: 16px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .auth-story {
    padding: 40px;
  }
}

/* Responsive adaptations */
@media(max-width:1000px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .metrics {
    grid-template-columns: repeat(2,1fr);
  }

  .metric-label>span {
    display: flex;
  }

  .attention .text-link {
    font-size: var(--text-xs);
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .user-grid {
    grid-template-columns: 1fr;
  }

  .product-stats {
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
  }

  .product-stats>div:nth-child(4) {
    border: 0;
    padding-left: 0;
  }

  .auth-story {
    padding: 40px;
  }

  .auth-steps {
    gap: 20px;
  }

  .board-meta>span:last-child {
    max-width: 280px;
    text-align: right;
  }
}

/* Responsive adaptations */
@media(max-width:960px) {
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .user-grid {
    grid-template-columns: 1fr;
  }

  .metrics {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .topbar-left>span:first-of-type,.topbar-left>.divider {
    display: none;
  }

  .product-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-stats {
    width: 100%;
    flex-wrap: wrap;
  }
}

/* Responsive adaptations */
@media(max-width:760px) {
  .sidebar.is-open {
    transform: translateX(0);
  }

  .mobile-menu {
    display: inline-flex;
  }

  .topbar-left>span:first-of-type,.topbar-left>.divider {
    display: none;
  }

  .today svg {
    display: none;
  }

  .page-heading .eyebrow {
    font-size: var(--text-xs);
  }

  .page-heading>.button svg {
    width: 15px;
  }

  .attention .text-link {
    max-width: none;
    align-self: flex-end;
  }

  .badge {
    font-size: var(--text-xs);
  }

  .outcome {
    font-size: var(--text-xs);
  }

  .metric {
    padding: 16px;
  }

  .metric p {
    font-size: var(--text-xs);
  }

  .metric-label>span {
    display: none;
  }

  .metrics {
    gap: 12px;
    margin-bottom: 20px;
  }

  .dashboard-grid {
    margin-bottom: 20px;
  }

  .panel-heading h2 {
    font-size: 1rem;
  }

  .panel-heading .eyebrow {
    font-size: var(--text-xs);
  }

  .product-panel {
    padding: 20px 17px;
  }

  .product-stats>div {
    gap: 8px;
    padding-left: 12px;
  }

  .product {
    font-size: var(--text-xs);
    padding: 5px 6px;
  }

  .product-stats strong {
    font-size: 1rem;
  }

  .detail-summary>.text-link {
    margin: 0;
  }

  .detail-grid {
    gap: 0;
  }

  .tabs {
    gap: 20px;
  }

  .timeline-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .timeline-item {
    gap: 14px;
  }

  .form-actions {
    flex-wrap: wrap;
  }

  .spacing-bottom {
    align-items: flex-start;
  }

  .spacing-bottom>.muted {
    font-size: var(--text-sm);
  }

  .client-facts>div {
    grid-template-columns: 1fr 1fr;
    font-size: var(--text-sm);
    gap: 14px;
  }

  .auth-shell {
    display: block;
    background: #fff;
    min-height: 100vh;
  }

  .auth-story {
    display: none;
  }

  .auth-card h2 {
    font-size: 1.6rem;
  }

  .auth-card>.eyebrow {
    font-size: var(--text-xs);
  }

  .user-heading .badge {
    font-size: var(--text-xs);
  }

  .queue-notice {
    flex-wrap: wrap;
  }

  .queue-notice>.button {
    margin-left: 28px;
  }

  .icon-button.mobile-menu {
    display: inline-flex;
  }

  .filters .search-field {
    min-width: 100%;
  }

  .heading-actions {
    width: 100%;
  }

  .heading-actions .button {
    flex: 1;
  }

  :root {
    --control-height: 42px;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform .2s;
    box-shadow: 6px 0 30px #10193625;
    width: 248px;
  }

  .main-shell {
    margin-left: 0;
  }

  .topbar {
    padding: 0 16px;
    height: 60px;
    gap: 10px;
  }

  .topbar-left {
    gap: 8px;
  }

  .topbar-right {
    gap: 10px;
  }

  .today {
    font-size: var(--text-2xs);
  }

  main#main {
    padding: 22px 16px 0;
  }

  .preview-note {
    flex-wrap: wrap;
    gap: 2px 8px;
    margin-bottom: 20px;
    padding: 7px 10px;
  }

  .preview-note span {
    font-size: var(--text-2xs);
  }

  .page-heading {
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 23px;
  }

  .page-heading h1 {
    font-size: 1.65rem;
  }

  .page-heading p {
    max-width: 310px;
    font-size: var(--text-xs);
  }

  .page-heading>.button {
    padding: 10px 12px;
    font-size: var(--text-sm);
    min-height: 38px;
  }

  .filters {
    gap: 8px;
  }

  .search-field {
    max-width: none;
    min-width: 100%;
  }

  .filters>select {
    width: auto;
    flex: 1;
    min-width: 145px;
    max-width: none;
  }

  .board-meta {
    font-size: var(--text-xs);
    align-items: flex-start;
    gap: 16px;
  }

  .board-meta>span:last-child {
    font-size: var(--text-2xs);
    max-width: 190px;
  }

  .board {
    grid-template-columns: none;
    grid-auto-columns: min(292px,calc(100vw - 58px));
    min-height: 440px;
    height: calc(100dvh - 100px);
    gap: 12px;
  }

  .drag-handle {
    width: 28px;
    height: 28px;
  }

  .padded {
    padding: 20px;
  }

  .panel-heading {
    flex-wrap: wrap;
    padding: 20px 20px 16px;
  }

  .panel {
    margin-bottom: 20px;
  }

  .form-grid {
    gap: 12px;
  }

  .detail-summary {
    padding: 16px;
    gap: 12px;
    font-size: var(--text-2xs);
  }

  .tabs a {
    font-size: var(--text-xs);
  }

  .timeline {
    padding: 0 20px 20px;
  }

  .timeline-item p {
    font-size: var(--text-xs);
  }

  th,td {
    padding: 13px 16px;
  }

  .table-scroll table {
    min-width: 650px;
  }

  .user-heading {
    flex-wrap: wrap;
    gap: 10px;
  }

  .user-heading>.badge {
    font-size: var(--text-2xs);
  }

  .metric-value {
    font-size: 1.8rem;
  }

  .funnel {
    padding: 2px 20px 20px;
  }

  .funnel-row {
    grid-template-columns: 7px minmax(130px,1.4fr) minmax(30px,1fr) 18px;
    font-size: var(--text-2xs);
    gap: 9px;
  }

  .upcoming-list {
    padding-inline: 20px;
  }

  .page-footer {
    line-height: 1.6;
    font-size: var(--text-2xs);
  }

  .page-footer>span:last-child {
    max-width: 170px;
    text-align: right;
  }

  dialog {
    padding: 22px;
    max-height: calc(100dvh - 28px);
  }

  .dialog-heading {
    padding-bottom: 16px;
    margin-bottom: 20px;
  }

  .toast {
    max-width: none;
    right: 16px;
    left: 16px;
    bottom: 16px;
  }

  .auth-form-area {
    min-height: 100dvh;
    padding: 30px 24px;
  }

  .login-brand {
    margin: 0 auto 28px;
    width: 250px;
    height: 112px;
  }
}

/* Responsive adaptations */
@media(max-width:600px) {

  .column-settings {
    grid-template-columns: 1fr;
  }
}

/* Responsive adaptations */
@media(max-width:390px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .product-stats {
    grid-template-columns: repeat(2,1fr);
  }

  .product-stats>div {
    border: 0;
    padding: 0;
  }

  .page-heading {
    flex-direction: column;
  }

  .funnel-row {
    grid-template-columns: 8px minmax(140px,1fr) 30px 16px;
    gap: 6px;
  }

  .topbar-left strong {
    font-size: var(--text-sm);
  }
}

/* Responsive adaptations */
@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior: auto!important;
    transition: none!important;
  }

  *,*::before,*::after {
    scroll-behavior: auto!important;
    transition: none!important;
    animation: none!important;
  }
}
