:root {
  --ink: #202b26;
  --muted: #7d8981;
  --line: #e8ebe5;
  --surface: #fff;
  --canvas: #f6f7f4;
  --green: #24765a;
  --green-dark: #1c6048;
  --green-soft: #e8f2ec;
  --gold: #f5eddc;
  --blue: #e9f0f5;
  --violet: #f0edf5;
  --shadow: 0 12px 34px #273b2b0b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font:
    14px "DM Sans",
    sans-serif;
}
h1,
h2,
h3,
.brand,
.stat-value {
  font-family: Manrope, "DM Sans", sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.hidden {
  display: none !important;
}
.app-shell {
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 252px;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 28px 17px 18px;
  z-index: 3;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #26352d;
  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.7px;
  padding: 0 10px;
}
.brand-light {
  font-weight: 500;
  color: #68766e;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  background: var(--green);
  border-radius: 10px;
  color: #fff;
  font-size: 18px;
  letter-spacing: 0;
}
.workspace-label {
  margin: 50px 11px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #a0aaa3;
}
.main-nav {
  display: grid;
  gap: 4px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  background: transparent;
  color: #637068;
  text-align: left;
  padding: 11px 12px;
  border-radius: 8px;
  font-weight: 600;
}
.nav-link:hover {
  background: #f6f8f5;
}
.nav-link.active {
  background: var(--green-soft);
  color: var(--green-dark);
}
.nav-icon {
  width: 19px;
  text-align: center;
  font-size: 18px;
  color: #7c8b80;
}
.nav-link.active .nav-icon {
  color: var(--green);
}
.nav-count {
  margin-left: auto;
  font-size: 11px;
  color: #8c988f;
}
.sidebar-bottom {
  margin-top: auto;
}
.privacy-card {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 13px 12px;
  background: #f5f8f5;
  border: 1px solid #ecf1ed;
  border-radius: 10px;
  margin-bottom: 19px;
}
.privacy-icon {
  font-size: 19px;
  color: var(--green);
}
.privacy-card strong,
.privacy-card small,
.profile-copy strong,
.profile-copy small {
  display: block;
}
.privacy-card strong {
  font-size: 12px;
}
.privacy-card small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.profile-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 3px;
  border-top: 1px solid var(--line);
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e8efe8;
  color: var(--green-dark);
  font-weight: 700;
  flex-shrink: 0;
}
.profile-copy {
  min-width: 0;
  flex: 1;
}
.profile-copy strong {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-copy small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.main-area {
  margin-left: 252px;
  min-height: 100vh;
}
.topbar {
  height: 68px;
  background: #ffffffc9;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  position: sticky;
  top: 0;
  z-index: 2;
  backdrop-filter: blur(8px);
}
.breadcrumbs {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 12px;
  color: #849087;
}
.breadcrumbs strong {
  color: #36443b;
  font-weight: 600;
}
.crumb-slash {
  color: #c1c9c2;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.today-label {
  font-size: 12px;
  color: #89948c;
}
.avatar-small {
  width: 30px;
  height: 30px;
  border: 0;
  font-size: 12px;
}
.page-content {
  max-width: 1420px;
  margin: auto;
  padding: 35px 42px 60px;
}
.page {
  display: none;
}
.page.active {
  display: block;
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: #86938a;
  margin: 0 0 8px;
}
.page-heading h1 {
  font-size: 29px;
  line-height: 1.2;
  letter-spacing: -1.1px;
  margin: 0;
  font-weight: 700;
}
.subheading {
  margin: 7px 0 0;
  color: #87928b;
  font-size: 13px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 23px;
}
.stat-card,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.stat-card {
  padding: 17px 18px 15px;
  min-height: 118px;
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #7f8a82;
  font-size: 12px;
  font-weight: 500;
}
.stat-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 8px;
  font-size: 16px;
}
.stat-icon.sage {
  background: #e8f2eb;
  color: #4c8868;
}
.stat-icon.blue {
  background: var(--blue);
  color: #6685a0;
}
.stat-icon.gold {
  background: var(--gold);
  color: #a98443;
}
.stat-icon.violet {
  background: var(--violet);
  color: #8575a0;
}
.stat-value {
  font-size: 27px;
  letter-spacing: -1px;
  font-weight: 700;
  margin-top: 7px;
}
.stat-foot {
  color: #a1aaa3;
  font-size: 11px;
  margin-top: 2px;
}
.panel {
  overflow: hidden;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 20px 16px;
}
.panel-heading h2 {
  font-size: 14px;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.panel-heading p {
  font-size: 11px;
  color: #929d94;
  margin: 5px 0 0;
}
.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #f0f2ee;
}
.list-row:first-child {
  border-top: 1px solid #f0f2ee;
}
.row-copy {
  min-width: 0;
  flex: 1;
}
.row-copy strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row-copy small {
  display: block;
  font-size: 11px;
  color: #9aa39c;
  margin-top: 4px;
}
.list-empty {
  padding: 27px 10px;
  text-align: center;
  color: #99a39b;
  font-size: 12px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 17px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #e4e8e2;
  border-radius: 7px;
  padding: 0 11px;
  height: 37px;
  min-width: 260px;
  color: #93a097;
}
.search-box input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  font-size: 12px;
  color: var(--ink);
}
.toolbar select {
  height: 37px;
  border: 1px solid #e4e8e2;
  border-radius: 7px;
  padding: 0 30px 0 11px;
  background: #fff;
  color: #69756d;
  font-size: 12px;
}
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.table-wrap th {
  background: #fafbf9;
  color: #99a29b;
  font-size: 9px;
  letter-spacing: 0.8px;
  font-weight: 700;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}
.table-wrap td {
  padding: 13px 15px;
  border-bottom: 1px solid #eff1ed;
  font-size: 11px;
  color: #58645b;
  white-space: nowrap;
}
.table-wrap tr:last-child td {
  border-bottom: 0;
}
.table-wrap td strong {
  font-size: 11px;
  color: #354238;
}
.table-wrap tbody tr:hover {
  background: #fbfcfa;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: #1e2d25a6;
  backdrop-filter: blur(2px);
}
.modal-card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  width: min(100%, 510px);
  max-height: 90vh;
  overflow: auto;
  padding: 23px 25px 25px;
  box-shadow: 0 25px 70px #14271c35;
}
.modal-card.modal-wide {
  width: min(100%, 680px);
}
.modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 17px;
}
.modal-heading h2 {
  font-size: 19px;
  letter-spacing: -0.5px;
  margin: 0;
}
.modal-heading .eyebrow {
  margin-bottom: 5px;
}
.modal-form {
  display: grid;
  gap: 13px;
}
.modal-form label {
  display: grid;
  gap: 6px;
  font-size: 11px;
  color: #6d7971;
  font-weight: 600;
}
.modal-form input,
.modal-form select,
.modal-form textarea {
  width: 100%;
  border: 1px solid #e1e7e1;
  border-radius: 6px;
  padding: 10px 11px;
  background: #fff;
  color: #334138;
  font-size: 12px;
  outline: none;
}
.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
  border-color: #7dad91;
  box-shadow: 0 0 0 3px #e9f2ec;
}
.modal-form textarea {
  resize: vertical;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid #eff1ed;
  padding-top: 15px;
  margin-top: 4px;
}
.toast {
  position: fixed;
  z-index: 30;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #253a2e;
  color: #fff;
  padding: 11px 17px;
  border-radius: 7px;
  box-shadow: 0 5px 20px #1a2d2340;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.form-message {
  min-height: 17px;
  color: #ae603d;
  font-size: 11px;
  line-height: 1.5;
  margin: 8px 0;
}
.form-message.success {
  color: var(--green);
}
@media (max-width: 1100px) {
  .sidebar {
    width: 218px;
  }
  .main-area {
    margin-left: 218px;
  }
  .page-content {
    padding: 30px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .stats-grid {
    gap: 10px;
  }
  .stat-card {
    padding: 15px;
  }
  .stat-value {
    font-size: 23px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    position: static;
    width: auto;
    height: auto;
    padding: 12px 14px;
    display: block;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar-brand {
    padding: 0 4px;
  }
  .workspace-label,
  .sidebar-bottom {
    display: none;
  }
  .main-nav {
    display: flex;
    overflow: auto;
    margin-top: 12px;
    gap: 4px;
  }
  .nav-link {
    width: auto;
    white-space: nowrap;
    padding: 8px 10px;
    font-size: 11px;
  }
  .nav-count {
    display: none;
  }
  .main-area {
    margin: 0;
  }
  .topbar {
    height: 53px;
    padding: 0 15px;
  }
  .today-label {
    display: none;
  }
  .topbar-actions {
    gap: 9px;
  }
  .page-content {
    padding: 24px 15px 45px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading .button {
    padding: 9px;
    font-size: 10px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .search-box {
    min-width: 100%;
    flex: 1;
  }
  .toolbar select {
    flex: 1;
  }
  .table-wrap {
    overflow-x: auto;
  }
  .table-wrap table {
    min-width: 700px;
  }
  .modal-card {
    padding: 20px 17px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 430px) {
  .nav-link {
    gap: 7px;
  }
  .nav-link:not(.active) {
    font-size: 0;
    gap: 0;
  }
  .nav-link:not(.active) .nav-icon {
    font-size: 17px;
  }
  .page-heading {
    gap: 9px;
  }
  .page-heading .subheading {
    max-width: 230px;
  }
  .table-wrap td,
  .table-wrap th {
    padding-left: 10px;
    padding-right: 10px;
  }
}
