:root {
  color-scheme: light;
  --ink: #172f2c;
  --muted: #526560;
  --paper: #f5f5ee;
  --line: #dce1d9;
  --green: #245849;
  --orange: #da8157;
  --font: "DM Sans", "Segoe UI", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font: 15px/1.5 var(--font);
  color: var(--ink);
  background: var(--paper);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  color: inherit;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #dd895b;
  outline-offset: 3px;
}
a {
  color: var(--green);
  font-weight: 650;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(32px, 3.6vw, 54px);
  font-weight: 650;
  line-height: 1.07;
  letter-spacing: -0.055em;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.035em;
  line-height: 1.2;
}
h3 {
  margin: 18px 0 8px;
}
small {
  font-size: 12px;
}
svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
button {
  border: 0;
}
label {
  display: grid;
  gap: 6px;
  font-weight: 620;
  font-size: 13px;
}
input,
select,
textarea {
  min-width: 0;
  width: 100%;
  background: white;
  color: var(--ink);
  border: 1px solid #cbd2ca;
  border-radius: 8px;
  padding: 10px 11px;
}
input[type="color"] {
  height: 42px;
  padding: 4px;
}
button.primary,
.btn {
  min-height: 38px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  font-weight: 650;
  font-size: 13px;
}
.primary {
  background: var(--green);
  color: white;
}
.primary:hover {
  background: #173e33;
}
.btn {
  background: #fcfcf7;
  border: 1px solid var(--line);
}
.btn:hover {
  background: #e8eee6;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 27px;
  letter-spacing: 0.09em;
  font-weight: 760;
  color: #f4f5e9;
  line-height: 1;
}
.wordmark i {
  width: 29px;
  height: 29px;
  display: flex;
  align-items: center;
  gap: 3px;
  transform: skew(-16deg);
}
.wordmark i b {
  display: block;
  width: 7px;
  background: #e49a70;
}
.wordmark i b:nth-child(1) {
  height: 13px;
}
.wordmark i b:nth-child(2) {
  height: 23px;
}
.wordmark i b:nth-child(3) {
  height: 29px;
}
.welcome {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.12fr 1fr;
}
.welcome-art {
  padding: clamp(32px, 6vw, 110px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #e2eee4;
  background: #183a32;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 58px;
}
.welcome-art:before,
.welcome-art:after,
.art-lines {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid #a0b5934f;
  border-radius: 50%;
  width: 84%;
  aspect-ratio: 1;
  right: -38%;
  bottom: -24%;
  box-shadow:
    0 0 0 20px #193d32,
    0 0 0 21px #b7ba8d55,
    0 0 0 44px #193d32,
    0 0 0 45px #b7ba8d50,
    0 0 0 72px #193d32,
    0 0 0 73px #b7ba8d50,
    0 0 0 104px #193d32,
    0 0 0 105px #b7ba8d50,
    0 0 0 144px #193d32,
    0 0 0 145px #b7ba8d50;
}
.welcome-art:after,
.art-lines {
  display: none;
}
.welcome-title h1 {
  font-size: clamp(50px, 5.8vw, 100px);
  margin: 16px 0 20px;
  font-weight: 550;
}
.welcome-title h1 span {
  color: #e49a70;
}
.welcome-title > span,
.welcome-art > small {
  letter-spacing: 0.06em;
  color: #c5d6c9;
}
.welcome-title p {
  max-width: 300px;
  font-size: 17px;
}
.loginbox {
  display: grid;
  place-items: center;
  padding: 36px;
}
.login-inner {
  width: min(360px, 100%);
}
.login-inner h2 {
  font-size: 30px;
  margin-bottom: 26px;
}
.login-inner form,
.modal-head + form,
dialog form {
  display: grid;
  gap: 15px;
}
.login-inner button {
  width: 100%;
}
.demo-option {
  display: grid;
  gap: 9px;
  text-align: center;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.demo-option small,
.muted,
.pagehead p,
.metric small,
.datarow small,
.leadrow small {
  color: var(--muted);
}
.layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100svh;
}
.layout aside {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  background: #19352e;
  color: #dfe9df;
  padding: 30px 14px 16px;
  z-index: 2;
}
.layout aside .wordmark {
  margin: 2px 14px 46px;
}
.navcaption {
  margin: 0 13px 12px;
  color: #b0c5b8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
}
.navitem {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 3px 0;
  padding: 12px 13px;
  text-align: left;
  color: #d5e3d7;
  background: transparent;
  border-radius: 8px;
  font-size: 14px;
}
.navitem:hover,
.navitem.active {
  background: #315346;
  color: white;
}
.navitem.active {
  box-shadow: inset 3px 0 #eba276;
}
.sidefoot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 18px 6px 0;
  border-top: 1px solid #3b5547;
}
.userdot,
.avatar,
.brandlogo {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 720;
}
.userdot {
  border-radius: 50%;
  background: #d6b499;
  color: #332c24;
  width: 34px;
  height: 34px;
}
.sidefoot small,
.sidefoot b {
  display: block;
}
.sidefoot small {
  color: #b3c9bb;
}
.sidefoot .btn {
  margin-left: auto;
  background: transparent;
  border: 0;
  color: white;
}
.main {
  min-width: 0;
}
.topbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 clamp(18px, 4.3vw, 74px);
  background: #fcfcf7;
  border-bottom: 1px solid var(--line);
}
.topbar [data-act="menu"] {
  display: none;
}
.crumb {
  font-size: 13px;
  color: var(--muted);
}
.crumb i {
  font-style: normal;
  margin: 0 8px;
  color: #9aaca0;
}
.company-picker {
  display: flex;
  align-items: center;
  gap: 5px;
}
.company-picker select {
  background: transparent;
  border: none;
  width: auto;
  max-width: 190px;
  font-size: 14px;
  font-weight: 680;
}
.brandlogo {
  width: 31px;
  height: 31px;
  border-radius: 8px;
  color: white;
  object-fit: contain;
  font-size: 11px;
}
.content {
  max-width: 1550px;
  margin: auto;
  padding: 32px clamp(18px, 4.3vw, 74px) 64px;
}
.demoflag {
  font-size: 11px;
  color: #5b6858;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.demoflag i {
  width: 7px;
  height: 7px;
  background: #7d915c;
  border-radius: 50%;
}
.pagehead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 26px;
}
.pagehead p {
  margin-top: 9px;
}
.metrics,
.brandgrid,
.modulegrid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.metric,
.card {
  background: #fdfdf9;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.metric {
  padding: 20px;
}
.metric:first-child {
  background: #e4ecde;
  border-color: #d4e0cd;
}
.metric > div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
.metric strong {
  display: block;
  font-size: clamp(27px, 3.3vw, 49px);
  letter-spacing: -0.065em;
  line-height: 1.15;
  margin: 12px 0 4px;
  font-weight: 620;
}
.columns {
  display: grid;
  gap: 16px;
  grid-template-columns: 1.2fr 1fr;
}
.card {
  padding: 22px;
  margin-top: 16px;
  min-width: 0;
}
.section-head,
.modal-head,
.formfoot,
.total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.section-head {
  margin-bottom: 16px;
}
.section-head .btn {
  background: transparent;
  border: 0;
  padding: 4px;
  color: var(--green);
}
.section-head .btn svg {
  width: 13px;
}
.bars {
  display: grid;
  gap: 15px;
  margin: 18px 0;
}
.barrow {
  display: grid;
  grid-template-columns: 76px 1fr 22px;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.barrow > div {
  border-radius: 4px;
  height: 11px;
  background: #edf0e9;
  overflow: hidden;
}
.barrow i {
  display: block;
  height: 100%;
  background: var(--bar);
  border-radius: 4px;
}
.barrow b {
  text-align: right;
}
.task,
.datarow,
.leadrow,
.timeline {
  border-top: 1px solid var(--line);
}
.task {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}
.task b {
  font-size: 23px;
  color: #386449;
}
.card > .btn {
  margin-top: 8px;
}
.leadrow,
.datarow {
  width: 100%;
  padding: 13px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: transparent;
}
.leadrow:hover {
  background: #f0f3eb;
}
.leadrow > span:first-of-type,
.datarow > span:first-child {
  flex: 1;
  min-width: 0;
}
.leadrow b,
.leadrow small,
.datarow b,
.datarow small {
  display: block;
  overflow-wrap: anywhere;
}
.avatar {
  width: 35px;
  height: 35px;
  background: #e9e9dc;
  color: #575d44;
  font-size: 11px;
  font-style: normal;
  border-radius: 10px;
}
.badge {
  border-radius: 20px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 650;
  background: #e9ede6;
  color: #455347;
  white-space: nowrap;
}
.s1,
.s5 {
  background: #e2eaf2;
  color: #36536b;
}
.s2 {
  background: #faead9;
  color: #855321;
}
.s3,
.s6 {
  background: #ddebdc;
  color: #305d3c;
}
.s4 {
  background: #f5e1df;
  color: #824844;
}
.brandgrid button {
  background: #f0f3eb;
  padding: 14px;
  border-radius: 8px;
  text-align: left;
}
.brandgrid b,
.brandgrid strong,
.brandgrid small {
  display: block;
}
.brandgrid strong {
  font-size: 22px;
  margin: 6px 0;
}
.filters {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}
.filters select {
  width: auto;
}
.search {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.blank {
  padding: 26px 0;
  color: var(--muted);
}
.blank small {
  display: block;
}
.modulegrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 16px;
}
.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}
.toggle input {
  margin-left: auto;
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}
.channel > svg {
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
  color: var(--green);
}
.channel p,
.card > .muted {
  margin: 8px 0 16px;
}
.channel small {
  display: block;
  margin-bottom: 8px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  width: min(530px, 94vw);
  max-height: 88svh;
  color: var(--ink);
  padding: 22px;
  background: #fcfcf8;
  box-shadow: 0 25px 70px #10231c33;
}
dialog::backdrop {
  background: #122b267a;
}
.modal-head {
  margin-bottom: 18px;
}
.modal-head .btn {
  padding: 6px;
}
.formfoot {
  justify-content: flex-end;
  margin-top: 12px;
}
dialog form + form,
dialog form {
  margin-top: 14px;
}
.quoteline {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) 85px 35px;
  gap: 7px;
  align-items: end;
}
.quoteline .btn {
  padding: 6px;
}
.total {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin: 12px 0;
  font-size: 20px;
}
.timeline {
  padding: 8px 0;
}
.timeline small {
  color: var(--muted);
}
#notice {
  position: fixed;
  z-index: 10;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: #1b362d;
  color: white;
  border-radius: 9px;
  padding: 11px 17px;
  opacity: 0;
  pointer-events: none;
  max-width: 92vw;
}
#notice.show {
  opacity: 1;
}
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 195px minmax(0, 1fr);
  }
  .content {
    padding: 24px 18px;
  }
  .card,
  .metric {
    padding: 16px;
  }
  .columns {
    grid-template-columns: 1fr 1fr;
  }
  .section-head {
    flex-wrap: wrap;
  }
}
@media (max-width: 730px) {
  .layout {
    display: block;
  }
  .layout aside {
    display: none;
    position: fixed;
    left: 0;
    top: 59px;
    bottom: 0;
    width: 240px;
    height: calc(100svh - 59px);
    box-shadow: 12px 0 30px #142e2524;
  }
  .layout aside.open {
    display: flex;
  }
  .topbar [data-act="menu"] {
    display: inline-flex;
  }
  .topbar {
    min-height: 59px;
  }
  .crumb {
    display: none;
  }
  .content {
    padding: 20px 14px 38px;
  }
  .metrics {
    gap: 7px;
  }
  .metric {
    padding: 12px;
  }
  .metric > div {
    font-size: 11px;
    gap: 5px;
  }
  .metric > div svg {
    display: none;
  }
  .metric strong {
    font-size: 24px;
  }
  .metric small {
    font-size: 10px;
  }
  .columns {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .pagehead {
    align-items: flex-start;
    flex-direction: column;
  }
  .pagehead h1 {
    font-size: 36px;
  }
  .pagehead p {
    font-size: 14px;
  }
  .welcome {
    display: flex;
    flex-direction: column;
  }
  .welcome-art {
    padding: 25px;
    gap: 28px;
  }
  .welcome-art > small {
    display: none;
  }
  .welcome-title h1 {
    font-size: 47px;
    margin: 7px 0;
  }
  .welcome-title p {
    font-size: 14px;
  }
  .loginbox {
    padding: 25px;
  }
  .login-inner {
    width: min(400px, 100%);
  }
  .brandgrid {
    grid-template-columns: 1fr;
  }
  .modulegrid {
    grid-template-columns: 1fr;
  }
  .datarow {
    gap: 8px;
    flex-wrap: wrap;
  }
  .leadrow {
    gap: 8px;
  }
  .filters {
    flex-wrap: wrap;
  }
  .filters select {
    max-width: 100%;
  }
  .sidefoot {
    margin-bottom: 7px;
  }
}
@media print {
  body {
    background: white;
  }
  #app,
  #notice,
  dialog .btn,
  dialog .formfoot {
    display: none !important;
  }
  dialog[open] {
    position: static;
    max-height: none;
    width: 100%;
    max-width: none;
    border: 0;
    box-shadow: none;
    padding: 12px;
  }
  dialog::backdrop {
    background: white;
  }
  .modal-head {
    margin-bottom: 25px;
  }
}
.inbox-toolbar {display:flex;align-items:end;gap:1rem;justify-content:space-between}
.inbox-toolbar label {width:min(100%,28rem);margin:0}
.inbox-error:empty {display:none}
.inbox-layout {display:grid;grid-template-columns:minmax(16rem,.85fr) minmax(0,1.5fr);gap:1rem;align-items:start}
.inbox-list,.inbox-detail {min-width:0;overflow:hidden}
.inbox-contact {display:grid;width:100%;grid-template-columns:minmax(0,1fr) auto;gap:.35rem .6rem;text-align:left;background:transparent;border:0;border-bottom:1px solid #dce3df;padding:.9rem .65rem;cursor:pointer;color:inherit;font:inherit}
.inbox-contact:hover,.inbox-contact[aria-pressed=true] {background:#edf4ef}
.inbox-contact time,.inbox-contact small,.chat-bubble small,.inbox-detail .section-head small {color:#52665c;font-size:.75rem}
.inbox-contact span,.inbox-contact small {grid-column:1/-1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.inbox-contact strong,.chat-bubble p,.inbox-detail h2 {overflow-wrap:anywhere}
.inbox-messages {display:flex;flex-direction:column;gap:.75rem;max-height:62vh;overflow:auto;padding:.75rem .25rem}
.chat-bubble {width:fit-content;max-width:88%;padding:.7rem .9rem;border-radius:12px;background:#f1f3f1}
.chat-bubble p {white-space:pre-wrap;margin:.35rem 0}
.chat-bubble.outbound {align-self:flex-end;background:#e3f0e7}
.inbox-list [data-pages] {display:flex;gap:.4rem;flex-wrap:wrap}
@media(max-width:800px){.inbox-layout{grid-template-columns:1fr}.inbox-list [data-list]{max-height:38vh;overflow:auto}.inbox-toolbar{flex-wrap:wrap}.inbox-messages{max-height:65vh}}
