:root {
  color-scheme: light;
  --ink: #202c2a;
  --muted: #5c6b66;
  --edge: #dbe1dc;
  --green: #225e49;
  --pale: #e5efe7;
  --paper: #fff;
  --canvas: #f6f7f3;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--canvas);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
summary,
select {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #5da381;
  outline-offset: 2px;
}
.skip,
.sr {
  position: absolute;
  clip-path: inset(100%);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip:focus {
  width: auto;
  height: auto;
  clip-path: none;
  background: white;
  padding: 12px;
  z-index: 5;
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 218px;
  background: #fdfefb;
  border-right: 1px solid var(--edge);
  display: flex;
  flex-direction: column;
  padding: 34px 17px 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 26px;
  letter-spacing: -1.5px;
  font-weight: 740;
  color: #203e31;
  line-height: 1;
}
.brand:hover {
  text-decoration: none;
}
aside .brand {
  padding-left: 12px;
}
.brand-mark {
  background: #285f48;
  border-radius: 10px;
  width: 35px;
  height: 35px;
  display: flex;
  gap: 3px;
  align-items: center;
  justify-content: center;
  transform: rotate(-4deg);
}
.brand-mark i {
  display: block;
  height: 14px;
  width: 4px;
  border-radius: 2px;
  background: #f0f4d7;
  transform: skewY(-20deg);
}
.brand-mark i:first-child {
  height: 9px;
  margin-top: 5px;
}
.brand-mark i:last-child {
  height: 18px;
  margin-top: -4px;
  background: #bdd8ad;
}
.nav-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #647168;
  font-weight: 700;
  margin: 57px 14px 12px;
}
aside nav a {
  color: #51605a;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 8px;
  margin-bottom: 5px;
  font-weight: 560;
}
aside nav a:hover {
  background: #f2f5ef;
  text-decoration: none;
}
aside nav a[aria-current] {
  background: #e5eee3;
  color: #215238;
  font-weight: 680;
}
.identity {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 17px 3px 2px;
  border-top: 1px solid var(--edge);
}
.identity form {
  margin-left: auto;
}
.identity small {
  font-size: 11px;
}
.identity strong {
  font-size: 13px;
}
.icon-btn {
  height: 32px;
  width: 32px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 5px;
}
.icon-btn:hover {
  background: var(--pale);
}
.workspace {
  margin-left: 218px;
}
header {
  height: 64px;
  border-bottom: 1px solid var(--edge);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 clamp(24px, 4.4vw, 76px);
  color: var(--muted);
  background: #fcfdf9;
  font-size: 13px;
}
header .icon {
  width: 15px;
}
header b {
  color: #a0aaa4;
  font-weight: 400;
}
header strong {
  color: #34443a;
  font-weight: 600;
}
main:not(.login) {
  max-width: 1440px;
  margin: auto;
  padding: clamp(32px, 4.3vw, 66px) clamp(20px, 4.4vw, 76px) 70px;
  min-height: 80vh;
}
.heading,
.section-head,
.subheading,
.card-title,
.list-row,
.card-footer,
.line,
.actions,
.chips,
.tabs,
.pagination {
  display: flex;
  align-items: center;
  gap: 12px;
}
.heading,
.section-head,
.subheading,
.card-title,
.list-row,
.card-footer {
  justify-content: space-between;
}
.heading {
  margin-bottom: 30px;
  gap: 24px;
}
.heading h1,
.login h1 {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: clamp(32px, 3.1vw, 46px);
  font-weight: 650;
  letter-spacing: -0.052em;
  line-height: 1.1;
  margin: 0;
}
.heading p,
.system-card p,
.muted {
  color: var(--muted);
  line-height: 1.5;
  margin: 9px 0 0;
}
.back {
  display: inline-block;
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 17px;
}
.card {
  border: 1px solid var(--edge);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 2px 4px #263d2906;
}
.card-title,
.list-row {
  padding: 20px 24px;
  border-bottom: 1px solid var(--edge);
}
.list-row:last-child {
  border: 0;
}
.padded,
.edit,
.system-card {
  padding: 24px;
}
.card + .card {
  margin-top: 14px;
}
h2,
h3 {
  margin: 0;
  font-weight: 640;
  letter-spacing: -0.03em;
}
h2 {
  font-size: 20px;
}
h3 {
  font-size: 17px;
}
.count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #edf1ea;
  color: #50664f;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.3;
  min-width: 24px;
  border-radius: 20px;
  vertical-align: 3px;
  margin-left: 4px;
}
.button,
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 39px;
  border: 1px solid #cdd5cd;
  background: white;
  color: #32483c;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 630;
  text-decoration: none;
  line-height: 1.3;
}
.button:hover {
  background: #f3f6f0;
  text-decoration: none;
}
.primary,
.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.primary:hover {
  background: #174832;
  text-decoration: none;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding: 17px 23px;
}
.group-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.user-group th {
  background: var(--pale);
  color: var(--green);
  text-transform: none;
  letter-spacing: normal;
  font-size: 14px;
}
.search {
  position: relative;
  flex: 1 1 210px;
  min-width: 170px;
}
.search .icon {
  position: absolute;
  top: 12px;
  left: 11px;
  color: #728377;
  width: 16px;
  height: 16px;
}
.search input {
  width: 100%;
  padding-left: 35px;
}
input:not([type="checkbox"]):not([type="hidden"]),
select,
textarea {
  border: 1px solid #cfd7cf;
  background: #fff;
  color: var(--ink);
  border-radius: 7px;
  min-height: 39px;
  padding: 8px 10px;
  max-width: 100%;
}
.search input[type="search"] {
  padding-left: 35px;
}
.toolbar input,
.toolbar select {
  font-size: 13px;
}
textarea {
  resize: vertical;
}
.scroll {
  position: relative;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.065em;
  font-weight: 650;
  color: #636f66;
  background: #f6f8f3;
  padding: 13px 16px;
  white-space: nowrap;
  border-block: 1px solid var(--edge);
}
td {
  padding: 17px 16px;
  border-bottom: 1px solid #e6eae4;
  font-size: 14px;
}
td:first-child,
th:first-child {
  padding-left: 24px;
}
tbody tr:last-child td {
  border-bottom: 0;
}
td strong,
.list-row strong {
  font-weight: 630;
}
.person-cell,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.person-cell {
  color: var(--ink);
  font-weight: 500;
}
.avatar {
  height: 38px;
  width: 38px;
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: 12px;
  font-weight: 680;
  font-size: 13px;
  color: #405840;
  background: #e9eee1;
}
.color-1 {
  background: #f4e4db;
  color: #835337;
}
.color-2 {
  background: #e3e9f5;
  color: #445c7c;
}
.color-3 {
  background: #ede4f0;
  color: #704b79;
}
.mini {
  height: 31px;
  width: 31px;
  font-size: 12px;
  border-radius: 50%;
}
small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
td small {
  margin-top: 3px;
}
.chips {
  flex-wrap: wrap;
  gap: 5px;
}
.chip {
  gap: 5px;
  font-size: 12px;
  white-space: nowrap;
  border: 1px solid var(--edge);
  border-radius: 6px;
  padding: 3px 7px;
  background: #fdfefb;
}
.system-mark {
  display: inline-grid;
  place-items: center;
  flex: none;
  background: #eef0ec;
  color: #525f56;
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.system-mark.crm {
  background: #e9e8f7;
  color: #675497;
}
.system-mark.phone {
  background: #e2eff1;
  color: #39707a;
}
.chip .system-mark {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}
.chip .icon {
  width: 12px;
  height: 12px;
}
.state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #326543;
  background: #edf4eb;
  border-radius: 12px;
  padding: 4px 9px;
  font-size: 12px;
  white-space: nowrap;
}
.state:before {
  content: "";
  background: #54885b;
  border-radius: 50%;
  width: 6px;
  height: 6px;
}
.archived {
  background: #f0f1ef;
  color: #5d665e;
}
.archived:before {
  background: #899189;
}
.row-link {
  display: inline-flex;
  padding: 5px;
  color: #78847a;
}
.row-link .icon {
  width: 15px;
}
.empty {
  padding: 32px;
  text-align: center;
  color: var(--muted);
}
.pagination {
  justify-content: center;
  padding: 16px;
  font-size: 13px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: 16px;
}
.grid .card {
  margin: 0;
}
.system-card {
  display: block;
  color: var(--ink);
  font-weight: 400;
}
.system-card:hover {
  border-color: #7ba78a;
  text-decoration: none;
}
.system-card .system-mark {
  height: 44px;
  width: 44px;
}
.system-card h2 {
  margin-top: 23px;
}
.card-footer {
  border-top: 1px solid var(--edge);
  padding-top: 17px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
}
.subheading {
  margin: 30px 0 14px;
}
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 20px;
  margin: 22px 0 0;
}
.values dt {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}
.values dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.mono {
  font-family: ui-monospace, monospace;
  font-size: 12px;
}
.footnote {
  margin-top: 17px;
}
.menu {
  position: relative;
}
.menu summary {
  list-style: none;
  cursor: pointer;
}
.menu summary::-webkit-details-marker {
  display: none;
}
.menu-items {
  position: absolute;
  right: 0;
  z-index: 2;
  background: white;
  border: 1px solid var(--edge);
  box-shadow: 0 6px 22px #25372819;
  border-radius: 8px;
  padding: 5px;
  min-width: 190px;
}
.menu-items a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 4px;
}
.menu-items a:hover {
  background: var(--pale);
  text-decoration: none;
}
.tabs {
  border-bottom: 1px solid var(--edge);
  margin: 0 0 22px;
  gap: 24px;
}
.tabs a {
  padding: 10px 0;
  color: var(--muted);
  font-size: 14px;
}
.tabs a[aria-current] {
  border-bottom: 2px solid var(--green);
  color: var(--green);
}
.edit {
  max-width: 700px;
}
fieldset {
  padding: 0;
  border: 0;
  margin: 16px 0 0;
  min-width: 0;
}
.form-row {
  margin-bottom: 18px;
}
.form-row > label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  font-weight: 610;
}
.form-row input:not([type="checkbox"]),
.form-row select,
.form-row textarea {
  width: 100%;
}
.form-row .check,
.form-row div label {
  display: flex;
  align-items: center;
  gap: 7px;
}
.form-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}
.form-row div label {
  padding: 3px 0;
}
.form-row small {
  margin-top: 5px;
}
.required {
  color: #618267;
}
.actions {
  border-top: 1px solid var(--edge);
  padding-top: 18px;
  justify-content: flex-end;
}
.notice,
.warning,
.errorlist {
  padding: 12px 16px;
  border-radius: 8px;
  line-height: 1.45;
}
.notice {
  margin: 0 0 20px;
  background: #e3f1e4;
  color: #285736;
}
.warning {
  background: #fcf1d9;
  color: #71561e;
}
.errorlist {
  background: #faebeb;
  color: #922f2f;
  list-style: none;
}
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(ellipse at 30% 15%, #e8efdf, transparent 54%), var(--canvas);
}
.login-card {
  background: white;
  border: 1px solid var(--edge);
  border-radius: 18px;
  padding: 38px;
  width: min(100%, 425px);
  box-shadow: 0 12px 45px #29432b0c;
}
.login-card .brand {
  margin-bottom: 36px;
}
.login-card h1 {
  font-size: 35px;
}
.login-card form {
  margin-top: 25px;
}
.login-card button {
  width: 100%;
}
@media (max-width: 800px) {
  aside {
    position: static;
    width: 100%;
    padding: 12px 16px;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--edge);
  }
  aside .brand {
    padding: 0;
    font-size: 21px;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
  }
  .nav-label,
  header,
  .identity .avatar,
  .identity > div {
    display: none;
  }
  aside nav {
    display: flex;
    gap: 2px;
  }
  aside nav a {
    margin: 0;
    padding: 9px;
    font-size: 13px;
    gap: 5px;
  }
  .identity {
    margin: 0 0 0 auto;
    padding: 0;
    border: 0;
  }
  .workspace {
    margin: 0;
  }
  .heading {
    margin-bottom: 22px;
  }
}
@media (max-width: 550px) {
  aside {
    gap: 8px;
    flex-wrap: wrap;
  }
  aside nav a .icon {
    display: none;
  }
  aside nav a {
    padding: 6px;
  }
  .heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .heading h1 {
    font-size: 34px;
  }
  .toolbar,
  .card-title,
  .padded,
  .edit {
    padding: 16px;
  }
  .toolbar select {
    flex: 1;
  }
  .search {
    flex-basis: 100%;
  }
  .tabs {
    gap: 12px;
  }
  .line {
    flex-wrap: wrap;
  }
  .section-head {
    gap: 8px;
  }
  .login-card {
    padding: 26px;
  }
  td,
  th {
    padding: 12px;
  }
  .login-card .brand {
    margin-bottom: 24px;
  }
}
