@font-face {
  font-family: Dana;
  src: url("/assets/fonts/Dana-FaNum-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Dana;
  src: url("/assets/fonts/Dana-FaNum-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  --ink: #132e38;
  --muted: #77868b;
  --mint: #65cec1;
  --paper: #f5f7f7;
  --line: #e4eaea;
  --amber: #b67825;
  --danger: #b44d50;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Dana, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: white;
  border-radius: 9px;
  padding: 10px 16px;
  color: var(--ink);
  transition: 0.15s;
}
button:hover {
  border-color: #8ab4ae;
  background: #f2f8f7;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
button.primary {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
button.primary:hover {
  background: #23515a;
}
button.mint {
  background: var(--mint);
  border-color: var(--mint);
}
button.ghost {
  background: transparent;
  border: 0;
}
button.danger {
  color: var(--danger);
}
a {
  color: inherit;
  text-decoration: none;
}
input,
select,
textarea {
  border: 1px solid #dce4e4;
  border-radius: 8px;
  padding: 11px 12px;
  width: 100%;
  background: white;
  color: var(--ink);
}
textarea {
  min-height: 94px;
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #399d91;
  outline: 2px solid #65cec133;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.7px;
  margin-bottom: 8px;
}
h2 {
  font-size: 18px;
}
h3 {
  font-size: 15px;
}
p {
  line-height: 1.9;
}
small,
.muted {
  color: var(--muted);
}
code,
.ltr {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
}
svg {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  flex-shrink: 0;
}
button svg {
  margin-left: 7px;
}
.shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--ink);
  color: #d0dcde;
  padding: 28px 19px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px 30px;
}
.brand img {
  width: 42px;
  height: 42px;
}
.brand b {
  display: block;
  color: white;
  font-size: 20px;
  letter-spacing: 0.3px;
}
.brand small {
  font-size: 11px;
  color: #91b2b7;
}
.nav-label {
  font-size: 10px;
  color: #75979d;
  letter-spacing: 1px;
  padding: 17px 16px 10px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 15px;
  border-radius: 9px;
  margin-bottom: 5px;
  font-size: 13px;
}
.nav-link:hover {
  background: #ffffff0c;
}
.nav-link.active {
  background: #65cec11f;
  color: #89e0d4;
  border-right: 3px solid var(--mint);
  padding-right: 12px;
}
.nav-link svg {
  width: 18px;
}
.nav-foot {
  margin-top: auto;
  padding: 20px 12px 0;
  border-top: 1px solid #ffffff14;
  font-size: 11px;
  line-height: 1.8;
  color: #7fa3aa;
}
.nav-foot strong {
  display: block;
  color: #b8cecf;
}
.main {
  min-width: 0;
}
.topbar {
  height: 82px;
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.breadcrumb {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #819398;
  font-size: 12px;
}
.breadcrumb strong {
  font-weight: 400;
  color: var(--ink);
}
.top-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.demo-badge {
  font-size: 10px;
  padding: 5px 9px;
  border-radius: 5px;
  background: #fff3dc;
  color: #98651a;
  border: 1px solid #efdcba;
}
.avatar {
  height: 34px;
  width: 34px;
  border-radius: 50%;
  background: #e4f2ef;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #46766e;
}
.account {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.content {
  padding: 30px 38px 42px;
  max-width: 1640px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 26px;
}
.page-heading p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-family: Arial, sans-serif;
  color: #65a79f;
  margin-bottom: 9px;
}
.actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat {
  padding: 21px 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #819093;
  font-size: 12px;
}
.stat-icon {
  background: #edf5f3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #488f83;
}
.stat b {
  display: block;
  font-size: 32px;
  margin: 12px 0 4px;
  line-height: 1.2;
}
.stat small {
  font-size: 10px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 22px;
}
.panel-head {
  padding: 20px 23px;
  border-bottom: 1px solid #edf1f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel-head h2 {
  margin: 0;
  font-size: 15px;
}
.panel-body {
  padding: 22px 24px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: 22px;
}
.pipeline {
  display: flex;
  justify-content: space-around;
  gap: 8px;
  padding: 30px 18px;
}
.pipe {
  flex: 1;
  text-align: center;
  position: relative;
}
.pipe:after {
  content: "";
  height: 1px;
  background: #dbe6e3;
  position: absolute;
  top: 22px;
  left: -28%;
  width: 55%;
}
.pipe:last-child:after {
  display: none;
}
.pipe b {
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  height: 44px;
  width: 44px;
  border-radius: 50%;
  background: #e6f4f0;
  color: #357f70;
  font-size: 19px;
}
.pipe span {
  font-size: 10px;
  color: #778a8e;
}
.panel-note {
  margin: 0;
  padding: 13px 22px;
  border-top: 1px solid #edf1f0;
  color: #8a989a;
  font-size: 10px;
  background: #fbfcfc;
}
.rowline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 17px;
}
.rowline:last-child {
  margin-bottom: 0;
}
.rowline .row-title {
  flex: 1;
  font-size: 12px;
}
.rowline p {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}
.circle {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #fff2dc;
  color: #bc8539;
  display: grid;
  place-items: center;
}
.circle svg {
  width: 15px;
}
.filters {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 17px 22px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.search {
  max-width: 300px;
}
.filters select {
  max-width: 170px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
  text-align: right;
}
th {
  font-size: 10px;
  font-weight: 400;
  color: #8a989d;
  background: #fcfdfd;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 18px 20px;
  border-bottom: 1px solid #eff3f2;
  font-size: 12px;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr[data-case] {
  cursor: pointer;
}
tbody tr[data-case]:hover {
  background: #f5faf8;
}
.case-title {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
  margin-bottom: 5px;
}
.subline {
  font-size: 10px;
  color: #91a09f;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 5px;
  background: #edf3f2;
  color: #617b77;
  padding: 5px 9px;
  font-size: 10px;
  line-height: 1.3;
  white-space: nowrap;
}
.badge:before {
  content: "";
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
}
.badge.green {
  background: #e7f5ee;
  color: #438f70;
}
.badge.amber {
  background: #fff4df;
  color: #ad7c2b;
}
.badge.red {
  background: #fbecec;
  color: #b26363;
}
.badge.blue {
  background: #eaf1fa;
  color: #5d80ae;
}
.priority {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}
.priority i {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #bd853c;
}
.priority.normal i {
  background: #779b9f;
}
.table-footer {
  padding: 14px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #8a989c;
  font-size: 10px;
  border-top: 1px solid var(--line);
}
.table-footer button {
  padding: 5px 10px;
  font-size: 11px;
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #daebe5;
  border-radius: 10px;
  padding: 16px 22px;
  background: #edf7f2;
  font-size: 11px;
  color: #528173;
  margin-top: 3px;
}
.hero-note strong {
  display: block;
  margin-bottom: 3px;
  color: #346a5c;
}
.hero-note svg {
  width: 25px;
  height: 25px;
}
.tabs {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
  overflow: auto;
}
.tab {
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 14px 20px;
  white-space: nowrap;
  color: #788e91;
  font-size: 12px;
}
.tab.active {
  border-bottom: 2px solid #3b9788;
  color: #24695d;
  font-weight: 700;
}
.detail-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}
.detail-metrics div {
  padding: 18px;
  background: white;
}
.detail-metrics small {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.label {
  font-size: 10px;
  color: #8a9899;
  margin-bottom: 8px;
}
.detail-copy {
  font-size: 13px;
  line-height: 2.2;
}
.item-card {
  background: white;
  border: 1px solid var(--line);
  padding: 20px 22px;
  border-radius: 11px;
  margin-bottom: 15px;
}
.item-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-bottom: 14px;
}
.item-card h3 {
  margin: 0;
  font-size: 14px;
}
.item-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: #7a8a8d;
  font-size: 11px;
  margin: 10px 0;
}
.item-card p {
  font-size: 12px;
}
.progress {
  height: 5px;
  background: #e8eeec;
  border-radius: 5px;
  overflow: hidden;
  min-width: 90px;
}
.progress i {
  display: block;
  background: #71b5a5;
  height: 100%;
}
.timeline {
  border-right: 1px solid #caddd7;
  padding-right: 24px;
  margin-right: 8px;
}
.timeline .event {
  position: relative;
  margin-bottom: 25px;
  font-size: 12px;
}
.timeline .event:before {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  background: #7bb8a8;
  border-radius: 50%;
  right: -29px;
  top: 5px;
}
.event time {
  display: block;
  font-size: 10px;
  color: #93a4a5;
  margin-bottom: 4px;
}
.empty {
  text-align: center;
  padding: 48px 20px;
  color: #819594;
}
.empty svg {
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
}
.empty p {
  font-size: 12px;
}
.empty h3 {
  color: #597775;
}
.summary-banner {
  border-right: 3px solid #e0b15f;
  background: #fffaf0;
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.9;
  margin-bottom: 20px;
}
.danger-banner {
  background: #fff1f1;
  border-color: #c67878;
}
.link-btn {
  color: #4b9483;
  font-size: 11px;
  cursor: pointer;
}
.login {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  min-height: 100vh;
}
.login-art {
  background: #132e38;
  color: white;
  padding: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.login-art .brand {
  padding: 0 0 70px;
}
.login-art h1 {
  font-size: 42px;
  line-height: 1.65;
  max-width: 500px;
}
.login-art p {
  color: #93b2b6;
  max-width: 390px;
  font-size: 14px;
}
.login-flow {
  display: flex;
  gap: 12px;
  margin-top: 35px;
}
.login-flow span {
  border: 1px solid #44646a;
  border-radius: 9px;
  padding: 13px 17px;
  font-size: 12px;
  color: #a5c9c6;
}
.login-art:after {
  content: "";
  width: 480px;
  height: 480px;
  border: 1px solid #65cec120;
  border-radius: 50%;
  position: absolute;
  bottom: -350px;
  left: -150px;
  box-shadow:
    0 0 0 75px #65cec108,
    0 0 0 150px #65cec105;
}
.login-form {
  max-width: 410px;
  width: 100%;
  margin: auto;
  padding: 32px;
}
.login-form h2 {
  font-size: 25px;
}
.login-form label {
  display: block;
  font-size: 12px;
  margin: 20px 0 8px;
}
.login-form button {
  width: 100%;
  margin: 25px 0 15px;
}
.login-form .muted {
  font-size: 12px;
}
.login-error {
  color: #b75959;
  font-size: 12px;
  min-height: 20px;
}
dialog {
  border: 1px solid #d9e3e0;
  border-radius: 15px;
  padding: 0;
  width: min(780px, 94vw);
  max-height: 90vh;
  color: var(--ink);
  box-shadow: 0 28px 90px #0d30283d;
}
dialog::backdrop {
  background: #0e2b385e;
  backdrop-filter: blur(3px);
}
.modal-head {
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-head h2 {
  margin: 0;
  font-size: 18px;
}
.modal-content {
  padding: 25px;
  overflow: auto;
  max-height: 66vh;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field label {
  display: block;
  font-size: 11px;
  color: #6b8384;
  margin-bottom: 7px;
}
.field.full {
  grid-column: 1/-1;
}
.field input[type="checkbox"] {
  width: auto;
  margin-left: 9px;
}
.field-help {
  font-size: 10px;
  color: #92a3a2;
  margin-top: 6px;
  line-height: 1.7;
}
.form-section {
  grid-column: 1/-1;
  font-size: 13px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 8px;
}
.modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 26px;
  border-top: 1px solid var(--line);
  background: #fbfcfc;
}
.form-error {
  font-size: 11px;
  color: #af5555;
  line-height: 1.8;
}
.codebox {
  direction: ltr;
  text-align: left;
  font-family: Consolas, monospace;
  font-size: 11px;
  white-space: pre-wrap;
  word-break: break-all;
  background: #f4f7f6;
  padding: 16px;
  border-radius: 8px;
  max-height: 400px;
  overflow: auto;
}
.loading {
  padding: 60px;
  text-align: center;
  color: #789b92;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.connector {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
.connector h3 {
  direction: ltr;
  text-align: right;
}
.connector p {
  font-size: 10px;
  color: #879996;
}
.chip {
  background: #f1f5f4;
  border: 1px solid #e4ebe7;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 28px;
  background: #173d3d;
  color: white;
  padding: 14px 23px;
  border-radius: 10px;
  z-index: 100;
  box-shadow: 0 8px 30px #0002;
  display: none;
  max-width: 440px;
  font-size: 12px;
}
#toast.show {
  display: block;
}
.mobile-menu {
  display: none;
}
.numeric {
  font-variant-numeric: tabular-nums;
}
.report-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.report-link a {
  color: #438574;
}
.graph {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding: 20px;
}
.graph .node {
  border: 1px solid #d4e5df;
  background: #f5fbf7;
  border-radius: 10px;
  padding: 16px;
  min-width: 160px;
  font-size: 12px;
}
.graph .candidate {
  border-style: dashed;
  background: #fffaf0;
}
.file-input {
  padding: 15px;
  border: 1px dashed #9dbdb5;
  border-radius: 8px;
}
.w100 {
  width: 100%;
}
.nowrap {
  white-space: nowrap;
}
@media (min-width: 1600px) {
  .content {
    padding-top: 40px;
  }
  .stat {
    padding: 25px;
  }
  .topbar {
    height: 90px;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .content {
    padding: 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .sidebar {
    padding: 25px 10px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .settings-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    display: none;
    position: fixed;
    right: 0;
    z-index: 20;
    width: 240px;
  }
  .sidebar.open {
    display: flex;
  }
  .mobile-menu {
    display: block;
  }
  .content {
    padding: 22px 16px;
  }
  .topbar {
    height: 66px;
    padding: 0 15px;
  }
  .breadcrumb {
    display: none;
  }
  .account span {
    display: none;
  }
  .top-actions {
    gap: 8px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat b {
    font-size: 26px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  h1 {
    font-size: 24px;
  }
  .split,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
  .detail-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .login {
    display: block;
  }
  .login-art {
    padding: 35px;
    min-height: 290px;
  }
  .login-art .brand {
    padding: 0 0 25px;
  }
  .login-art h1 {
    font-size: 28px;
  }
  .login-art p,
  .login-flow {
    display: none;
  }
  .login-form {
    padding: 35px;
  }
  .pipeline {
    gap: 2px;
    padding: 25px 8px;
  }
  .pipe b {
    width: 35px;
    height: 35px;
  }
  .pipe span {
    font-size: 9px;
  }
  .pipe:after {
    top: 18px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .filters input,
  .filters select {
    max-width: none;
    flex: 1;
  }
  .modal-content {
    padding: 20px;
  }
  .topbar .demo-badge {
    font-size: 9px;
  }
  .table-wrap td {
    padding: 16px;
  }
  .case-title {
    max-width: 230px;
  }
}
