:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #14201f;
  background: #f4f6f5;
  line-height: 1.45;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f4f6f5;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 270px 1fr;
}
aside {
  background: #142a28;
  color: #eaf3ed;
  padding: 28px 18px 20px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 38px;
}
.brand > span,
.login-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #e2a84a;
  color: #142a28;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
}
.brand strong {
  display: block;
  font-size: 17px;
}
.brand small,
.sidebar-bottom small,
.group small,
.person small {
  display: block;
  color: #9fb5ad;
  font-size: 11px;
  margin-top: 3px;
}
.section-label,
.kicker {
  font-size: 10px;
  letter-spacing: 0;
  color: #91aaa1;
  font-weight: 700;
}
.section-label {
  padding: 0 10px 10px;
}
.group-list {
  display: grid;
  gap: 5px;
}
.group {
  border: 0;
  background: transparent;
  color: #dce9e4;
  text-align: left;
  padding: 11px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
}
.group:hover,
.group.active {
  background: #23433d;
}
.group i {
  font-style: normal;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #31564e;
  color: #dbb564;
  font-weight: 800;
  flex: none;
}
.group span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.empty {
  color: #a9c0b7;
  font-size: 12px;
  line-height: 1.7;
  padding: 10px;
}
.sidebar-bottom {
  border-top: 1px solid #2a4842;
  margin-top: auto;
  padding: 17px 10px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #83cb91;
  box-shadow: 0 0 0 4px #23483b;
}
.sidebar-bottom span {
  flex: 1;
}
.sidebar-bottom button {
  border: 0;
  background: transparent;
  color: #a9c0b7;
  font-size: 11px;
}
.content {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 42px 54px 70px;
}
header,
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
header {
  border-bottom: 1px solid #dbe3df;
  padding-bottom: 26px;
  margin-bottom: 26px;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: 31px;
  letter-spacing: 0;
  margin-top: 7px;
}
h2 {
  font-size: 20px;
  margin-top: 5px;
}
.muted {
  color: #7c8d87;
  font-size: 13px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.online {
  font-size: 12px;
  color: #5c746a;
}
.online b {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #60b878;
  margin-right: 7px;
}
.outline,
.primary,
.login button {
  border-radius: 7px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
}
.outline {
  border: 1px solid #ccd8d2;
  color: #36534a;
  background: white;
}
.primary,
.login button {
  border: 1px solid #1d5748;
  color: white;
  background: #1d5748;
}
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}
.tabs {
  display: flex;
  gap: 25px;
  border-bottom: 1px solid #dbe3df;
  margin-bottom: 0;
}
.tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: #80918b;
  padding: 11px 1px;
  font-size: 13px;
}
.tabs button.selected {
  color: #1d5748;
  border-color: #e2a84a;
  font-weight: 700;
}
.panel,
.team {
  background: #fff;
  border: 1px solid #e0e7e3;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(20, 42, 40, 0.035);
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #edf1ef;
  border-bottom: 1px solid #edf1ef;
  margin: 24px 0;
  padding: 20px 0;
}
.metric-grid > div {
  padding: 0 20px;
  border-right: 1px solid #edf1ef;
}
.metric-grid > div:first-child {
  padding-left: 0;
}
.metric-grid > div:last-child {
  border: 0;
}
.metric-grid small,
.metric-grid em {
  display: block;
  color: #87968f;
  font-size: 11px;
  font-style: normal;
}
.metric-grid strong {
  display: block;
  font-size: 22px;
  margin: 8px 0 3px;
}
.metric-grid em.good {
  color: #4d9a66;
}
.metric-grid em.off {
  color: #ad7461;
}
.badge {
  color: #5a746a;
  background: #eef5f0;
  border-radius: 20px;
  padding: 6px 10px;
  font-size: 11px;
}
.callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #f6f8f5;
  border-left: 3px solid #e2a84a;
  padding: 15px;
}
.callout span {
  color: #c18b32;
  font-size: 20px;
}
.callout strong {
  font-size: 13px;
}
.callout p {
  color: #74847e;
  font-size: 12px;
  margin-top: 3px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 25px 0;
}
.toggle {
  border: 1px solid #e1e8e4;
  border-radius: 7px;
  padding: 15px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.toggle input {
  accent-color: #1d5748;
  margin-top: 3px;
}
.toggle b,
.toggle small {
  display: block;
}
.toggle b {
  font-size: 13px;
}
.toggle small,
.wide small {
  font-size: 11px;
  color: #84938d;
  margin-top: 3px;
}
.wide {
  display: block;
  margin-top: 14px;
  font-size: 12px;
  color: #50675e;
}
.wide textarea {
  display: block;
  width: 100%;
  min-height: 90px;
  border: 1px solid #d5e0da;
  border-radius: 6px;
  padding: 10px;
  margin-top: 6px;
  resize: vertical;
  color: #203c34;
}
.section-head .primary {
  margin-left: auto;
}
.team {
  margin-top: 25px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.person {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e6ece8;
  border-radius: 7px;
}
.person-copy {
  min-width: 0;
  flex: 1;
}
.person-copy strong,
.person-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e1eee8;
  color: #1d5748;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  flex: none;
}
.person strong {
  font-size: 12px;
}
.account-action {
  border: 0;
  background: transparent;
  color: #a85f50;
  font-size: 11px;
  padding: 5px;
}
.schedule-form {
  display: grid;
  grid-template-columns: 1fr 150px auto;
  gap: 10px;
  margin: 25px 0;
}
.schedule-form input,
.login input {
  width: 100%;
  border: 1px solid #d5e0da;
  border-radius: 6px;
  padding: 10px;
  color: #203c34;
  background: #fcfdfc;
}
.schedule-form button {
  white-space: nowrap;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
th,
td {
  text-align: left;
  border-bottom: 1px solid #edf1ef;
  padding: 13px 8px;
}
th {
  color: #81918a;
  font-size: 11px;
  font-weight: 600;
}
.link {
  border: 0;
  background: none;
  color: #b05f4c;
  font-size: 12px;
}
.empty-state {
  text-align: center;
  background: #fff;
  border: 1px dashed #cbd9d1;
  border-radius: 8px;
  padding: 80px 20px;
  color: #74847e;
}
.empty-icon {
  margin: auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e5f0e9;
  color: #1d5748;
  display: grid;
  place-items: center;
  font-size: 25px;
}
.empty-state h2 {
  color: #203c34;
  margin: 15px 0 5px;
}
.empty-state p {
  font-size: 13px;
  margin-bottom: 20px;
}
.login {
  width: min(410px, calc(100% - 36px));
  margin: 13vh auto;
  background: #fff;
  border: 1px solid #e0e7e3;
  border-radius: 8px;
  padding: 38px;
  box-shadow: 0 18px 50px rgba(20, 42, 40, 0.08);
}
.login-mark {
  margin-bottom: 20px;
}
.login h1 {
  font-size: 27px;
}
.login .muted {
  margin: 8px 0 28px;
}
.telegram-login {
  min-height: 44px;
  display: flex;
  justify-content: center;
}
.owner-login {
  border-top: 1px solid #e5ebe8;
  margin-top: 12px;
  padding-top: 16px;
}
.owner-login summary {
  cursor: pointer;
  color: #70827b;
  font-size: 12px;
}
.owner-login form {
  margin-top: 14px;
}
.login label {
  font-size: 12px;
  color: #536a61;
  display: block;
}
.login input {
  display: block;
  margin-top: 7px;
  margin-bottom: 14px;
}
.login button {
  width: 100%;
}
.error {
  color: #ae5f52;
  font-size: 12px;
  margin-top: 13px;
  min-height: 18px;
}
@media (max-width: 800px) {
  .shell {
    grid-template-columns: 1fr;
  }
  aside {
    padding: 16px;
    min-height: auto;
  }
  .brand {
    padding-bottom: 16px;
  }
  .sidebar-bottom {
    margin-top: 18px;
  }
  .content {
    padding: 25px 16px 40px;
  }
  h1 {
    font-size: 25px;
  }
  .metric-grid,
  .team-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .metric-grid > div {
    border: 0;
    padding: 0;
  }
  .form-grid,
  .schedule-form {
    grid-template-columns: 1fr;
  }
  .header-actions {
    gap: 7px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .online {
    display: none;
  }
  .panel,
  .team {
    padding: 20px;
  }
  .tabs {
    gap: 14px;
    overflow: auto;
  }
  .tabs button {
    white-space: nowrap;
  }
}
