@charset "UTF-8";
.management-card {
  padding: 24px;
}
.management-card > .search-field {
  max-width: 520px;
  margin: 20px 0;
}
.management-card .section-heading p {
  max-width: 650px;
}
.management-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.manage-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  border: 1px solid #e0e8e4;
  border-radius: 11px;
  padding: 16px;
}
.manage-row h3 {
  font-size: 14px;
  margin: 0 0 5px;
  overflow-wrap: anywhere;
}
.manage-row p {
  font-size: 12px;
  color: #6f8378;
  margin: 0;
}
.manage-row-details {
  min-width: 0;
}
.manage-row .secondary {
  font-size: 12px;
  min-width: 74px;
}
.status-tag {
  font-size: 11px;
  padding: 6px 9px;
  border-radius: 6px;
  white-space: nowrap;
}
.is-active {
  background: #e6f5ed;
  color: #267151;
}
.is-inactive {
  background: #f2f0ee;
  color: #7c716b;
}
.assignment-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}
.assignment-tags > span {
  font-size: 11px;
  border: 1px solid #dde9e1;
  background: #f5f9f6;
  border-radius: 5px;
  padding: 4px 7px;
  color: #6b8875;
}
.assignment-tags .missing-assignment {
  color: #9e783e;
  background: #fff8ea;
  border-color: #eddfc1;
}
.management-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  border-radius: 9px;
  background: #f0f5f2;
  width: fit-content;
  margin: 18px 0;
}
.management-tabs button {
  background: none;
  border: 0;
  border-radius: 6px;
  padding: 10px 15px;
  font-size: 12px;
}
.management-tabs button.selected {
  background: #fff;
  box-shadow: 0 1px 5px #1f493b10;
  color: #267151;
}
#management-form fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
#management-form .form-grid {
  gap: 12px;
}
.management-active {
  display: flex !important;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 0;
}
.management-active input {
  width: 19px !important;
}
.assignment-picker {
  border: 1px solid #e0e9e2;
  border-radius: 10px;
  padding: 13px;
  margin: 18px 0;
}
.assignment-picker > label {
  margin-top: 0;
}
.assignment-tools {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.assignment-tools button {
  min-height: 44px;
}
.assignment-choice {
  display: flex !important;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid #e9eeea;
  margin: 0 !important;
  padding: 12px 3px;
  min-height: 48px;
  font-size: 12px;
}
.assignment-choice > input {
  width: 19px !important;
  flex-shrink: 0;
}
.assignment-choice small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #7c9485;
  margin-top: 5px;
}
#m-brick-options {
  max-height: 260px;
  overflow: auto;
}
.account-management-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
#management-status:empty {
  display: none;
}
.management-card .hint {
  font-size: 11px;
}
.manage-row .avatar {
  font-size: 11px;
}
.management-card > .section-heading {
  align-items: flex-start;
}
@media (max-width: 700px) {
  .management-card {
    padding: 17px;
  }
  .manage-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    padding: 13px;
  }
  .manage-row .status-tag {
    grid-column: 2;
  }
  .manage-row .secondary {
    grid-column: 3;
    grid-row: 1/3;
    min-width: 54px;
    padding: 10px;
  }
  .manage-row h3 {
    font-size: 13px;
  }
  .manage-row p {
    font-size: 11px;
  }
  .manage-row .avatar {
    width: 33px;
    height: 33px;
  }
  .management-card .section-heading > .primary {
    width: 100%;
  }
  .management-tabs {
    width: 100%;
  }
  .management-tabs button {
    flex: 1;
    font-size: 11px;
    padding: 10px;
  }
  .assignment-picker {
    padding: 11px;
  }
  .assignment-tools button {
    font-size: 10px;
  }
  .management-card .search-field input {
    font-size: 13px;
  }
  #management-form .form-grid {
    grid-template-columns: 1fr;
  }
  .manage-row .status-tag {
    width: fit-content;
  }
  .account-management-links {
    flex-direction: column;
  }
  .account-management-links button {
    width: 100%;
  }
}
.auth-layout {
  margin: auto !important;
  padding: 60px 20px;
  min-height: 100dvh;
  display: grid;
  place-items: center;
}
.auth-card {
  width: 100%;
  max-width: 430px;
  padding: 32px;
}
.auth-card .brand {
  margin-bottom: 35px;
}
.auth-brand {
  color: #17384e;
  font-size: 21px;
  font-weight: 700;
}
.auth-card h1 {
  margin: 15px 0;
}
.auth-card p {
  font-size: 13px;
  color: #688072;
}
.auth-card label {
  display: block;
  margin: 18px 0 7px;
}
.auth-card input {
  width: 100%;
  font-size: 16px;
}
.auth-card .field-error {
  color: #b5394d;
}
.role-label {
  font-size: 12px;
  padding: 10px;
  border: 1px solid #dce9e0;
  border-radius: 8px;
  color: #4a795f;
}
.draft-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  font-size: 10px;
  color: #557c66;
  line-height: 1.5;
}
.draft-summary:empty {
  display: none;
}
.draft-summary > span {
  border: 1px solid #dce8df;
  background: #f1f7f3;
  border-radius: 6px;
  padding: 5px 7px;
}
:root {
  font-family: Inter, 'Segoe UI', Tahoma, Arial, sans-serif;
  color: #213c4d;
  background: #f5f7fa;
  font-synthesis: none;
  --navy: #102d47;
  --cyan: #68d4e6;
  --muted: #647787;
  --line: #e4eaf0;
  --green: #168365;
  --shadow: 0 3px 14px #18385204;
  --radius: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button {
  min-height: 44px;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
input,
select,
textarea {
  max-width: 100%;
  min-width: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #2486ba;
  outline-offset: 3px;
}
input,
select,
textarea {
  border: 1px solid #dbe3e9;
  background: #fff;
  border-radius: 9px;
  padding: 11px 12px;
  min-height: 44px;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #168365;
}
input[aria-invalid='true'],
select[aria-invalid='true'],
textarea[aria-invalid='true'] {
  border-color: #bf394a;
}
input[type='checkbox'] {
  width: 19px;
  height: 19px;
  min-height: 19px;
  accent-color: var(--green);
  padding: 0;
}
label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h2 {
  font-size: 16px;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 14px;
}
p {
  line-height: 1.65;
}
svg {
  flex-shrink: 0;
  vertical-align: middle;
}
.icon {
  width: 20px;
  height: 20px;
}
.hidden,
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 10px;
  z-index: 1000;
  padding: 12px;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
}
.skip-link:focus {
  top: 8px;
}
.startup {
  padding: 40px;
}
.sidebar {
  width: 232px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--navy);
  color: #b8c9d7;
  padding: 30px 19px 16px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  height: 38px;
  width: 38px;
  border: 1px solid #487383;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #1a4057;
  font-size: 26px;
  font-weight: 800;
  color: var(--cyan);
  font-style: italic;
}
.brand-name {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: #fff;
}
.brand-name > span {
  color: var(--cyan);
}
.brand-name small {
  display: block;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 2.5px;
  line-height: 1.8;
  color: #b4c9d8;
}
.sidebar-label {
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #8ca6b9;
  margin: 43px 12px 15px;
}
.sidebar nav > .sidebar-label {
  margin-top: 30px;
}
.nav-item {
  background: none;
  border: 0;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border-radius: 9px;
  width: 100%;
  font-size: 13px;
  text-align: left;
  margin-bottom: 7px;
  position: relative;
}
.nav-item.active {
  background: #244860;
  color: #fff;
}
.sidebar .nav-item.active:before {
  content: '';
  position: absolute;
  width: 3px;
  height: 20px;
  background: var(--cyan);
  left: -19px;
  border-radius: 0 3px 3px 0;
}
.nav-item:hover {
  background: #ffffff0d;
}
.nav-item.active:hover {
  background: #244860;
}
.sidebar-bottom {
  margin-top: auto;
}
.sidebar-note {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: #dbe9f1;
  margin: 40px 13px;
}
.sidebar-note span {
  font-size: 11px;
  font-weight: 400;
  color: #91aabc;
}
.user-card {
  border-top: 1px solid #365065;
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  padding-top: 18px;
}
.avatar {
  width: 39px;
  height: 39px;
  background: #e3f1ec;
  color: #36806b;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}
.user-card .avatar {
  background: #31536c;
  color: #d6e7f1;
  width: 34px;
  height: 34px;
  font-size: 11px;
  border-radius: 50%;
}
.user-card strong {
  font-size: 11px;
  display: block;
  color: #eef5fa;
  font-weight: 500;
}
.user-card small {
  font-size: 9px;
  display: block;
  margin-top: 5px;
  color: #a2b9c9;
}
.demo-dot {
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  margin-left: auto;
}
.app-body {
  margin-left: 232px;
  min-width: 0;
}
.topbar {
  height: 77px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb span {
  margin: 0 12px;
  color: #b8c3cb;
}
.breadcrumb strong {
  font-weight: 500;
  color: #344c5f;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}
.demo-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #856327;
  background: #fcf4e4;
  padding: 7px 10px;
  border-radius: 7px;
  font-weight: 600;
}
.demo-badge > span {
  width: 5px;
  height: 5px;
  background: #bd923c;
  border-radius: 50%;
}
.icon-button {
  width: 44px;
  height: 44px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  color: #617887;
}
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 0;
  padding: 6px 0;
  color: #3c7168;
  font-size: 11px;
  font-weight: 600;
}
.text-button .icon {
  width: 15px;
  height: 15px;
}
.login-button {
  color: #4b6071;
  padding-left: 15px;
  border-left: 1px solid var(--line);
  border-radius: 0;
}
.mobile-brand {
  display: none;
}
main {
  max-width: 1640px;
  padding: 34px 34px 0;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 15px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #5e7c8b;
  font-weight: 700;
  display: block;
  margin-bottom: 9px;
}
h1 {
  font-size: 31px;
  font-weight: 650;
  letter-spacing: -1.1px;
  margin: 0 0 8px;
  color: #18374e;
}
.page-heading p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.today {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #4c6577;
}
.today > .icon {
  color: #7b8f9c;
  width: 17px;
}
.today small {
  display: block;
  text-align: right;
  font-size: 9px;
  color: #8496a3;
  margin-top: 6px;
}
.demo-notice {
  border: 1px solid #e4e9ed;
  background: #eef3f6;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  color: #617383;
  padding: 7px 12px;
  border-radius: 8px;
  margin-bottom: 21px;
  line-height: 1.6;
}
.demo-notice > .icon {
  width: 16px;
  height: 16px;
}
.demo-notice strong {
  font-weight: 600;
  color: #465f72;
}
.demo-notice .text-button {
  margin-left: auto;
  white-space: nowrap;
  min-height: 30px;
}
.territory-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.territory-control {
  display: flex;
  align-items: center;
  gap: 11px;
}
.territory-control > .icon {
  color: #168366;
  width: 20px;
  height: 20px;
}
.territory-control label {
  display: block;
  font-size: 8px;
  letter-spacing: 1.3px;
  color: #7f909d;
  margin-bottom: 1px;
}
.territory-control select {
  padding: 0 24px 0 0;
  background: none;
  border: 0;
  min-height: 31px;
  font-size: 12px;
  font-weight: 600;
  max-width: 320px;
}
.role-control {
  margin-left: auto;
  display: flex;
  gap: 9px;
  align-items: center;
}
.role-control label {
  font-size: 10px;
  color: #778894;
}
.role-control select {
  font-size: 11px;
  padding: 8px 10px;
  min-height: 40px;
  background: #fff;
}
.territory-bar > .icon-button {
  background: transparent;
  width: 40px;
  height: 40px;
  min-height: 44px;
  border: 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}
.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
}
.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.metric-label {
  font-size: 11px;
  font-weight: 500;
  color: #718391;
}
.metric-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #ebf3fc;
  color: #5b88ba;
}
.metric-icon .icon {
  width: 17px;
  height: 17px;
}
.metric strong {
  display: block;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.8px;
  margin: 11px 0 7px;
  color: #17384e;
  font-variant-numeric: tabular-nums;
}
.metric small {
  font-size: 9px;
  color: #7f919d;
}
.metric.green .metric-icon {
  background: #e5f5ee;
  color: #288d6d;
}
.metric.amber .metric-icon {
  background: #fff4e2;
  color: #b98d3c;
}
.metric.purple .metric-icon {
  background: #f0edfa;
  color: #8a71b7;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
  overflow: hidden;
}
.work-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.customer-panel {
  position: sticky;
  top: 20px;
}
.panel-heading {
  padding: 20px 18px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.panel-heading h2 {
  margin: 0 0 6px;
}
.panel-heading p {
  font-size: 10px;
  color: #8a99a3;
  margin: 0;
}
.count {
  display: inline-grid;
  place-items: center;
  padding: 3px 6px;
  min-width: 19px;
  border-radius: 5px;
  background: #edf2f5;
  font-size: 10px;
  color: #687f8e;
  margin-left: 5px;
  vertical-align: middle;
  letter-spacing: 0;
}
.add-customer {
  background: #eaf5ef;
  border-color: #dcefe5;
  color: #277b61;
  width: 35px;
  height: 35px;
  min-height: 44px;
}
.customer-switch {
  margin: 0 18px 15px;
  display: flex;
  padding: 3px;
  background: #f1f4f7;
  border-radius: 8px;
  gap: 4px;
}
.customer-switch button {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font-size: 10px;
  padding: 6px 7px;
  border-radius: 6px;
  color: #738798;
  white-space: nowrap;
}
.customer-switch button.selected {
  background: #fff;
  color: #2b4d61;
  box-shadow: 0 1px 4px #12304912;
}
.customer-switch button .icon {
  width: 13px;
  height: 13px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fafbfc;
}
.search-field:focus-within {
  outline: 2px solid #6baaa0;
  outline-offset: 2px;
}
.search-field > .icon {
  width: 15px;
  height: 15px;
  color: #8d9eaa;
}
.search-field input {
  background: transparent;
  border: 0;
  padding: 11px 0;
  width: 100%;
  font-size: 11px;
  outline: none !important;
  font-weight: 400;
}
.customer-panel > .search-field {
  margin: 0 18px 17px;
}
.directory-caption {
  display: flex;
  justify-content: space-between;
  font-size: 7px;
  letter-spacing: 1px;
  color: #97a7b0;
  padding: 0 18px 12px;
  gap: 5px;
}
.directory-caption .icon {
  width: 9px;
  height: 9px;
  margin-right: 2px;
}
.customer-list {
  padding: 0 8px 10px;
  max-height: 530px;
  overflow: auto;
}
.customer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  background: none;
  border-radius: 9px;
  padding: 14px 10px;
  width: 100%;
  text-align: left;
  min-height: 73px;
}
.customer-row:hover {
  background: #f6f9fa;
}
.customer-row.selected {
  background: #edf6f3;
  border-color: #d8eae2;
}
.customer-row-text {
  min-width: 0;
}
.customer-row strong {
  font-size: 11px;
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  font-weight: 600;
  letter-spacing: -0.1px;
}
.customer-row-text > span {
  font-size: 9px;
  display: block;
  color: #84949e;
  margin-top: 6px;
}
.customer-row .avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 10px;
}
.avatar.layer {
  background: #f0ecf8;
  color: #9073b1;
}
.avatar.trader {
  background: #fff1dd;
  color: #ae8748;
}
.avatar.breeder {
  background: #e8f1f9;
  color: #6d96b7;
}
.middle-dot {
  margin: 0 5px;
  color: #a9b6bd;
}
.selection-dot {
  width: 6px;
  height: 6px;
  min-width: 6px;
  background: #2a9170;
  border-radius: 50%;
  margin-left: auto;
}
.row-arrow {
  margin-left: auto;
  transform: rotate(180deg);
  width: 13px;
  color: #a3b3bd;
}
.directory-footer {
  border-top: 1px solid #edf1f4;
  padding: 16px;
  font-size: 9px;
  color: #8999a5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.directory-footer .icon {
  width: 11px;
  height: 11px;
}
.conversation-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 18px 23px;
  border-bottom: 1px solid #e7eeeb;
}
.conversation-heading > .avatar {
  width: 41px;
  height: 41px;
}
.conversation-person {
  min-width: 0;
}
.conversation-heading h2 {
  margin: 0 0 5px;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.conversation-heading p {
  font-size: 10px;
  color: #81948d;
  margin: 0;
}
.green-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #50a589;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.profile-button {
  margin-left: auto;
  border: 1px solid #e0e9e5;
  background: white;
  border-radius: 7px;
  font-size: 9px;
  white-space: nowrap;
  padding: 7px 10px;
  color: #568272;
  min-height: 44px;
}
.profile-button .icon {
  width: 12px;
  height: 12px;
  margin-left: 4px;
}
.conversation-meta {
  display: flex;
  justify-content: space-between;
  padding: 10px 23px;
  background: #fafcfb;
  gap: 7px;
  font-size: 9px;
  color: #8c9d96;
  border-bottom: 1px solid #e7eeeb;
}
.conversation-meta > span:first-child {
  color: #517e6d;
}
.conversation-meta .icon {
  width: 12px;
  height: 12px;
  margin-right: 4px;
}
.timeline {
  height: 365px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 15px 24px 22px;
  background-color: #f2f6f3;
  background-image: radial-gradient(#8aad9d16 0.8px, transparent 0.8px);
  background-size: 15px 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: #cddbd3 transparent;
}
.date-divider {
  text-align: center;
  display: flex;
  justify-content: center;
  padding: 2px 0 4px;
}
.date-divider > span {
  font-size: 8px;
  font-weight: 500;
  color: #869a8e;
  background: #e8eeea;
  padding: 5px 10px;
  border-radius: 5px;
}
.bubble {
  background: #fff;
  border: 1px solid #e0e8e1;
  border-radius: 0 11px 11px 11px;
  box-shadow: 0 2px 2px #274c3210;
  max-width: 88%;
  width: fit-content;
  padding: 12px 14px;
  align-self: flex-start;
  overflow-wrap: anywhere;
}
.bubble.visit {
  background: #e4f2e9;
  border-color: #d5e8dc;
  border-radius: 11px 0 11px 11px;
  align-self: flex-end;
}
.bubble-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #4c7e66;
  font-size: 9px;
}
.bubble-label > .icon {
  width: 13px;
  height: 13px;
}
.bubble-label strong {
  font-weight: 600;
}
.bubble p {
  font-size: 11px;
  white-space: pre-wrap;
  margin: 7px 0 9px;
  color: #3d5d4e;
  line-height: 1.75;
  unicode-bidi: plaintext;
}
.bubble p:dir(rtl) {
  font-family: 'Noto Nastaliq Urdu', 'Urdu Typesetting', Tahoma, sans-serif;
  font-size: 16px;
  line-height: 2;
}
.bubble-footer {
  font-size: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #7f9b8b;
  line-height: 1.5;
}
.bubble-footer > .icon,
.bubble-footer span .icon {
  width: 11px;
  height: 11px;
  margin-left: 3px;
}
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 10px;
}
.product-tags > span {
  border: 1px solid #c8e0d1;
  background: #d8ecdf;
  color: #5d896e;
  border-radius: 5px;
  padding: 4px 6px;
  font-size: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.product-tags .icon {
  width: 10px;
  height: 10px;
}
.transaction-amount {
  font-size: 18px;
  font-weight: 650;
  margin-top: 8px;
  letter-spacing: -0.4px;
  color: #315943;
}
.bubble.sale .bubble-label {
  color: #5b80a6;
}
.bubble.recovery .bubble-label {
  color: #a48246;
}
.bubble.followup {
  background: #fcfaf4;
  border-color: #ede8d9;
}
.bubble.followup .bubble-label {
  color: #99865c;
}
.bubble .tag {
  font-size: 7px;
  min-height: auto;
  margin-left: 5px;
  padding: 3px 5px;
}
.ledger-strip {
  display: flex;
  gap: 17px;
  flex-wrap: wrap;
  align-items: center;
  background: #fcfdfc;
  border-top: 1px solid #e7eeeb;
  border-bottom: 1px solid #e7eeeb;
  padding: 11px 23px;
  color: #8a9c92;
  font-size: 8px;
}
.ledger-strip strong {
  color: #648171;
  margin-left: 3px;
  font-weight: 600;
}
.ledger-strip small {
  flex-basis: 100%;
  font-size: 7px;
  margin-top: -9px;
  color: #99a69f;
}
.composer {
  padding: 16px 21px 12px;
}
.composer fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.compose-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.compose-label > label {
  font-size: 7px;
  letter-spacing: 1.3px;
  color: #81968d;
}
.compose-label .language-label {
  font-size: 8px;
  color: #7d958a;
  display: flex;
  gap: 6px;
  align-items: center;
  font-weight: 400;
}
.language-label select {
  border: 0;
  padding: 0 6px;
  background: #f1f6f3;
  border-radius: 5px;
  font-size: 10px;
  min-height: 32px;
  min-width: 60px;
  color: #46755f;
}
.compose-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 47px 47px;
  gap: 8px;
  align-items: end;
}
.compose-row textarea {
  background: #fdfefd;
  border-color: #dce6df;
  font-size: 11px;
  padding: 13px;
  min-height: 49px;
  max-height: 180px;
  resize: vertical;
  border-radius: 11px;
  line-height: 1.65;
  width: 100%;
}
.compose-row textarea[readonly] {
  background: #f3f7f4;
}
.mic-button,
.send-button {
  border-radius: 12px;
  width: 47px;
  height: 49px;
  display: grid;
  place-items: center;
}
.mic-button {
  background: #e8f5ee;
  border: 1px solid #b8dcc9;
  color: #348968;
}
.mic-button .icon {
  width: 22px;
  height: 22px;
}
.send-button {
  background: #168365;
  border: 1px solid #168365;
  color: #fff;
  box-shadow: 0 3px 8px #1683651c;
}
.send-button .icon {
  width: 20px;
  height: 20px;
}
.action-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.action-button {
  border: 1px solid #dfece4;
  background: #f5faf7;
  color: #54806a;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px;
  border-radius: 7px;
  font-size: 10px;
  min-height: 41px;
}
.action-button > .icon {
  width: 15px;
  height: 15px;
}
.action-button.sale {
  background: #f2f6fd;
  border-color: #e0e9f4;
  color: #6d8fb2;
}
.action-button.recovery {
  background: #fffbf2;
  border-color: #f0e8d8;
  color: #b19356;
}
.action-button.selected {
  border-color: currentColor;
  box-shadow: 0 0 0 1px currentColor inset;
}
.action-plus {
  width: 11px !important;
  height: 11px !important;
  margin-left: auto;
  opacity: 0.7;
}
.action-button > .icon:first-child {
  margin-left: auto;
}
.mini-count {
  font-size: 8px;
  border: 1px solid currentColor;
  border-radius: 50%;
  padding: 2px 4px;
}
.composer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
}
.composer-footer > label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  color: #8c9c94;
  white-space: nowrap;
  font-weight: 400;
}
.composer-footer input {
  border: 0;
  background: transparent;
  padding: 3px 0;
  font-size: 9px;
  min-height: 36px;
  width: 117px;
  color: #6b8478;
}
.composer-footer .text-button {
  font-size: 9px;
  color: #9aaa9f;
  font-weight: 400;
}
.save-status {
  font-size: 8px;
  margin: 0;
  color: #91a197;
  line-height: 1.7;
}
.voice-status {
  font-size: 8px;
  color: #8a9e92;
  margin: 6px 0 0;
  line-height: 1.7;
}
.field-error {
  display: block;
  color: #b5394d;
  font-size: 10px;
  line-height: 1.5;
  margin: 4px 0;
}
.field-error:empty {
  display: none;
}
.error {
  color: #b5394d !important;
}
.action-panel {
  padding: 15px;
  border: 1px solid #dfebe3;
  background: #fbfdfb;
  border-radius: 9px;
  margin-top: 12px;
}
.action-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.action-panel-title h3 {
  font-size: 12px;
  margin: 0;
}
.action-panel-title > span {
  font-size: 8px;
  color: #8a9e92;
}
.action-panel label:not(.search-field):not(.product-option) {
  display: block;
  font-size: 10px;
  margin: 11px 0 5px;
}
.action-panel .include-toggle {
  display: flex !important;
  align-items: center;
  gap: 5px !important;
  margin: 0 !important;
  font-size: 9px !important;
}
.action-panel input:not([type='checkbox']),
.action-panel select {
  font-size: 11px;
  width: 100%;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.action-panel .hint {
  font-size: 9px;
}
.product-options {
  max-height: 220px;
  overflow: auto;
  margin-top: 9px;
}
.product-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 3px;
  border-bottom: 1px solid #e9efeb;
  min-height: 48px;
  font-size: 11px;
  font-weight: 500;
}
.product-option:last-child {
  border: 0;
}
.product-option small {
  display: block;
  font-size: 9px;
  font-weight: 400;
  margin-top: 5px;
  color: #8ca094;
}
.conversation-empty {
  display: flex;
  min-height: 610px;
  padding: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  background: radial-gradient(ellipse at 50% 20%, #eaf5f0, transparent 65%);
}
.empty-illustration {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border: 1px solid #dbece3;
  border-radius: 24px;
  background: #eaf5ef;
  color: #5c9b7b;
  margin-bottom: 25px;
  box-shadow: 0 0 0 12px #f5f9f6;
}
.empty-illustration .icon {
  width: 34px;
  height: 34px;
}
.conversation-empty .eyebrow {
  font-size: 8px;
}
.conversation-empty h2 {
  font-size: 25px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.6px;
}
.conversation-empty p {
  font-size: 12px;
  color: #819389;
  max-width: 290px;
  margin-bottom: 22px;
}
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 9px;
  padding: 12px 17px;
  min-height: 44px;
  text-decoration: none;
}
.primary {
  background: var(--green);
  color: #fff;
  border: 1px solid var(--green);
}
.secondary {
  background: #f8fbf9;
  color: #4c7e69;
  border: 1px solid #d9e7df;
}
.primary .icon,
.secondary .icon {
  width: 16px;
  height: 16px;
}
.full-width {
  width: 100%;
  margin: 12px 0 0;
}
.empty-state {
  text-align: center;
  padding: 38px 18px;
  color: #8a9b92;
  font-size: 11px;
}
.empty-state > .icon {
  width: 26px;
  height: 26px;
  margin-bottom: 15px;
  color: #99b7a5;
}
.empty-state h3 {
  font-weight: 600;
  color: #547460;
  font-size: 13px;
}
.empty-state p {
  font-size: 11px;
  margin-bottom: 12px;
}
.empty-state button {
  font-size: 10px;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  color: #9aa8b2;
  font-size: 8px;
  margin: 24px 0 0;
  padding-bottom: 21px;
}
.footer-dot {
  margin: 0 5px;
}
.mobile-nav,
.back-customers {
  display: none;
}
.skeleton {
  color: transparent !important;
  position: relative;
  overflow: hidden;
  background: #edf1f0;
  border-radius: 6px;
}
.skeleton:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, #ffffffaa, transparent);
  animation: shimmer 1.4s linear infinite;
  transform: translateX(-100%);
}
.metric strong.skeleton {
  width: 75%;
  height: 34px;
}
.directory-loading {
  padding: 0 18px 25px;
}
.skeleton-row {
  height: 58px;
  margin-bottom: 14px;
}
.bubble-skeleton {
  height: 120px;
  width: 83%;
  align-self: flex-end;
  flex-shrink: 0;
}
.bubble-skeleton.short {
  height: 75px;
  width: 65%;
  align-self: flex-start;
}
.inline-error {
  color: #af3b4e;
  background: #fff1f1;
  border: 1px solid #f2d9df;
  font-size: 11px;
  padding: 10px 15px;
  border-radius: 8px;
  margin: 0 0 18px;
}
.inline-error .text-button {
  color: #af3b4e;
  margin-left: 10px;
}
dialog {
  border: 1px solid #dee8e3;
  border-radius: 18px;
  padding: 26px;
  max-width: 480px;
  width: calc(100% - 28px);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  color: #284b3d;
  box-shadow: 0 20px 90px #102d4733;
}
dialog::backdrop {
  background: #102d4780;
  backdrop-filter: blur(4px);
}
dialog p {
  font-size: 12px;
}
dialog label {
  display: block;
  margin: 15px 0 6px;
  font-size: 11px;
}
dialog input:not([type='checkbox']),
dialog select {
  display: block;
  width: 100%;
  font-size: 12px;
}
dialog .modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
dialog h2 {
  font-size: 20px;
  margin: 0;
}
.modal-heading > .icon-button {
  border: 0;
}
.hint {
  font-size: 11px;
  color: #85968b;
  line-height: 1.65;
}
.backend-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f6f0e3;
  color: #94753d;
  font-size: 11px;
  border-radius: 8px;
  padding: 13px;
  margin: 16px 0;
}
.backend-notice .icon {
  width: 16px;
  height: 16px;
}
.profile-details {
  font-size: 12px;
}
.profile-details > div {
  padding: 13px 0;
  border-bottom: 1px solid #e7eee9;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}
.profile-details dt {
  color: #83958b;
}
.profile-details dd {
  text-align: right;
  overflow-wrap: anywhere;
  max-width: 70%;
  margin: 0;
}
.tool-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: calc(50% + 100px);
  transform: translateX(-50%);
  background: #183e31;
  color: #fff;
  border: 1px solid #3b7057;
  border-radius: 10px;
  padding: 14px 20px;
  box-shadow: 0 8px 30px #0c251b30;
  z-index: 100;
  font-size: 12px;
  max-width: calc(100vw - 30px);
  line-height: 1.6;
  width: max-content;
}
.voice-state {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fdefef;
  border: 1px solid #f4d5db;
  color: #b83a50;
  font-size: 10px;
  padding: 7px 12px;
  border-radius: 8px;
  margin: 10px 0;
}
.voice-state .text-button {
  margin-left: auto;
  color: #b83a50;
  min-height: 30px;
}
.record-dot {
  width: 6px;
  height: 6px;
  background: #d7435a;
  border-radius: 50%;
  animation: pulse 1s infinite;
}
.voice-bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
}
.voice-bars i {
  height: 5px;
  width: 2px;
  background: #c64058;
  border-radius: 3px;
  animation: wave 0.65s ease-in-out infinite alternate;
}
.voice-bars i:nth-child(2) {
  animation-delay: 0.15s;
}
.voice-bars i:nth-child(3) {
  animation-delay: 0.3s;
}
.voice-bars i:nth-child(4) {
  animation-delay: 0.45s;
}
.voice-bars i:nth-child(5) {
  animation-delay: 0.6s;
}
.mic-button.listening {
  background: #cd3e57;
  color: white;
  border-color: #cd3e57;
  animation: pulse 1.2s infinite;
}
.catalogue,
.report-card {
  padding: 24px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.section-heading h2 {
  margin-bottom: 6px;
}
.section-heading p {
  font-size: 11px;
  color: #8b9a94;
  margin: 0;
}
.tag {
  background: #edf5f0;
  border: 1px solid #deebe3;
  border-radius: 5px;
  display: inline-block;
  padding: 5px 7px;
  color: #729180;
  font-size: 9px;
}
.catalogue > .search-field {
  max-width: 420px;
  margin-bottom: 25px;
}
.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.catalogue-card {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 18px;
}
.catalogue-art {
  display: grid;
  place-items: center;
  height: 95px;
  background: #f0f6f2;
  color: #6a9b80;
  margin-bottom: 18px;
  border-radius: 8px;
}
.catalogue-art .icon {
  width: 40px;
  height: 40px;
}
.catalogue-card h3 {
  margin: 12px 0 6px;
  font-size: 14px;
}
.catalogue-card p {
  font-size: 11px;
  color: #7d9385;
  margin-bottom: 12px;
}
.catalogue-card small {
  font-size: 8px;
  color: #9baba1;
}
.report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  margin: 30px 0;
}
.report-value {
  font-size: 48px;
  letter-spacing: -2px;
  color: #2c7354;
  margin-bottom: 17px;
}
.progress-track {
  height: 8px;
  background: #edf2ee;
  border-radius: 4px;
  overflow: hidden;
}
.progress-track > span {
  display: block;
  height: 100%;
  background: #56a47b;
  border-radius: 4px;
}
.report-grid p {
  font-size: 11px;
  color: #85998b;
  margin-top: 12px;
}
.report-note {
  background: #f1f6f2;
  padding: 22px;
  border-radius: 12px;
}
.report-note h3 {
  font-size: 17px;
  font-weight: 500;
}
.report-note .secondary {
  font-size: 10px;
}
.admin-placeholder {
  padding: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 420px;
}
.admin-placeholder h2 {
  font-size: 25px;
  margin: 25px 0 13px;
}
.admin-placeholder p {
  font-size: 12px;
  color: #7d9485;
  max-width: 480px;
}
.placeholder-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}
.placeholder-fields span {
  border: 1px dashed #cbded1;
  border-radius: 7px;
  padding: 13px 18px;
  font-size: 11px;
  color: #91a698;
}
@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 5px #cc3e5720;
  }
}
@keyframes wave {
  to {
    height: 17px;
  }
}
@media (min-width: 1500px) {
  main {
    padding: 38px 48px 0;
  }
  .work-grid {
    grid-template-columns: 325px minmax(0, 1fr);
  }
  .timeline {
    height: 430px;
  }
  .customer-row strong {
    font-size: 12px;
  }
  .bubble p {
    font-size: 12px;
  }
  .bubble-footer {
    font-size: 8px;
  }
  .metric strong {
    font-size: 32px;
  }
  .metric-label {
    font-size: 12px;
  }
}
@media (max-width: 1190px) {
  .sidebar {
    width: 200px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .sidebar .nav-item.active:before {
    left: -15px;
  }
  .brand-name {
    font-size: 20px;
  }
  .brand-mark {
    height: 34px;
    width: 34px;
  }
  .app-body {
    margin-left: 200px;
  }
  .topbar {
    padding: 0 24px;
  }
  main {
    padding: 28px 24px 0;
  }
  .work-grid {
    grid-template-columns: 265px minmax(0, 1fr);
    gap: 16px;
  }
  .metric {
    padding: 14px;
  }
  .metrics {
    gap: 10px;
  }
  .metric strong {
    font-size: 25px;
  }
  .conversation-heading {
    padding: 16px;
  }
  .conversation-person h2 {
    font-size: 12px;
  }
  .profile-button {
    font-size: 8px;
    padding: 6px;
  }
  .profile-button .icon {
    display: none;
  }
  .timeline {
    padding: 15px 16px;
  }
  .composer {
    padding: 14px;
  }
  .ledger-strip {
    padding: 10px 16px;
    gap: 12px;
  }
  .catalogue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .today {
    font-size: 10px;
  }
  .page-heading p {
    font-size: 11px;
  }
}
@media (max-width: 1000px) {
  .sidebar {
    width: 76px;
    padding: 25px 12px 15px;
    align-items: center;
  }
  .sidebar .brand-name,
  .sidebar-label,
  .sidebar .nav-item > span,
  .sidebar-note,
  .user-card > div,
  .user-card > .demo-dot {
    display: none;
  }
  .sidebar nav {
    margin-top: 35px;
    width: 100%;
  }
  .sidebar .nav-item {
    justify-content: center;
    padding: 12px;
    margin-bottom: 10px;
  }
  .sidebar .nav-item.active:before {
    left: -12px;
  }
  .sidebar-bottom {
    width: 100%;
  }
  .user-card {
    justify-content: center;
  }
  .app-body {
    margin-left: 76px;
  }
  .work-grid {
    grid-template-columns: 255px minmax(0, 1fr);
  }
  .role-control select {
    max-width: 190px;
  }
  .territory-control select {
    max-width: 260px;
  }
  .toast {
    left: calc(50% + 38px);
  }
}
@media (max-width: 800px) {
  main {
    padding: 24px 18px 0;
  }
  .topbar {
    height: 65px;
    padding: 0 18px;
  }
  .work-grid {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 12px;
  }
  .customer-switch {
    margin: 0 12px 12px;
  }
  .customer-panel > .search-field {
    margin: 0 12px 15px;
  }
  .panel-heading {
    padding: 18px 12px 12px;
  }
  .panel-heading p {
    font-size: 9px;
  }
  .customer-row {
    gap: 7px;
    padding: 12px 7px;
  }
  .customer-row strong {
    font-size: 10px;
  }
  .customer-row .avatar {
    width: 31px;
    height: 31px;
  }
  .customer-row-text > span {
    font-size: 8px;
  }
  .directory-caption {
    padding: 0 12px 12px;
    font-size: 6px;
  }
  .conversation-heading {
    gap: 8px;
    padding: 14px 12px;
  }
  .conversation-heading > .avatar {
    width: 32px;
    height: 32px;
    font-size: 10px;
  }
  .profile-button {
    padding: 4px 6px;
  }
  .conversation-meta {
    padding: 9px 12px;
    font-size: 8px;
  }
  .timeline {
    padding: 13px 12px;
    height: 360px;
  }
  .bubble {
    max-width: 96%;
    padding: 10px;
  }
  .bubble p {
    font-size: 10px;
  }
  .bubble-footer {
    font-size: 6px;
  }
  .composer {
    padding: 12px;
  }
  .compose-row {
    grid-template-columns: minmax(0, 1fr) 44px 44px;
    gap: 6px;
  }
  .mic-button,
  .send-button {
    width: 44px;
    height: 47px;
  }
  .compose-row textarea {
    font-size: 10px;
    padding: 10px;
  }
  .action-button {
    font-size: 9px;
    gap: 4px;
    padding: 6px 4px;
    min-height: 44px;
  }
  .action-button > .icon {
    width: 13px;
    height: 13px;
  }
  .action-plus {
    display: none;
  }
  .action-button > .icon:first-child {
    margin-left: 0;
  }
  .metric-label {
    font-size: 10px;
  }
  .metric-icon {
    width: 27px;
    height: 27px;
  }
  .metric strong {
    font-size: 23px;
  }
  .metric small {
    font-size: 8px;
  }
  .role-control label {
    display: none;
  }
  .territory-control select {
    max-width: 245px;
  }
  .role-control select {
    max-width: 160px;
    font-size: 10px;
  }
  .territory-bar {
    gap: 8px;
  }
  .territory-control {
    gap: 8px;
  }
  .today {
    display: none;
  }
  .demo-notice {
    font-size: 9px;
  }
  .demo-notice .text-button {
    font-size: 9px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .action-panel {
    padding: 11px;
  }
}
@media (max-width: 700px) {
  .sidebar {
    display: none;
  }
  .app-body {
    margin: 0;
  }
  .mobile-brand {
    display: flex;
  }
  .mobile-brand .brand-name {
    font-size: 19px;
    color: var(--navy);
  }
  .mobile-brand .brand-name > span {
    color: #2099ae;
  }
  .mobile-brand .brand-name small {
    font-size: 6px;
    color: #718a9a;
    letter-spacing: 1.6px;
  }
  .mobile-brand .brand-mark {
    width: 31px;
    height: 33px;
    font-size: 21px;
    border-radius: 9px;
  }
  .breadcrumb {
    display: none;
  }
  .topbar {
    height: 65px;
    padding: 0 17px;
    gap: 8px;
  }
  .top-actions {
    gap: 9px;
  }
  .top-actions > .icon-button {
    display: none;
  }
  .demo-badge {
    font-size: 8px;
    padding: 6px 7px;
    gap: 5px;
  }
  .login-button {
    padding-left: 10px;
    min-width: 36px;
    min-height: 44px;
  }
  .login-button > span {
    display: none;
  }
  .login-button .icon {
    width: 17px;
    height: 17px;
  }
  main {
    padding: 23px 16px 86px;
  }
  .page-heading {
    margin-bottom: 17px;
  }
  .page-heading .eyebrow {
    font-size: 7px;
    letter-spacing: 1.5px;
    margin-bottom: 9px;
  }
  h1 {
    font-size: 27px;
    margin-bottom: 7px;
    letter-spacing: -0.8px;
  }
  .page-heading p {
    font-size: 10px;
  }
  .demo-notice {
    font-size: 9px;
    padding: 9px 10px;
    line-height: 1.6;
    margin-bottom: 17px;
  }
  .demo-notice .text-button {
    display: none;
  }
  .territory-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-bottom: 17px;
  }
  .territory-control {
    min-width: 0;
  }
  .territory-control > div {
    min-width: 0;
  }
  .territory-control select {
    max-width: 100%;
    font-size: 11px;
    width: 100%;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .territory-control > .icon {
    width: 17px;
    height: 17px;
  }
  .territory-control label {
    font-size: 7px;
  }
  .role-control {
    grid-row: 2;
    grid-column: 1/-1;
    margin: 0;
    justify-content: flex-start;
    gap: 8px;
  }
  .role-control label {
    display: block;
    font-size: 9px;
  }
  .role-control select {
    max-width: none;
    min-height: 44px;
    font-size: 10px;
    border-radius: 7px;
    padding: 6px 8px;
  }
  .territory-bar > .icon-button {
    grid-row: 1;
    grid-column: 2;
    min-height: 44px;
    width: 44px;
    height: 44px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 19px;
  }
  .metric {
    padding: 14px 15px;
    border-radius: 11px;
  }
  .metric-label {
    font-size: 10px;
  }
  .metric-icon {
    width: 28px;
    height: 28px;
  }
  .metric strong {
    font-size: 27px;
    margin: 8px 0 5px;
  }
  .metric small {
    font-size: 8px;
  }
  .work-grid {
    display: block;
  }
  .customer-panel {
    position: static;
  }
  .panel-heading {
    padding: 18px;
  }
  .panel-heading h2 {
    font-size: 16px;
  }
  .panel-heading p {
    font-size: 10px;
  }
  .customer-switch {
    margin: 0 18px 14px;
  }
  .customer-switch button {
    font-size: 11px;
  }
  .customer-panel > .search-field {
    margin: 0 18px 17px;
  }
  .directory-caption {
    font-size: 7px;
    padding: 0 18px 12px;
  }
  .customer-list {
    padding: 0 10px 12px;
    max-height: none;
  }
  .customer-row {
    padding: 15px 10px;
    gap: 12px;
    min-height: 78px;
  }
  .customer-row strong {
    font-size: 12px;
  }
  .customer-row-text > span {
    font-size: 10px;
  }
  .customer-row .avatar {
    width: 40px;
    height: 40px;
    font-size: 12px;
  }
  .directory-footer {
    font-size: 9px;
    padding: 18px;
  }
  .conversation {
    display: none;
  }
  .show-chat .customer-panel {
    display: none;
  }
  .show-chat .conversation {
    display: block;
    scroll-margin-top: 10px;
  }
  .back-customers {
    display: inline-flex;
    width: 32px;
    min-width: 32px;
    border: 0;
    min-height: 44px;
    margin-left: -6px;
  }
  .conversation-heading {
    padding: 15px 12px;
    gap: 7px;
  }
  .conversation-heading h2 {
    font-size: 12px;
  }
  .conversation-heading p {
    font-size: 9px;
  }
  .conversation-heading > .avatar {
    width: 34px;
    height: 34px;
    font-size: 11px;
  }
  .profile-button {
    font-size: 8px;
    padding: 6px;
    min-height: 44px;
  }
  .conversation-meta {
    font-size: 8px;
    padding: 10px 13px;
  }
  .timeline {
    height: 340px;
    max-height: 55dvh;
    min-height: 220px;
    padding: 15px 13px;
  }
  .bubble {
    max-width: 93%;
    padding: 12px;
  }
  .bubble p {
    font-size: 11px;
  }
  .bubble-footer {
    font-size: 7px;
  }
  .bubble-label {
    font-size: 9px;
  }
  .product-tags > span {
    font-size: 8px;
  }
  .ledger-strip {
    padding: 11px 13px;
    gap: 10px;
    font-size: 8px;
  }
  .ledger-strip small {
    font-size: 7px;
    line-height: 1.5;
  }
  .composer {
    padding: 14px 12px 10px;
    position: sticky;
    bottom: calc(64px + env(safe-area-inset-bottom));
    background: white;
  }
  .compose-label > label {
    font-size: 7px;
  }
  .compose-row {
    grid-template-columns: minmax(0, 1fr) 46px 46px;
    gap: 6px;
  }
  .mic-button,
  .send-button {
    width: 46px;
    height: 49px;
  }
  .compose-row textarea {
    font-size: 12px;
    min-height: 49px;
    padding: 11px;
  }
  .action-buttons {
    gap: 7px;
  }
  .action-button {
    font-size: 10px;
    min-height: 44px;
    gap: 6px;
  }
  .action-button > .icon {
    width: 15px;
    height: 15px;
  }
  .voice-status {
    font-size: 8px;
    line-height: 1.8;
  }
  .composer-footer label,
  .composer-footer input,
  .composer-footer .text-button {
    font-size: 9px;
  }
  .save-status {
    font-size: 8px;
  }
  .composer-footer input {
    width: 115px;
    min-height: 44px;
  }
  .mobile-nav {
    position: fixed;
    inset: auto 0 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 30;
    background: #fff;
    border-top: 1px solid #e3ebe6;
    padding: 6px 8px calc(7px + env(safe-area-inset-bottom));
    box-shadow: 0 -3px 12px #1a4b2f05;
    gap: 4px;
  }
  .mobile-nav .nav-item {
    margin: 0;
    flex-direction: column;
    gap: 5px;
    width: auto;
    flex: 1;
    padding: 8px 3px;
    font-size: 8px;
    min-height: 47px;
    min-width: 0;
    color: #85968d;
    border-radius: 8px;
    text-align: center;
  }
  .mobile-nav .nav-item.active {
    background: #edf6f0;
    color: #2b805b;
  }
  .mobile-nav .nav-item .icon {
    width: 19px;
    height: 19px;
  }
  .page-footer {
    font-size: 7px;
    gap: 10px;
    line-height: 1.5;
    margin-top: 20px;
  }
  .toast {
    left: 50%;
    bottom: calc(82px + env(safe-area-inset-bottom));
    font-size: 11px;
    max-width: calc(100vw - 24px);
    width: calc(100vw - 24px);
  }
  dialog {
    padding: 21px;
    max-height: calc(100dvh - 26px);
  }
  dialog .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .action-panel .form-grid {
    grid-template-columns: 1fr;
  }
  .action-panel input:not([type='checkbox']),
  .action-panel select {
    font-size: 12px;
  }
  .action-panel-title h3 {
    font-size: 12px;
  }
  .product-option {
    font-size: 11px;
  }
  .catalogue,
  .report-card {
    padding: 19px;
  }
  .catalogue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .catalogue-card {
    padding: 12px;
  }
  .catalogue-card h3 {
    font-size: 12px;
    line-height: 1.5;
  }
  .catalogue-art {
    height: 85px;
  }
  .catalogue-card .tag {
    font-size: 8px;
    padding: 4px 5px;
  }
  .catalogue-card small {
    font-size: 7px;
  }
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .report-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .admin-placeholder {
    padding: 35px 20px;
  }
  .admin-placeholder h2 {
    font-size: 21px;
  }
  .admin-placeholder p {
    font-size: 11px;
  }
  .placeholder-fields span {
    padding: 10px;
    font-size: 10px;
  }
  .conversation-empty {
    min-height: 400px;
    padding: 30px 20px;
  }
  .conversation-empty h2 {
    font-size: 23px;
  }
}
/* Reading and touch comfort take precedence over compact desktop density. */
.metric-label {
  font-size: 12px;
}
.metric small {
  font-size: 10px;
}
.bubble p {
  font-size: 13px;
}
.bubble-label {
  font-size: 11px;
}
.bubble-footer {
  font-size: 9px;
}
.conversation-meta {
  font-size: 10px;
}
.compose-row textarea {
  font-size: 13px;
}
.action-button {
  font-size: 12px;
  min-height: 44px;
}
.voice-status,
.save-status {
  font-size: 10px;
}
.language-label select {
  min-height: 44px;
}
.customer-row strong {
  font-size: 12px;
}
.customer-row-text > span {
  font-size: 10px;
}
.ledger-strip {
  font-size: 10px;
}
.ledger-strip small {
  font-size: 9px;
}
.composer-footer > label,
.composer-footer input,
.composer-footer .text-button {
  font-size: 10px;
}
@media (max-width: 700px) {
  .metric small {
    font-size: 10px;
  }
  .metric-label {
    font-size: 12px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .demo-notice {
    font-size: 11px;
  }
  .territory-control label {
    font-size: 9px;
  }
  .territory-control select {
    font-size: 13px;
    min-height: 44px;
  }
  .role-control label {
    font-size: 11px;
  }
  .role-control select {
    font-size: 12px;
  }
  .customer-row strong {
    font-size: 14px;
  }
  .customer-row-text > span {
    font-size: 12px;
  }
  .customer-switch button {
    font-size: 12px;
  }
  .search-field input {
    font-size: 13px;
  }
  .panel-heading p {
    font-size: 12px;
  }
  .conversation-heading h2 {
    font-size: 13px;
  }
  .conversation-heading p {
    font-size: 11px;
  }
  .profile-button {
    font-size: 10px;
  }
  .conversation-meta {
    font-size: 10px;
    flex-wrap: wrap;
  }
  .bubble p {
    font-size: 14px;
  }
  .bubble-label {
    font-size: 11px;
  }
  .bubble-footer {
    font-size: 9px;
  }
  .product-tags > span {
    font-size: 10px;
  }
  .date-divider > span {
    font-size: 10px;
  }
  .compose-row textarea {
    font-size: 14px;
  }
  .compose-label > label {
    font-size: 9px;
  }
  .compose-label .language-label {
    font-size: 10px;
  }
  .language-label select {
    font-size: 12px;
  }
  .action-button {
    font-size: 12px;
  }
  .composer {
    position: relative;
    bottom: auto;
  }
  .composer-footer > label,
  .composer-footer input,
  .composer-footer .text-button {
    font-size: 10px;
  }
  .composer-footer input {
    width: 120px;
  }
  .action-panel input:not([type='checkbox']),
  .action-panel select {
    font-size: 14px;
  }
  .action-panel label:not(.search-field):not(.product-option) {
    font-size: 12px;
  }
  .product-option {
    font-size: 13px;
  }
  .product-option small {
    font-size: 11px;
  }
  .save-status,
  .voice-status {
    font-size: 11px;
  }
  .ledger-strip {
    font-size: 10px;
    gap: 8px 12px;
  }
  .ledger-strip small {
    font-size: 9px;
    margin-top: 0;
  }
  .form-grid {
    gap: 10px;
  }
  dialog input:not([type='checkbox']),
  dialog select {
    font-size: 16px;
  }
  dialog label {
    font-size: 12px;
  }
  .catalogue-card h3 {
    font-size: 14px;
  }
  .catalogue-card p {
    font-size: 12px;
  }
  .catalogue-card small {
    font-size: 10px;
  }
  .mobile-nav .nav-item {
    font-size: 9px;
  }
}
@media (max-width: 370px) {
  .conversation-heading {
    gap: 5px;
    padding: 12px 8px;
  }
  .conversation-heading > .avatar {
    width: 28px;
    height: 31px;
    font-size: 9px;
  }
  .conversation-heading h2 {
    font-size: 12px;
  }
  .profile-button {
    font-size: 9px;
  }
  .conversation-heading p {
    font-size: 10px;
  }
  .topbar {
    padding: 0 12px;
  }
  .demo-badge {
    font-size: 7px;
  }
  .top-actions {
    gap: 6px;
  }
  .metric {
    padding: 13px;
  }
  .metric strong {
    font-size: 25px;
  }
  .composer-footer {
    flex-wrap: wrap;
  }
  .composer-footer > label {
    flex: 1;
  }
  .composer-footer input {
    max-width: 115px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Additive management/report controls retain the approved workspace layout. */
.report-filters fieldset {
  border: 0;
  padding: 0;
  min-width: 0;
  margin: 20px 0;
}
.report-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.report-filter-grid > div {
  min-width: 0;
}
.report-filter-grid input,
.report-filter-grid select {
  width: 100%;
  min-width: 0;
}
.report-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.report-totals {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.report-totals article {
  border: 1px solid var(--line, #dfe7ec);
  border-radius: 14px;
  padding: 14px;
  min-width: 0;
}
.report-totals small,
.report-totals strong {
  display: block;
  overflow-wrap: anywhere;
}
.report-totals strong {
  font-size: 22px;
  margin-top: 8px;
}
.report-activity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line, #dfe7ec);
  overflow-wrap: anywhere;
}
.report-activity time {
  display: inline-block;
  margin-left: 10px;
  font-size: 12px;
}
.report-activity h3 {
  margin: 8px 0;
}
.report-activity p {
  margin: 4px 0;
  font-size: 13px;
}
.report-activity .text-button {
  text-align: left;
  white-space: normal;
}
.initial-setup-button {
  margin: 0 0 16px;
}
.initial-setup-list {
  max-height: 260px;
  overflow-y: auto;
  padding: 4px 12px;
  background: #f4f8fa;
  border-radius: 12px;
}
.bubble p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.action-buttons {
  flex-wrap: wrap;
}
.action-panel textarea {
  width: 100%;
  min-width: 0;
}
@media (min-width: 1200px) {
  .metrics:has(.metric:nth-child(5)) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 1000px) {
  .report-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .report-totals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .report-activity {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
}
@media (max-width: 430px) {
  .report-filter-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .report-totals article {
    padding: 10px;
  }
  .report-totals strong {
    font-size: 18px;
  }
  .report-filter-actions > button {
    flex: 1 1 100%;
  }
}
