:root {
  --bg: #f5f6f3;
  --paper: #fff;
  --ink: #1c2d2b;
  --muted: #75807b;
  --line: #e3e8e1;
  --accent: #146f54;
  --accent-light: #e6f4ec;
  --nav: #172624;
  --danger: #b33f43;
  --amber: #9b681b;
  --radius: 15px;
  --shadow: 0 7px 30px #18392b08;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: var(--accent);
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #5db896;
  outline-offset: 3px;
}
button {
  color: inherit;
}
button svg,
a svg {
  width: 18px;
  height: 18px;
  flex: none;
}
svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 20px;
  background: var(--accent);
  color: white;
  padding: 12px 18px;
  z-index: 100;
}
.skip-link:focus {
  top: 12px;
}
.boot {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--muted);
  gap: 16px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #7de0bb;
  color: #172624;
  font-weight: 900;
  font-size: 29px;
  line-height: 1;
  letter-spacing: -3px;
  padding-right: 3px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.7px;
}
.brand small {
  font-size: 10px;
  letter-spacing: 2px;
  color: #9cafaa;
  font-weight: 600;
  margin-top: 3px;
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.app-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--nav);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 29px 18px 20px;
  z-index: 40;
}
.sidebar .brand {
  padding: 0 11px;
  margin-bottom: 35px;
}
.workspace-chip {
  border: 1px solid #ffffff1c;
  background: #ffffff06;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 2px 25px;
}
.workspace-chip .company-avatar {
  background: #324440;
  color: #b7d8c9;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.workspace-chip .workspace-name {
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workspace-chip small {
  display: block;
  color: #90a49c;
  font-size: 10px;
  margin-top: 3px;
}
.nav-caption {
  font-size: 9px;
  font-weight: 700;
  color: #7c958b;
  letter-spacing: 1.7px;
  padding: 0 15px;
  margin: 6px 0 12px;
}
.nav-list {
  display: grid;
  gap: 4px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 9px;
  color: #a9bbb3;
  font-size: 13px;
  font-weight: 500;
}
.nav-link svg {
  width: 18px;
  height: 18px;
}
.nav-link:hover {
  background: #ffffff08;
  color: white;
}
.nav-link.active {
  background: #7de0bb;
  color: #172f27;
  font-weight: 700;
}
.sidebar-foot {
  margin-top: auto;
  padding-top: 22px;
}
.sidebar-note {
  border-top: 1px solid #ffffff12;
  padding: 20px 12px 12px;
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: #90a79d;
  font-size: 11px;
  line-height: 1.6;
}
.sidebar-note .live-dot {
  margin-top: 5px;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7de0bb;
  flex: none;
}
.user-menu {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #c3d0cb;
  padding: 9px 12px;
  border-radius: 9px;
}
.user-menu:hover {
  background: #ffffff08;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e4ede5;
  color: #4a6c5d;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex: none;
}
.user-menu .avatar {
  background: #385046;
  color: #c1dfcc;
}
.user-name {
  font-size: 12px;
  font-weight: 600;
  display: block;
}
.user-role {
  font-size: 10px;
  color: #8ea59a;
  margin-top: 4px;
  display: block;
}
.main-shell {
  min-width: 0;
}
.topbar {
  height: 79px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  border-bottom: 1px solid var(--line);
  background: #ffffff9c;
  gap: 14px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.breadcrumb strong {
  font-weight: 600;
  color: var(--ink);
}
.topbar-end {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--muted);
  font-size: 11px;
}
.topbar-clock {
  border-right: 1px solid var(--line);
  padding-right: 17px;
}
.secure-tag {
  display: flex;
  align-items: center;
  gap: 6px;
}
.secure-tag svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}
.menu-button {
  display: none;
}
.main-content {
  padding: 35px 38px 50px;
  max-width: 1600px;
  margin: auto;
  min-height: calc(100vh - 80px);
}
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
}
.eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.9px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 10px;
}
.page-header h1 {
  font-size: 29px;
  letter-spacing: -1px;
  margin: 0;
  font-weight: 700;
  line-height: 1.25;
}
.page-description {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  margin: 9px 0 0;
  max-width: 700px;
}
.page-actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: 9px;
  min-height: 40px;
  padding: 10px 15px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button:hover {
  background: #f0f4ef;
}
.button.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 3px 7px #146f5412;
}
.button.primary:hover {
  background: #0e5e46;
}
.button.danger {
  color: var(--danger);
  background: #fff9f9;
  border-color: #edd5d6;
}
.button.ghost {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
.button.small {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 11px;
}
.button.icon-only {
  width: 36px;
  padding: 8px;
}
.button.full {
  width: 100%;
}
.button:active {
  transform: translateY(1px);
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel + .panel {
  margin-top: 22px;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 21px 23px;
  border-bottom: 1px solid var(--line);
}
.panel-heading h2 {
  font-size: 14px;
  margin: 0;
  letter-spacing: -0.15px;
}
.panel-heading small {
  font-size: 11px;
  color: var(--muted);
}
.panel-body {
  padding: 23px;
}
.section-label {
  margin: 27px 0 13px;
  font-size: 14px;
  font-weight: 650;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 23px;
}
.metric {
  position: relative;
  padding: 22px 23px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 143px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: var(--shadow);
}
a.metric:hover {
  border-color: #a1c7b2;
}
.metric-label {
  font-size: 11px;
  color: #6a7971;
  line-height: 1.5;
  max-width: 85%;
}
.metric-icon {
  position: absolute;
  right: 19px;
  top: 19px;
  color: #7e978b;
  background: #f2f6f0;
  width: 29px;
  height: 29px;
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.metric-icon svg {
  width: 15px;
  height: 15px;
}
.metric-value {
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.8px;
  margin-top: 20px;
  font-weight: 650;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.metric-note {
  font-size: 10px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.5;
}
.metric.highlight {
  background: var(--nav);
  border-color: var(--nav);
}
.metric.highlight .metric-value {
  color: #fff;
}
.metric.highlight .metric-label,
.metric.highlight .metric-note {
  color: #acbfb5;
}
.metric.highlight .metric-icon {
  background: #31463c;
  color: #86cfa5;
}
.summary-strip {
  display: flex;
  align-items: center;
  gap: 22px;
  border: 1px solid #dce8dc;
  background: #edf5eb;
  padding: 16px 21px;
  border-radius: 11px;
  margin-bottom: 24px;
  color: #49624f;
  font-size: 11px;
  line-height: 1.6;
}
.summary-strip svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.summary-strip p {
  margin: 0;
}
.summary-strip strong {
  font-weight: 650;
}
.summary-strip.duplicate-alert {
  border-color: #efcf9a;
  background: #fff5e5;
  color: #7b4d12;
  flex-wrap: wrap;
}
.duplicate-alert > div {
  flex: 1;
  min-width: 180px;
}
.project-overview {
  margin-top: 28px;
}
.project-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 16px;
}
.project-overview-heading {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border, #e1e7e1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.project-overview-grid > .panel + .panel {
  margin-top: 0;
}
.project-overview-heading h3 {
  margin: 0;
  font-size: 17px;
  overflow-wrap: anywhere;
}
.project-overview-heading a {
  color: inherit;
  text-decoration: none;
}
.project-overview-heading a:hover {
  text-decoration: underline;
}
.project-review-breakdown {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border, #e1e7e1);
}
.project-review-breakdown summary {
  cursor: pointer;
  font-size: 13px;
  margin-bottom: 16px;
}
@media (max-width: 1100px) {
  .project-overview-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
  gap: 22px;
  align-items: start;
}
.two-column .panel + .panel {
  margin-top: 0;
}
.tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 23px;
}
.tab {
  border-bottom: 2px solid transparent;
  padding: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.tab.active {
  border-color: var(--accent);
  color: var(--accent);
}
.tab:hover {
  color: var(--ink);
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 20px;
}
.filters .field {
  min-width: 145px;
  flex: 1;
  margin-bottom: 0;
}
.filters .field.search-field {
  flex: 2;
  min-width: 190px;
}
.filters .date-field {
  max-width: 160px;
  min-width: 135px;
}
.filters .button {
  height: 40px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 17px;
}
.field > label {
  font-size: 11px;
  font-weight: 600;
  color: #53645c;
}
.field input,
.field select,
.field textarea {
  background: #fff;
  color: var(--ink);
  border: 1px solid #dce3da;
  border-radius: 8px;
  min-height: 40px;
  padding: 10px 12px;
  width: 100%;
  min-width: 0;
  font-size: 12px;
}
.field textarea {
  min-height: 88px;
  resize: vertical;
  line-height: 1.65;
}
.field input::placeholder {
  color: #9aa69e;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #9cb5a6;
}
.field small {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.5;
}
.field input[readonly] {
  background: #f5f7f3;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.form-grid > .wide {
  grid-column: 1/-1;
}
.table-wrap {
  overflow: auto;
  max-width: 100%;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
  white-space: nowrap;
}
.data-table th {
  font-size: 9px;
  letter-spacing: 0.75px;
  text-transform: uppercase;
  color: #869188;
  font-weight: 650;
  background: #fafbf8;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
}
.data-table td {
  padding: 17px 22px;
  border-bottom: 1px solid #eef1eb;
  vertical-align: middle;
}
.data-table tr:last-child td {
  border-bottom: 0;
}
.data-table tbody tr:hover {
  background: #fafcf8;
}
.data-table th.numeric,
.data-table td.numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.data-table .cell-main {
  font-size: 12px;
  font-weight: 550;
  color: var(--ink);
}
.data-table .cell-sub {
  font-size: 10px;
  margin-top: 5px;
  color: var(--muted);
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.data-table a.cell-main:hover {
  color: var(--accent);
}
.row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 600;
  padding: 5px 8px;
  line-height: 1.3;
  background: #f0f3ee;
  color: #6e7d72;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.badge.success {
  color: #2b7751;
  background: #edf7ed;
}
.badge.warning {
  color: #a0772e;
  background: #fbf5e7;
}
.badge.danger {
  color: #b05454;
  background: #fbefed;
}
.badge.info {
  color: #4b7296;
  background: #edf3f9;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 15px 22px;
  color: var(--muted);
  font-size: 10px;
  gap: 12px;
}
.pagination-buttons {
  display: flex;
  gap: 7px;
}
.empty-state {
  padding: 51px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 49px;
  height: 49px;
  border-radius: 14px;
  background: #f0f5ed;
  color: #8ca18f;
  margin-bottom: 16px;
}
.empty-icon svg {
  width: 23px;
  height: 23px;
}
.empty-state h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 8px;
}
.empty-state p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 380px;
  margin: 0 0 17px;
}
.loading-state {
  padding: 75px 25px;
  color: var(--muted);
  display: flex;
  gap: 11px;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #dbe7dc;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.loading-screen {
  padding: 95px 0;
}
.skeleton {
  height: 18px;
  background: linear-gradient(100deg, #edf1eb 15%, #f8faf5 40%, #edf1eb 65%);
  background-size: 250%;
  animation: shimmer 1.5s infinite;
  border-radius: 5px;
}
.error-box {
  padding: 15px 18px;
  background: #fff3ef;
  border: 1px solid #f0dcd3;
  color: #a6543e;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.notice {
  padding: 14px 17px;
  border-radius: 9px;
  background: #f4f7f0;
  color: #6e7b68;
  font-size: 11px;
  line-height: 1.7;
  margin: 16px 0;
}
.notice p {
  margin: 0;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 24px;
}
.detail-item dt {
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 8px;
}
.detail-item dd {
  font-size: 13px;
  margin: 0;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.detail-item.wide {
  grid-column: 1/-1;
}
.detail-item dd.amount {
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.6px;
}
.detail-label {
  font-size: 10px;
  color: var(--muted);
  margin: 0 0 8px;
}
.detail-text {
  font-size: 13px;
  line-height: 1.7;
}
.amount {
  font-variant-numeric: tabular-nums;
}
.muted {
  color: var(--muted);
}
.text-danger {
  color: var(--danger);
}
.text-accent {
  color: var(--accent);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 23px;
}
.back-link svg {
  width: 14px;
  height: 14px;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline li {
  position: relative;
  border-left: 1px solid #e0e7dc;
  margin-left: 5px;
  padding: 0 0 25px 22px;
  font-size: 11px;
  line-height: 1.6;
}
.timeline li::before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  background: #91b6a0;
  border: 3px solid white;
  box-sizing: content-box;
  border-radius: 50%;
  left: -7px;
  top: 1px;
}
.timeline li:last-child {
  border: 0;
  padding-bottom: 0;
}
.timeline time {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.raw-text {
  white-space: pre-wrap;
  word-break: break-word;
  font:
    11px/1.8 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  margin: 0;
  color: #667468;
  max-height: 350px;
  overflow: auto;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
  margin-bottom: 24px;
}
.bank-card {
  background: linear-gradient(125deg, #223d32, #153027);
  color: white;
  border-radius: 14px;
  min-height: 161px;
  padding: 23px;
  position: relative;
  overflow: hidden;
}
.bank-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -70px;
  border: 1px solid #ffffff0c;
  border-radius: 50%;
  width: 220px;
  height: 220px;
  box-shadow:
    0 0 0 35px #ffffff03,
    0 0 0 70px #ffffff02;
  pointer-events: none;
}
.bank-card h3 {
  font-size: 13px;
  margin: 0 0 34px;
  font-weight: 550;
  position: relative;
  z-index: 1;
}
.bank-card p {
  font-size: 19px;
  letter-spacing: 2px;
  margin: 0;
  color: #e8f2e9;
}
.bank-card small {
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #97b3a3;
  display: block;
  margin-top: 12px;
}
.activity-row {
  padding: 15px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #eef1eb;
}
.activity-row:last-child {
  border: 0;
}
.activity-icon {
  background: #f1f5ed;
  color: #6c8a73;
  display: grid;
  place-items: center;
  width: 33px;
  height: 36px;
  border-radius: 9px;
  flex: none;
}
.activity-icon svg {
  width: 16px;
  height: 16px;
}
.activity-content {
  flex: 1;
  min-width: 0;
}
.activity-title {
  display: block;
  font-size: 11px;
  font-weight: 550;
}
.activity-note {
  display: block;
  font-size: 10px;
  margin-top: 5px;
  color: var(--muted);
}
.activity-value {
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}
.section-footnote {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 14px;
}
.inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.code-box {
  background: #f2f6ef;
  border: 1px dashed #c3d6bc;
  border-radius: 10px;
  padding: 17px;
  text-align: center;
  font:
    600 21px/1.6 ui-monospace,
    monospace;
  letter-spacing: 3px;
  overflow-wrap: anywhere;
  margin: 18px 0;
}
.toast-region {
  position: fixed;
  bottom: 23px;
  right: 25px;
  display: grid;
  gap: 9px;
  z-index: 200;
  max-width: min(420px, calc(100vw - 32px));
}
.toast {
  background: #223b30;
  color: #f3fbf4;
  border: 1px solid #46624c;
  border-radius: 10px;
  padding: 14px 18px;
  box-shadow: 0 10px 30px #1a36202b;
  font-size: 12px;
  line-height: 1.6;
  animation: slideIn 0.15s ease;
}
.toast.error {
  background: #80453c;
  border-color: #a66558;
}
.toast button {
  border: 0;
  background: transparent;
  color: inherit;
  float: right;
  padding-left: 15px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 0;
  width: 540px;
  max-width: calc(100% - 30px);
  max-height: calc(100vh - 40px);
  color: var(--ink);
  box-shadow: 0 30px 130px #102b3052;
}
dialog::backdrop {
  background: #17282485;
  backdrop-filter: blur(3px);
}
.dialog-header {
  padding: 24px 25px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.dialog-header h2 {
  font-size: 18px;
  letter-spacing: -0.5px;
  margin: 0;
}
.dialog-body {
  padding: 24px 25px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding-top: 21px;
  margin-top: 5px;
  border-top: 1px solid var(--line);
}
.dialog-description {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  margin: 0 0 21px;
}
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(400px, 1fr);
}
.login-story {
  background: var(--nav);
  padding: 43px 55px 36px;
  display: flex;
  flex-direction: column;
  color: white;
  position: relative;
  overflow: hidden;
}
.login-story::after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border: 1px solid #91bca519;
  border-radius: 50%;
  bottom: -310px;
  right: -150px;
  box-shadow:
    0 0 0 65px #91bca506,
    0 0 0 130px #91bca504,
    0 0 0 195px #91bca503;
  pointer-events: none;
}
.login-story-main {
  margin: auto 0;
  padding: 65px 0;
  max-width: 520px;
  z-index: 1;
}
.login-story .eyebrow {
  color: #8ec7a8;
  font-size: 10px;
  letter-spacing: 2.7px;
}
.login-story h1 {
  font-size: 51px;
  font-weight: 600;
  line-height: 1.17;
  letter-spacing: -2px;
  margin: 20px 0 25px;
}
.login-story h1 span {
  color: #91d2aa;
}
.login-story .lead {
  font-size: 14px;
  color: #9eb7a9;
  line-height: 1.9;
  max-width: 360px;
}
.login-benefits {
  margin-top: 42px;
  display: grid;
  gap: 19px;
}
.login-benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #c4d8ca;
  font-size: 12px;
}
.login-benefit svg {
  width: 17px;
  height: 17px;
  color: #7fcfa0;
}
.login-story-footer {
  font-size: 10px;
  color: #6e9281;
  z-index: 1;
}
.login-form-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 55px;
  background: #fafbf8;
}
.login-card {
  width: 100%;
  max-width: 365px;
}
.login-icon {
  display: grid;
  place-items: center;
  background: #eaf2e6;
  color: var(--accent);
  width: 46px;
  height: 46px;
  border-radius: 13px;
  margin-bottom: 27px;
}
.login-icon svg {
  width: 23px;
  height: 23px;
}
.login-card h2 {
  font-size: 27px;
  letter-spacing: -0.8px;
  margin: 0 0 13px;
}
.login-card .intro {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
  margin: 0 0 31px;
}
.login-card .button {
  min-height: 46px;
  font-size: 12px;
}
.login-steps {
  list-style: none;
  counter-reset: step;
  padding: 24px 0 0;
  margin: 25px 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 17px;
}
.login-steps li {
  counter-increment: step;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 11px;
  line-height: 1.7;
  color: #7e8a80;
}
.login-steps li::before {
  content: counter(step);
  background: #eef2e9;
  color: #7d9683;
  font-size: 9px;
  font-weight: 600;
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  border-radius: 50%;
}
.login-footer {
  font-size: 10px;
  color: #97a091;
  line-height: 1.8;
  margin-top: 35px;
}
.login-waiting {
  margin: 19px 0;
  padding: 15px 17px;
  background: #edf5e8;
  border: 1px solid #dbe9d4;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 11px;
  color: #5d7c5e;
  line-height: 1.6;
}
.login-mobile-brand {
  display: none;
}
.mobile-overlay {
  display: none;
}
.pill-count {
  font-size: 9px;
  background: #e9efdf;
  color: #678248;
  border-radius: 4px;
  padding: 3px 6px;
}
.dialog-confirm-summary {
  display: grid;
  gap: 9px;
  background: #f6f8f2;
  border-radius: 10px;
  padding: 17px;
  margin-bottom: 21px;
  font-size: 12px;
  line-height: 1.7;
}
.dialog-confirm-summary strong {
  font-size: 22px;
  letter-spacing: -0.5px;
}
.report-summary {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 21px;
}
.report-summary strong {
  color: var(--ink);
  font-size: 13px;
}
.session-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.8;
}
.session-row:last-child {
  border: 0;
}
.session-row strong {
  display: block;
  font-weight: 550;
}
.session-row small {
  color: var(--muted);
}
.full-span {
  grid-column: 1/-1;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes shimmer {
  to {
    background-position: -200%;
  }
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1500px) {
  .main-content {
    padding-top: 40px;
  }
  .metric {
    min-height: 152px;
  }
  .metric-value {
    font-size: 30px;
  }
}
@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .topbar {
    padding: 0 25px;
  }
  .main-content {
    padding: 28px 25px 40px;
  }
  .metrics {
    gap: 11px;
  }
  .metric {
    padding: 18px 16px;
  }
  .metric-value {
    font-size: 23px;
  }
  .metric-icon {
    right: 13px;
    top: 15px;
  }
  .data-table td,
  .data-table th {
    padding-left: 17px;
    padding-right: 17px;
  }
  .login-story {
    padding: 35px;
  }
  .login-story h1 {
    font-size: 43px;
  }
  .two-column {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .topbar-clock {
    display: none;
  }
  .login-page {
    grid-template-columns: 0.9fr 1fr;
  }
  .login-story h1 {
    font-size: 36px;
  }
  .login-story {
    padding: 32px;
  }
  .login-form-side {
    padding: 35px;
  }
  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    left: 0;
    transform: translateX(-100%);
    visibility: hidden;
    width: 247px;
    transition: transform 0.2s;
  }
  .app-shell.menu-open .sidebar {
    transform: translateX(0);
    visibility: visible;
  }
  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: #142a2777;
    z-index: 35;
  }
  .app-shell.menu-open .mobile-overlay {
    display: block;
  }
  .menu-button {
    display: inline-flex;
    background: transparent;
    border: 0;
    padding: 5px;
    color: var(--ink);
  }
  .menu-button svg {
    width: 21px;
    height: 21px;
  }
  .topbar {
    height: 63px;
    padding: 0 19px;
  }
  .breadcrumb {
    font-size: 10px;
    gap: 7px;
    flex: 1;
  }
  .breadcrumb > span:first-child,
  .breadcrumb > .separator {
    display: none;
  }
  .topbar-end {
    font-size: 9px;
    gap: 9px;
  }
  .secure-tag span {
    display: none;
  }
  .topbar-end .avatar {
    width: 29px;
    height: 29px;
    font-size: 10px;
  }
  .main-content {
    padding: 25px 19px 35px;
    min-height: calc(100vh - 63px);
  }
  .page-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 22px;
  }
  .page-header h1 {
    font-size: 26px;
  }
  .page-header .page-actions {
    margin-left: auto;
  }
  .page-description {
    font-size: 11px;
  }
  .metrics {
    gap: 10px;
    margin-bottom: 18px;
  }
  .metric {
    padding: 18px 15px;
    min-height: 135px;
    border-radius: 12px;
  }
  .metric-value {
    font-size: 24px;
    margin-top: 22px;
  }
  .metric-label {
    font-size: 10px;
    max-width: 100%;
    padding-right: 19px;
  }
  .metric-note {
    font-size: 9px;
  }
  .metric-icon {
    right: 11px;
    top: 12px;
    width: 23px;
    height: 23px;
  }
  .metric-icon svg {
    width: 12px;
    height: 12px;
  }
  .summary-strip {
    padding: 13px 15px;
    gap: 11px;
    font-size: 10px;
    align-items: flex-start;
  }
  .panel-heading {
    padding: 18px 17px;
  }
  .panel-body {
    padding: 19px 17px;
  }
  .data-table th {
    padding: 12px 15px;
    font-size: 8px;
  }
  .data-table td {
    padding: 15px;
    font-size: 10px;
  }
  .data-table .cell-main {
    font-size: 11px;
  }
  .filters {
    gap: 9px;
  }
  .filters .field {
    min-width: 120px;
  }
  .filters .field.search-field {
    flex-basis: 100%;
  }
  .filters .date-field {
    max-width: none;
    flex-basis: 40%;
    min-width: 120px;
  }
  .filters .field > label {
    font-size: 10px;
  }
  .filters .button {
    padding-left: 13px;
    padding-right: 13px;
  }
  .tabs {
    gap: 20px;
  }
  .tab {
    font-size: 11px;
  }
  .detail-grid {
    gap: 19px 14px;
  }
  .detail-item dd {
    font-size: 12px;
  }
  .detail-item dd.amount {
    font-size: 21px;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .bank-card {
    min-height: 150px;
  }
  .pagination {
    padding: 14px 15px;
    font-size: 9px;
  }
  .button {
    font-size: 11px;
    min-height: 38px;
    padding: 9px 13px;
  }
  .login-page {
    display: block;
  }
  .login-story {
    display: none;
  }
  .login-form-side {
    min-height: 100vh;
    padding: 30px;
  }
  .login-mobile-brand {
    display: flex;
    margin-bottom: 55px;
    width: 100%;
    max-width: 365px;
  }
  .login-mobile-brand .brand-mark {
    background: var(--nav);
    color: #7de0bb;
  }
  .login-mobile-brand .brand {
    color: var(--ink);
  }
  .login-card h2 {
    font-size: 28px;
  }
  .login-card {
    margin: auto 0;
  }
  .login-footer {
    margin-top: 30px;
  }
  .toast-region {
    bottom: 17px;
    right: 16px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .dialog-header {
    padding: 20px;
  }
  .dialog-body {
    padding: 20px;
  }
  .dialog-header h2 {
    font-size: 17px;
  }
  .dialog-actions {
    flex-wrap: wrap;
  }
  .activity-row {
    padding: 15px 17px;
  }
  .secure-tag {
    gap: 3px;
  }
  .panel-heading small {
    font-size: 9px;
  }
  .session-row {
    flex-direction: column;
    gap: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

[hidden] {
  display: none !important;
}
.mt-24 {
  margin-top: 24px;
}
.mt-22 {
  margin-top: 22px;
}
.mt-20 {
  margin-top: 20px;
}
.mb-20 {
  margin-bottom: 20px;
}
.block {
  display: block;
}
.pagination-position {
  align-self: center;
  margin-right: 8px;
}
