:root {
  --jk-ink: #152720;
  --jk-muted: #6d7d75;
  --jk-green: #17483a;
  --jk-green-strong: #10372d;
  --jk-green-soft: #e8f1ec;
  --jk-bg: #f4f6f3;
  --jk-surface: #ffffff;
  --jk-surface-soft: #f8faf8;
  --jk-border: #dce5df;
  --jk-border-strong: #cdd9d2;
  --jk-gold: #b77f35;
  --jk-danger: #b54845;
  --jk-radius-card: 18px;
  --jk-radius-control: 12px;
  --jk-shadow-sm: 0 6px 18px rgba(17, 53, 43, .045);
  --jk-shadow-md: 0 16px 42px rgba(17, 53, 43, .085);
  --ink: var(--jk-ink);
  --muted: var(--jk-muted);
  --green: var(--jk-green);
  --green2: #205b4a;
  --cream: var(--jk-bg);
  --paper: var(--jk-surface);
  --line: var(--jk-border);
  --gold: var(--jk-gold);
  --red: var(--jk-danger);
  --shadow: var(--jk-shadow-md);
}

html {
  overflow-x: hidden;
  background: var(--jk-bg);
}

body {
  overflow-x: hidden;
  color: var(--jk-ink);
  background: var(--jk-bg);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-feature-settings: "kern" 1, "tnum" 1;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

button,
a,
input,
select,
textarea,
summary {
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(183, 127, 53, .3);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 2147483647;
  padding: 10px 14px;
  color: #fff;
  border-radius: 10px;
  background: var(--jk-green-strong);
  box-shadow: var(--jk-shadow-md);
  font-size: 13px;
  font-weight: 750;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell,
.staff-shell,
.auth-shell,
.claim-page {
  background: var(--jk-bg) !important;
}

.auth-shell {
  padding: 24px;
}

.auth-card {
  padding: 40px;
  border-color: var(--jk-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--jk-shadow-md);
}

.sidebar {
  width: 248px;
  padding: 26px 18px 20px;
  background: var(--jk-green-strong);
}

.sidebar nav {
  margin-top: 38px;
}

.sidebar nav > p {
  margin-bottom: 9px;
  color: #78968b;
  letter-spacing: .15em;
}

.nav-button {
  min-height: 44px;
  gap: 11px;
  margin: 2px 0;
  padding: 0 13px;
  border-radius: var(--jk-radius-control);
}

.nav-button > span {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  font-size: 15px;
}

.nav-button:hover,
.nav-button.active {
  background: rgba(255, 255, 255, .09);
}

.nav-button.active {
  box-shadow: inset 3px 0 var(--jk-gold);
}

.secure-card {
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 14px;
}

.profile {
  padding-top: 16px;
}

.main-content {
  margin-left: 248px;
  padding: 0 32px 52px;
}

.topbar {
  min-height: 96px;
}

.topbar h1 {
  font-size: clamp(25px, 2vw, 30px);
  font-weight: 760;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.topbar p {
  margin-top: 5px;
  color: var(--jk-muted);
  font-size: 13px;
}

.content-stack {
  gap: 22px;
}

.primary,
.secondary,
.button-link {
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--jk-radius-control);
  font-size: 13px;
  font-weight: 750;
}

.primary {
  border-color: var(--jk-green);
  background: var(--jk-green);
  box-shadow: 0 7px 18px rgba(23, 72, 58, .16);
}

.primary:hover {
  background: #205b4a;
}

.primary:active {
  background: var(--jk-green-strong);
}

.secondary,
.button-link {
  border-color: var(--jk-border-strong);
  background: #fff;
}

.secondary:hover,
.button-link:hover {
  border-color: #aabdb3;
  background: var(--jk-surface-soft);
}

.language-toggle {
  padding: 3px;
  border-color: var(--jk-border-strong);
  border-radius: 11px;
}

.language-toggle button {
  min-width: 42px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
}

.period-panel {
  margin-bottom: 18px;
  padding: 17px 18px;
  border-color: var(--jk-border);
  border-radius: var(--jk-radius-card);
  box-shadow: var(--jk-shadow-sm);
}

.period-panel select,
.period-panel input,
.filters input,
.filters select,
.auth-form input,
.form-stack input,
.form-stack select,
.expense-form input,
.expense-form select,
.expense-form textarea {
  min-height: 44px;
  border-color: var(--jk-border-strong);
  border-radius: var(--jk-radius-control);
  background-color: #fff;
}

.stat-grid,
.receipt-stats {
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  position: relative;
  min-height: 126px;
  align-items: center;
  padding: 20px;
  overflow: hidden;
  border-color: var(--jk-border);
  border-radius: var(--jk-radius-card);
  background: #fff;
  box-shadow: inset 0 3px var(--jk-green), var(--jk-shadow-sm);
}

.stat-card:nth-child(2) {
  box-shadow: inset 0 3px #b77f35, var(--jk-shadow-sm);
}

.stat-card:nth-child(3) {
  box-shadow: inset 0 3px #527487, var(--jk-shadow-sm);
}

.stat-card:nth-child(4) {
  box-shadow: inset 0 3px #a85c55, var(--jk-shadow-sm);
}

.stat-card > div {
  min-width: 0;
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.stat-card p {
  margin-bottom: 5px;
  color: var(--jk-muted);
  font-size: 12px;
  font-weight: 700;
}

.stat-card strong,
.report-total strong,
.bar-row strong,
td,
th {
  font-variant-numeric: tabular-nums;
}

.stat-card strong {
  color: var(--jk-ink);
  font-size: clamp(21px, 1.7vw, 26px);
  font-weight: 780;
  letter-spacing: -.035em;
}

.stat-card small {
  margin-top: 7px;
  color: #89968f;
  font-size: 11px;
  line-height: 1.4;
}

.panel {
  border-color: var(--jk-border);
  border-radius: var(--jk-radius-card);
  box-shadow: var(--jk-shadow-sm);
}

.dashboard-grid,
.account-grid,
.report-top {
  gap: 18px;
  margin-bottom: 20px;
}

.panel-head {
  gap: 18px;
  padding: 22px 24px 16px;
}

.panel-head h2 {
  color: var(--jk-ink);
  font-size: 18px;
  font-weight: 760;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.panel-head p {
  margin-top: 5px;
  color: #85928c;
  font-size: 12px;
}

.link-button {
  min-height: 38px;
  padding: 0 8px;
  color: var(--jk-green);
  border-radius: 9px;
  font-size: 12px;
}

.link-button:hover {
  background: var(--jk-green-soft);
}

.bar-list {
  padding: 3px 24px 24px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(110px, .42fr) minmax(170px, 1fr) minmax(100px, auto);
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 11px 0;
  border-bottom: 1px solid #edf1ee;
}

.bar-row:last-child {
  border-bottom: 0;
}

.bar-row span,
.bar-row strong {
  font-size: 12px;
}

.bar-row span {
  color: #50635b;
  font-weight: 650;
}

.bar-row i {
  height: 9px;
  border-radius: 999px;
  background: #edf2ef;
}

.bar-row b {
  border-radius: inherit;
  background: #2b6956;
}

.bar-row strong {
  color: #304a40;
  font-weight: 720;
}

.status-list {
  padding: 2px 24px 24px;
}

.status-list > div {
  padding: 16px 0;
}

.status-list span,
.status-list strong {
  font-size: 12px;
}

.status-list strong {
  color: #27664f;
}

.table-wrap {
  overscroll-behavior-x: contain;
}

th {
  padding: 12px 16px;
  color: #75847d;
  background: #f8faf8;
  font-size: 11px;
  letter-spacing: .025em;
}

td {
  padding: 15px 16px;
  color: #53655d;
  font-size: 12px;
}

td > strong {
  color: #233a31;
  font-size: 12px;
}

td > small {
  color: #8a9791;
  font-size: 10px;
}

tbody tr:hover {
  background: #f9fbfa;
}

.tag,
.claim-badge,
.account-status {
  padding: 6px 9px;
  font-size: 10px;
  font-weight: 750;
}

.actions button {
  min-height: 34px;
  padding: 0 9px;
  border-radius: 9px;
  font-size: 11px;
}

.filters {
  gap: 10px;
  padding: 18px 20px;
}

.filters input,
.filters select {
  font-size: 12px;
}

.receipt-grid {
  gap: 16px;
  padding: 4px 20px 22px;
}

.receipt-card {
  border-color: var(--jk-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(17, 53, 43, .04);
}

.receipt-thumb {
  height: 176px;
}

.receipt-thumb img {
  aspect-ratio: 16 / 11;
}

.receipt-copy {
  padding: 15px;
}

.receipt-copy strong {
  font-size: 13px;
}

.receipt-copy span,
.receipt-copy small,
.receipt-actions a {
  font-size: 11px;
}

.receipt-actions a {
  min-height: 40px;
  padding: 11px;
}

.report-total,
.claim-hero {
  background: var(--jk-green) !important;
}

.report-total {
  padding: 28px;
  border: 1px solid #2a5a4c;
  border-radius: var(--jk-radius-card);
  box-shadow: var(--jk-shadow-md);
}

.report-total strong {
  font-size: clamp(30px, 3vw, 38px);
}

.modal-layer {
  overscroll-behavior: contain;
  background: rgba(10, 31, 25, .58);
}

.modal {
  border: 1px solid var(--jk-border);
  border-radius: 20px;
  box-shadow: 0 30px 90px rgba(8, 30, 23, .28);
  overscroll-behavior: contain;
}

.modal-head {
  padding: 21px 22px 17px;
  background: #fbfcfb;
}

.modal-head h2 {
  color: var(--jk-ink);
  font-size: 20px;
  letter-spacing: -.025em;
}

.modal-head button {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border-radius: 50%;
}

.modal-head button:hover {
  background: var(--jk-green-soft);
}

.file-preview {
  border-color: var(--jk-border-strong);
  border-radius: 20px;
  box-shadow: 0 30px 90px rgba(8, 30, 23, .3);
}

.claim-main {
  width: min(1180px, calc(100% - 40px));
  padding: 28px 0 72px;
}

.claim-topbar {
  min-height: 70px;
  border-color: var(--jk-border);
  box-shadow: var(--jk-shadow-sm);
}

.claim-hero {
  min-height: 136px;
  padding: 27px 30px;
  border-radius: var(--jk-radius-card);
  box-shadow: var(--jk-shadow-md);
}

.claim-hero h1 {
  font-size: clamp(25px, 3vw, 34px);
  text-wrap: balance;
}

.feature-control,
.claim-card,
.claim-empty {
  border-color: var(--jk-border);
  border-radius: var(--jk-radius-card);
  box-shadow: var(--jk-shadow-sm);
}

.feature-control {
  padding: 17px 18px;
}

.claim-grid {
  gap: 14px;
}

.claim-card {
  padding: 17px 19px;
}

.claim-overview strong,
.claim-head h2 {
  font-variant-numeric: tabular-nums;
}

.claim-details > summary,
.claim-fields input,
.claim-fields select,
.claim-fields textarea,
.claim-decision textarea {
  border-radius: var(--jk-radius-control);
}

.claim-details > summary,
.feature-control button,
.claim-meta button,
.claim-decision button,
.claim-paid button {
  min-height: 44px;
}

@media (min-width: 761px) {
  body {
    font-size: 15px;
  }

  .main-content {
    max-width: 1680px;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand small,
  .sidebar nav > p {
    font-size: 10px;
  }

  .nav-button {
    font-size: 13px;
  }

  .secure-card strong,
  .profile strong {
    font-size: 12px;
  }

  .secure-card small,
  .profile small,
  .profile button {
    font-size: 10px;
  }

  .expense-form input,
  .expense-form select,
  .expense-form textarea,
  .form-stack input,
  .form-stack select {
    font-size: 13px;
  }
}

@media (max-width: 1050px) {
  .stat-grid,
  .receipt-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }

  .sidebar {
    width: min(284px, 82vw);
    padding-top: max(20px, env(safe-area-inset-top));
  }

  .main-content {
    margin-left: 0;
    padding: 0 14px 30px;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 15;
    min-height: 82px;
    margin: 0 -14px 14px;
    padding: 0 14px;
    border-bottom: 1px solid rgba(220, 229, 223, .9);
    background: rgba(244, 246, 243, .94);
    backdrop-filter: blur(14px);
  }

  .title-row {
    min-width: 0;
    gap: 11px;
  }

  .title-row > div {
    min-width: 0;
  }

  .topbar h1 {
    overflow: hidden;
    font-size: 19px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar p {
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-color: var(--jk-border-strong);
    border-radius: 12px;
  }

  .language-toggle button {
    min-width: 35px;
    min-height: 32px;
    padding: 0 7px;
  }

  .period-panel {
    margin-bottom: 14px;
    padding: 14px;
    border-radius: 16px;
  }

  .period-panel form > button {
    min-height: 44px;
  }

  .stat-grid,
  .receipt-stats {
    gap: 10px;
    margin-bottom: 14px;
  }

  .stat-card {
    min-height: 112px;
    align-items: flex-start;
    padding: 15px 14px;
    border-radius: 16px;
  }

  .stat-icon {
    display: none;
  }

  .stat-card p {
    font-size: 10px;
  }

  .stat-card strong {
    font-size: 16px;
  }

  .stat-card small {
    font-size: 9px;
  }

  .dashboard-grid,
  .account-grid,
  .report-top {
    gap: 12px;
    margin-bottom: 14px;
  }

  .panel {
    border-radius: 16px;
  }

  .panel-head {
    padding: 18px 15px 13px;
  }

  .panel-head h2 {
    font-size: 16px;
  }

  .panel-head p,
  .link-button {
    font-size: 10px;
  }

  .bar-list {
    padding: 2px 15px 17px;
  }

  .bar-row {
    grid-template-areas: "label amount" "track track";
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 12px;
    padding: 10px 0;
  }

  .bar-row span {
    grid-area: label;
  }

  .bar-row i {
    grid-area: track;
  }

  .bar-row strong {
    grid-area: amount;
  }

  .bar-row span,
  .bar-row strong,
  .status-list span,
  .status-list strong {
    font-size: 10px;
  }

  .status-list {
    padding: 0 15px 16px;
  }

  .status-list > div {
    padding: 14px 0;
  }

  .filters,
  .filters.filters--uploader {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .filters .search,
  .filters.filters--uploader .search {
    grid-column: auto;
  }

  .filters input,
  .filters select,
  .filters a,
  .filters button {
    min-height: 44px;
    font-size: 12px;
  }

  .expense-table {
    display: block;
    padding: 0 12px 14px;
  }

  .expense-table thead {
    display: none;
  }

  .expense-table tbody {
    display: grid;
    gap: 10px;
  }

  .expense-table tr {
    display: block;
    padding: 11px 13px;
    border: 1px solid var(--jk-border);
    border-radius: 14px;
    background: #fff;
  }

  .expense-table td {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border: 0;
    font-size: 11px;
    text-align: right;
    white-space: normal;
  }

  .expense-table td::before {
    content: attr(data-label);
    flex: 0 0 88px;
    color: #87948e;
    font-size: 9px;
    font-weight: 700;
    text-align: left;
  }

  .expense-table td > strong,
  .expense-table td > small {
    margin-left: auto;
  }

  .expense-table td > small {
    max-width: 65%;
  }

  .expense-table td:nth-child(3) {
    display: grid;
    grid-template-columns: 88px 1fr;
  }

  .expense-table td:nth-child(3)::before {
    grid-row: 1 / span 2;
  }

  .expense-table td:nth-child(3) strong,
  .expense-table td:nth-child(3) small {
    text-align: right;
  }

  .expense-table td.actions {
    justify-content: flex-end;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid #edf1ee;
  }

  .expense-table td.actions::before {
    display: none;
  }

  .expense-table--summary td:nth-child(4),
  .expense-table--summary td:nth-child(6),
  .expense-table--summary td:nth-child(7) {
    display: none;
  }

  .receipt-grid {
    gap: 12px;
    padding: 3px 13px 16px;
  }

  .receipt-thumb {
    height: 170px;
  }

  .report-total {
    padding: 24px 20px;
  }

  .modal {
    border: 0;
    border-radius: 20px 20px 0 0;
  }

  .modal-head {
    padding: 17px 16px 13px;
  }

  .mobile-nav {
    height: auto;
    min-height: calc(72px + env(safe-area-inset-bottom));
    padding: 0 6px env(safe-area-inset-bottom);
    border-color: var(--jk-border);
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -8px 24px rgba(17, 53, 43, .065);
  }

  .mobile-nav .nav-button {
    min-width: 0;
    min-height: 72px;
    gap: 3px;
    padding: 7px 2px 5px;
    color: #73827b;
    border-radius: 12px;
    font-size: 9px;
    font-weight: 700;
  }

  .mobile-nav .nav-button > span {
    width: 30px;
    height: 27px;
    flex-basis: 27px;
    border-radius: 9px;
    font-size: 17px;
  }

  .mobile-nav .nav-button.active {
    color: var(--jk-green);
    background: transparent;
    box-shadow: none;
  }

  .mobile-nav .nav-button.active > span {
    background: var(--jk-green-soft);
  }

  .mobile-add {
    right: 18px;
    bottom: calc(86px + env(safe-area-inset-bottom));
    width: 54px;
    height: 54px;
    background: var(--jk-green);
    box-shadow: 0 12px 28px rgba(16, 55, 45, .28);
  }

  .claim-main {
    width: min(100% - 24px, 1180px);
    padding: 18px 0 calc(88px + env(safe-area-inset-bottom));
  }

  .claim-topbar {
    min-height: calc(64px + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
  }

  .claim-hero {
    min-height: auto;
    padding: 22px 20px;
    border-radius: 16px;
  }

  .claim-card {
    padding: 15px;
    border-radius: 16px;
  }

  .file-preview {
    border-radius: 0;
  }
}

@media (max-width: 430px) {
  .stat-grid,
  .receipt-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-card strong {
    font-size: 15px;
  }

  .topbar-actions {
    gap: 6px;
  }

  .language-toggle button {
    min-width: 33px;
  }
}

/* 2026-08-08 premium finance workspace polish */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.primary,
.secondary,
.button-link,
.link-button,
.nav-button,
.mobile-add,
.stat-action,
.actions button,
.receipt-actions a,
.modal-head button {
  transition: color .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease, opacity .16s ease;
}

button:active,
.button-link:active,
.receipt-actions a:active {
  transform: scale(.98);
}

button:disabled,
.button-link[aria-disabled="true"] {
  cursor: wait;
  opacity: .64;
}

.ui-enter {
  opacity: 0;
  transform: translateY(7px);
  transition: opacity .2s ease var(--ui-delay, 0ms), transform .2s ease var(--ui-delay, 0ms);
}

.ui-enter.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-grid {
  grid-template-columns: minmax(0, 1.22fr) repeat(3, minmax(0, 1fr));
}

.stat-card--primary {
  color: #fff;
  border-color: var(--jk-green);
  background: var(--jk-green);
  box-shadow: inset 0 3px var(--jk-gold), 0 18px 36px rgba(16, 55, 45, .17);
}

.stat-card--primary p,
.stat-card--primary strong,
.stat-card--primary small {
  color: #fff;
}

.stat-card--primary p {
  color: rgba(255, 255, 255, .72);
}

.stat-card--primary small {
  color: rgba(255, 255, 255, .68);
}

.stat-card--primary .stat-icon {
  color: #fff;
  background: rgba(255, 255, 255, .12);
}

.stat-card--action {
  align-items: flex-start;
}

.stat-action {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 7px;
  margin-top: 11px;
  padding: 0 10px;
  color: #8a3f3a;
  border: 1px solid #ead1ce;
  border-radius: 9px;
  background: #fff7f5;
  font-size: 11px;
  font-weight: 760;
}

.stat-action:hover {
  color: #73302c;
  border-color: #ddb8b4;
  background: #fff1ef;
}

.bar-row i {
  min-width: 0;
  overflow: hidden;
}

.bar-row b {
  min-width: 2px;
  background: var(--jk-green);
  transition: width .45s cubic-bezier(.2, .75, .25, 1);
}

.bar-value {
  display: grid;
  justify-items: end;
  gap: 2px;
  white-space: nowrap;
}

.bar-value small {
  color: #8b9891;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.modal-layer {
  animation: jk-backdrop-in .18s ease-out both;
}

.modal,
.file-preview {
  animation: jk-modal-in .2s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes jk-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes jk-modal-in {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.toast {
  display: flex;
  max-width: min(440px, calc(100vw - 32px));
  min-height: 48px;
  align-items: center;
  gap: 11px;
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 13px;
  box-shadow: 0 18px 45px rgba(9, 31, 24, .24);
  animation: jk-toast-in .2s cubic-bezier(.2, .8, .2, 1) both;
  text-align: left;
}

.toast > span {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  font-weight: 800;
}

.toast strong {
  font-size: 12px;
  font-weight: 720;
  line-height: 1.4;
}

.toast--success {
  background: var(--jk-green-strong);
}

.toast--error {
  background: #8f3734;
}

@keyframes jk-toast-in {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

.loading-panel {
  min-height: 260px;
  border: 1px solid var(--jk-border);
  border-radius: var(--jk-radius-card);
  background: #fff;
  box-shadow: var(--jk-shadow-sm);
}

.loading-panel p {
  color: var(--jk-muted);
  font-weight: 650;
}

@media (min-width: 761px) {
  body {
    font-size: 16px;
  }

  .nav-button {
    font-size: 14px;
  }

  .topbar p,
  .period-panel,
  .filters input,
  .filters select,
  .primary,
  .secondary,
  .button-link {
    font-size: 13px;
  }

  .panel-head h2 {
    font-size: 19px;
  }

  .panel-head p,
  .bar-row span,
  .bar-row strong,
  .status-list span,
  .status-list strong,
  td,
  td > strong {
    font-size: 13px;
  }

  th,
  td > small,
  .tag,
  .claim-badge,
  .account-status {
    font-size: 11px;
  }

  .receipt-copy strong {
    font-size: 14px;
  }

  .receipt-copy span,
  .receipt-copy small,
  .receipt-actions a {
    font-size: 12px;
  }
}

@media (max-width: 1050px) {
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .stat-card--primary {
    min-height: 118px;
  }

  .stat-action {
    min-height: 31px;
    margin-top: 9px;
    padding: 0 9px;
    font-size: 9px;
  }

  .bar-value {
    grid-area: amount;
  }

  .bar-value strong {
    grid-area: auto;
  }

  .mobile-nav .nav-button.active {
    background: var(--jk-green-soft);
  }

  .mobile-nav .nav-button.active > span {
    background: transparent;
  }

  .mobile-add:hover,
  .mobile-add:focus-visible {
    background: var(--jk-green-strong);
    box-shadow: 0 15px 32px rgba(16, 55, 45, .34);
  }

  .toast {
    right: 12px;
    bottom: calc(86px + env(safe-area-inset-bottom));
    left: 12px;
  }

  .modal,
  .file-preview {
    animation-name: jk-sheet-in;
  }

  @keyframes jk-sheet-in {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
