:root {
  --ink: #172e29;
  --muted: #596c65;
  --green: #153f37;
  --lime: #d6e9a1;
  --paper: #f6f7f0;
  --line: #d8dfd3;
  --white: #fff;
  --error: #a42b21;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Tahoma, "Thonburi", sans-serif;
  font-size: 15px;
  line-height: 1.65;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button,
.button {
  border: 1px solid var(--green);
  background: var(--green);
  color: white;
  border-radius: 5px;
  padding: 11px 18px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-weight: bold;
}
button:hover,
.button:hover {
  background: #225b4e;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: inherit;
}
input,
select {
  border: 1px solid #88988e;
  border-radius: 4px;
  background: white;
  color: var(--ink);
  padding: 10px 12px;
  max-width: 100%;
  min-width: 0;
}
label {
  display: grid;
  gap: 6px;
  font-weight: bold;
  font-size: 14px;
}
input {
  width: 100%;
}
:focus-visible {
  outline: 3px solid #bb6d12;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.skip {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 50;
  background: white;
  padding: 10px;
}
.skip:focus {
  top: 10px;
}
.login {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.login-story {
  background: var(--green);
  color: var(--paper);
  padding: 9vw 7vw;
  position: relative;
}
.login-story:after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42%;
  height: 24%;
  background: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 17px,
    #ffffff12 18px,
    #ffffff12 19px
  );
  pointer-events: none;
}
.wordmark {
  font:
    normal clamp(48px, 6vw, 85px) Georgia,
    serif;
  letter-spacing: -4px;
}
.wordmark span,
.brand span {
  color: var(--lime);
}
.login-story h1 {
  font-size: clamp(27px, 3vw, 42px);
  line-height: 1.6;
  margin: 55px 0 22px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: bold;
}
.stamp {
  display: inline-block;
  border: 1px solid #78978a;
  padding: 6px 10px;
  font-size: 11px;
  letter-spacing: 2px;
  margin-top: 45px;
}
.login-card {
  align-self: center;
  max-width: 470px;
  padding: 45px;
  width: 100%;
  margin: auto;
}
.login-card h2 {
  font-size: 28px;
  margin: 12px 0;
}
.login-card form,
.stack {
  display: grid;
  gap: 18px;
}
.login-card .muted {
  margin-top: 35px;
}
.workspace {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  background: var(--green);
  color: white;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow: auto;
}
.brand {
  font:
    34px Georgia,
    serif;
  letter-spacing: -1.5px;
  text-decoration: none;
  padding: 0 10px;
  margin-bottom: 45px;
}
.sidebar .eyebrow {
  color: #bbd0c5;
  padding-left: 12px;
}
.sidebar nav {
  display: grid;
  gap: 4px;
}
.nav-link {
  padding: 10px 12px;
  text-decoration: none;
  border-radius: 4px;
  display: flex;
  gap: 12px;
  font-size: 14px;
}
.nav-link span {
  font-size: 10px;
  opacity: 0.7;
  align-self: center;
}
.nav-link[aria-current="page"] {
  background: var(--lime);
  color: var(--ink);
  font-weight: bold;
}
.nav-link:hover {
  background: #ffffff15;
}
.nav-link[aria-current="page"]:hover {
  background: var(--lime);
}
.sidebar-foot {
  margin-top: auto;
  padding: 36px 10px 0;
  display: grid;
  gap: 6px;
  font-size: 12px;
}
.sidebar-foot small {
  color: #bbd0c5;
}
.quiet {
  background: transparent;
  border-color: #819d90;
  font-size: 12px;
  padding: 7px 12px;
  text-align: left;
  margin-top: 10px;
}
.shell {
  min-width: 0;
}
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 38px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  background: #ffffff77;
}
.status-dot {
  color: #33654e;
}
.status-dot:before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #39784f;
  margin-right: 8px;
}
main {
  padding: 35px 38px 65px;
  max-width: 1600px;
  margin: auto;
  min-height: 80dvh;
  scroll-margin-top: 20px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin-bottom: 30px;
}
h1 {
  font-size: 30px;
  margin: 0;
  letter-spacing: -0.6px;
  text-wrap: balance;
}
h2 {
  font-size: 20px;
  margin: 0 0 16px;
}
h3 {
  font-size: 16px;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
.page-heading p {
  margin: 4px 0;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 25px;
  margin-bottom: 20px;
  min-width: 0;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}
.card {
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.metric {
  display: block;
  font:
    36px Georgia,
    serif;
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
}
.banner {
  background: #eef2df;
  border-left: 3px solid #92a951;
  padding: 14px 18px;
  font-size: 13px;
  margin: 16px 0;
}
.empty {
  padding: 45px 25px;
  text-align: center;
  border: 1px dashed #aab7a3;
  border-radius: 6px;
  background: #fcfdf8;
}
.empty strong {
  display: block;
  font-size: 19px;
  margin-bottom: 10px;
}
.empty p {
  max-width: 600px;
  margin: 10px auto;
  color: var(--muted);
}
.table-wrap {
  overflow: auto;
  max-width: 100%;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  text-align: left;
}
th {
  font-size: 11px;
  letter-spacing: 0.4px;
  background: #f4f6ee;
  color: var(--muted);
  font-weight: bold;
}
td,
th {
  padding: 14px 13px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
td {
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  max-width: 340px;
}
code {
  font:
    12px ui-monospace,
    monospace;
  overflow-wrap: anywhere;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.form-grid button {
  justify-self: start;
  align-self: end;
}
.error {
  color: var(--error);
  margin: 10px 0;
}
.error:empty {
  display: none;
}
.danger {
  background: white;
  color: var(--error);
  border-color: #d4a59b;
  padding: 6px 10px;
  font-size: 12px;
}
.tag {
  display: inline-block;
  padding: 3px 8px;
  background: #edf3e4;
  color: #315b35;
  font-size: 11px;
  border-radius: 3px;
}
.secret {
  font-family: ui-monospace, monospace;
  overflow-wrap: anywhere;
  background: #f2f5e8;
  padding: 18px;
  border: 1px solid #8d9b65;
}
.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
footer {
  border-top: 1px solid var(--line);
  padding: 22px 38px;
  color: var(--muted);
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
#notice:not(:empty) {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: min(430px, 90vw);
  padding: 15px 20px;
  background: var(--green);
  color: white;
  border: 2px solid var(--lime);
  z-index: 30;
  border-radius: 5px;
}
.timeline {
  border-left: 2px solid var(--line);
  padding-left: 20px;
}
.timeline p {
  padding: 7px 0;
}
details {
  margin: 18px 0;
}
summary {
  cursor: pointer;
  font-weight: bold;
}
#merchant-picker {
  min-width: 190px;
}
#merchant-select {
  width: 100%;
}
@media (max-width: 1000px) {
  .workspace {
    grid-template-columns: 195px minmax(0, 1fr);
  }
  .sidebar {
    padding: 24px 12px;
  }
  main {
    padding: 28px 22px;
  }
  .topbar {
    padding: 18px 22px;
  }
  .cards {
    gap: 10px;
  }
  .card {
    padding: 16px;
  }
  .metric {
    font-size: 28px;
  }
}
@media (max-width: 700px) {
  .login {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 35px;
  }
  .login-story h1 {
    margin: 20px 0;
    font-size: 25px;
  }
  .login-story p:not(.eyebrow),
  .stamp {
    display: none;
  }
  .wordmark {
    font-size: 46px;
  }
  .login-card {
    padding: 35px 25px;
  }
  .workspace {
    display: block;
  }
  .sidebar {
    position: relative;
    height: auto;
    padding: 16px;
  }
  .brand {
    margin-bottom: 10px;
    font-size: 28px;
  }
  .sidebar > .eyebrow {
    display: none;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    padding: 6px 0;
    gap: 5px;
  }
  .nav-link {
    white-space: nowrap;
    padding: 9px 12px;
  }
  .sidebar-foot {
    padding: 10px 0 0;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .sidebar-foot small {
    display: none;
  }
  .quiet {
    margin: 0 0 0 auto;
  }
  .page-heading {
    display: block;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  #merchant-picker {
    margin-top: 16px;
  }
  .topbar {
    padding: 12px 18px;
  }
  main {
    padding: 24px 16px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .card {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .metric {
    margin: 0;
  }
  .panel {
    padding: 18px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .panel-header {
    align-items: start;
  }
  .table-wrap {
    margin: 0 -4px;
  }
  th,
  td {
    padding: 12px 9px;
    min-width: 100px;
  }
  footer {
    padding: 20px 16px;
    display: block;
  }
  footer span {
    display: block;
    margin-top: 5px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .panel,
  .cards,
  .empty {
    animation: appear 0.25s ease-out;
  }
  @keyframes appear {
    from {
      opacity: 0;
      transform: translateY(5px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
