:root {
  font-family: Manrope, system-ui, sans-serif;
  color: #25332f;
  background: #f5f7f7;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #8cc7ac;
  outline-offset: 3px;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
aside {
  position: fixed;
  width: 240px;
  inset: 0 auto 0 0;
  background: #fff;
  border-right: 1px solid #e4e9e7;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
}
.brand {
  font-size: 30px;
  letter-spacing: -1.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand b {
  background: #224f40;
  color: #fff;
  border-radius: 13px;
  width: 38px;
  height: 38px;
  text-align: center;
  font-size: 27px;
}
.subtle {
  color: #84908b;
  font-size: 13px;
}
.workspace {
  margin: 36px 0 26px;
  background: #f5f7f6;
  padding: 13px;
  border-radius: 10px;
}
.workspace select {
  width: 100%;
  border: 0;
  background: transparent;
  margin-top: 8px;
  font-weight: 700;
}
nav {
  display: grid;
  gap: 6px;
}
nav button {
  text-align: left;
  padding: 13px 16px;
  border-radius: 9px;
  color: #718078;
  display: flex;
  gap: 12px;
  font-weight: 600;
}
nav button.active {
  background: #eaf3ee;
  color: #265c45;
}
nav button span {
  font-size: 19px;
  width: 20px;
}
.sidebottom {
  margin-top: auto;
  border-top: 1px solid #eef0ef;
  padding-top: 20px;
}
.avatar {
  display: inline-grid;
  place-items: center;
  background: #e7eee9;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-weight: 700;
}
.main {
  margin-left: 240px;
}
.topbar {
  height: 82px;
  border-bottom: 1px solid #e4e9e7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  background: #fff;
}
.pill {
  padding: 6px 10px;
  border-radius: 7px;
  background: #edf3ef;
  color: #46735b;
  font-size: 12px;
  font-weight: 700;
}
.demo {
  background: #fff5dd;
  color: #957222;
}
.topright {
  display: flex;
  gap: 16px;
  align-items: center;
}
.content {
  padding: 32px 36px;
  max-width: 1600px;
  margin: auto;
}
h1 {
  font-size: 29px;
  letter-spacing: -1px;
  margin: 0 0 8px;
}
h2 {
  font-size: 17px;
  margin: 0;
}
h3 {
  font-size: 16px;
  margin: 0 0 10px;
}
p {
  line-height: 1.65;
}
.muted {
  color: #829087;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 27px;
}
.heading p {
  margin: 0;
  color: #849087;
}
.primary {
  background: #285e48;
  color: white;
  border-radius: 9px;
  padding: 12px 18px;
  font-weight: 600;
}
.secondary {
  border: 1px solid #dfe6e1;
  background: white;
  border-radius: 8px;
  padding: 10px 14px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 26px;
}
.stat {
  padding: 20px 22px;
  background: white;
  border: 1px solid #e3e9e5;
  border-radius: 13px;
}
.stat .value {
  font-size: 30px;
  font-weight: 700;
  margin: 13px 0 6px;
  letter-spacing: -1px;
}
.stat small {
  color: #74917f;
}
.stat-label {
  display: flex;
  justify-content: space-between;
  color: #758279;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 24px;
}
.panel {
  background: white;
  border: 1px solid #e1e8e3;
  border-radius: 13px;
  overflow: hidden;
}
.panel-head {
  padding: 20px 23px;
  border-bottom: 1px solid #edf0ee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}
.toolbar input {
  border: 1px solid #e0e7e2;
  border-radius: 7px;
  padding: 8px;
  background: #fff;
}
.calendar {
  display: grid;
  grid-template-columns: 65px 1fr 1fr;
  position: relative;
}
.cal-head {
  padding: 17px;
  border-bottom: 1px solid #e6ece8;
  text-align: center;
  font-weight: 600;
}
.cal-cell {
  height: 85px;
  border-right: 1px solid #eff2f0;
  border-bottom: 1px solid #eff2f0;
  padding: 5px;
}
.cal-time {
  font-size: 12px;
  color: #9aa59e;
  padding: 9px 15px;
}
.booking {
  width: 100%;
  height: 100%;
  border-radius: 7px;
  background: #eaf2ed;
  border-left: 3px solid #689a78;
  text-align: left;
  padding: 8px 11px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
}
.booking.purple {
  background: #f0edf8;
  border-color: #aa95c6;
}
.booking.orange {
  background: #fcf2e4;
  border-color: #c7a16b;
}
.booking small {
  font-size: 11px;
  color: #78877d;
}
.booking strong {
  font-size: 13px;
}
.booking span {
  font-size: 12px;
}
.aside-stack {
  display: grid;
  gap: 20px;
  align-content: start;
}
.assistant {
  padding: 23px;
  background: #eaf2ec;
  border-color: #d9e6dc;
}
.assistant-icon {
  display: grid;
  place-items: center;
  background: #d5e5d9;
  border-radius: 11px;
  width: 40px;
  height: 40px;
  font-size: 23px;
  margin-bottom: 18px;
}
.assistant p {
  font-size: 13px;
  color: #6d8273;
}
.switch {
  width: 38px;
  height: 23px;
  border-radius: 30px;
  background: #b8c4bc;
  padding: 3px;
  display: inline-flex;
}
.switch.on {
  background: #397251;
}
.switch:before {
  content: "";
  height: 17px;
  width: 17px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}
.switch.on:before {
  transform: translateX(15px);
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.event {
  padding: 16px 22px;
  border-bottom: 1px solid #f0f2f0;
  display: flex;
  gap: 11px;
}
.event p {
  margin: 3px 0;
  font-size: 13px;
}
.event small {
  color: #95a097;
  font-size: 11px;
}
.event-icon {
  height: 30px;
  width: 30px;
  flex-shrink: 0;
  background: #f1f5f2;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #689578;
}
.footnote {
  margin-top: 19px;
  color: #94a097;
  font-size: 12px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-size: 12px;
  color: #8b978f;
  font-weight: 500;
  background: #fafcfb;
}
th,
td {
  padding: 17px 22px;
  border-bottom: 1px solid #edf1ee;
}
td {
  font-size: 14px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.card {
  padding: 24px;
}
.card p {
  color: #7f8e83;
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.tag {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 6px;
  background: #f0f4f1;
  font-size: 12px;
  color: #627b6b;
}
.empty {
  padding: 40px;
  text-align: center;
  color: #839087;
}
.notice {
  background: #eff4f0;
  border: 1px solid #dfe9e1;
  border-radius: 10px;
  padding: 14px 18px;
  color: #627b6b;
  margin-bottom: 22px;
  font-size: 13px;
}
.chatlayout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 450px;
}
.chatlist {
  border-right: 1px solid #e4eae6;
}
.chatitem {
  padding: 20px;
  background: #f2f7f3;
}
.chatbody {
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.bubble {
  background: #f0f3f1;
  padding: 14px 18px;
  border-radius: 12px;
  max-width: 80%;
  line-height: 1.6;
}
.bubble.ai {
  background: #e7f1eb;
  align-self: flex-end;
}
.bubble small {
  display: block;
  color: #819387;
  margin-top: 5px;
}
.chatinput {
  display: flex;
  gap: 10px;
  margin-top: auto;
}
.chatinput input {
  flex: 1;
}
.formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.formgrid label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  color: #66776c;
}
.full {
  grid-column: 1/-1;
}
input,
select,
textarea {
  border: 1px solid #dce5de;
  border-radius: 8px;
  padding: 11px;
  width: 100%;
  color: #334b3d;
  background: white;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
dialog {
  border: 1px solid #dce5de;
  border-radius: 17px;
  padding: 28px;
  width: min(560px, 94vw);
  box-shadow: 0 25px 80px #203e3420;
}
dialog::backdrop {
  background: #17372c55;
  backdrop-filter: blur(3px);
}
dialog h2 {
  margin-bottom: 22px;
  font-size: 22px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
}
.danger {
  color: #af635b;
}
.error {
  color: #ae5146;
  line-height: 1.6;
  font-size: 13px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #234c3b;
  color: #fff;
  padding: 13px 22px;
  border-radius: 10px;
  display: none;
  z-index: 99;
}
.mobile-brand {
  display: none;
}
@media (min-width: 1500px) {
  .cal-cell {
    height: 95px;
  }
}
@media (max-width: 1100px) {
  aside {
    width: 205px;
  }
  .main {
    margin-left: 205px;
  }
  .content {
    padding: 25px;
  }
  .layout {
    grid-template-columns: 1fr;
  }
  .aside-stack {
    grid-template-columns: 1fr 1fr;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 15px;
  }
  .topbar {
    padding: 0 25px;
  }
}
@media (max-width: 700px) {
  aside {
    position: static;
    width: 100%;
    padding: 14px;
  }
  .brand,
  .workspace,
  .sidebottom {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
  }
  nav button {
    white-space: nowrap;
    padding: 10px;
  }
  nav button span {
    display: none;
  }
  .main {
    margin: 0;
  }
  .topbar {
    height: 62px;
    padding: 0 18px;
  }
  .content {
    padding: 22px 14px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .heading {
    align-items: flex-start;
    gap: 10px;
  }
  h1 {
    font-size: 24px;
  }
  .heading p {
    font-size: 12px;
  }
  .primary {
    padding: 11px 13px;
  }
  .aside-stack,
  .cards {
    grid-template-columns: 1fr;
  }
  .topright .subtle {
    display: none;
  }
  .panel-head {
    padding: 15px;
    flex-wrap: wrap;
  }
  .cal-head {
    font-size: 12px;
    padding: 13px 5px;
  }
  .calendar {
    grid-template-columns: 42px 1fr 1fr;
  }
  .cal-time {
    padding: 9px 4px;
  }
  .booking {
    padding: 6px;
  }
  .booking strong {
    font-size: 11px;
  }
  .booking small {
    font-size: 10px;
  }
  .chatlayout {
    grid-template-columns: 1fr;
  }
  .chatlist {
    display: none;
  }
  .formgrid {
    grid-template-columns: 1fr;
  }
  .full {
    grid-column: auto;
  }
}
@media (max-width: 700px) {
  .workspace {
    display: block;
    margin: 0 0 10px;
    padding: 8px 12px;
  }
  .workspace .subtle {
    display: none;
  }
  .workspace select {
    margin: 0;
  }
  .sidebottom {
    display: block;
    border: 0;
    padding: 0;
    margin: 0;
  }
  .sidebottom .row {
    display: none;
  }
  .sidebottom #role {
    padding: 8px 12px;
  }
}
.setup {
  max-width: 630px;
  margin: 12vh auto;
  padding: 35px;
  background: white;
  border: 1px solid #e1e8e3;
  border-radius: 18px;
}
.setup h1 {
  margin-top: 25px;
}
.setup p {
  color: #75877a;
}
.saving #app {
  pointer-events: none;
  opacity: 0.75;
}
.saving::after {
  content: "Сохраняем…";
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #285e48;
  color: white;
  padding: 14px 20px;
  border-radius: 9px;
}
.topright .subtle {
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebottom a {
  display: block;
  margin-top: 18px;
  color: #738679;
}
