@font-face {
  font-family: DM;
  src: url(fonts/font-0.ttf);
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: DM;
  src: url(fonts/font-1.ttf);
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: DM;
  src: url(fonts/font-2.ttf);
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: DM;
  src: url(fonts/font-3.ttf);
  font-weight: 700;
  font-display: swap;
}
:root {
  --green: #164f43;
  --green-hover: #236b59;
  --ink: #233a33;
  --muted: #64736d;
  --line: #e1e7e2;
  --paper: #f6f8f5;
  --pale: #edf4e9;
  --white: #fff;
  --orange: #a5661e;
  --red: #a54639;
  --sans: DM, Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #8ea95c;
  outline-offset: 3px;
}
::selection {
  background: #dbe9c9;
  color: var(--green);
}
input,
textarea {
  caret-color: var(--green);
}
body {
  scrollbar-color: #b3c4b7 var(--paper);
}
h1,
h2,
h3,
p {
  margin: 0;
}
p {
  line-height: 1.65;
}
h1,
h2,
h3 {
  letter-spacing: -0.025em;
}
svg {
  display: block;
}
button svg {
  pointer-events: none;
}
[hidden] {
  display: none !important;
}
.icon {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.wordmark span {
  font-size: 12px;
  letter-spacing: 0.16em;
  font-weight: 500;
  align-self: flex-end;
  margin-bottom: 5px;
}
.wordmark img {
  border-radius: 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 40px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s;
}
.btn:hover {
  background: var(--pale);
}
.btn.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.btn.primary:hover {
  background: var(--green-hover);
}
.btn.subtle {
  border-color: transparent;
  background: transparent;
}
.btn.small {
  min-height: 32px;
  padding: 7px 11px;
  font-size: 12px;
}
.btn.full {
  width: 100%;
}
.btn .icon {
  width: 16px;
  height: 16px;
}
.text-btn {
  padding: 3px 0;
  background: none;
  border: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.icon-btn {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
}
.icon-btn:hover {
  background: var(--pale);
}
.button-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.demo-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #476637;
  background: #eaf0e3;
  padding: 7px 9px;
  border-radius: 5px;
  white-space: nowrap;
}
.login-screen {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
.login-story {
  background: var(--green);
  color: #f3f7ec;
  padding: 48px 64px;
  display: flex;
  flex-direction: column;
}
.login-story .wordmark {
  font-size: 35px;
}
.story-content {
  margin-block: auto;
  padding-block: 70px;
}
.story-content h1 {
  font-size: clamp(38px, 4.3vw, 64px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.story-content > p {
  max-width: 380px;
  font-size: 17px;
  color: #d6e6d5;
  margin-top: 30px;
}
.login-process {
  display: flex;
  gap: 0;
  align-items: center;
  margin-top: 45px;
}
.login-process > span {
  position: relative;
  font-size: 12px;
  padding: 9px 13px;
  border: 1px solid #719584;
  border-radius: 6px;
  margin-right: 20px;
}
.login-process > span:not(:last-child):after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  width: 21px;
  height: 1px;
  background: #719584;
}
.story-bottom {
  font-size: 12px;
  color: #c9dfcb;
}
.login-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 50px 40px;
  background: #fbfcf9;
}
.login-box {
  width: 100%;
  max-width: 380px;
  margin-block: auto;
  padding-block: 35px;
}
.login-box h2 {
  font-size: 32px;
  line-height: 1.25;
  margin-top: 23px;
  font-weight: 500;
}
.login-box > p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 17px;
}
.login-box form {
  margin-top: 32px;
}
.login-box label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 8px;
}
.login-box input {
  width: 100%;
  border: 1px solid #ccd7ce;
  background: white;
  border-radius: 6px;
  padding: 13px 14px;
  min-height: 46px;
  color: var(--ink);
  margin-bottom: 20px;
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 65px;
}
.password-field button {
  position: absolute;
  right: 10px;
  top: 12px;
  border: 0;
  background: none;
  color: var(--green);
  font-size: 12px;
  padding: 4px;
}
.login-box .full {
  margin-bottom: 9px;
  min-height: 46px;
}
.login-box .login-disclosure {
  font-size: 12px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 17px;
}
.login-copyright {
  font-size: 12px;
  color: var(--muted);
}
.application {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  position: sticky;
  top: 0;
  height: 100dvh;
  padding: 26px 16px 16px;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.sidebar .wordmark {
  padding-inline: 10px;
  font-size: 28px;
}
.sidebar .wordmark span {
  font-size: 12px;
}
.workspace {
  display: flex;
  gap: 9px;
  align-items: center;
  border-block: 1px solid var(--line);
  padding: 18px 4px;
  margin: 25px 0 17px;
}
.workspace-avatar {
  background: var(--pale);
  color: var(--green);
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
}
.workspace strong {
  font-size: 12px;
  display: block;
  font-weight: 500;
}
.workspace small {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-top: 3px;
}
.sidebar nav {
  display: grid;
  gap: 4px;
}
.nav-link {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 10px 13px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  min-height: 40px;
}
.nav-link:hover {
  background: #f4f7f1;
  color: var(--green);
}
.nav-link.active {
  background: #edf3e8;
  color: var(--green);
  font-weight: 600;
}
.nav-link .icon {
  width: 17px;
  height: 17px;
}
.nav-count {
  margin-left: auto;
  font-size: 12px;
  background: #f3e9da;
  color: #895614;
  padding: 2px 6px;
  border-radius: 4px;
}
.nav-group {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #78877f;
  padding: 20px 13px 8px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 30px;
}
.demo-callout {
  padding: 15px;
  background: #f5f7f0;
  border-radius: 8px;
}
.demo-callout strong {
  font-size: 12px;
  font-weight: 500;
}
.demo-callout p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  margin-bottom: 10px;
}
.profile {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  text-align: left;
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  margin-top: 17px;
  padding: 17px 5px 0;
  color: var(--ink);
}
.avatar {
  width: 33px;
  height: 33px;
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: #e9eede;
  color: #4c633d;
  font-size: 12px;
  font-weight: 500;
}
.profile strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.profile small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}
.profile > span:last-child {
  margin-left: auto;
}
.app-main {
  min-width: 0;
}
.topbar {
  height: 73px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 32px;
  border-bottom: 1px solid var(--line);
  background: white;
  gap: 15px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb strong {
  font-weight: 500;
  color: var(--ink);
}
.breadcrumb > span:nth-child(2) {
  color: #afb9b0;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar .demo-tag {
  font-size: 12px;
}
#sidebar-toggle {
  display: none;
}
.demo-banner {
  padding: 10px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  background: #eff3e9;
  color: #506444;
  font-size: 12px;
  border-bottom: 1px solid #e2e8d7;
}
#view {
  padding: 32px;
  max-width: 1600px;
  margin: auto;
  outline: none;
  min-height: calc(100dvh - 160px);
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}
.page-heading h1 {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.3;
}
.page-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
}
.page-heading .button-row {
  justify-content: flex-end;
}
.date-label {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 23px;
}
.metric {
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.metric-label {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.metric-label .icon {
  width: 17px;
  height: 17px;
  color: #82917d;
}
.metric-value {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-top: 14px;
  font-variant-numeric: tabular-nums;
}
.metric-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.metric-note .positive {
  color: #347451;
}
.metric-note .attention {
  color: var(--orange);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: 22px;
  margin-bottom: 22px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  min-width: 0;
  overflow: hidden;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 21px;
  border-bottom: 1px solid var(--line);
}
.panel-heading h2 {
  font-size: 14px;
  letter-spacing: 0;
  font-weight: 600;
}
.panel-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.panel-body {
  padding: 21px;
}
.panel-heading .text-btn {
  font-size: 12px;
}
.legend {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
}
.legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend i {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 2px;
}
.legend span:last-child i {
  background: #bdcda8;
}
.bar-chart {
  display: flex;
  align-items: stretch;
  height: 200px;
  gap: 16px;
  padding-top: 15px;
}
.chart-axis {
  width: 35px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  padding-bottom: 28px;
  font-variant-numeric: tabular-nums;
}
.chart-columns {
  display: flex;
  flex: 1;
  gap: 18px;
  align-items: stretch;
}
.chart-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  align-items: center;
}
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  flex: 1;
  width: 100%;
  max-width: 50px;
  border-bottom: 1px solid var(--line);
}
.chart-bar {
  background: var(--green);
  width: 50%;
  min-height: 2px;
  border-radius: 3px 3px 0 0;
}
.chart-bar.secondary {
  background: #bdcda8;
}
.chart-month {
  font-size: 12px;
  color: var(--muted);
  padding-top: 13px;
}
.chart-summary {
  border-top: 1px solid var(--line);
  padding-top: 17px;
  margin-top: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.chart-summary strong {
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}
.task-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.task-list li + li {
  border-top: 1px solid var(--line);
}
.task-button {
  background: none;
  border: 0;
  width: 100%;
  padding: 17px 21px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  color: var(--ink);
}
.task-button:hover {
  background: #f9faf6;
}
.task-icon {
  width: 33px;
  height: 33px;
  border-radius: 7px;
  background: #f5ecdd;
  color: #966524;
  display: grid;
  place-items: center;
  flex: none;
}
.task-icon.green {
  background: #eaf1e4;
  color: var(--green);
}
.task-button strong {
  font-size: 12px;
  font-weight: 500;
  display: block;
}
.task-button small {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-top: 5px;
}
.task-button > .icon {
  margin-left: auto;
  width: 15px;
  height: 15px;
  color: #87957d;
}
.cycle {
  display: flex;
  justify-content: space-between;
  padding: 20px;
  gap: 8px;
  overflow: auto;
}
.cycle-step {
  min-width: 95px;
  flex: 1;
}
.cycle-label {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cycle-label .icon {
  width: 14px;
  height: 14px;
  color: #769069;
}
.cycle-value {
  font-size: 21px;
  font-weight: 500;
  margin-top: 13px;
}
.cycle-track {
  height: 4px;
  background: #e6eddf;
  border-radius: 4px;
  margin-top: 13px;
  overflow: hidden;
}
.cycle-track span {
  height: 100%;
  display: block;
  background: #779566;
}
.section-gap {
  margin-top: 22px;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 200px;
  flex: 1;
  max-width: 330px;
}
.search-field .icon {
  width: 17px;
  height: 17px;
  color: #8c9a90;
}
.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  padding: 8px 0;
  font-size: 12px;
}
.search-field input::placeholder {
  color: #738177;
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.filter-group label {
  font-size: 12px;
  color: var(--muted);
}
select {
  border: 1px solid var(--line);
  padding: 8px 30px 8px 10px;
  border-radius: 6px;
  background: white;
  font-size: 12px;
  color: var(--ink);
  max-width: 100%;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
  font-size: 12px;
}
th {
  font-weight: 500;
  color: var(--muted);
  font-size: 12px;
  background: #fafbf8;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 14px 20px;
  border-bottom: 1px solid #ecf0e9;
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fafcf7;
}
td.numeric,
th.numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.patient-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.patient-cell .avatar {
  width: 30px;
  height: 30px;
  font-size: 12px;
}
.cell-main {
  display: block;
  font-weight: 500;
  color: var(--ink);
}
.cell-sub {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.table-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--green);
  font-weight: 500;
  font-size: 12px;
  text-align: left;
}
.table-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 4px;
  padding: 5px 7px;
  font-size: 12px;
  white-space: nowrap;
  background: #eef1eb;
  color: #5d6d60;
  font-weight: 500;
}
.badge.green {
  background: #eaf3e5;
  color: #386b37;
}
.badge.amber {
  background: #fcf0d9;
  color: #936016;
}
.badge.red {
  background: #faeae5;
  color: #a04b3c;
}
.badge.blue {
  background: #eaf1f5;
  color: #3e6a81;
}
.badge.purple {
  background: #f0ebf7;
  color: #74518d;
}
.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.empty-state {
  text-align: center;
  padding: 60px 25px;
  white-space: normal;
  color: var(--muted);
  font-size: 13px;
}
.empty-state strong {
  display: block;
  color: var(--ink);
  margin-bottom: 8px;
  font-weight: 500;
}
.summary-strip {
  display: flex;
  gap: 25px;
  margin-bottom: 23px;
  padding: 18px 20px;
  background: #edf3e7;
  border: 1px solid #dce7d3;
  border-radius: 8px;
  font-size: 12px;
  align-items: center;
}
.summary-strip .icon {
  color: var(--green);
}
.summary-strip strong {
  font-weight: 500;
}
.summary-strip p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.split-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.settings-form {
  display: grid;
  gap: 19px;
  padding: 23px;
  max-width: 700px;
}
.field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 8px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid #cfd9cf;
  border-radius: 6px;
  padding: 11px 12px;
  background: white;
  color: var(--ink);
  font-size: 13px;
}
.field textarea {
  min-height: 110px;
  resize: vertical;
}
.field p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 15px;
  border-bottom: 1px solid var(--line);
}
.toggle-row span {
  font-size: 13px;
}
.toggle-row small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.toggle-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}
.detail-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  max-height: none;
  height: 100dvh;
  max-width: 100%;
  width: 560px;
  border: 0;
  border-left: 1px solid var(--line);
  padding: 0;
  background: white;
  color: var(--ink);
}
dialog::backdrop {
  background: #12291e55;
}
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 26px;
  border-bottom: 1px solid var(--line);
}
.drawer-header h2 {
  font-size: 21px;
  font-weight: 600;
}
.drawer-header p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
}
.drawer-body {
  padding: 26px;
}
.drawer-body h3 {
  font-size: 14px;
  margin-bottom: 14px;
  margin-top: 26px;
  font-weight: 600;
}
.drawer-body h3:first-child {
  margin-top: 0;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}
.detail-grid dt {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 7px;
}
.detail-grid dd {
  font-size: 13px;
  margin: 0;
  font-weight: 500;
}
.drawer-actions {
  border-top: 1px solid var(--line);
  padding-top: 23px;
  margin-top: 26px;
}
.activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.activity-list li {
  display: flex;
  gap: 12px;
  padding-block: 15px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.6;
}
.activity-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #789563;
  flex: none;
  margin-top: 6px;
}
.activity-list small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.note-box {
  background: #f3f6ee;
  border-radius: 7px;
  padding: 16px;
  font-size: 12px;
  color: #506345;
  line-height: 1.7;
}
.note-box.warning {
  background: #faf1e0;
  color: #895d25;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.check-list li {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-block: 11px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.check-list .icon {
  width: 16px;
  height: 16px;
  color: #5e8750;
}
.confirm-dialog {
  border: 0;
  border-radius: 12px;
  width: min(440px, calc(100% - 40px));
  padding: 28px;
  color: var(--ink);
}
.confirm-dialog h2 {
  font-size: 22px;
  font-weight: 500;
}
.confirm-dialog p {
  font-size: 13px;
  color: var(--muted);
  margin-block: 16px 24px;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: white;
  border-radius: 8px;
  padding: 14px 22px;
  font-size: 13px;
  box-shadow: 0 8px 24px #132a2626;
  z-index: 10;
  max-width: calc(100% - 32px);
  line-height: 1.6;
}
.app-footer {
  padding: 17px 32px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.revenue-bars {
  display: grid;
  gap: 21px;
}
.revenue-row {
  display: grid;
  grid-template-columns: 125px 1fr 80px;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.revenue-row > div {
  height: 9px;
  border-radius: 5px;
  background: #edf2e7;
  overflow: hidden;
}
.revenue-row > div > span {
  display: block;
  height: 100%;
  background: #719361;
}
.revenue-row strong {
  text-align: right;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.integration-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.integration-row:last-child {
  border-bottom: 0;
}
.integration-row > div {
  flex: 1;
}
.integration-row strong {
  font-size: 13px;
  font-weight: 500;
}
.integration-row p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.integration-monogram {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  background: #f0f3e9;
  border-radius: 8px;
  font-size: 13px;
  color: #718363;
}
.report-subheading {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}
.login-error {
  color: var(--red);
  font-size: 12px;
  margin-bottom: 15px;
}
.input-error {
  color: var(--red);
  font-size: 12px;
  margin-top: 8px;
}
.summary-strip .button-row {
  margin-left: auto;
}
.select-row {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}
@media (min-width: 1600px) {
  #view {
    padding: 40px;
  }
}
@media (max-width: 1200px) {
  .application {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .sidebar {
    padding-inline: 12px;
  }
  .sidebar .wordmark {
    font-size: 25px;
  }
  .metrics {
    gap: 12px;
  }
  .metric {
    padding: 16px;
  }
  .metric-value {
    font-size: 26px;
  }
  .dashboard-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 16px;
  }
  .panel-heading {
    padding: 17px;
  }
  .panel-body {
    padding: 17px;
  }
  #view {
    padding: 25px;
  }
  .topbar {
    padding-inline: 25px;
  }
  .chart-columns {
    gap: 12px;
  }
  .legend {
    gap: 8px;
    font-size: 12px;
  }
  .login-story {
    padding-inline: 40px;
  }
}
@media (max-width: 1000px) {
  .dashboard-grid,
  .split-content {
    grid-template-columns: 1fr;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading .button-row {
    max-width: 240px;
  }
  .cycle {
    gap: 15px;
  }
  .login-screen {
    grid-template-columns: 0.85fr 1fr;
  }
  .login-story {
    padding-inline: 30px;
  }
  .story-content h1 {
    font-size: 43px;
  }
  .login-process {
    flex-wrap: wrap;
    gap: 10px;
  }
  .login-process > span {
    margin: 0;
  }
  .login-process > span:after {
    display: none;
  }
  .login-side {
    padding-inline: 30px;
  }
  .demo-banner {
    font-size: 12px;
  }
  .topbar .demo-tag {
    display: none;
  }
}
@media (max-width: 760px) {
  .application {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 238px;
    z-index: 5;
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 12px 0 40px #183f292e;
  }
  #sidebar-toggle {
    display: grid;
  }
  .topbar {
    padding-inline: 18px;
    height: 64px;
  }
  .breadcrumb {
    font-size: 12px;
    gap: 9px;
  }
  .topbar-actions {
    gap: 8px;
  }
  #view {
    padding: 24px 18px;
  }
  .demo-banner {
    padding: 10px 18px;
    font-size: 12px;
  }
  .page-heading h1 {
    font-size: 23px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .page-heading {
    gap: 15px;
  }
  .page-heading .btn {
    font-size: 12px;
    padding: 8px 11px;
    min-height: 36px;
  }
  .page-heading .date-label {
    display: none;
  }
  .metrics {
    gap: 12px;
  }
  .metric {
    padding: 16px;
  }
  .metric-value {
    font-size: 27px;
  }
  .metric-label {
    font-size: 12px;
  }
  .metric-note {
    font-size: 12px;
  }
  .toolbar {
    padding: 12px 16px;
  }
  .search-field {
    max-width: none;
  }
  .filter-group {
    width: 100%;
    justify-content: space-between;
  }
  .filter-group select {
    flex: 1;
  }
  .panel-heading {
    gap: 10px;
  }
  .panel-heading h2 {
    font-size: 13px;
  }
  .panel-heading .legend {
    font-size: 12px;
  }
  .task-button {
    padding: 16px;
  }
  .app-footer {
    padding-inline: 18px;
    gap: 20px;
    font-size: 12px;
  }
  .app-footer span:last-child {
    max-width: 190px;
    text-align: right;
  }
  .login-screen {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 24px;
    min-height: auto;
  }
  .story-content {
    padding-block: 30px;
  }
  .story-content h1 {
    font-size: 35px;
  }
  .story-content h1 br {
    display: none;
  }
  .story-content > p {
    font-size: 14px;
    margin-top: 17px;
  }
  .login-process,
  .story-bottom {
    display: none;
  }
  .login-side {
    padding: 20px 25px 30px;
  }
  .login-box {
    max-width: 400px;
    padding-block: 20px 30px;
  }
  .login-box h2 {
    font-size: 27px;
  }
  .login-box h2 br {
    display: none;
  }
  .login-story .wordmark {
    font-size: 29px;
  }
  .login-disclosure {
    font-size: 12px !important;
  }
  .summary-strip {
    gap: 12px;
    padding: 15px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .summary-strip p {
    font-size: 12px;
  }
  .summary-strip .button-row {
    margin-left: 0;
  }
  .revenue-row {
    grid-template-columns: 100px 1fr 65px;
    font-size: 12px;
  }
  .drawer-header,
  .drawer-body {
    padding: 22px;
  }
  .chart-axis {
    font-size: 12px;
  }
  .chart-columns {
    gap: 10px;
  }
  .chart-bars {
    gap: 3px;
  }
  .chart-summary {
    font-size: 12px;
  }
  .toolbar > .button-row {
    margin-left: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
@media (max-width: 380px) {
  .metrics {
    gap: 8px;
  }
  .metric {
    padding: 12px;
  }
  .metric-label {
    font-size: 12px;
  }
  .metric-value {
    font-size: 24px;
  }
  .metric-label .icon {
    display: none;
  }
  .breadcrumb > span:first-of-type {
    display: none;
  }
  .page-heading {
    flex-wrap: wrap;
  }
  .page-heading .button-row {
    max-width: none;
  }
  .chart-columns {
    gap: 7px;
  }
  .chart-summary {
    flex-wrap: wrap;
    gap: 10px;
  }
}
@media (max-width: 760px) {
  .integration-row {
    flex-wrap: wrap;
    gap: 12px;
  }
  .integration-row > div {
    min-width: 130px;
  }
  .integration-row > .btn {
    margin-left: auto;
    white-space: normal;
  }
}

.login-box h2 { margin-top: 0; }
.login-box > .demo-tag { display: inline-block; margin-top: 18px; }
