:root {
  font-family:
    "Microsoft YaHei UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #183e39;
  background: #f5f8f6;
  font-size: 13px;
  font-synthesis: none;
  --ink: #183e39;
  --muted: #5e7567;
  --teal: #007f70;
  --mint: #eaf6ef;
  --line: #e2ebe5;
  --paper: #f5f8f6;
  --lime: #a6bf65;
  accent-color: var(--teal);
  scrollbar-color: #c7d8cd transparent;
  scrollbar-width: thin;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  line-height: 1.65;
}
::selection {
  background: #cbe8d8;
  color: #0a4e43;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 9px 14px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  line-height: 1.5;
  transition:
    background-color 0.16s,
    border-color 0.16s;
}
button:hover {
  background: #f0f8f2;
  border-color: #b3d6c1;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #53bba4;
  outline-offset: 3px;
}
button svg,
.icon-button svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
a {
  color: var(--teal);
  text-underline-offset: 4px;
}
input,
select,
textarea {
  border: 1px solid #d2dfd6;
  border-radius: 7px;
  padding: 10px 12px;
  background: white;
  color: var(--ink);
  max-width: 100%;
  min-width: 0;
  caret-color: var(--teal);
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1 {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h2 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
}
h3 {
  font-size: 15px;
  font-weight: 600;
}
h4 {
  font-size: 13px;
  font-weight: 550;
}
small {
  font-size: 11px;
}
.muted,
small {
  color: var(--muted);
}
.primary {
  color: white;
  background: var(--teal);
  border-color: var(--teal);
}
.primary:hover {
  color: white;
  background: #00776a;
  border-color: #00776a;
}
.danger {
  color: #ad4a4a;
}
.icon-button {
  padding: 7px;
  border: 0;
  background: transparent;
}
.text-button {
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: #00796b;
  font-size: 12px;
  white-space: nowrap;
}
.text-button:hover {
  background: transparent;
  color: #004f46;
}
.text-button svg {
  width: 14px;
  height: 14px;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 100;
  background: white;
  padding: 12px;
}
.skip-link:focus {
  top: 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 226px;
  padding: 25px 15px 0;
  background: white;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 20;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0 10px;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.brand b {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.06em;
  margin-top: 2px;
}
.brand-symbol {
  display: grid;
  place-items: center;
  width: 37px;
  height: 42px;
  flex-shrink: 0;
  border: 1.5px solid var(--teal);
  border-radius: 12px 3px 12px 3px;
  color: var(--teal);
  font-family: serif;
  font-size: 24px;
}
.workspace-mark {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 25px 7px 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 9px;
  font-size: 10px;
  color: #536f5e;
  flex-shrink: 0;
}
.workspace-mark small {
  margin-left: auto;
  font-size: 9px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #269d7e;
  border-radius: 50%;
  flex-shrink: 0;
}
.nav-group {
  color: #74887a;
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 16px 14px 5px;
}
.nav-item {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  gap: 12px;
  border: 0;
  padding: 10px 14px;
  margin: 2px 0;
  border-radius: 8px;
  color: #60796b;
  font-size: 12px;
  background: transparent;
  text-align: left;
}
.nav-item svg {
  width: 17px;
  height: 17px;
}
.nav-item:hover {
  background: #f3f8f4;
}
.nav-item.active {
  color: #007d6f;
  font-weight: 600;
  background: var(--mint);
}
.nav-item.active::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  margin-left: auto;
}
.nav-count {
  margin-left: auto;
  font-size: 10px;
  border-radius: 4px;
  padding: 1px 5px;
  background: #eaf3eb;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 10px 0 17px;
}
.brand-promise {
  text-align: center;
  color: #6c8e74;
  font-family: serif;
  font-size: 13px;
  padding: 18px 0;
}
.profile-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 17px 7px 0;
  margin-top: 12px;
}
.profile-mini b {
  font-size: 11px;
  font-weight: 600;
  max-width: 108px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-mini small {
  display: block;
  font-size: 9px;
}
.profile-mini .icon-button {
  margin-left: auto;
  color: #6a8273;
  padding: 4px;
}
.avatar {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  background: var(--mint);
  color: #27806a;
  border-radius: 10px;
  flex-shrink: 0;
  font-size: 11px;
}
.tone-1 {
  background: #f7efdf;
  color: #916a2d;
}
.tone-2 {
  background: #eaf1fa;
  color: #52759e;
}
.tone-3 {
  background: #f8eded;
  color: #a56464;
}
.workspace {
  margin-left: 226px;
  min-width: 0;
}
.topbar {
  min-height: 71px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 32px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 13px;
  white-space: nowrap;
  font-size: 11px;
  color: var(--muted);
}
.breadcrumb b {
  font-weight: 500;
  color: var(--ink);
}
.slash {
  color: #bbc9be;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
.global-search {
  display: flex;
  align-items: center;
  gap: 8px;
}
.global-search svg {
  width: 16px;
  height: 16px;
  color: #6b8876;
}
.global-search input {
  width: 145px;
  padding: 5px 0;
  border: 0;
  background: transparent;
  font-size: 11px;
}
.global-search kbd {
  font-family: inherit;
  font-size: 9px;
  border: 1px solid #dce6dd;
  border-radius: 4px;
  color: #6b8273;
  padding: 1px 4px;
}
.original-link {
  text-decoration: none;
  font-size: 11px;
  white-space: nowrap;
}
.connection {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #647f6c;
  font-size: 10px;
  white-space: nowrap;
}
#mobileMenu {
  display: none;
}
main {
  max-width: 1640px;
  margin: auto;
  padding: 29px 32px 15px;
  min-height: calc(100vh - 125px);
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.page-head p {
  color: var(--muted);
  font-size: 11px;
  margin-top: 7px;
}
.head-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.head-actions button {
  font-size: 11px;
}
.date-label {
  color: var(--muted);
  font-size: 10px;
}
#content:focus {
  outline: none;
}
.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  background: #edf7f0;
  border: 1px solid #dcebdd;
  border-radius: 16px;
  min-height: 236px;
  overflow: hidden;
}
.hero-copy {
  padding: 27px 32px;
}
.hero h2 {
  font-size: 29px;
  line-height: 1.65;
  letter-spacing: -0.025em;
  font-weight: 500;
  color: #285b43;
}
.hero p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.9;
}
.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 17px;
}
.hero-links .text-button {
  color: #387757;
  font-size: 11px;
}
.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 15px;
}
.trinity {
  width: min(100%, 340px);
  height: 228px;
}
.trinity text {
  font-family: inherit;
  fill: #407b54;
  font-size: 12px;
  text-anchor: middle;
}
.trinity .trinity-center {
  fill: white;
  font-size: 10px;
}
.metric-grid,
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin: 20px 0;
}
.metric {
  padding: 18px 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.metric-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}
.metric-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--mint);
  color: var(--teal);
  display: grid;
  place-items: center;
}
.metric-icon svg {
  width: 16px;
  height: 16px;
}
.metric-value {
  font-size: 32px;
  font-weight: 550;
  letter-spacing: -0.03em;
  line-height: 1.4;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.metric-value small {
  font-size: 11px;
  font-weight: 400;
  margin-left: 8px;
  letter-spacing: 0;
}
.metric p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(310px, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.panel {
  border: 1px solid var(--line);
  background: white;
  border-radius: 14px;
  margin: 0 0 20px;
  min-width: 0;
  overflow: hidden;
  padding: 22px;
}
.dashboard-grid > .panel {
  padding: 0;
  margin: 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 20px 22px 15px;
}
.section-head h3 {
  font-size: 14px;
}
.section-head p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.panel > .section-head {
  margin: -22px -22px 0;
}
.dashboard-grid > .panel > .section-head {
  margin: 0;
}
.chart-legend {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
  padding: 0 22px;
}
.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.chart-legend i {
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
}
.chart-legend i.lime {
  background: var(--lime);
}
.chart-legend small {
  margin-left: auto;
  font-size: 10px;
}
.trend-chart {
  display: block;
  width: calc(100% - 20px);
  height: 207px;
  margin: 8px 10px 3px;
}
.trend-chart text {
  font-size: 9px;
  fill: #6b8472;
  text-anchor: middle;
}
.attention-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 22px;
  border-top: 1px solid #edf3ee;
}
.attention-row h4 {
  font-size: 11px;
}
.attention-row p {
  margin-top: 4px;
  font-size: 10px;
  color: var(--muted);
}
.attention-row .text-button {
  margin-left: auto;
  font-size: 10px;
  flex-shrink: 0;
}
.issue-dot {
  width: 6px;
  height: 6px;
  background: #bd9659;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}
.issue-dot.red {
  background: #bd6666;
}
.pillar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 20px 22px;
  width: 100%;
  border: 0;
  border-top: 1px solid #edf3ee;
  border-radius: 0;
  text-align: left;
}
.pillar-symbol {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--mint);
  color: var(--teal);
  flex-shrink: 0;
}
.pillar-symbol svg {
  width: 23px;
  height: 23px;
}
.pillar b {
  font-size: 12px;
  font-weight: 550;
}
.pillar small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
}
.pillar > svg {
  margin-left: auto;
  color: #8aa493;
}
.tablewrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.tablewrap.flush {
  border: 0;
  border-radius: 0;
  margin: 0;
}
.panel > .tablewrap.flush {
  margin: 0 -22px -22px;
}
.dashboard-grid > .panel > .tablewrap.flush {
  margin: 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
th {
  background: #f8fbf8;
  color: #617e69;
  font-size: 10px;
  font-weight: 500;
  padding: 12px 16px;
  vertical-align: top;
}
td {
  border-bottom: 1px solid #edf3ee;
  padding: 15px 16px;
  font-size: 11px;
  height: 54px;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #f7fbf7;
}
th button {
  background: transparent;
  border: 0;
  padding: 3px 0;
  font-size: 10px;
  justify-content: flex-start;
  color: #567260;
}
th button:hover {
  background: transparent;
  color: var(--teal);
}
th input {
  display: block;
  margin-top: 6px;
  width: 115px;
  padding: 6px 8px;
  font-size: 10px;
}
th button + button {
  display: flex;
  margin-top: 5px;
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 4px;
  color: #6c8473;
  font-size: 9px;
}
td button {
  border: 0;
  padding: 3px 0;
  font-size: 11px;
  color: var(--teal);
  background: transparent;
}
td button:hover {
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}
th:last-child,
td:last-child {
  position: sticky;
  right: 0;
  background: white;
  z-index: 1;
}
th:last-child {
  background: #f8fbf8;
  z-index: 2;
}
.person {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.person b {
  display: block;
  font-size: 12px;
  font-weight: 550;
}
.person small {
  display: block;
  font-size: 10px;
}
.person .avatar {
  width: 31px;
  height: 31px;
  border-radius: 9px;
  font-size: 10px;
}
.badge,
.tag {
  display: inline-flex;
  align-items: center;
  background: var(--mint);
  color: #267a5e;
  border-radius: 5px;
  padding: 3px 7px;
  font-size: 10px;
  white-space: nowrap;
}
.status-pending,
.status-orange,
.status-returned,
.status-awaitingHandover {
  background: #fcf2e4;
  color: #936b2f;
}
.status-red {
  background: #fbecec;
  color: #ab5353;
}
.status-cancelled,
.status-noshow,
.status-paused {
  background: #eef2ef;
  color: #637b69;
}
.status-serving,
.status-arrived {
  background: #edf2fb;
  color: #54769d;
}
.bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0;
  font-size: 11px;
}
.bar:empty {
  display: none;
}
.bar input {
  font-size: 11px;
}
.bar .muted {
  margin-left: auto;
}
.bar .tag {
  white-space: normal;
}
.bar:last-child {
  justify-content: flex-end;
  font-size: 10px;
  color: var(--muted);
}
.links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.inactive {
  opacity: 0.55;
}
.empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
}
.empty > svg {
  width: 30px;
  height: 30px;
  color: #83ad94;
  margin-bottom: 12px;
}
.empty h3 {
  color: #527360;
  font-size: 14px;
}
.empty p {
  font-size: 11px;
  margin-top: 8px;
}
.view-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.view-tabs {
  display: flex;
  gap: 4px;
  border: 1px solid var(--line);
  background: white;
  padding: 4px;
  border-radius: 9px;
}
.view-tabs button {
  border: 0;
  font-size: 11px;
  padding: 7px 13px;
}
.view-tabs button.active {
  background: var(--mint);
  color: var(--teal);
}
.welcome-strip {
  background: #edf7f0;
  padding: 27px 30px;
  border: 1px solid #dcebdd;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.welcome-strip p {
  color: #5c7f64;
  margin-top: 9px;
  font-size: 12px;
}
.work-row,
.schedule-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 22px;
  border-top: 1px solid #edf3ee;
}
.work-row p,
.schedule-row p {
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.work-row .text-button,
.schedule-row .text-button {
  margin-left: auto;
}
.task-check {
  color: #8aaf98;
}
.task-check svg {
  width: 20px;
  height: 20px;
}
.schedule-row time {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: var(--teal);
}
.schedule-row .badge {
  margin-left: auto;
}
.branch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.branch-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}
.branch-heading h2 {
  font-size: 17px;
}
.branch-heading p {
  color: var(--muted);
  font-size: 10px;
}
.branch-heading > .dot {
  margin-left: auto;
}
.branch-metrics {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 26px 0;
}
.branch-metrics strong {
  display: block;
  font-size: 27px;
  font-weight: 500;
}
.branch-metrics span {
  color: var(--muted);
  font-size: 10px;
}
.service-bar {
  height: 5px;
  border-radius: 5px;
  background: #edf3ee;
  overflow: hidden;
}
.service-bar span {
  display: block;
  height: 100%;
  background: #70ad8d;
  border-radius: inherit;
}
.branch-panel > .muted {
  margin: 9px 0 20px;
  font-size: 10px;
}
.distribution-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px 0;
  font-size: 12px;
}
.distribution-row > span {
  width: 125px;
}
.distribution-row .service-bar {
  flex: 1;
  max-width: 700px;
  height: 7px;
}
.distribution-row b {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}
.kanban {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px;
}
.kanban-column {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 16px;
  background: #eef4ef;
}
.kanban-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px 16px;
}
.kanban-head h3 {
  font-size: 12px;
}
.kanban-head > span {
  background: white;
  border-radius: 4px;
  padding: 1px 7px;
  font-size: 10px;
  color: var(--muted);
}
.task-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 17px;
  margin-bottom: 12px;
}
.task-card:last-child {
  margin-bottom: 0;
}
.task-card-top,
.task-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}
.task-card h4 {
  margin-top: 12px;
  font-size: 12px;
}
.task-card p {
  margin: 8px 0 18px;
  font-size: 10px;
  color: var(--muted);
}
.task-card-bottom {
  color: var(--muted);
  font-size: 10px;
  flex-wrap: wrap;
}
.overdue {
  color: #ac5757;
}
.lifecycle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.age-segment {
  display: block;
  padding: 23px 20px;
  border-radius: 13px;
  text-align: left;
}
.age-segment.selected {
  border-color: #7cb699;
  background: #edf7f0;
}
.age-segment > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.age-segment span {
  color: var(--muted);
  font-size: 11px;
}
.age-segment strong {
  font-size: 28px;
  color: var(--teal);
  font-weight: 400;
}
.age-segment strong small {
  font-size: 10px;
  margin-left: 5px;
}
.age-segment h3 {
  margin-top: 14px;
  font-size: 13px;
}
.age-segment p {
  margin-top: 7px;
  font-size: 10px;
  color: var(--muted);
}
.section-bottom {
  padding: 15px 22px;
  color: var(--muted);
  font-size: 11px;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}
.calendar-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}
.calendar-controls button {
  padding: 7px 12px;
}
.calendar-controls input {
  padding: 7px 10px;
  font-size: 12px;
  margin-left: 7px;
}
.calendar-panel {
  padding: 0;
  overflow-x: auto;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(134px, 1fr));
  min-height: 530px;
}
.calendar-grid.day {
  grid-template-columns: 1fr;
  min-height: 340px;
}
.calendar-day {
  border-right: 1px solid var(--line);
}
.calendar-day:last-child {
  border-right: 0;
}
.calendar-day > header {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 4px;
  padding: 14px 8px;
  background: #fbfdfb;
  border-bottom: 1px solid var(--line);
}
.calendar-day header span {
  font-size: 10px;
  color: var(--muted);
}
.calendar-day header b {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.4;
}
.calendar-day header small {
  font-size: 9px;
}
.calendar-day.today > header {
  background: #eaf6ef;
  color: var(--teal);
}
.day-appointments {
  padding: 10px 7px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.day .day-appointments {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  padding: 15px;
}
.appointment-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 11px 10px;
  border-radius: 8px;
  gap: 4px;
  background: #eff7f2;
  border: 1px solid #dcebdd;
  text-align: left;
  color: var(--ink);
}
.appointment-card:hover {
  border-color: #82b79b;
}
.appointment-card > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 4px;
}
.appointment-card time {
  font-size: 11px;
  color: #37765b;
}
.appointment-card .badge {
  padding: 1px 3px;
  font-size: 8px;
}
.appointment-card strong {
  font-size: 12px;
  font-weight: 550;
  margin-top: 4px;
}
.appointment-card small {
  font-size: 9px;
  white-space: normal;
}
.calendar-empty {
  padding: 25px 0;
  text-align: center;
  font-size: 10px;
  color: #718675;
}
.calendar-note {
  color: var(--muted);
  font-size: 11px;
}
.assistant-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.6fr);
  gap: 25px;
}
.assistant-intro {
  padding: 28px 16px 25px 4px;
}
.assistant-symbol {
  color: var(--teal);
  display: block;
  margin-bottom: 21px;
}
.assistant-symbol svg {
  width: 38px;
  height: 38px;
  stroke-width: 1.1;
}
.assistant-intro h2 {
  font-size: 25px;
  line-height: 1.75;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.assistant-intro > p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
  margin: 17px 0 27px;
  max-width: 32ch;
}
.assistant-prompt {
  width: 100%;
  justify-content: flex-start;
  font-size: 11px;
  padding: 15px 12px;
  margin-bottom: 10px;
  text-align: left;
}
.assistant-prompt > svg:last-child {
  margin-left: auto;
  width: 14px;
}
.assistant-prompt.selected {
  border-color: #b1d6bd;
  background: var(--mint);
  color: #15795c;
}
.assistant-footnote {
  margin-top: 30px;
  color: #627f6b;
  font-size: 10px;
  line-height: 2.1;
}
.assistant-footnote .dot {
  margin-right: 5px;
}
.assistant-report {
  padding: 0;
}
.assistant-report > .section-head {
  margin: 0;
}
.suggestion-row {
  display: flex;
  gap: 16px;
  padding: 23px;
  border-top: 1px solid var(--line);
}
.suggestion-marker {
  color: #6b9e82;
  padding-top: 3px;
}
.suggestion-marker svg {
  width: 21px;
  height: 21px;
}
.suggestion-row h3 {
  margin: 9px 0;
  font-size: 14px;
}
.suggestion-row p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
  margin-bottom: 13px;
  max-width: 65ch;
}
.patient-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  margin-bottom: 22px;
}
.patient-identity .avatar {
  width: 56px;
  height: 56px;
  font-size: 19px;
  border-radius: 14px;
}
.patient-identity .person b {
  font-size: 22px;
}
.patient-identity {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.patient-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  color: var(--muted);
  font-size: 11px;
}
.patient-owners {
  display: flex;
  gap: 26px;
  flex-shrink: 0;
}
.patient-owners span {
  color: var(--muted);
  font-size: 10px;
}
.patient-owners b {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
}
.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(285px, 1fr);
  gap: 22px;
}
.course-record {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.course-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.course-heading h3 {
  font-size: 13px;
}
.course-record p {
  color: var(--muted);
  font-size: 11px;
  margin: 0 0 13px;
}
.stage-track {
  display: flex;
  padding: 25px 0;
}
.stage-node {
  flex: 1;
  text-align: center;
  font-size: 9px;
  color: #758e7c;
  position: relative;
}
.stage-node::before {
  content: "";
  position: absolute;
  height: 1px;
  top: 12px;
  left: 0;
  right: 0;
  background: #deeadf;
}
.stage-node:first-child::before {
  left: 50%;
}
.stage-node:last-child::before {
  right: 50%;
}
.stage-node i {
  display: grid;
  place-items: center;
  position: relative;
  width: 25px;
  height: 25px;
  border: 3px solid white;
  border-radius: 50%;
  background: #eaf0ea;
  margin: 0 auto 8px;
  font-style: normal;
  font-size: 9px;
}
.stage-node.done {
  color: #368061;
}
.stage-node.done i {
  background: #6ca889;
  color: white;
}
.stage-node.done::before {
  background: #9ac6ab;
}
.service-timeline {
  padding: 5px 0 0 5px;
}
.service-timeline article {
  border-left: 1px solid #dce9de;
  padding: 0 0 25px 22px;
  position: relative;
}
.service-timeline article::before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #89b79a;
  left: -4px;
  top: 6px;
  outline: 4px solid white;
}
.service-timeline article:last-child {
  padding-bottom: 0;
  border-color: transparent;
}
.service-timeline time {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 5px;
}
.service-timeline h4 {
  font-size: 12px;
}
.service-timeline p {
  color: var(--muted);
  margin: 9px 0;
  font-size: 11px;
}
.service-timeline small {
  font-size: 10px;
}
.maintenance-row {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.maintenance-row > div {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
}
.maintenance-row h4 {
  margin: 12px 0;
  font-size: 12px;
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 5px 0 22px;
}
.info-grid dt {
  color: var(--muted);
  font-size: 10px;
}
.info-grid dd {
  margin: 5px 0 0;
  font-size: 12px;
}
.assistant-draft {
  width: 100%;
  background: var(--mint);
  color: #20795b;
  border: 0;
  font-size: 11px;
}
.draft-text {
  white-space: pre-line;
  padding-top: 16px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
}
.workspace-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 17px 32px;
  font-size: 9px;
  color: #6c8572;
  max-width: 1640px;
  margin: auto;
}
dialog {
  border: 1px solid #d4e1d8;
  border-radius: 14px;
  padding: 28px;
  max-width: 800px;
  width: calc(100% - 36px);
  max-height: 88vh;
  color: var(--ink);
  box-shadow: 0 24px 90px #00000026;
  overflow-y: auto;
}
dialog::backdrop {
  background: #173c314a;
}
dialog h2 {
  margin-bottom: 20px;
  font-size: 21px;
}
dialog h3 {
  margin: 24px 0 12px;
  font-size: 15px;
}
dialog p {
  font-size: 12px;
}
dialog .bar {
  margin: 18px 0;
  justify-content: flex-start;
}
dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
dialog .panel {
  box-shadow: none;
  padding: 16px 0;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}
dialog .panel strong {
  font-size: 13px;
}
dialog .details {
  font-size: 12px;
  line-height: 2.3;
  white-space: pre-wrap;
  word-break: break-word;
}
dialog .details > b {
  color: #6c8473;
  font-size: 11px;
  font-weight: 400;
}
dialog .details li {
  line-height: 1.8;
  margin-bottom: 8px;
}
.formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.formgrid label {
  font-size: 12px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #456b55;
}
.full {
  grid-column: 1/-1;
}
.error {
  background: #fbefee;
  color: #a44747;
  padding: 11px 13px;
  font-size: 12px;
  border-radius: 7px;
  margin-top: 15px;
}
.error:empty {
  display: none;
}
[hidden] {
  display: none !important;
}
#enumOptions {
  max-height: 47vh;
  overflow: auto;
}
#enumOptions label {
  align-items: center;
}
#enumOptions label:hover {
  background: #f4f9f5;
}
.stats .panel {
  margin: 0;
  padding: 20px;
  color: var(--muted);
  font-size: 11px;
}
.stats strong {
  display: block;
  font-size: 30px;
  font-weight: 500;
  color: var(--ink);
  margin-top: 10px;
}
.details ul {
  padding-left: 20px;
}
.details li {
  font-size: 11px;
}
#toast {
  position: fixed;
  right: 28px;
  bottom: 25px;
  z-index: 100;
  background: #185b48;
  color: white;
  padding: 13px 21px;
  border-radius: 9px;
  box-shadow: 0 7px 28px #00000022;
  max-width: min(480px, calc(100vw - 40px));
  display: none;
  font-size: 12px;
}
.connecting {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  min-height: 100vh;
  color: var(--muted);
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(480px, 1fr);
  background: white;
}
.auth-story {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #eaf5ed;
  padding: 45px 56px 32px;
}
.auth-story > .brand {
  padding: 0;
}
.auth-story > div {
  margin: 45px auto;
  width: min(100%, 440px);
}
.auth-story h2 {
  font-size: 43px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: #2a6346;
}
.auth-story p {
  font-size: 12px;
  color: #5f8067;
  line-height: 2;
  margin-top: 21px;
}
.auth-story .trinity {
  display: block;
  margin: 20px auto 0;
  height: 245px;
  width: 350px;
}
.auth-story > span {
  color: #5e8064;
  font-size: 11px;
}
.auth-form-area {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.auth {
  max-width: 400px;
  width: 100%;
}
.auth h1 {
  font-size: 28px;
  font-weight: 500;
}
.auth > .muted {
  margin: 12px 0 32px;
  font-size: 12px;
}
.auth .bar {
  margin: 24px 0;
}
.auth form button {
  width: 100%;
  padding: 12px 17px;
  justify-content: space-between;
}
.auth input {
  padding: 12px;
}
.auth .formgrid {
  gap: 20px;
}
.quick-access {
  border-top: 1px solid var(--line);
  padding-top: 25px;
  margin-top: 28px;
}
.quick-access > p {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 12px;
}
.quick-access > div {
  display: flex;
  gap: 10px;
}
.quick-access button {
  flex: 1;
  flex-direction: column;
  gap: 9px;
  font-size: 10px;
  padding: 14px 10px;
  background: #f7fbf8;
}
.quick-access svg {
  color: var(--teal);
}
.auth-original {
  font-size: 11px;
  display: inline-block;
  margin-top: 25px;
}
@media (min-width: 1600px) {
  .hero {
    min-height: 254px;
  }
  .hero-copy {
    padding: 32px 36px;
  }
  .hero-art .trinity {
    width: 360px;
    height: 240px;
  }
}
@media (max-width: 1200px) {
  .connection {
    display: none;
  }
  .topbar,
  main {
    padding-left: 24px;
    padding-right: 24px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(285px, 1fr);
  }
  .hero-links {
    gap: 15px;
  }
  .hero-copy {
    padding: 25px;
  }
  .hero h2 {
    font-size: 26px;
  }
  .metric {
    padding: 16px;
  }
  .metric p {
    min-height: 30px;
  }
  .branch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .patient-identity {
    gap: 14px;
  }
  .patient-meta {
    gap: 9px;
  }
  .patient-owners {
    gap: 15px;
  }
}
@media (max-width: 1050px) {
  .sidebar {
    width: 204px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .workspace {
    margin-left: 204px;
  }
  .brand b {
    font-size: 14px;
  }
  .workspace-mark {
    font-size: 9px;
  }
  .workspace-mark small {
    display: none;
  }
  .global-search input {
    width: 115px;
  }
  .global-search kbd {
    display: none;
  }
  .date-label {
    display: none;
  }
  .hero {
    grid-template-columns: 1.3fr 1fr;
  }
  .hero h2 {
    font-size: 25px;
  }
  .hero-links {
    gap: 12px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-grid > .panel.chart-panel {
    min-height: 285px;
  }
  .metric-grid {
    gap: 12px;
  }
  .metric-value {
    font-size: 28px;
  }
  .metric-icon {
    width: 24px;
    height: 24px;
  }
  .metric p {
    font-size: 9px;
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .kanban {
    gap: 12px;
  }
  .kanban-column {
    padding: 11px;
  }
  .task-card {
    padding: 13px;
  }
  .task-card-bottom .text-button {
    width: 100%;
    justify-content: flex-start;
  }
  .lifecycle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .assistant-layout {
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  }
  .auth-story {
    padding: 35px;
  }
  .auth-shell {
    grid-template-columns: 0.9fr 1fr;
  }
}
@media (max-width: 800px) {
  .sidebar {
    transform: translateX(-100%);
    width: 226px;
    transition: transform 0.2s;
  }
  .workspace {
    margin-left: 0;
  }
  .nav-open .sidebar {
    transform: translateX(0);
  }
  .nav-scrim {
    position: fixed;
    inset: 0;
    background: #173c3155;
    border: 0;
    border-radius: 0;
    z-index: 19;
  }
  .topbar {
    padding: 13px 20px;
    min-height: 63px;
  }
  .breadcrumb {
    gap: 10px;
  }
  .breadcrumb > span:nth-of-type(3),
  .breadcrumb > span:nth-of-type(4) {
    display: none;
  }
  #mobileMenu {
    display: inline-flex;
  }
  .top-actions {
    gap: 15px;
  }
  .original-link {
    font-size: 10px;
  }
  .global-search {
    display: none;
  }
  main {
    padding: 25px 20px 10px;
  }
  .page-head {
    gap: 12px;
    margin-bottom: 21px;
  }
  .page-head p {
    max-width: 45ch;
    font-size: 10px;
  }
  .hero-copy {
    padding: 24px;
  }
  .hero-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }
  .hero h2 {
    font-size: 26px;
  }
  .metric-grid,
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric p {
    min-height: 0;
    font-size: 10px;
  }
  .metric-value {
    font-size: 31px;
  }
  .dashboard-grid {
    gap: 18px;
  }
  .hero .trinity {
    height: 215px;
  }
  .kanban {
    grid-template-columns: 1fr;
  }
  .task-card-bottom .text-button {
    width: auto;
  }
  .calendar-grid.week {
    grid-template-columns: repeat(7, 155px);
  }
  .assistant-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .assistant-intro {
    padding: 0;
  }
  .assistant-intro > p {
    max-width: none;
  }
  .assistant-symbol {
    display: none;
  }
  .assistant-intro h2 {
    font-size: 24px;
  }
  .assistant-intro h2 br {
    display: none;
  }
  .assistant-footnote {
    margin: 20px 0;
  }
  .patient-banner {
    align-items: flex-start;
    flex-direction: column;
  }
  .patient-owners {
    width: 100%;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 16px;
  }
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-story {
    padding: 25px;
  }
  .auth-story > div {
    display: none;
  }
  .auth-story > span {
    display: none;
  }
  .auth-form-area {
    padding: 40px 25px;
    align-items: flex-start;
  }
  .auth-story > .brand {
    margin: 0;
  }
  .auth {
    max-width: 420px;
  }
  .workspace-footer {
    padding: 18px 20px;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 23px;
  }
  .page-head {
    align-items: flex-start;
  }
  .page-head .head-actions {
    padding-top: 3px;
  }
  .head-actions button {
    padding: 8px 10px;
    font-size: 10px;
  }
  .hero {
    grid-template-columns: 1fr;
    position: relative;
    min-height: 270px;
  }
  .hero-copy {
    position: relative;
    z-index: 1;
  }
  .hero-art {
    position: absolute;
    width: 180px;
    right: -38px;
    bottom: -15px;
    opacity: 0.5;
    padding: 0;
    pointer-events: none;
  }
  .hero .trinity {
    height: 160px;
  }
  .hero h2 {
    font-size: 26px;
  }
  .hero p {
    font-size: 10px;
    max-width: 34ch;
  }
  .hero-links {
    margin-top: 20px;
  }
  .metric-grid,
  .stats {
    gap: 11px;
    margin: 16px 0;
  }
  .metric {
    padding: 15px;
  }
  .metric-label {
    font-size: 10px;
  }
  .metric p {
    font-size: 9px;
  }
  .metric-icon {
    width: 22px;
    height: 22px;
  }
  .metric-icon svg {
    width: 13px;
    height: 13px;
  }
  .metric-value {
    font-size: 29px;
  }
  .dashboard-grid {
    margin-bottom: 16px;
  }
  .section-head {
    padding: 18px;
  }
  .section-head h3 {
    font-size: 13px;
  }
  .attention-row {
    padding: 15px 18px;
  }
  .branch-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .lifecycle-grid {
    gap: 11px;
  }
  .age-segment {
    padding: 16px;
  }
  .age-segment > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .age-segment h3 {
    margin-top: 8px;
  }
  .age-segment p {
    font-size: 10px;
  }
  .formgrid {
    grid-template-columns: 1fr;
  }
  .full {
    grid-column: auto;
  }
  dialog {
    padding: 22px;
  }
  .bar {
    gap: 8px;
  }
  .bar input {
    width: 100%;
  }
  .bar input[type="checkbox"] {
    width: 16px;
  }
  .bar label {
    width: 100%;
  }
  .bar .muted {
    margin-left: 0;
  }
  .view-toolbar {
    gap: 12px;
  }
  .calendar-controls {
    width: 100%;
  }
  .calendar-controls input {
    flex: 1;
    min-width: 0;
    width: 100px;
  }
  .view-tabs {
    width: 100%;
  }
  .view-tabs button {
    flex: 1;
  }
  .calendar-day header {
    font-size: 11px;
  }
  .welcome-strip {
    align-items: flex-start;
    flex-direction: column;
    padding: 23px;
  }
  .welcome-strip h2 {
    font-size: 19px;
  }
  .work-row {
    padding: 17px;
    gap: 10px;
  }
  .work-row h4 {
    font-size: 12px;
  }
  .schedule-row {
    flex-wrap: wrap;
  }
  .schedule-row .text-button {
    margin-left: 0;
  }
  .profile-grid {
    gap: 0;
  }
  .patient-banner {
    padding: 21px;
  }
  .patient-identity {
    gap: 14px;
  }
  .patient-meta {
    font-size: 10px;
  }
  .stage-node {
    font-size: 8px;
  }
  .stage-node span {
    display: block;
    max-width: 3em;
    margin: auto;
  }
  .course-record p {
    font-size: 11px;
  }
  .workspace-footer {
    flex-direction: column;
    gap: 4px;
  }
  .quick-access button {
    padding: 14px 8px;
  }
  .suggestion-row {
    padding: 20px 17px;
    gap: 10px;
  }
  .section-bottom {
    flex-wrap: wrap;
  }
  .auth-form-area {
    padding-top: 35px;
  }
}
.family-search {
  display: flex;
  gap: 9px;
}
.family-search input {
  width: 240px;
  font-size: 11px;
}
.family-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.family-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}
.family-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.family-card h2 {
  font-size: 20px;
  font-weight: 500;
}
.family-card header p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.family-symbol {
  color: #89ad94;
}
.family-symbol svg {
  width: 28px;
  height: 28px;
}
.family-members {
  display: flex;
  gap: 22px;
  margin: 25px 0;
  min-height: 91px;
}
.family-members > div {
  display: flex;
  align-items: center;
  flex-direction: column;
}
.family-members .avatar {
  width: 39px;
  height: 39px;
  border-radius: 50%;
  font-size: 12px;
}
.family-members b {
  font-size: 10px;
  font-weight: 500;
  margin-top: 8px;
}
.family-members small {
  font-size: 9px;
}
.family-summary {
  display: flex;
  gap: 24px;
  font-size: 10px;
  color: var(--muted);
  padding-bottom: 20px;
}
.family-summary b {
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  margin-right: 5px;
}
.family-card-footer {
  border-top: 1px solid var(--line);
  padding-top: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.family-card-footer > span {
  color: var(--muted);
  font-size: 10px;
}
@media (max-width: 1050px) {
  .family-members {
    gap: 15px;
  }
  .family-summary {
    gap: 15px;
  }
}
@media (max-width: 800px) {
  .family-grid {
    grid-template-columns: 1fr;
  }
  .family-members {
    gap: 28px;
  }
  .family-search input {
    width: 210px;
  }
}
@media (max-width: 480px) {
  .family-card {
    padding: 21px;
  }
  .family-members {
    gap: 22px;
  }
  .family-summary {
    gap: 18px;
  }
  .family-summary b {
    font-size: 17px;
  }
  .family-card-footer {
    align-items: flex-start;
  }
  .family-search {
    width: 100%;
  }
  .family-search input {
    flex: 1;
    width: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
