@font-face {
  font-family: Inter Tight;
  src: url(fonts/inter-tight-latin.woff2) format("woff2");
  font-weight: 300 400;
  font-display: swap;
}
:root {
  --ink: #061b31;
  --slate: #50617a;
  --steel: #586b82;
  --line: #e5edf5;
  --mist: #f8fafd;
  --indigo: #533afd;
  --wash: #efedff;
  --green: #196647;
  --amber: #875411;
  --red: #a1393d;
  font:
    400 15px/1.48 "Inter Tight",
    system-ui,
    sans-serif;
  color: var(--ink);
  background: white;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select {
  border-radius: 4px;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a,
.text-button {
  color: var(--indigo);
}
button {
  border: 0;
  background: none;
}
a {
  text-underline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
[hidden] {
  display: none !important;
}
h1,
h2,
p {
  margin: 0;
}
h1,
h2 {
  font-weight: 300;
  letter-spacing: -0.045em;
}
h1 {
  font-size: clamp(34px, 3vw, 46px);
  line-height: 1.1;
}
h2 {
  font-size: 32px;
  overflow-wrap: anywhere;
}
p {
  color: var(--slate);
}
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 208px;
  background: var(--mist);
  border-right: 1px solid var(--line);
  padding: 27px 16px;
  display: flex;
  flex-direction: column;
}
.brand,
.rail-foot,
.nav-current,
.scan-bar,
.scan-bar > div,
.topbar,
.toolbar,
.search,
.filters,
.drawer-head,
.drawer-foot,
.panel-foot,
.status {
  display: flex;
  align-items: center;
}
.brand {
  gap: 10px;
  font-size: 19px;
  letter-spacing: -0.045em;
  padding: 0 7px;
}
.monogram,
.account-icon {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: white;
  border-radius: 6px;
  width: 32px;
  height: 32px;
}
.monogram {
  font:
    italic 26px/1 Georgia,
    serif;
}
.nav-section {
  color: var(--steel);
  font-size: 12px;
  margin: 48px 10px 10px;
}
.nav-current {
  gap: 10px;
  padding: 10px 12px;
  font-size: 14px;
  background: var(--wash);
  color: #4434b5;
  text-decoration: none;
}
.nav-current span {
  font-size: 18px;
}
.rail-foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 17px 7px 0;
  gap: 10px;
  font-size: 13px;
}
.account-icon {
  width: 32px;
  height: 32px;
  background: white;
  border: 1px solid var(--line);
  color: var(--slate);
  font-size: 11px;
}
.rail-foot small {
  display: block;
  color: var(--steel);
}
.workspace {
  margin-left: 208px;
}
.topbar {
  height: 64px;
  border-bottom: 1px solid var(--line);
  padding-inline: clamp(20px, 4vw, 64px);
  justify-content: space-between;
  font-size: 13px;
  color: var(--steel);
}
.topbar b {
  font-weight: 300;
  color: #8898aa;
  padding: 0 9px;
}
.topbar strong {
  font-weight: 400;
  color: var(--ink);
}
.demo-label {
  font-size: 12px;
  color: var(--slate);
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 8px;
}
.content {
  max-width: 1380px;
  margin: auto;
  padding: clamp(24px, 4vw, 64px);
}
.accent {
  width: 56px;
  height: 4px;
  background: linear-gradient(100deg, #7555fc, #dd86df, #ffc284);
  border-radius: 2px;
  margin-bottom: 18px;
}
.title-block p {
  margin-top: 10px;
}
.scan-bar {
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 32px 0 18px;
  color: var(--steel);
  font-size: 13px;
}
.scan-bar > div {
  gap: 8px;
}
.mail-icon {
  font-size: 17px;
}
.mailbox {
  color: var(--slate);
}
.panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  box-shadow: 0 3px 10px #172c4508;
}
.toolbar {
  padding: 16px 20px;
  gap: 14px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.filters {
  gap: 4px;
}
.filters button {
  padding: 8px 10px;
  font-size: 13px;
  color: var(--slate);
}
.filters button span {
  margin-left: 4px;
  font-variant-numeric: tabular-nums;
}
.filters [aria-pressed="true"] {
  background: var(--wash);
  color: #4434b5;
}
.search {
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 6px 9px;
  color: var(--steel);
}
.search span {
  font-size: 20px;
  line-height: 1;
}
.search input {
  border: 0;
  width: 130px;
  font-size: 13px;
  min-width: 0;
  background: transparent;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
th {
  text-align: left;
  font-weight: 400;
  color: var(--steel);
  font-size: 12px;
  background: var(--mist);
}
th,
td {
  border-top: 1px solid var(--line);
  padding: 13px 10px;
}
th:first-child,
td:first-child {
  padding-left: 20px;
}
td {
  color: var(--slate);
  overflow-wrap: anywhere;
}
tbody tr:hover {
  background: var(--mist);
}
.merchant {
  color: var(--ink);
  text-align: left;
  padding: 5px 0;
  overflow-wrap: anywhere;
}
.money {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink);
}
.arrow {
  font-size: 18px;
  color: var(--indigo);
  padding: 4px;
}
.status {
  gap: 6px;
  font-size: 12px;
  white-space: nowrap;
  color: var(--slate);
}
.status:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status.warn {
  color: var(--amber);
}
.status.ok {
  color: var(--green);
}
.status.error,
#feedback.error {
  color: var(--red);
}
.panel-foot {
  border-top: 1px solid var(--line);
  padding: 12px 20px;
  color: var(--steel);
  font-size: 12px;
}
.empty {
  text-align: center;
  padding: 42px 18px;
  color: var(--slate);
}
#cards {
  display: none;
}
dialog {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  padding: 0;
  width: min(560px, 100%);
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  border: 0;
  color: var(--ink);
  box-shadow: -10px 0 36px #152c4317;
}
dialog::backdrop {
  background: #0c203752;
}
dialog form {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.drawer-head,
.drawer-foot {
  justify-content: space-between;
  padding: 13px 24px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
  flex: none;
}
.drawer-head {
  font-size: 13px;
  color: var(--slate);
}
.drawer-head button {
  font-size: 24px;
  width: 40px;
  height: 40px;
}
.drawer-body {
  overflow: auto;
  flex: 1;
  padding: 24px;
  min-height: 0;
}
.drawer-body p {
  font-size: 14px;
  margin: 3px 0 22px;
}
.drawer-foot {
  justify-content: flex-end;
  border-bottom: 0;
  border-top: 1px solid var(--line);
  padding-bottom: max(13px, env(safe-area-inset-bottom));
  flex-wrap: wrap;
}
.primary,
.secondary,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 16px;
  font-size: 14px;
  text-decoration: none;
  border-radius: 4px;
}
.primary {
  background: var(--indigo);
  color: white;
}
.secondary {
  border: 1px solid #bbc3d5;
  color: var(--slate);
}
fieldset {
  border: 0;
  padding: 0;
  margin: 24px 0;
  min-width: 0;
}
legend {
  font-size: 16px;
  padding: 0;
  margin-bottom: 12px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}
.full {
  grid-column: 1/-1;
}
fieldset label {
  display: grid;
  gap: 5px;
  color: var(--slate);
  font-size: 13px;
  min-width: 0;
}
fieldset input,
fieldset select {
  padding: 8px 10px;
  border: 1px solid #c9d4e0;
  background: white;
  min-width: 0;
  width: 100%;
  font-size: 16px;
  height: 42px;
}
#open-proof {
  display: inline-block;
  font-size: 13px;
  margin: 10px 0;
}
#preview iframe,
#preview img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
}
#preview iframe {
  height: 330px;
}
#preview img {
  object-fit: contain;
  max-height: 460px;
}
#feedback:not(:empty) {
  background: var(--mist);
  border: 1px solid var(--line);
  padding: 10px;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 12px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.login {
  max-width: 460px;
  margin: 10vh auto;
  padding: 32px;
}
.login h1 {
  margin: 24px 0 12px;
}
.login p {
  margin-bottom: 24px;
}
.login dt {
  color: var(--steel);
}
.login dd {
  margin: 0 0 8px;
}
@media (max-width: 1100px) {
  .rail {
    width: 160px;
  }
  .workspace {
    margin-left: 160px;
  }
  .content {
    padding: 30px 20px;
  }
  .toolbar {
    padding: 12px;
  }
  .status {
    white-space: normal;
  }
  th,
  td {
    padding: 10px 6px;
  }
}
@media (min-width: 761px) and (max-width: 900px) {
  .rail {
    width: 116px;
    padding: 22px 7px;
  }
  .brand {
    font-size: 14px;
    gap: 5px;
  }
  .workspace {
    margin-left: 116px;
  }
  .nav-current {
    font-size: 12px;
    padding: 8px 4px;
  }
  .rail-foot {
    padding-left: 0;
  }
  .content {
    padding-inline: 12px;
  }
}
@media (max-width: 760px) {
  .rail {
    display: none;
  }
  .workspace {
    margin: 0;
  }
  .content {
    padding: 28px 16px;
  }
  .topbar {
    padding: 0 16px;
    height: 52px;
  }
  .scan-bar {
    margin: 24px 0 12px;
  }
  .toolbar {
    align-items: stretch;
  }
  .search {
    flex: 1 1 132px;
  }
  .search input {
    width: 100%;
    font-size: 16px;
  }
  .title-block p {
    font-size: 14px;
  }
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .drawer-body,
  .drawer-foot,
  .drawer-head {
    padding-inline: 16px;
  }
  table {
    display: none;
  }
  #cards {
    display: block;
  }
  .card-row {
    display: grid;
    width: 100%;
    text-align: left;
    border-radius: 0;
    border-top: 1px solid var(--line);
    padding: 15px 16px;
    gap: 5px;
  }
  .card-row > span {
    display: flex;
    gap: 8px;
    justify-content: space-between;
  }
  .card-row strong {
    font-weight: 400;
    overflow-wrap: anywhere;
  }
  .card-row small {
    color: var(--slate);
    font-size: 12px;
  }
  .card-row .status {
    font-size: 12px;
  }
  .card-row .money {
    font-size: 14px;
  }
  .login {
    margin: 30px 15px;
  }
  .drawer-foot button {
    min-height: 44px;
  }
}
table {
  table-layout: fixed;
}
th:first-child {
  width: 30%;
}
th:nth-child(2) {
  width: 15%;
}
th:nth-child(3) {
  width: 16%;
}
th:nth-child(4) {
  width: 16%;
}
th:nth-child(5) {
  width: 18%;
}
th:last-child {
  width: 5%;
}
.merchant {
  max-width: 100%;
}
#drawer-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.2;
}
#supporting {
  margin-top: 12px;
  color: var(--slate);
  font-size: 14px;
}
#supporting summary {
  cursor: pointer;
  color: var(--indigo);
}
#supporting a {
  overflow-wrap: anywhere;
}
