:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #23352e;
  background: #f5f7f5;
  font-synthesis: none;
  font-size: 14px;
  --green: #126753;
  --ink: #23352e;
  --muted: #738179;
  --line: #e4eae5;
  --soft: #edf3ee;
  --white: #fff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: var(--green);
  text-decoration: none;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 32px;
  letter-spacing: -1.1px;
  font-weight: 650;
  line-height: 1.2;
  margin-bottom: 10px;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.6px;
  font-weight: 650;
}
h3 {
  font-size: 15px;
  font-weight: 650;
}
p {
  line-height: 1.6;
  color: var(--muted);
}
small {
  font-size: 12px;
}
strong {
  font-weight: 600;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #dce4dd;
  border-radius: 8px;
  background: #fff;
  padding: 11px 12px;
  color: var(--ink);
  outline: none;
  min-width: 0;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px #12675313;
}
textarea {
  resize: vertical;
  min-height: 92px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-weight: 550;
  font-size: 12px;
}
label input,
label select,
label textarea {
  font-size: 14px;
  font-weight: 400;
}
label:has(input[type="checkbox"]) {
  flex-direction: row;
  align-items: center;
}
input[type="checkbox"] {
  width: auto;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #86b8a1;
  outline-offset: 3px;
}
kbd {
  font: 11px inherit;
  border: 1px solid #dfe5df;
  padding: 2px 6px;
  border-radius: 4px;
  background: #fff;
}
.primary,
.secondary,
.danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 8px;
  font-weight: 550;
  font-size: 13px;
  min-height: 42px;
}
.primary {
  color: #fff;
  background: var(--green);
  box-shadow: 0 2px 2px #063e2010;
}
.primary:hover {
  background: #0c5543;
}
.secondary {
  background: #fff;
  border: 1px solid #dce4dd;
}
.secondary:hover {
  background: #f1f5f1;
}
.danger {
  background: #fff4f1;
  color: #ad493e;
  border: 1px solid #edd9d4;
}
.wide {
  width: 100%;
}
.wide span {
  margin-left: auto;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  display: block;
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 650;
  color: var(--muted);
  margin-bottom: 15px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: 1px;
  color: var(--ink);
}
.brand img {
  width: 34px;
  height: 34px;
}
.brand > span {
  font-size: 9px;
  letter-spacing: 1.2px;
  border: 1px solid #dce5dd;
  border-radius: 4px;
  padding: 4px;
  margin-left: 0;
  color: #7a897f;
}
.sidebar {
  width: 238px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 28px 18px 18px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.sidebar > .brand {
  padding-left: 11px;
}
.workspace-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  padding: 12px 10px;
  border-radius: 9px;
  margin: 30px 0 27px;
}
.workspace-tag strong {
  display: block;
  font-size: 12px;
  max-width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.workspace-tag small,
.profile small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.workspace-avatar {
  background: #edf2e9;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e9dc;
  color: var(--green);
  font-weight: 650;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}
.green-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #529071;
  flex-shrink: 0;
}
.workspace-tag > .green-dot {
  margin-left: auto;
}
.nav-label {
  display: block;
  color: #8e9a91;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 1.4px;
  padding: 0 13px;
  margin-bottom: 10px;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  color: #6d7d73;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 550;
}
nav a > span {
  font-size: 19px;
  line-height: 16px;
  width: 20px;
  text-align: center;
  color: #87948a;
}
nav a.active {
  color: var(--green);
  background: #eaf2eb;
}
nav a.active > span {
  color: var(--green);
}
nav a:hover {
  background: #f2f6f1;
}
nav b {
  font-size: 10px;
  font-weight: 550;
  padding: 2px 6px;
  background: #e4ece2;
  border-radius: 4px;
  margin-left: auto;
  color: #59715e;
}
nav .nav-label {
  margin-top: 30px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 24px;
}
.sms-side {
  padding: 15px 12px;
  background: #f6f8f3;
  border: 1px solid #e8eddf;
  border-radius: 9px;
  font-size: 11px;
}
.sms-side strong {
  margin-left: 6px;
}
.sms-side small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin: 8px 0 0 12px;
}
.profile {
  display: flex;
  gap: 10px;
  width: 100%;
  align-items: center;
  text-align: left;
  padding: 18px 6px 0;
  margin-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.main-shell {
  margin-left: 238px;
  min-height: 100vh;
}
.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 38px;
  border-bottom: 1px solid var(--line);
  background: #ffffffa6;
}
.breadcrumb {
  font-size: 11px;
  color: #8b978e;
}
.breadcrumb span {
  padding: 0 12px;
  color: #bac2b9;
}
.breadcrumb strong {
  color: #53665a;
  font-weight: 500;
}
.search-button {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #929e94;
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px 10px;
  border-radius: 7px;
  min-width: 240px;
  text-align: left;
}
.search-button > span {
  font-size: 19px;
}
.search-button kbd {
  margin-left: auto;
}
.today {
  font-size: 11px;
  color: #7b897e;
}
.icon-button {
  border: 1px solid var(--line);
  width: 34px;
  height: 34px;
  border-radius: 7px;
  font-size: 18px;
  background: #fff;
}
#mobile-menu {
  display: none;
}
main {
  padding: 36px 38px 20px;
  max-width: 1700px;
  margin: auto;
  min-height: calc(100vh - 130px);
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.page-heading p {
  font-size: 12px;
  margin: 0;
}
.page-heading .eyebrow {
  margin-bottom: 11px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  position: relative;
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #7c897f;
  font-size: 11px;
}
.stat-icon {
  width: 30px;
  height: 30px;
  background: #f1f5ed;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 17px;
  color: #69846a;
}
.stat strong {
  display: block;
  font-size: 34px;
  letter-spacing: -1.5px;
  font-weight: 600;
  margin: 12px 0 10px;
  line-height: 1;
}
.stat small {
  font-size: 10px;
  color: #8c998d;
}
.stat .positive {
  color: var(--green);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}
.card-head {
  padding: 21px 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.card-head h3 {
  margin: 0;
  font-size: 13px;
}
.text-button {
  color: var(--green);
  font-size: 11px;
  padding: 4px;
}
.card-body {
  padding: 0 23px 23px;
}
.pipeline-chart {
  display: flex;
  align-items: flex-end;
  height: 148px;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-top: 12px;
}
.chart-item {
  height: 100%;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 10px;
  color: #718375;
}
.chart-item b {
  font-size: 11px;
  font-weight: 500;
}
.chart-bar {
  width: 100%;
  max-width: 68px;
  min-height: 4px;
  border-radius: 5px 5px 0 0;
  background: #9ec8ab;
}
.chart-item:nth-child(2) .chart-bar {
  background: #bbd3ba;
}
.chart-item:nth-child(3) .chart-bar {
  background: #c9d9bd;
}
.chart-item:nth-child(4) .chart-bar {
  background: #dbe3c6;
}
.chart-labels {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}
.chart-labels > span {
  flex: 1;
  text-align: center;
  font-size: 9px;
  color: #819083;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-top: 25px;
  color: #829085;
}
.summary-line strong {
  color: var(--green);
}
.task-row {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f3ef;
  align-items: center;
}
.task-row:last-child {
  border: 0;
}
.task-avatar {
  width: 31px;
  height: 31px;
  background: #f0f3e9;
  color: #6b845f;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}
.task-info {
  flex: 1;
  min-width: 0;
}
.task-info button {
  font-size: 11px;
  font-weight: 600;
  padding: 0;
  text-align: left;
}
.task-info small {
  display: block;
  color: #8a978d;
  font-size: 10px;
  margin-top: 5px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.due {
  font-size: 10px;
  color: #be795c;
  white-space: nowrap;
}
.due.ok {
  color: #6c866c;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.toolbar input {
  width: 230px;
  font-size: 12px;
  padding: 9px 11px;
}
.toolbar select {
  width: auto;
  max-width: 210px;
  font-size: 11px;
  padding: 9px 28px 9px 10px;
}
.toolbar .result-count {
  font-size: 10px;
  color: var(--muted);
  margin-left: auto;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 9px;
  letter-spacing: 0.6px;
  color: #8a988d;
  font-weight: 600;
  background: #fafcf9;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  text-transform: uppercase;
}
td {
  padding: 16px 20px;
  border-bottom: 1px solid #eff2ee;
  font-size: 11px;
  color: #6c7f70;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fafcf9;
}
td .lead-name {
  color: #334c3b;
  font-weight: 600;
  padding: 0;
  font-size: 12px;
  text-align: left;
  display: block;
}
td small {
  display: block;
  font-size: 10px;
  margin-top: 5px;
  color: #99a397;
}
td .person {
  display: flex;
  gap: 10px;
  align-items: center;
}
.avatar {
  width: 33px;
  height: 33px;
  background: #edf1e8;
  border: 1px solid #e8eddf;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b845f;
  font-size: 10px;
  font-weight: 600;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 5px;
  background: #eef3ee;
  color: #6b806f;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}
.badge:before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.status-neu {
  background: #edf1f9;
  color: #6883a7;
}
.status-kontaktversuch {
  background: #f6f0e3;
  color: #a78b54;
}
.status-im_gespraech {
  background: #f0edf9;
  color: #8e7bad;
}
.status-termin {
  background: #e8f3ee;
  color: #578d72;
}
.status-gewonnen {
  background: #e4f2dd;
  color: #66904f;
}
.status-verloren {
  background: #f8eae7;
  color: #b27568;
}
.priority {
  font-size: 10px;
}
.priority.hoch {
  color: #b97959;
}
.empty {
  text-align: center;
  padding: 45px 20px;
  color: #8c9a8c;
}
.empty .empty-icon {
  font-size: 28px;
  color: #8eac91;
  margin-bottom: 12px;
}
.empty h3 {
  color: #526b55;
  font-size: 14px;
  margin-bottom: 8px;
}
.empty p {
  font-size: 12px;
  max-width: 380px;
  margin: 0 auto 20px;
}
.empty.compact {
  padding: 18px 8px;
}
.empty.compact p {
  font-size: 11px;
  margin: 0 auto;
}
.onboarding {
  background: #e9f1e6;
  border: 1px solid #dce9d4;
  border-radius: 11px;
  padding: 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.onboarding h3 {
  margin-bottom: 7px;
  color: #3a6146;
  font-size: 14px;
}
.onboarding p {
  font-size: 11px;
  margin: 0;
  color: #789075;
}
.app-footer {
  max-width: 1700px;
  margin: auto;
  padding: 14px 38px 24px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #99a599;
}
.app-footer > span:first-child {
  font-weight: 650;
  letter-spacing: 1px;
}
.demo-banner {
  background: #fff5dc;
  color: #987738;
  text-align: center;
  font-size: 11px;
  padding: 9px;
}
.board {
  display: grid;
  grid-template-columns: repeat(6, minmax(215px, 1fr));
  gap: 14px;
  overflow: auto;
  padding-bottom: 20px;
}
.board-column {
  background: #edf1eb;
  border: 1px solid #e5eae1;
  border-radius: 10px;
  min-height: 460px;
  padding: 14px 10px;
}
.column-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 3px 15px;
  font-size: 11px;
  font-weight: 600;
}
.column-head b {
  font-size: 10px;
  background: #fff;
  padding: 3px 7px;
  border-radius: 4px;
  color: #87947e;
}
.kanban-card {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid #e3e9de;
  border-radius: 8px;
  padding: 16px 13px;
  margin-bottom: 10px;
  box-shadow: 0 2px 3px #14381903;
}
.kanban-card strong {
  font-size: 12px;
  display: block;
  margin: 8px 0;
}
.kanban-card p {
  font-size: 10px;
  margin-bottom: 14px;
}
.kanban-card footer {
  border-top: 1px solid #eff2eb;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  color: #81917d;
  font-size: 9px;
}
.kanban-card:hover {
  border-color: #9bbb9d;
}
.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr);
  gap: 22px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.span-two {
  grid-column: 1/-1;
}
.settings-form {
  padding: 23px;
}
.settings-form h3 {
  margin: 0 0 8px;
}
.settings-form p {
  font-size: 11px;
}
.form-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.form-section:last-of-type {
  border: 0;
  margin-bottom: 0;
}
.notice {
  border: 1px solid #e5ebd9;
  border-radius: 8px;
  background: #f7f9f1;
  padding: 13px 15px;
  font-size: 11px;
  line-height: 1.65;
  color: #7c8d68;
  margin-top: 15px;
}
.notice.warn {
  background: #fffaee;
  border-color: #ece2c5;
  color: #9b8050;
}
.info-list {
  padding-left: 18px;
  margin: 12px 0;
  color: #7d8f7b;
  font-size: 12px;
  line-height: 1.9;
}
.info-list li {
  margin-bottom: 10px;
}
.mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
.mini-stats > div {
  background: #f3f7ee;
  padding: 16px;
  border-radius: 8px;
}
.mini-stats small {
  display: block;
  font-size: 10px;
  color: #85927c;
}
.mini-stats strong {
  display: block;
  font-size: 24px;
  margin-top: 8px;
  color: #597b58;
}
.meter {
  height: 6px;
  background: #edf2e6;
  border-radius: 3px;
  overflow: hidden;
  margin: 14px 0 8px;
}
.meter > div {
  height: 100%;
  background: #719d67;
  width: var(--progress, 0%);
}
.step-list {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  font-size: 11px;
  color: #99a28e;
}
.step {
  display: flex;
  align-items: center;
  gap: 8px;
}
.step b {
  border: 1px solid #dce5d4;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 10px;
}
.step.active {
  color: var(--green);
}
.step.active b {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}
.step-line {
  width: 44px;
  height: 1px;
  background: #dce5d4;
}
.upload-area {
  padding: 55px 25px;
  text-align: center;
  border: 1px dashed #b9ceb7;
  border-radius: 10px;
  margin: 24px;
  background: #fafcf7;
}
.upload-icon {
  font-size: 35px;
  color: #83a17d;
  margin-bottom: 18px;
}
.upload-area h3 {
  font-size: 17px;
  margin-bottom: 10px;
}
.upload-area p {
  font-size: 12px;
}
.file-input {
  width: auto;
  max-width: 100%;
  padding: 10px;
  background: white;
}
.mapping-table td:first-child {
  font-weight: 600;
  color: #4d674e;
}
.mapping-table select {
  font-size: 12px;
}
.import-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 23px;
  flex-wrap: wrap;
}
.import-actions p {
  font-size: 11px;
  margin: 0;
}
.code {
  background: #f3f6f1;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    11px/1.7 ui-monospace,
    monospace;
  color: #60755e;
  max-width: 100%;
  overflow: auto;
}
.lead-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  height: 100dvh;
  max-height: 100dvh;
  width: 650px;
  max-width: 100vw;
  border: 0;
  padding: 0;
  background: #fff;
  box-shadow: -20px 0 60px #18362918;
}
.lead-dialog::backdrop {
  background: #1f35295c;
  backdrop-filter: blur(2px);
}
.drawer-header {
  padding: 25px 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
}
.drawer-header h2 {
  margin: 0;
  font-size: 20px;
}
.drawer-header .eyebrow {
  margin-bottom: 7px;
}
.drawer-content {
  padding: 25px 28px;
}
.drawer-footer {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding-top: 25px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
}
.drawer-footer > div {
  display: flex;
  gap: 8px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 28px 0 16px;
}
.section-title h3 {
  margin: 0;
}
.timeline {
  margin-top: 18px;
}
.timeline-item {
  border-left: 1px solid #dce5d6;
  padding: 0 0 20px 18px;
  position: relative;
}
.timeline-item:before {
  content: "";
  position: absolute;
  left: -4px;
  top: 4px;
  width: 7px;
  height: 7px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #9bb28d;
}
.timeline-item small {
  font-size: 10px;
  color: #95a08e;
}
.timeline-item p {
  font-size: 12px;
  color: #5e745d;
  white-space: pre-wrap;
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}
.raw-details {
  margin-top: 20px;
  background: #f7f9f3;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 11px;
}
.raw-details summary {
  cursor: pointer;
  color: #6c8166;
}
.raw-details dl {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 8px;
  margin-bottom: 0;
}
.raw-details dt {
  color: #8a9784;
}
.raw-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #214c3c;
  color: white;
  padding: 14px 22px;
  border-radius: 9px;
  box-shadow: 0 8px 30px #17422b25;
  z-index: 100;
  font-size: 12px;
  max-width: 90vw;
  line-height: 1.5;
}
.toast.error {
  background: #9d5146;
}
.error-text {
  color: #ad5746;
  font-size: 12px;
  line-height: 1.5;
}
.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-story {
  background: #e7eee2;
  padding: 45px 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.login-story:after {
  content: "";
  width: 480px;
  height: 480px;
  border: 1px solid #ceddc3;
  border-radius: 50%;
  position: absolute;
  bottom: -270px;
  right: -160px;
  box-shadow:
    0 0 0 55px #dce7d365,
    0 0 0 110px #e0e9d970;
  pointer-events: none;
}
.login-story > div {
  position: relative;
  z-index: 1;
}
.login-story h1 {
  font-size: 52px;
  letter-spacing: -2px;
  line-height: 1.12;
  color: #31543b;
  margin-bottom: 25px;
}
.login-story p {
  font-size: 13px;
  color: #7a8f73;
  line-height: 1.8;
}
.login-story .eyebrow {
  color: #7b9172;
}
.story-line {
  height: 1px;
  width: 50px;
  background: #a5b99a;
  margin: 32px 0 20px;
}
.login-story small {
  color: #82977a;
  font-size: 11px;
}
.login-footer {
  font-size: 9px;
  color: #8ba080;
  letter-spacing: 1.8px;
}
.login-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: #fafcf8;
}
.login-card {
  max-width: 350px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.login-card h2 {
  font-size: 29px;
  letter-spacing: -1px;
  margin: -10px 0 -12px;
}
.login-card > p {
  font-size: 12px;
  margin-bottom: 6px;
}
.login-card > .muted {
  font-size: 10px;
  text-align: center;
}
.login-card .eyebrow {
  margin-bottom: 5px;
}
.connection-error {
  padding: 90px 30px;
  text-align: center;
}
.skeleton {
  height: 150px;
  background: #edf2e8;
  border-radius: 10px;
  animation: pulse 1s infinite alternate;
}
@keyframes pulse {
  to {
    opacity: 0.4;
  }
}
.status-select {
  max-width: 160px;
  font-size: 11px;
  padding: 8px;
}
.lead-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}
.task-table th,
.task-table td {
  white-space: normal;
}
.task-table .due {
  white-space: nowrap;
}
.log-detail {
  max-width: 380px;
  white-space: normal;
  line-height: 1.6;
}
.filter-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filter-tabs button {
  font-size: 12px;
  padding: 8px 14px;
  color: #7a8c72;
  border-radius: 6px;
}
.filter-tabs button.active {
  background: #e5efdf;
  color: #4f794a;
}
.spacer {
  flex: 1;
}
@media (min-width: 1600px) {
  main {
    padding-top: 44px;
  }
  .stat {
    padding: 26px;
  }
  .pipeline-chart {
    height: 180px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 210px;
    padding: 25px 13px 15px;
  }
  .main-shell {
    margin-left: 210px;
  }
  .topbar {
    padding: 0 25px;
    gap: 15px;
  }
  main {
    padding: 28px 25px 20px;
  }
  .today {
    display: none;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 17px;
  }
  .stat-top {
    font-size: 10px;
  }
  .stat strong {
    font-size: 30px;
  }
  .dashboard-grid {
    grid-template-columns: 1.35fr 1fr;
    gap: 14px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .app-footer {
    padding-left: 25px;
    padding-right: 25px;
  }
}
@media (max-width: 800px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 20px 0 40px #223e2b20;
  }
  .main-shell {
    margin-left: 0;
  }
  #mobile-menu {
    display: block;
  }
  .topbar {
    height: 65px;
    padding: 0 20px;
    gap: 13px;
  }
  .search-button {
    min-width: 0;
    font-size: 0;
    padding: 4px 10px;
  }
  .search-button kbd {
    display: none;
  }
  .search-button span {
    font-size: 22px;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading .actions {
    justify-content: flex-end;
  }
  .page-heading .actions .secondary {
    display: none;
  }
  h1 {
    font-size: 28px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .onboarding {
    align-items: flex-start;
  }
  .app-footer > span:last-child {
    display: none;
  }
  .login-layout {
    grid-template-columns: 1fr;
  }
  .login-story {
    display: none;
  }
  .login-side {
    padding: 35px 24px;
    min-height: 100vh;
  }
  .settings-grid {
    gap: 16px;
  }
  main {
    padding: 25px 20px;
  }
  .toolbar {
    gap: 8px;
    padding: 14px;
  }
  .toolbar input {
    flex: 1;
    min-width: 150px;
  }
  .toolbar select {
    max-width: 170px;
  }
  .toolbar .result-count {
    width: 100%;
    margin: 5px 0 0;
  }
  .card-head {
    padding: 19px;
  }
  .card-body {
    padding: 0 19px 19px;
  }
  .step-list {
    gap: 8px;
    font-size: 10px;
  }
  .step-line {
    width: 20px;
  }
  .drawer-content {
    padding: 20px;
  }
  .drawer-header {
    padding: 20px;
  }
  .onboarding {
    flex-direction: column;
  }
  .table-wrap {
    max-width: 100%;
  }
  td,
  th {
    padding-left: 16px;
    padding-right: 16px;
  }
  .upload-area {
    margin: 16px;
  }
  .form-grid {
    gap: 14px;
  }
  .settings-form {
    padding: 19px;
  }
}
@media (max-width: 430px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .span-two {
    grid-column: 1;
  }
  .page-heading .actions {
    flex-shrink: 0;
  }
  .page-heading .primary {
    padding: 10px 12px;
    font-size: 11px;
    white-space: nowrap;
  }
  .stat {
    padding: 15px;
  }
  .stat-icon {
    display: none;
  }
  .step-line {
    display: none;
  }
  .step-list {
    justify-content: space-between;
  }
  .drawer-footer {
    flex-wrap: wrap;
  }
  .mini-stats strong {
    font-size: 20px;
  }
}
