.i-grid {
  --i: url("./icons/grid.svg");
}
.i-search {
  --i: url("./icons/search.svg");
}
.i-receipt {
  --i: url("./icons/receipt.svg");
}
.i-list {
  --i: url("./icons/list.svg");
}
.i-calendarDays {
  --i: url("./icons/calendarDays.svg");
}
.i-desk-calendar {
  --i: url("./icons/desk-calendar.svg");
}
.i-book {
  --i: url("./icons/book.svg");
}
.i-plus {
  --i: url("./icons/plus.svg");
}
.i-chevronRight {
  --i: url("./icons/chevronRight.svg");
}
.i-close {
  --i: url("./icons/close.svg");
}
.i-brand {
  --i: url("./icons/brand.svg");
}
.i-clock {
  --i: url("./icons/clock.svg");
}
.i-board {
  --i: url("./icons/board.svg");
}
.i-cap {
  --i: url("./icons/cap.svg");
}
.i-calendar {
  --i: url("./icons/calendar.svg");
}
.i-chevronLeft {
  --i: url("./icons/chevronLeft.svg");
}
.i-timer {
  --i: url("./icons/timer.svg");
}
:root {
  color-scheme: light;
  --ink: #1c302a;
  --muted: #64746b;
  --green: #1e614b;
  --line: #dce4dc;
  --paper: #fff;
  --ground: #f4f6f2;
  --sage: #e8f1e9;
  --gold: #ad661d;
  --shadow: 0 5px 20px rgba(29, 57, 40, 0.045);
  --side: 228px;
  font:
    15px/1.5 -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    sans-serif;
  color: var(--ink);
  background: var(--ground);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
summary,
select {
  cursor: pointer;
}
button {
  border: 0;
  background: none;
}
button:disabled {
  cursor: default;
  opacity: 0.43;
}
a {
  color: var(--green);
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
button,
summary,
a {
  touch-action: manipulation;
}
button,
input,
select,
textarea,
summary {
  outline-offset: 3px;
}
button:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 2px solid #468b71;
}
button {
  transition:
    background-color 0.16s,
    box-shadow 0.16s,
    transform 0.16s;
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
[hidden] {
  display: none !important;
}
#shell {
  display: grid;
  grid-template-columns: var(--side) minmax(0, 1fr);
  min-height: 100vh;
}
#shell.collapsed {
  grid-template-columns: minmax(0, 1fr);
}
#shell.collapsed #side {
  display: none;
}
#side {
  background: #fafbf8;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  border-right: 1px solid var(--line);
  z-index: 4;
  min-width: 0;
}
.side-scroll {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 29px 15px 15px;
  overflow: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1px 8px 24px;
}
.brand-mark {
  background: #244e40;
  width: 43px;
  height: 43px;
  color: #f5f7e7;
  display: grid;
  place-items: center;
  border-radius: 13px;
  box-shadow: inset 0 1px 0 #ffffff26;
}
.brand-mark .ico {
  width: 27px;
  height: 27px;
}
.brand > div {
  display: grid;
  gap: 1px;
}
.brand b {
  font-size: 23px;
  line-height: 1.13;
  letter-spacing: 1px;
}
.brand div > span,
.identity small {
  color: var(--muted);
  font-size: 12px;
}
.brand div > span {
  letter-spacing: 0.13em;
}
#nav {
  margin-top: 12px;
}
#nav button {
  width: 100%;
  display: flex;
  align-items: center;
  text-align: left;
}
.nav-item {
  gap: 12px;
  min-height: 40px;
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 14px;
  color: #45564b;
}
.nav-item:hover,
.nav-home:hover,
.nav-group:hover {
  background: #edf1eb;
}
.nav-item[aria-current="page"] {
  background: #deebe0;
  color: #1e523e;
  font-weight: 650;
}
.nav-item[aria-current="page"]::after {
  content: "";
  margin-left: auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #42805c;
}
.nav-section {
  margin-top: 19px;
}
.nav-section-list {
  display: grid;
  gap: 2px;
}
.nav-group {
  padding: 2px 11px 6px;
  min-height: 27px;
  gap: 8px;
  color: #68786e;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 5px;
}
.nav-group .ico {
  width: 10px;
  height: 10px;
  margin-left: auto;
  transform: rotate(90deg);
}
.nav-group[aria-expanded="false"] .ico {
  transform: none;
}
.identity {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 17px 8px 1px;
  border-top: 1px solid var(--line);
}
#nav {
  margin-bottom: 35px;
}
.identity > div {
  display: grid;
}
.identity b {
  font-size: 13px;
  font-weight: 600;
}
.admin-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e4ece2;
  color: #2d5a46;
  font-size: 14px;
  font-weight: 600;
}
#resizer {
  position: absolute;
  right: -5px;
  top: 0;
  bottom: 0;
  width: 10px;
  touch-action: none;
  cursor: col-resize;
}
#resizer::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 4px;
  width: 2px;
  height: 26px;
  border-radius: 2px;
  background: #98ada0;
  opacity: 0.5;
}
#resizer:hover::after,
#resizer:focus-visible::after,
#shell.dragging #resizer::after {
  background: var(--green);
  width: 3px;
  opacity: 1;
}
.dragging {
  user-select: none;
}
#nav-scrim {
  display: none;
}
#work {
  min-width: 0;
}
.topbar {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 3vw, 48px);
  background: #fafbf8;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}
.top-left,
#crumb {
  display: flex;
  align-items: center;
  gap: 12px;
}
.top-left .icon-btn {
  margin-left: -6px;
}
.icon-btn {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: #536759;
}
.icon-btn:hover {
  background: #e7ede5;
}
#nav-toggle > span {
  display: grid;
  place-items: center;
}
#nav-toggle .ico {
  width: 14px;
  height: 14px;
}
#nav-toggle[aria-expanded="false"] .ico {
  transform: rotate(180deg);
}
#crumb {
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}
#crumb strong {
  font-weight: 590;
  color: #34493c;
}
#crumb .ico {
  width: 9px;
  height: 9px;
  color: #94a094;
}
#main {
  outline: none;
}
.page-width {
  max-width: 1540px;
  margin: auto;
  padding: 30px clamp(20px, 3vw, 48px) 48px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 23px;
}
.page-heading h1 {
  font-size: clamp(29px, 2.6vw, 40px);
  line-height: 1.2;
  font-weight: 645;
  letter-spacing: -0.055em;
}
.date-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #536256;
  font-weight: 500;
  font-size: 13px;
}
.date-chip .ico {
  width: 15px;
}
.ico {
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: middle;
  flex-shrink: 0;
  background: currentColor;
  mask: var(--i) center/contain no-repeat;
  -webkit-mask: var(--i) center/contain no-repeat;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 19px 21px;
}
.card-title,
.section-title {
  font-size: 17px;
  font-weight: 640;
  color: var(--ink);
}
.muted,
.sub {
  color: var(--muted);
}
.sub {
  font-size: 12px;
}
.num,
.numbers {
  font-variant-numeric: tabular-nums;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 580;
  line-height: 1.4;
  min-height: 35px;
  white-space: nowrap;
}
.primary {
  background: var(--green);
  color: #fff;
  border: 1px solid var(--green);
  box-shadow: 0 2px 4px #16453213;
}
.primary:hover {
  background: #164b38;
  box-shadow: 0 3px 9px #16453224;
}
.secondary {
  background: #fff;
  border: 1px solid var(--line);
  color: #365143;
}
.secondary:hover {
  background: #f1f5ef;
}
.link {
  color: var(--green);
  font-weight: 600;
  font-size: 13px;
  padding: 3px 4px;
  min-height: 29px;
  white-space: normal;
}
.link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #edf0ed;
  color: #526355;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.4;
  white-space: nowrap;
}
.tag.green,
.tag.good,
.tag.success,
.tag.live {
  color: #1f6549;
  background: #e3f2e8;
}
.tag.live::before {
  content: "";
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
}
.tag.amber,
.tag.warn,
.tag.pending,
.tag.debt {
  color: #8d551c;
  background: #fbedd9;
}
.tag.blue,
.tag.upcoming {
  color: #46617c;
  background: #e9eff6;
}
.tag.danger,
.tag.red {
  background: #f8e9e4;
  color: #974d36;
}
.tag.settled {
  background: #edf2ee;
  color: #4d6958;
}
.tag.cancelled {
  color: #697169;
  background: #eee;
}
.toolbar {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}
.toolbar .filter {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}
input,
textarea,
select {
  background: white;
  border: 1px solid #cad6ca;
  border-radius: 7px;
  padding: 8px 10px;
  max-width: 100%;
  min-height: 37px;
  font-size: 14px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #a7c9ac;
  outline-offset: 0;
  border-color: #6a9979;
}
.search-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #738174;
  border: 1px solid #cad6ca;
  border-radius: 8px;
  padding-left: 10px;
  background: white;
  min-width: 150px;
  max-width: 260px;
  flex: 1;
}
.search-wrap:focus-within {
  outline: 2px solid #a7c9ac;
  border-color: #6a9979;
}
.search-wrap input {
  border: 0;
  background: transparent;
  width: 100%;
  outline: none !important;
  padding-left: 0;
}
.search-wrap .ico {
  width: 15px;
  height: 15px;
}
.filter-clear {
  margin-left: auto;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
table th,
table td {
  padding: 12px 13px;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  border-bottom: 1px solid #e8ede6;
}
table th {
  background: #f7f9f5;
  color: #5f6c60;
  font-size: 12px;
  font-weight: 580;
}
table tbody tr:last-child td {
  border-bottom: 0;
}
table tbody tr:hover {
  background: #fafcf9;
}
.cell-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.person-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 650;
  flex-shrink: 0;
}
.a0 {
  background: #e2ece1;
  color: #47644e;
}
.a1 {
  background: #f4e9d9;
  color: #7d603d;
}
.a2 {
  background: #e5edf2;
  color: #456477;
}
.a3 {
  background: #eee8f2;
  color: #715c7c;
}
.a4 {
  background: #f4e7df;
  color: #825d4a;
}
.list-empty {
  text-align: center;
  padding: 42px 15px;
  color: var(--muted);
}
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.pager > div,
.pager label {
  display: flex;
  align-items: center;
  gap: 7px;
}
.pager select {
  padding: 3px 5px;
  min-height: 28px;
  font-size: 12px;
}
.pg {
  min-width: 29px;
  height: 29px;
  font-size: 12px;
  border-radius: 6px;
  color: #425448;
}
.pg[aria-current="page"] {
  background: #e0ede2;
  color: #245a3b;
  font-weight: 650;
}
.pg:hover:not(:disabled) {
  background: #edf2eb;
}
#panel {
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--line);
  width: min(580px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  background: #fff;
  color: var(--ink);
  box-shadow: -14px 0 60px #1c302a1f;
}
#panel::backdrop {
  background: rgba(23, 39, 30, 0.28);
}
.panel-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.panel-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  padding: 21px 25px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.panel-head h2 {
  font-size: 24px;
  letter-spacing: -0.035em;
}
.panel-head .muted {
  font-size: 13px;
  margin-top: 3px;
}
.panel-back {
  font-size: 13px;
  color: var(--green);
  padding: 0 0 5px;
}
.panel-body {
  padding: 23px 25px 36px;
  min-width: 0;
}
.panel-section + .panel-section {
  margin-top: 24px;
}
.section-title {
  margin-bottom: 12px;
}
.detail-row,
.kv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #e9eee7;
}
.detail-row:last-child,
.kv:last-child {
  border-bottom: 0;
}
.kv > span:first-child {
  color: var(--muted);
  font-size: 13px;
}
.kv > span:last-child {
  text-align: right;
  overflow-wrap: anywhere;
}
.detail-list {
  display: grid;
}
.tabs {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 7px;
  margin: 13px 0;
}
.tabs button {
  font-size: 13px;
  padding: 7px 10px;
  border-radius: 6px;
}
.tabs button.active,
.tabs [aria-selected="true"] {
  color: var(--green);
  background: #e7f1e7;
  font-weight: 600;
}
button:focus:not(:focus-visible) {
  outline: none;
}
.setting-card {
  max-width: 780px;
  padding: 23px;
}
.settings-fields {
  display: grid;
  gap: 20px;
}
.settings-fields label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}
.settings-fields input,
.settings-fields textarea {
  width: 100%;
  font-weight: 400;
}
.settings-fields textarea {
  resize: vertical;
  min-height: 92px;
}
.settings-fields .hint {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
}
.form-error {
  color: #9b3e30;
  font-size: 13px;
}
.hint {
  color: var(--muted);
}
.meta-pop b {
  font-weight: 650;
}
#toast {
  position: fixed;
  z-index: 30;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #244638;
  color: #fff;
  padding: 10px 17px;
  border-radius: 11px;
  box-shadow: 0 4px 14px #13302722;
  font-size: 14px;
  max-width: 90vw;
  text-align: center;
  pointer-events: none;
}
#panel #toast {
  position: fixed;
  left: auto;
  right: 18px;
  transform: none;
}
.sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  white-space: nowrap;
  overflow: hidden;
}
@media (max-height: 780px) and (min-width: 841px) {
  .side-scroll {
    padding-top: 20px;
  }
  .brand {
    padding-bottom: 10px;
  }
  .nav-section {
    margin-top: 12px;
  }
  .nav-item {
    min-height: 36px;
  }
}
@media (max-width: 1020px) {
  .topbar {
    padding-inline: 22px;
  }
  .page-width {
    padding: 25px 22px 40px;
  }
  .toolbar {
    gap: 9px;
    padding: 14px;
  }
  .date-chip {
    font-size: 12px;
  }
}
@media (max-width: 840px) {
  #shell,
  #shell.collapsed {
    display: block;
  }
  #side,
  #shell.collapsed #side {
    display: none;
  }
  #shell.mobile-open #side {
    display: block;
    position: fixed;
    inset: 0 auto 0 0;
    width: min(260px, 84vw);
    z-index: 11;
    box-shadow: 6px 0 28px #20382a25;
  }
  #shell.mobile-open #nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: #192d214a;
    z-index: 10;
  }
  #resizer {
    display: none;
  }
  .page-width {
    padding: 24px 18px 36px;
  }
  .topbar {
    padding-inline: 18px;
    height: 54px;
  }
  .page-heading {
    margin-bottom: 17px;
  }
}
@media (max-width: 610px) {
  .page-width {
    padding: 21px 13px 32px;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .date-chip {
    font-size: 11px;
    gap: 4px;
  }
  .date-chip .ico {
    width: 13px;
  }
  .panel-head {
    padding: 16px;
  }
  .panel-body {
    padding: 16px;
  }
  .toolbar {
    padding: 12px;
    align-items: end;
  }
  .search-wrap {
    flex: 1 0 100%;
    max-width: none;
  }
  .filter-clear {
    padding: 6px 4px;
  }
  .toolbar input[type="date"] {
    font-size: 12px;
    width: 126px;
  }
  .pager {
    padding: 10px 12px;
  }
  .panel-head h2 {
    font-size: 22px;
  }
  table td,
  table th {
    padding: 9px;
    font-size: 12px;
  }
  .setting-card {
    padding: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

.pd-person {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  white-space: nowrap;
}
.pd-person .link {
  font-weight: 640;
  color: #223b34;
}
.pd-id {
  font-variant-numeric: tabular-nums;
  color: #66736e;
  font-size: 0.87em;
}
.pd-compact-id {
  display: none;
}
.pd-directory table {
  table-layout: fixed;
}
.pd-directory th:first-child {
  width: 23%;
}
.pd-directory th:nth-child(3) {
  width: 21%;
}
.pd-directory :is(th, td) {
  white-space: normal;
  overflow-wrap: anywhere;
}
.pd-directory .pd-person {
  max-width: 100%;
  min-width: 0;
}
.pd-directory .pd-person .link,
.pd-directory .pd-related {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
}
@media (max-width: 610px) {
  .pd-directory th:first-child {
    width: auto;
  }
  /* Keep name, identifier and profile action in view; the profile contains all fields. */
  .pd-directory :is(th, td):nth-child(n+2):nth-child(-n+5) {
    display: none;
  }
  .pd-directory :is(th, td):first-child {
    padding-left: 14px;
    text-align: left;
  }
  .pd-directory :is(th, td):last-child {
    width: 90px;
  }
  .pd-directory .pd-person {
    display: flex;
    justify-content: flex-start;
  }
  .pd-directory .pd-person .link {
    text-align: left;
    line-height: 1.4;
    padding-block: 0;
    min-height: 0;
  }
  .pd-compact-id {
    display: block;
    margin: 2px 0 0 45px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
  }
  .pd-open-profile {
    min-height: 44px;
  }
}
.pd-profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 5px 0 22px;
  flex-wrap: wrap;
}
.pd-profile-head > .avatar {
  width: 52px;
  height: 52px;
  font-size: 1.15rem;
}
.pd-profile-head > div {
  flex: 1;
  min-width: 110px;
}
.pd-profile-head h3 {
  font-size: 1.36rem;
  letter-spacing: -0.035em;
  margin: 0 0 5px;
  overflow-wrap: anywhere;
  color: #1c342c;
}
.pd-profile-head small,
.pd-account-meta,
.pd-history-row small,
.pd-editor > small {
  font-size: 0.79rem;
  color: #697871;
}
.pd-metrics {
  border: 1px solid #dce6df;
  background: #f1f6f2;
  border-radius: 15px;
  padding: 16px 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}
.pd-metrics > div {
  padding: 0 8px;
  text-align: center;
}
.pd-metrics > div + div {
  border-left: 1px solid #dce5de;
}
.pd-metrics strong,
.pd-metrics small {
  display: block;
}
.pd-metrics strong {
  font-size: clamp(0.84rem, 1.4vw, 1.04rem);
  font-weight: 650;
  color: #254b3e;
  margin-top: 5px;
  font-variant-numeric: tabular-nums;
}
.pd-metrics small {
  color: #67776e;
  font-size: 0.72rem;
}
.pd-tabs {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e0e6e1;
  gap: 14px;
  margin: 24px 0 20px;
  overflow-x: auto;
}
.pd-tab {
  border: 0;
  appearance: none;
  background: none;
  color: #67736c;
  text-align: center;
  padding: 8px 1px 11px;
  min-height: 39px;
  font: inherit;
  font-size: 0.83rem;
  font-weight: 560;
  white-space: nowrap;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.pd-tab[aria-pressed="true"] {
  color: #18644f;
  border-color: #27765a;
  font-weight: 700;
}
.pd-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}
.pd-section-head h3 {
  font-size: 0.99rem;
  margin: 0;
  color: #2a3932;
}
.pd-association-list {
  display: grid;
  gap: 10px;
}
.pd-association {
  border: 1px solid #dfe5df;
  border-radius: 13px;
  padding: 13px 14px;
}
.pd-association-head,
.pd-account-meta,
.pd-history-row,
.pd-row-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.pd-association-head,
.pd-history-row {
  justify-content: space-between;
}
.pd-account-meta {
  gap: 8px 18px;
  margin-top: 11px;
}
.pd-account-meta b {
  color: #243d31;
  font-weight: 640;
}
.pd-account-meta .pd-debt {
  color: #9a532a;
}
.pd-history-row {
  border-bottom: 1px solid #e7ebe7;
  padding: 14px 1px;
}
.pd-history-row:first-child {
  padding-top: 4px;
}
.pd-history-row:last-child {
  border-bottom: 0;
}
.pd-history-row strong,
.pd-history-row small {
  display: block;
}
.pd-history-row strong {
  font-size: 0.88rem;
  color: #2e3f35;
  overflow-wrap: anywhere;
  font-weight: 610;
}
.pd-history-row small {
  margin-top: 5px;
}
.pd-row-actions {
  font-size: 0.83rem;
}
.pd-empty {
  text-align: center;
  color: #68766e;
  margin: 30px auto;
  font-size: 0.87rem;
}
.pd-editor {
  display: grid;
  gap: 12px;
}
.pd-editor label {
  font-size: 0.84rem;
  font-weight: 610;
  color: #344a3d;
  margin-top: 10px;
}
.pd-editor input,
.pd-editor select {
  display: block;
  width: 100%;
  border: 1px solid #ccd7cf;
  border-radius: 9px;
  min-height: 42px;
  padding: 0 12px;
  background: #fff;
  font: inherit;
  color: #223b2e;
}
.pd-editor small:empty {
  display: none;
}
.pd-editor small[role="alert"] {
  color: #a33928;
}
.pd-form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.pd-note {
  font-size: 0.85rem;
  line-height: 1.7;
  background: #eef4ef;
  color: #355743;
  border-radius: 12px;
  padding: 12px 14px;
}
@media (max-width: 500px) {
  .pd-tabs {
    gap: 8px;
    justify-content: space-between;
  }
  .pd-tab {
    font-size: 0.78rem;
  }
  .pd-account-meta {
    gap: 8px;
  }
  .pd-metrics {
    padding: 14px 3px;
  }
}

.record-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 20px;
  overflow: hidden;
  background: #e0e5de;
  border: 1px solid #dce3db;
  border-radius: 17px;
}
.record-strip > div {
  background: #fafbf8;
  padding: 18px clamp(15px, 2.1vw, 28px);
  min-width: 0;
}
.record-strip > div > span {
  display: block;
  margin-bottom: 6px;
  color: #59675f;
  font-size: 12px;
}
.record-strip strong {
  color: #253e34;
  font-size: clamp(20px, 2.25vw, 30px);
  font-variant-numeric: tabular-nums;
  font-weight: 620;
  letter-spacing: -0.04em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.record-strip strong small {
  color: #607168;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}
.rec-positive,
.record-strip .rec-positive {
  color: #24634e;
  font-variant-numeric: tabular-nums;
}
.rec-debt,
.record-strip .rec-debt {
  color: #96502a;
  font-variant-numeric: tabular-nums;
}
.rec-charge {
  color: #37463e;
  font-variant-numeric: tabular-nums;
}
.rec-corrected {
  color: #82653b;
}
.rec-scope {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 20px 0;
  font-size: 13px;
  color: #435e50;
}
.rec-hero,
.rec-lesson-banner {
  display: grid;
  justify-items: start;
  gap: 9px;
  padding: 22px;
  background: linear-gradient(110deg, #ebf3eb, #f5f8f1);
  border-radius: 15px;
  color: #234d3b;
}
.rec-hero.amber {
  color: #82512e;
  background: linear-gradient(110deg, #f8efdd, #fcf8ef);
}
.rec-hero > span,
.rec-lesson-banner > span:not(.tag) {
  font-size: 13px;
}
.rec-hero > strong,
.rec-lesson-banner > strong {
  font-size: 32px;
  line-height: 1.13;
  font-weight: 620;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.rec-hero small,
.rec-lesson-banner > span:not(.tag) {
  color: #526e60;
}
.rec-hero.amber small {
  color: #81664d;
}
.rec-mini-row {
  appearance: none;
  font: inherit;
  width: 100%;
  padding: 13px 2px;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #e4e9e3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  text-align: left;
}
.rec-mini-row:hover {
  background: #f6f8f4;
}
.rec-mini-row > span:first-child {
  min-width: 0;
  display: grid;
  gap: 5px;
}
.rec-mini-row strong {
  font-size: 14px;
  font-weight: 580;
  overflow-wrap: anywhere;
}
.rec-mini-row small {
  font-size: 12px;
  color: #68766e;
}
.rec-mini-end {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.rec-mini-end i {
  font-size: 20px;
  line-height: 1;
  font-weight: 400;
  font-style: normal;
  color: #799484;
}
.rec-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 19px;
}
.rec-placeholder {
  color: #627168;
  background: #f4f6f2;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}
@media (max-width: 650px) {
  .record-strip {
    margin-bottom: 14px;
    border-radius: 12px;
  }
  .record-strip > div {
    padding: 12px 8px;
  }
  .record-strip > div > span {
    font-size: 10px;
  }
  .record-strip strong {
    font-size: 17px;
  }
  .record-strip strong small {
    font-size: 11px;
  }
}

.dash-home {
  --dash-accent: #275949;
  --dash-ink: #202e29;
  --dash-muted: #65736c;
  --dash-line: #e1e6df;
  color: var(--dash-ink);
}
.dash-kpis {
  display: grid;
  grid-template-columns: 1.23fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 22px;
}
.dash-kpi,
.dash-panel,
.dash-hours {
  background: white;
  border: 1px solid var(--dash-line);
  border-radius: 16px;
}
.dash-kpi {
  position: relative;
  min-width: 0;
  min-height: 162px;
  padding: 20px 22px 19px;
  overflow: hidden;
  transition:
    box-shadow 0.18s,
    border-color 0.18s;
}
.dash-kpi-main {
  background: #214c40;
  color: #fcfff9;
  border-color: #214c40;
}
.dash-kpi-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 620;
  letter-spacing: 0.01em;
}
.dash-kpi-symbol {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #436757;
  color: #e7f4dc;
}
.dash-kpi-symbol svg,
.dash-kpi-symbol img,
.dash-kpi-symbol .ico {
  width: 16px;
  height: 16px;
}
.dash-icon-gold {
  color: #88652e;
  background: #f5ebd8;
}
.dash-icon-sage {
  color: #49715a;
  background: #e9f0e8;
}
.dash-kpi-arrow,
.dash-hours-next {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #819087;
}
.dash-kpi-arrow {
  position: absolute;
  right: 15px;
  top: 19px;
}
.dash-kpi-main .dash-kpi-arrow {
  color: #c1d4c8;
}
.dash-kpi-arrow svg,
.dash-kpi-arrow img,
.dash-kpi-arrow .ico,
.dash-hours-next svg,
.dash-hours-next img,
.dash-hours-next .ico {
  width: 13px;
  height: 13px;
}
.dash-kpi-number {
  margin: 15px 0 8px;
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 46px;
  font-weight: 550;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.dash-kpi-number small {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}
.dash-kpi-note {
  color: var(--dash-muted);
  font-size: 12px;
  line-height: 1.5;
}
.dash-kpi-main .dash-kpi-note {
  color: #d3e1d5;
}
.dash-kpi-note b {
  color: #795c32;
  font-weight: 640;
}
.dash-dot-sep {
  display: inline-block;
  padding: 0 6px;
  opacity: 0.7;
}
.dash-trend {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 7px;
  position: absolute;
  right: 20px;
  bottom: 18px;
}
.dash-trend > span {
  font-size: 10px;
  letter-spacing: 0.03em;
  color: #b9ccbd;
}
.dash-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 48px;
}
.dash-bar {
  width: 6px;
  height: var(--bar);
  border-radius: 3px;
  background: #789d87;
}
.dash-bar.today {
  background: #d4e7bc;
}
.dash-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.dash-side {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 16px;
}
.dash-panel {
  min-width: 0;
  overflow: hidden;
}
.dash-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 22px 17px;
}
.dash-list-heading h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 680;
  letter-spacing: -0.04em;
  line-height: 1.38;
}
.dash-list-heading p {
  margin: 4px 0 0;
  color: var(--dash-muted);
  font-size: 12px;
  line-height: 1.45;
}
.dash-arrow-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border: 0;
  background: transparent;
  color: var(--dash-accent);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 2px;
}
.dash-arrow-link::after {
  content: "›";
  font-family: Arial, sans-serif;
  font-size: 16px;
  margin-left: 4px;
}
.dash-slots {
  padding: 0 12px 12px;
}
.dash-slot {
  position: relative;
  display: grid;
  grid-template-columns: 49px 13px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: stretch;
  padding: 0 10px;
  border-radius: 10px;
  min-height: 62px;
}
.dash-slot:hover,
.dash-entry:hover {
  background: #f6f8f4;
}
.dash-slot.is-live {
  background: #edf4ee;
}
.dash-slot.is-live:hover {
  background: #e6f0e6;
}
.dash-slot-time {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}
.dash-slot-time strong {
  font-size: 15px;
  font-weight: 630;
  letter-spacing: -0.025em;
}
.dash-slot-time > span,
.dash-lesson-meta {
  font-size: 11px;
  color: var(--dash-muted);
  line-height: 1.55;
  margin-top: 3px;
}
.dash-track {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.dash-track::before {
  position: absolute;
  content: "";
  top: 0;
  bottom: 0;
  width: 1px;
  background: #d9e3d9;
}
.dash-slot:first-child .dash-track::before {
  top: 50%;
}
.dash-slot:last-child .dash-track::before {
  bottom: 50%;
}
.dash-track i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  border: 2px solid #a7b8a9;
  position: relative;
}
.dash-slot.is-live .dash-track i {
  background: #476e52;
  border-color: #476e52;
  box-shadow: 0 0 0 3px #d8e7d7;
}
.dash-subject {
  align-self: center;
  min-width: 0;
}
.dash-lesson-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 14px;
  font-weight: 650;
}
.dash-lesson-name > span:last-child {
  font-weight: 500;
  color: #46564c;
  font-size: 13px;
}
.dash-class-sep {
  padding: 0 7px;
  color: #bdc7be;
  font-weight: 400;
}
.dash-slot-status {
  align-self: center;
  white-space: nowrap;
}
.dash-journal .dash-list-heading {
  padding-bottom: 10px;
}
.dash-entries {
  padding: 0 12px 9px;
}
.dash-entry {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 9px;
  border-radius: 9px;
}
.dash-entry + .dash-entry::before {
  content: "";
  position: absolute;
  left: 49px;
  right: 10px;
  top: 0;
  border-top: 1px solid #eff1ec;
}
.dash-entry-icon,
.dash-hours-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.dash-entry-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}
.dash-entry-icon.is-credit {
  background: #eaf2e9;
  color: #4e7557;
}
.dash-entry-icon.is-charge {
  background: #f5ece4;
  color: #9b6744;
}
.dash-entry-icon svg,
.dash-entry-icon img,
.dash-entry-icon .ico {
  width: 16px;
  height: 16px;
}
.dash-entry-text {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 3px;
}
.dash-entry-text strong {
  font-size: 13px;
  font-weight: 620;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.dash-entry-text > span {
  color: var(--dash-muted);
  font-size: 11px;
  white-space: nowrap;
}
.dash-entry-amount {
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  letter-spacing: -0.02em;
  font-weight: 620;
}
.dash-entry-amount.is-credit {
  color: #3e745a;
}
.dash-hours {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 83px;
  padding: 14px 18px;
  background: #f0f3eb;
  border-color: #e0e6d8;
}
.dash-hours-icon {
  width: 35px;
  height: 35px;
  border-radius: 10px;
  background: #e0e9d8;
  color: #4c684a;
}
.dash-hours-icon svg,
.dash-hours-icon img,
.dash-hours-icon .ico {
  width: 18px;
  height: 18px;
}
.dash-hours-caption {
  font-size: 12px;
  color: #54705b;
}
.dash-hours-total {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
  margin-top: 3px;
}
.dash-hours-total strong {
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.025em;
}
.dash-hours-total span {
  font-size: 11px;
  color: #677665;
}
.dash-hours-next {
  margin-left: auto;
}
.dash-home .dash-hit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  margin: 0;
  border: none;
  cursor: pointer;
}
.dash-kpi:hover,
.dash-hours:hover {
  box-shadow: 0 4px 14px #234d3e10;
  border-color: #a8bba9;
}
.dash-kpi:focus-within,
.dash-slot:focus-within,
.dash-entry:focus-within,
.dash-hours:focus-within {
  outline: 2px solid #51765f;
  outline-offset: -2px;
}
.dash-empty {
  padding: 20px;
  color: var(--dash-muted);
  font-size: 13px;
  text-align: center;
}
@media (max-width: 1120px) {
  .dash-kpis {
    gap: 11px;
  }
  .dash-kpi {
    padding: 17px 16px;
  }
  .dash-trend {
    right: 15px;
  }
  .dash-bars {
    gap: 3px;
  }
  .dash-bar {
    width: 5px;
  }
  .dash-columns {
    gap: 12px;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
  .dash-slot {
    grid-template-columns: 41px 11px minmax(0, 1fr) auto;
    gap: 7px;
  }
  .dash-list-heading {
    padding: 17px 17px 12px;
  }
  .dash-entries {
    padding-inline: 7px;
  }
  .dash-slots {
    padding-inline: 7px;
  }
}
@media (max-width: 850px) {
  .dash-kpi-number {
    font-size: 39px;
  }
  .dash-kpi {
    min-height: 149px;
  }
  .dash-trend {
    right: 12px;
  }
  .dash-trend > span {
    font-size: 9px;
  }
  .dash-bar {
    width: 4px;
  }
  .dash-slot {
    padding-inline: 5px;
  }
  .dash-entries {
    padding-inline: 5px;
  }
  .dash-entry {
    gap: 6px;
  }
}
@media (max-width: 730px) {
  .dash-columns {
    grid-template-columns: minmax(0, 1fr);
  }
  .dash-kpis {
    gap: 9px;
    margin-bottom: 14px;
  }
  .dash-kpi-label {
    font-size: 12px;
    gap: 6px;
  }
  .dash-kpi-arrow {
    display: none;
  }
  .dash-kpi {
    min-height: 130px;
    padding: 13px 11px;
  }
  .dash-kpi-symbol {
    width: 21px;
    height: 21px;
  }
  .dash-kpi-number {
    margin-block: 12px 6px;
    font-size: 34px;
  }
  .dash-trend {
    display: none;
  }
  .dash-kpi-note {
    font-size: 11px;
  }
  .dash-slot {
    padding-inline: 9px;
  }
  .dash-side {
    gap: 12px;
  }
}
@media (max-width: 480px) {
  .dash-kpis {
    grid-template-columns: 1fr 1fr;
  }
  .dash-kpi-main {
    grid-column: 1/-1;
    min-height: 110px;
  }
  .dash-kpi:not(.dash-kpi-main) {
    min-height: 119px;
  }
  .dash-kpi-main .dash-trend {
    display: flex;
    right: 16px;
    bottom: 14px;
  }
  .dash-kpi-main .dash-bar {
    width: 7px;
  }
  .dash-kpi-main .dash-bars {
    gap: 5px;
  }
  .dash-slot {
    grid-template-columns: 39px 10px minmax(0, 1fr) auto;
    gap: 5px;
  }
  .dash-slot-status {
    font-size: 11px;
  }
  .dash-slot,
  .dash-entry {
    min-height: 57px;
  }
  .dash-class-sep {
    padding: 0 5px;
  }
}

[hidden] {
  display: none !important;
}
.login-page {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  padding: 24px;
}
.login-card {
  width: min(390px, 100%);
  padding: clamp(24px, 5vw, 40px);
}
.login-card .brand {
  padding: 0;
}
.login-card h1 {
  margin: 28px 0 22px;
  font-size: 28px;
  letter-spacing: -0.04em;
}
.login-card form,
.login-card label {
  display: grid;
  gap: 7px;
}
.login-card form {
  gap: 16px;
}
.login-card label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
}
.login-card input {
  min-height: 44px;
}
.login-card button {
  min-height: 43px;
}
.login-card .form-error:empty {
  display: none;
}
.session-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.workspace-status {
  color: #835119;
  background: #fbefdd;
  border: 1px solid #edddc1;
  padding: 11px 15px;
  border-radius: 9px;
  margin: 0 0 16px;
}
@media (max-width: 580px) {
  .top-left,
  #crumb {
    gap: 6px;
  }
  .session-tools {
    gap: 4px;
  }
  .session-tools .btn {
    font-size: 12px;
    padding: 5px 7px;
  }
}
