:root {
  --green: #00853c;
  --green-dark: #073b2d;
  --ink: #30363d;
  --muted: #68717c;
  --line: #e9ebef;
  --bg: #f5f5f6;
  --gold: #c6a76a;
  --red: #b84343;
  --blue: #4562be;
  --shadow: 0 2px 6px #18213b03;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  font: 13px/1.65 Poppins, Arial, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--green);
}
button,
a {
  cursor: pointer;
}
button {
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button {
  border: 0;
}
svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 24px;
  letter-spacing: -0.6px;
  line-height: 1.3;
  font-weight: 600;
}
h2 {
  font-size: 16px;
  letter-spacing: -0.4px;
  font-weight: 600;
}
h3 {
  font-size: 14px;
  font-weight: 600;
}
small,
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.initial-loader {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid #c9d8cf;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
.login-story {
  background: var(--green-dark);
  padding: 55px 64px;
  position: relative;
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-story:after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border: 1px solid #ffffff12;
  border-radius: 50%;
  right: -240px;
  bottom: -180px;
  box-shadow: 0 0 0 70px #ffffff04, 0 0 0 140px #ffffff03;
  pointer-events: none;
}
.logo-wrap {
  background: white;
  border-radius: 12px;
  padding: 13px 17px;
  display: inline-flex;
  width: 200px;
}
.logo-wrap img {
  display: block;
  width: 100%;
  height: auto;
}
.login-story h1 {
  font-size: 48px;
  line-height: 1.2;
  max-width: 450px;
  margin: 24px 0;
}
.login-story p {
  color: #bed3c7;
  font-size: 16px;
  max-width: 410px;
}
.login-story .eyebrow {
  color: var(--gold);
}
.login-features {
  display: flex;
  gap: 22px;
  margin-top: 38px;
  color: #c9dccf;
  font-size: 12px;
}
.login-features span {
  display: flex;
  gap: 8px;
  align-items: center;
}
.login-footer {
  font-size: 11px;
  color: #98b5a5;
}
.login-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 28px;
}
.login-card {
  width: 100%;
  max-width: 390px;
}
.lock-box {
  width: 54px;
  height: 54px;
  border: 1px solid #d4e7d9;
  border-radius: 16px;
  background: #e9f5ed;
  color: var(--green);
  display: grid;
  place-items: center;
  margin-bottom: 30px;
}
.login-card h1 {
  margin: 10px 0 12px;
}
.login-card > p {
  margin-bottom: 28px;
}
.login-card .field {
  margin: 20px 0;
}
.login-card .primary {
  width: 100%;
  justify-content: center;
  height: 48px;
}
.login-card .footnote {
  margin-top: 30px;
  font-size: 11px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--muted);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field label {
  font-size: 12px;
  font-weight: 600;
}
.field input,
.filters input,
.filters select {
  height: 43px;
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 0 13px;
  color: var(--ink);
  font-size: 12px;
}
.field input:focus,
.filters input:focus,
.filters select:focus {
  outline: 2px solid #00853c30;
  border-color: var(--green);
}
.otp {
  text-align: center;
  letter-spacing: 12px;
  font-size: 24px;
}
.form-error {
  color: var(--red);
  font-size: 12px;
  min-height: 20px;
  margin: 12px 0;
}
.text-button {
  background: none;
  color: var(--green);
  padding: 12px 0;
  font-size: 12px;
}
.primary,
.secondary,
.danger,
.subtle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  padding: 11px 16px;
  min-height: 40px;
}
.primary {
  background: var(--green);
  color: white;
}
.primary:hover {
  background: #006f32;
}
.secondary {
  background: #fff;
  border: 1px solid var(--line);
}
.secondary:hover {
  background: #f0f5f1;
}
.danger {
  background: #fff0f0;
  color: var(--red);
  border: 1px solid #f0d5d5;
}
.subtle {
  background: #eef5f0;
  color: var(--green);
}
.icon-button {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
}
.icon-button:hover {
  background: #e8f0eb;
  color: var(--green);
}
.shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 238px;
  background: #fff;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  padding: 26px 17px;
  z-index: 40;
  border-right: 1px solid var(--line);
  overflow: auto;
}
.sidebar-brand {
  padding: 0 12px 25px;
}
.sidebar-brand .logo-wrap {
  width: 180px;
  border-radius: 0;
  padding: 0;
}
.sidebar-brand .eyebrow {
  font-size: 9px;
  margin-top: 16px;
  color: #68717c;
  letter-spacing: 1.3px;
  font-weight: 600;
}
.nav-caption {
  font-size: 10px;
  letter-spacing: 0.8px;
  padding: 14px 15px 9px;
  color: #858c96;
}
.nav-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13.2px;
  font-weight: 400;
  min-height: 40px;
  line-height: 1.5;
}
.nav-link svg {
  width: 19px;
  height: 19px;
  color: #7b8490;
}
.nav-link:hover {
  background: #f5f5f6;
  color: var(--ink);
}
.nav-link.active {
  background: #eaf5ee;
  color: #007b37;
  box-shadow: none;
  font-weight: 600;
}
.nav-link.active svg {
  color: #00853c;
}
.nav-count {
  margin-left: auto;
  min-width: 20px;
  text-align: center;
  background: #b63d44;
  color: white;
  border-radius: 5px;
  font-size: 10px;
  padding: 1px 4px;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 20px 12px 0;
  font-size: 11px;
  color: var(--muted);
}
.system-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #329764;
  border-radius: 50%;
  margin-right: 6px;
}
.sidebar-bottom a {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: #68717c;
}
.sidebar-bottom svg {
  width: 15px;
  height: 15px;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 72px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  gap: 16px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.breadcrumb strong {
  font-weight: 500;
  color: var(--ink);
}
.topbar-right {
  display: flex;
  gap: 13px;
  align-items: center;
}
.topbar-date {
  font-size: 11px;
  color: var(--muted);
  border-right: 1px solid var(--line);
  padding-right: 18px;
}
.user-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #e7f1e9;
  color: var(--green);
  font-weight: 700;
  font-size: 12px;
}
.user-meta {
  font-size: 12px;
}
.user-meta small {
  display: block;
  font-size: 11px;
}
.content {
  max-width: 1510px;
  margin: auto;
  padding: 28px 32px 44px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 26px;
}
.page-head p {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}
.page-head .eyebrow {
  margin-bottom: 8px;
  color: var(--green);
}
.page-tools {
  display: flex;
  gap: 9px;
  flex-shrink: 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 22px;
}
.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.metric.primary-metric {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.metric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.metric-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #eef5f0;
  color: var(--green);
  display: grid;
  place-items: center;
}
.metric-icon svg {
  width: 17px;
  height: 17px;
}
.primary-metric .metric-head {
  color: var(--muted);
}
.primary-metric .metric-icon {
  color: var(--green);
  background: #eef5f0;
}
.metric-value {
  font-size: 35px;
  font-weight: 600;
  letter-spacing: -1px;
  margin: 9px 0 1px;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}
.metric-caption {
  font-size: 11px;
  color: var(--muted);
}
.primary-metric .metric-caption {
  color: var(--muted);
}
.metric-rate {
  color: var(--green);
  font-size: 10px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr);
  gap: 21px;
  margin-bottom: 22px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  min-width: 0;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 20px 16px;
}
.panel-head p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.panel-body {
  padding: 4px 20px 20px;
}
.panel-head .text-button {
  padding: 0;
}
.badge {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  background: #f0f2f3;
  color: #6a7972;
}
.badge.applied,
.badge.sent {
  background: #e8f5ec;
  color: #197348;
}
.badge.pending,
.badge.queued {
  background: #fff6e1;
  color: #9a7022;
}
.badge.failed,
.badge.uncertain {
  background: #feeeee;
  color: #b34747;
}
.badge.preparing,
.badge.sending {
  background: #eaf0ff;
  color: #4a60a5;
}
.badge-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.summary-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 0;
  border-bottom: 1px solid #eef2ef;
}
.summary-item:last-child {
  border: 0;
}
.summary-icon {
  width: 38px;
  height: 38px;
  background: #f0f5f2;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--green);
}
.summary-text {
  font-size: 12px;
  flex: 1;
}
.summary-text small {
  display: block;
  font-size: 11px;
  margin-top: 3px;
}
.summary-number {
  font-size: 22px;
  font-weight: 600;
}
.panel-footer {
  padding: 14px 24px;
  background: #fafafb;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.notice {
  padding: 12px 16px;
  font-size: 11px;
  border-radius: 10px;
  background: #fff7e6;
  color: #916a23;
  border: 1px solid #efe2be;
  margin-bottom: 20px;
}
.notice.info {
  background: #ecf4ef;
  border-color: #d7e8dd;
  color: #436754;
}
.chart {
  height: 172px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding-top: 20px;
}
.chart-column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 8px;
}
.chart-bars {
  width: 100%;
  height: 132px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.chart-bar {
  border-radius: 5px 5px 0 0;
  width: 65%;
  background: linear-gradient(#41a46d, #00813b);
  min-height: 2px;
  transition: height 0.3s;
}
.chart-column small {
  font-size: 8px;
  white-space: nowrap;
}
.chart-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  color: var(--muted);
  margin-top: 13px;
}
.chart-label span {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--green);
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
th {
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
  color: #636d79;
  font-weight: 400;
  background: #f6f7fa;
  padding: 12px 16px;
  border-block: 1px solid var(--line);
}
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr[data-id] {
  cursor: pointer;
}
tbody tr[data-id]:hover {
  background: #f6f8f7;
}
.member-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mini-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f0f2f5;
  color: #68717c;
  font-size: 10px;
  font-weight: 600;
}
.member-cell strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
.member-cell small {
  font-size: 11px;
}
.change-tags {
  display: flex;
  gap: 5px;
  max-width: 240px;
  overflow: hidden;
}
.change-tag {
  font-size: 11px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  background: #fafafb;
}
.empty {
  padding: 45px 22px;
  text-align: center;
  color: var(--muted);
}
.empty svg {
  width: 34px;
  height: 34px;
  color: #a8bdb0;
  margin-bottom: 12px;
}
.empty strong {
  display: block;
  font-size: 13px;
  color: #5a7366;
}
.empty p {
  font-size: 11px;
  margin-top: 7px;
}
.filters {
  padding: 18px 22px;
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.filters .field {
  min-width: 120px;
  flex: 1;
}
.filters .search {
  min-width: 200px;
  flex: 2;
}
.filters label {
  font-size: 11px;
  color: var(--muted);
}
.filters input,
.filters select {
  height: 38px;
  font-size: 11px;
}
.filters .primary {
  height: 38px;
  min-height: 38px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.pagination-buttons {
  display: flex;
  gap: 7px;
  align-items: center;
}
.pagination button {
  border: 1px solid var(--line);
  background: #fff;
  width: 31px;
  height: 30px;
  border-radius: 6px;
}
.detail-backdrop {
  position: fixed;
  inset: 0;
  background: #0c251f66;
  z-index: 70;
  display: flex;
  justify-content: flex-end;
  backdrop-filter: blur(2px);
}
.detail {
  width: min(720px, 94vw);
  background: #fff;
  height: 100%;
  overflow: auto;
  box-shadow: -10px 0 55px #09261822;
}
.detail-header {
  padding: 25px 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}
.detail-header p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.detail-body {
  padding: 25px 28px;
}
.detail-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 23px;
}
.detail-summary .mini-avatar {
  width: 47px;
  height: 47px;
  font-size: 15px;
}
.detail-summary small {
  display: block;
  font-size: 11px;
  margin-top: 3px;
}
.detail-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
  padding: 18px;
  background: #f7f8fa;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 12px;
}
.detail-info small {
  display: block;
  font-size: 11px;
  margin-bottom: 4px;
}
.diff-table {
  white-space: normal;
  table-layout: fixed;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.diff-table th,
.diff-table td {
  padding: 12px;
  font-size: 12px;
  word-break: break-word;
}
.diff-table th:first-child {
  width: 26%;
}
.diff-table td.old {
  color: #7e8c83;
  background: #fcfdfc;
}
.diff-table td.new {
  background: #f0f8f2;
  color: #17683d;
}
.section-label {
  font-size: 12px;
  margin: 24px 0 12px;
  font-weight: 600;
}
.mail-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 14px 16px;
  margin-top: 9px;
  font-size: 12px;
}
.mail-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.mail-card small {
  display: block;
  margin-top: 7px;
  font-size: 11px;
}
.mail-card .danger {
  margin-top: 10px;
  min-height: 30px;
  padding: 6px 10px;
  font-size: 10px;
}
.detail .notice {
  margin: 20px 0 0;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.setting-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.setting-row:last-child {
  border: 0;
}
.setting-row small {
  font-size: 11px;
}
.help-box {
  background: #edf5f0;
  border: 1px solid #dbe9df;
  border-radius: 12px;
  padding: 22px;
  margin-top: 22px;
  font-size: 11px;
  color: #567060;
}
.help-box strong {
  display: block;
  color: var(--green-dark);
  margin-bottom: 7px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 22px;
  border-radius: 10px;
  background: #173f2d;
  color: #fff;
  font-size: 12px;
  box-shadow: 0 4px 24px #0002;
  z-index: 100;
  display: none;
  max-width: 90vw;
}
#toast.visible {
  display: block;
}
.mobile-toggle {
  display: none;
}
.mobile-backdrop {
  display: none;
}
.chart-empty {
  height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}
.chart-empty svg {
  color: #adc7b6;
  margin-bottom: 10px;
  width: 32px;
  height: 32px;
}
.error-panel {
  padding: 35px;
  text-align: center;
}
.error-panel p {
  color: var(--red);
  margin-bottom: 16px;
}
.loading-panel {
  height: 220px;
  display: grid;
  place-items: center;
}
@media (min-width: 1600px) {
  .content {
    padding-top: 40px;
  }
  .metric {
    padding: 25px;
  }
  .metric-value {
    font-size: 40px;
  }
}
@media (max-width: 1150px) {
  .shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .sidebar {
    width: 210px;
    padding-inline: 12px;
  }
  .sidebar-brand {
    padding-inline: 8px;
  }
  .sidebar-brand .logo-wrap {
    width: 170px;
  }
  .content {
    padding: 26px 24px;
  }
  .topbar {
    padding-inline: 24px;
  }
  .cards {
    gap: 12px;
  }
  .metric {
    padding: 17px;
  }
  .metric-value {
    font-size: 29px;
  }
  .split {
    grid-template-columns: minmax(0, 1.4fr) minmax(230px, 1fr);
  }
  .metric-head {
    font-size: 10px;
  }
  th,
  td {
    padding-inline: 16px;
  }
  .topbar-date {
    display: none;
  }
}
@media (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 45px 30px;
  }
  .login-story h1 {
    font-size: 37px;
  }
  .login-features {
    flex-direction: column;
    gap: 12px;
  }
  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .page-tools {
    flex-wrap: wrap;
  }
  .chart {
    gap: 7px;
  }
}
@media (max-width: 650px) {
  .nav-link {
    min-height: 44px;
  }
  .shell {
    display: block;
  }
  .main {
    width: 100%;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .shell.nav-open .sidebar {
    transform: translateX(0);
  }
  .shell.nav-open .mobile-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: #09271d88;
    z-index: 35;
  }
  .mobile-toggle {
    display: inline-grid;
  }
  .topbar {
    height: 70px;
    padding: 0 16px;
  }
  .topbar .breadcrumb {
    display: none;
  }
  .topbar-right {
    gap: 8px;
  }
  .user-meta {
    font-size: 10px;
  }
  .content {
    padding: 24px 16px 35px;
  }
  h1 {
    font-size: 25px;
  }
  .page-head {
    gap: 15px;
    margin-bottom: 21px;
  }
  .page-head p {
    font-size: 11px;
  }
  .metric {
    padding: 16px;
  }
  .metric-icon {
    height: 29px;
    width: 29px;
  }
  .metric-value {
    font-size: 31px;
  }
  .metric-caption {
    font-size: 9px;
  }
  .panel-head {
    padding: 19px 18px 14px;
  }
  .panel-body {
    padding: 0 18px 19px;
  }
  .panel-head h2 {
    font-size: 15px;
  }
  .filters {
    padding: 16px;
    gap: 10px;
  }
  .filters .field {
    min-width: calc(50% - 8px);
  }
  .filters .search {
    min-width: 100%;
  }
  .filters .primary {
    flex: 1;
    justify-content: center;
  }
  .login {
    display: block;
  }
  .login-story {
    min-height: 200px;
    padding: 26px;
    justify-content: space-between;
  }
  .login-story .logo-wrap {
    width: 150px;
    padding: 10px;
  }
  .login-story h1 {
    font-size: 28px;
    max-width: none;
    margin: 22px 0 10px;
  }
  .login-story p,
  .login-features,
  .login-footer,
  .login-story .eyebrow {
    display: none;
  }
  .login-side {
    padding: 35px 25px;
  }
  .lock-box {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    margin-bottom: 20px;
  }
  .login-card h1 {
    font-size: 26px;
  }
  .login-card > p {
    font-size: 12px;
  }
  .detail-body,
  .detail-header {
    padding: 20px;
  }
  .detail-info {
    gap: 12px;
    padding: 14px;
  }
  .detail-info small {
    font-size: 8px;
  }
  .diff-table th,
  .diff-table td {
    font-size: 10px;
    padding: 10px;
  }
  .pagination {
    padding-inline: 16px;
  }
  .setting-row {
    font-size: 11px;
  }
  .setting-row small {
    font-size: 10px;
  }
  .chart-column:nth-child(even) small {
    visibility: hidden;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 380px) {
  .user-meta {
    display: none;
  }
}

.directory-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.directory-metrics .metric-value {
  font-size: clamp(23px, 2.5vw, 34px);
}
.directory-sync {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  margin-bottom: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 12px;
}
.directory-sync strong {
  font-weight: 600;
}
.directory-sync p {
  color: var(--muted);
  margin-top: 4px;
  font-size: 11px;
}
.directory-sync .secondary {
  flex-shrink: 0;
}
.directory-sync .sync-error {
  color: var(--red);
}
.directory-contact {
  display: block;
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.directory-contact:hover {
  color: var(--green);
  text-decoration: underline;
}
.directory-table .member-cell {
  min-width: 160px;
}
.amount-cell {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.debt-positive {
  color: #ad3838;
  font-weight: 600;
}
@media (max-width: 650px) {
  .directory-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .directory-metrics .metric:last-child {
    grid-column: 1 / -1;
  }
  .directory-sync {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }
  .directory-sync .secondary {
    width: 100%;
    justify-content: center;
  }
  .directory-table .icon-button {
    width: 44px;
    height: 44px;
  }
}
