@font-face {
  font-family: Manrope;
  src: url("/assets/manrope-latin.woff2");
  font-weight: 400 800;
}
@font-face {
  font-family: Manrope;
  src: url("/assets/manrope-latin-ext.woff2");
  font-weight: 400 800;
  unicode-range: U+0100-02FF;
}
@font-face {
  font-family: Manrope;
  src: url("/assets/manrope-cyrillic.woff2");
  font-weight: 400 800;
  unicode-range: U+0400-052F;
}
* {
  box-sizing: border-box;
}
:root {
  --ink: #152538;
  --muted: #60707a;
  --yellow: #f4c84e;
  --paper: #f7f8f4;
  --line: #dce3df;
  --white: #fff;
  --green: #287455;
  --red: #a73e36;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    500 14px/1.5 Manrope,
    system-ui,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
select {
  cursor: pointer;
}
button {
  color: inherit;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #b78912;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.05em;
  line-height: 1.12;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.035em;
}
h3 {
  font-size: 15px;
}
.boot {
  font-size: 25px;
  font-weight: 800;
  margin: 40px;
}
.boot span,
.brand span {
  color: #dda900;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
}
.sidebar {
  background: #152c3b;
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 26px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.05em;
  text-decoration: none;
  padding: 0 10px;
}
.brand img {
  width: 32px;
  height: 32px;
}
.brand small {
  font-size: 10px;
  letter-spacing: 0.03em;
  color: #afc1c6;
  font-weight: 700;
  margin-left: 1px;
}
.nav {
  display: grid;
  gap: 5px;
  margin-top: 48px;
}
.nav button,
.side-bottom button {
  background: transparent;
  border: 0;
  color: #c5d2d3;
  text-align: left;
  padding: 12px 13px;
  border-radius: 8px;
  font-weight: 700;
}
.nav button:hover,
.nav button.active {
  background: #294351;
  color: #fff;
}
.nav button.active {
  box-shadow: inset 3px 0 var(--yellow);
}
.nav i {
  font-style: normal;
  display: inline-block;
  width: 28px;
  font-size: 17px;
}
.side-bottom {
  margin-top: auto;
  display: grid;
  gap: 8px;
}
.side-bottom .user {
  padding: 0 13px;
  color: #aabdc1;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.side-bottom button:hover {
  color: #fff;
}
.main {
  min-width: 0;
}
.topbar {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}
.topbar-label {
  color: var(--muted);
  font-weight: 700;
}
.lang {
  display: flex;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
  background: white;
}
.lang button {
  border: 0;
  background: none;
  border-radius: 5px;
  padding: 5px 8px;
  font-weight: 800;
  font-size: 11px;
  color: var(--muted);
}
.lang button.active {
  background: var(--ink);
  color: white;
}
.content {
  padding: 38px 40px 60px;
  max-width: 1500px;
  margin: auto;
}
.pagehead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}
.sub {
  color: var(--muted);
  margin-top: 7px;
}
.button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 15px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
}
.button:hover {
  border-color: #91a49b;
}
.button.primary {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}
.button.primary:hover {
  background: #eabb36;
}
.button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.grid {
  display: grid;
  gap: 16px;
}
.metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 20px;
}
.metric,
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.metric {
  padding: 20px;
}
.metric-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.metric-value {
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -0.05em;
  margin-top: 8px;
  line-height: 1.1;
}
.metric-note {
  color: var(--muted);
  font-size: 12px;
  margin-top: 7px;
}
.columns {
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
}
.panel {
  overflow: hidden;
}
.panel-head {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.panel-body {
  padding: 22px;
}
.textlink {
  background: none;
  border: 0;
  padding: 0;
  color: #41606b;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 22px;
  border-bottom: 1px solid #edf0ed;
}
.list-row:last-child {
  border: 0;
}
.list-row.click {
  width: 100%;
  border-width: 0 0 1px;
  background: white;
  text-align: left;
}
.list-row.click:hover {
  background: #f8faf7;
}
.row-title {
  font-weight: 800;
  overflow-wrap: anywhere;
}
.row-meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
  overflow-wrap: anywhere;
}
.badge {
  display: inline-flex;
  white-space: nowrap;
  border-radius: 50px;
  background: #edf2ef;
  color: #476053;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 9px;
}
.badge.new {
  background: #fff1bc;
  color: #6d5200;
}
.badge.in_progress {
  background: #e6f1f5;
  color: #285a6c;
}
.badge.done {
  background: #e3f3e8;
  color: #246343;
}
.badge.closed {
  background: #eff1ef;
  color: #67746c;
}
.empty {
  padding: 34px 22px;
  text-align: center;
  color: var(--muted);
}
.empty strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  margin-bottom: 5px;
}
.error {
  color: var(--red);
  background: #fff2ef;
  border: 1px solid #f1d3cc;
  border-radius: 8px;
  padding: 12px 14px;
}
.toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.toolbar select,
.field input,
.field textarea,
.field select {
  border: 1px solid #cbd6d0;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  min-width: 0;
}
.toolbar select {
  font-weight: 700;
}
.field {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.detail-layout {
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
}
.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.details dt {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}
.details dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}
.details .wide {
  grid-column: 1/-1;
}
.message-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.7;
}
.stack {
  display: grid;
  gap: 16px;
}
.back {
  margin-bottom: 18px;
}
.mail-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 480px;
}
.mail-list {
  border-right: 1px solid var(--line);
}
.mail-list .list-row {
  display: block;
}
.mail-list .list-row.selected {
  background: #f4f7f3;
  box-shadow: inset 3px 0 var(--yellow);
}
.mail-message {
  padding: 26px;
  min-width: 0;
}
.mail-message h2 {
  overflow-wrap: anywhere;
}
.mail-meta {
  margin: 15px 0 25px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.chart {
  height: 170px;
  display: flex;
  align-items: end;
  gap: 3px;
  padding-top: 15px;
  border-bottom: 1px solid var(--line);
}
.bar {
  flex: 1;
  min-width: 2px;
  background: #77a897;
  border-radius: 3px 3px 0 0;
}
.chart-axis {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  margin-top: 8px;
}
.bars {
  display: grid;
  gap: 14px;
}
.bar-row {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) minmax(60px, 1.3fr) auto;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.bar-row span:first-child {
  overflow-wrap: anywhere;
}
.track {
  height: 7px;
  background: #eef2ef;
  border-radius: 9px;
  overflow: hidden;
}
.track b {
  display: block;
  height: 100%;
  background: #82aa9d;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th,
td {
  padding: 12px 20px;
  border-bottom: 1px solid #edf0ed;
}
th {
  font-size: 11px;
  color: var(--muted);
  font-weight: 800;
}
td:first-child {
  overflow-wrap: anywhere;
}
td:not(:first-child),
th:not(:first-child) {
  text-align: right;
  white-space: nowrap;
}
.notice {
  font-size: 12px;
  color: var(--muted);
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-aside {
  background: #152c3b;
  color: white;
  padding: 45px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-aside h1 {
  font-size: clamp(38px, 5vw, 68px);
  max-width: 550px;
}
.login-aside p {
  color: #b9cbcc;
  max-width: 400px;
  margin-top: 18px;
}
.login-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 35px;
}
.login-box {
  width: min(100%, 390px);
}
.login-box h1 {
  margin-bottom: 10px;
}
.login-box form {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}
.login-box .button {
  width: 100%;
  margin-top: 5px;
}
.login-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.login-top .brand {
  color: var(--ink);
  padding: 0;
}
.login-aside .brand {
  color: white;
}
.login-mobile-brand {
  display: none;
}
.mobile-nav {
  display: none;
}
@media (max-width: 950px) {
  .shell {
    grid-template-columns: 76px minmax(0, 1fr);
  }
  .sidebar {
    padding: 24px 10px;
  }
  .sidebar .brand {
    padding: 0;
    justify-content: center;
  }
  .sidebar .brand strong,
  .sidebar .brand small,
  .nav button span,
  .side-bottom .user,
  .side-bottom button span {
    display: none;
  }
  .nav button {
    text-align: center;
  }
  .nav i {
    width: auto;
  }
  .side-bottom button {
    text-align: center;
  }
  .content {
    padding: 30px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .mail-layout {
    grid-template-columns: 260px minmax(0, 1fr);
  }
}
@media (max-width: 650px) {
  .shell {
    display: block;
    padding-bottom: 68px;
  }
  .sidebar {
    display: none;
  }
  .mobile-nav {
    position: fixed;
    z-index: 3;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background: #152c3b;
    padding: 7px 5px max(7px, env(safe-area-inset-bottom));
    justify-content: space-around;
  }
  .mobile-nav button {
    background: none;
    border: 0;
    color: #b9c9ca;
    font-size: 10px;
    font-weight: 700;
    min-width: 65px;
  }
  .mobile-nav button i {
    display: block;
    font-style: normal;
    font-size: 19px;
  }
  .mobile-nav button.active {
    color: #f4c84e;
  }
  .topbar {
    height: 60px;
    padding: 0 18px;
  }
  .content {
    padding: 25px 16px 40px;
  }
  .pagehead {
    align-items: start;
    flex-direction: column;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 15px;
  }
  .metric-value {
    font-size: 24px;
  }
  .columns,
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .mail-layout {
    display: block;
  }
  .mail-list {
    border-right: 0;
  }
  .mail-message {
    border-top: 1px solid var(--line);
    padding: 20px;
  }
  .details {
    gap: 16px;
  }
  .login {
    display: block;
  }
  .login-aside {
    display: none;
  }
  .login-form {
    min-height: 100vh;
    align-items: flex-start;
    padding: 25px 22px;
  }
  .login-mobile-brand {
    display: block;
  }
  .login-box h1 {
    margin-top: 55px;
  }
  .chart {
    height: 130px;
  }
  .panel-head,
  .panel-body {
    padding: 17px;
  }
  .list-row {
    padding: 14px 17px;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.lead-toolbar {
  margin-bottom: 16px;
}
.lead-toolbar input {
  width: min(300px, 70vw);
}
.chart-svg {
  width: 100%;
  height: 170px;
  display: block;
  border-bottom: 1px solid var(--line);
}
.chart-details {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}
.chart-details summary {
  cursor: pointer;
}
.bar-row svg {
  width: 100%;
  height: 7px;
}
.analytics-date {
  margin: -12px 0 20px;
}
.global-error {
  margin-bottom: 20px;
}

.stale-notice {
  margin: 0 0 20px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff5d6;
  color: #725516;
  font-size: 12px;
  font-weight: 700;
}
