:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #19382f;
  background: #f4f5f0;
  font-synthesis: none;
  --green: #174e40;
  --muted: #687c72;
  --line: #dfe6df;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  font-weight: 650;
  padding: 12px 18px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #daab44;
  outline-offset: 3px;
}
a {
  color: inherit;
  text-decoration: none;
}
header {
  height: 88px;
  max-width: 1160px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
}
.wordmark b {
  font-weight: 450;
}
.wordmark small {
  display: block;
  font-size: 9px;
  letter-spacing: 2.5px;
  margin-top: 5px;
}
.mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green);
  color: #e9ed9c;
  font-size: 30px;
}
.ghost {
  border: 1px solid #cedacf;
  background: transparent;
  color: var(--green);
}
.demo-bar {
  padding: 11px 24px;
  background: #e9edde;
  color: #506249;
  font-size: 12px;
  text-align: center;
  letter-spacing: 0.2px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #89944e;
  border-radius: 50%;
  margin-right: 6px;
}
main {
  max-width: 1100px;
  margin: auto;
  padding: 44px 30px 24px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 2px;
  color: #7a895a;
}
.hero {
  margin: 20px 0 36px;
  max-width: 700px;
}
h1 {
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -1.7px;
  font-weight: 600;
  margin: 16px 0;
}
p {
  line-height: 1.6;
}
.muted {
  color: var(--muted);
}
.hero p {
  max-width: 480px;
  font-size: 16px;
}
.brand-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.brand-card {
  background: white;
  border: 1px solid var(--line);
  padding: 38px;
  border-radius: 22px;
  text-align: left;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.brand-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px #15382f0a;
}
.brand-card img {
  width: 180px;
  height: 60px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 30px;
}
.brand-card .bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 14px;
}
.brand-card small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  margin-top: 6px;
}
.round-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f1f5eb;
  font-size: 22px;
}
.hint-panel {
  display: flex;
  gap: 18px;
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: 16px;
  margin-top: 26px;
  font-size: 14px;
}
.hint-panel strong {
  display: block;
  margin-bottom: 4px;
}
.hint-panel p {
  margin: 0;
  color: var(--muted);
}
footer {
  text-align: center;
  padding: 35px 20px 28px;
  color: #839084;
  font-size: 11px;
  line-height: 1.8;
}
.topline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}
.back {
  background: transparent;
  color: var(--muted);
  padding-left: 0;
  font-weight: 500;
}
.brand-logo {
  width: 100px;
  height: 32px;
  object-fit: contain;
}
.page-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.page-title h1 {
  font-size: 34px;
  margin: 8px 0 20px;
}
.search {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: 15px 18px;
  margin-bottom: 24px;
  font-size: 16px;
  color: inherit;
}
.products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.product {
  min-width: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.product-inner {
  padding: 24px;
}
.product small {
  font-size: 12px;
  color: var(--muted);
}
.product h2 {
  margin: 9px 0 5px;
  font-size: 20px;
  letter-spacing: -0.4px;
}
.colour {
  color: #577967;
  font-size: 13px;
  margin-top: 6px;
}
.balance {
  margin: 24px 0 20px;
}
.balance strong {
  font-size: 36px;
  letter-spacing: -1.1px;
}
.balance strong span {
  font-size: 17px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}
.balance .equiv {
  font-size: 13px;
  color: var(--muted);
  margin-top: 5px;
}
.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.primary {
  background: var(--green);
  color: white;
}
.secondary {
  background: #eef3eb;
  color: var(--green);
  border: 1px solid #dae6d8;
}
.in-arrow,
.out-arrow {
  font-size: 18px;
  margin-right: 7px;
}
.recent {
  padding: 0 24px 18px;
}
.recent-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 4px;
}
.recent-heading span {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
  font-weight: 700;
}
.text-button {
  min-height: 40px;
  background: none;
  color: var(--green);
  padding: 6px 0;
  font-size: 12px;
}
.recent-line {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  padding: 9px 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 35px;
  border-radius: 5px;
  padding: 4px 5px;
  font-size: 10px;
  font-weight: 800;
  background: #e7f1e8;
  color: #31644a;
}
.pill.out {
  background: #f7eadf;
  color: #95674c;
}
.recent-line .ref {
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.recent-line b {
  white-space: nowrap;
  font-weight: 550;
}
.history-summary {
  background: var(--green);
  color: white;
  border-radius: 20px;
  padding: 25px;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 24px;
}
.history-summary small {
  color: #c5d8c9;
}
.history-summary strong {
  display: block;
  font-size: 32px;
  margin: 6px 0;
}
.history-summary p {
  margin: 0;
  color: #c5d8c9;
  font-size: 13px;
}
.history-list {
  display: grid;
  gap: 14px;
}
.history-entry {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}
.history-entry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.history-entry h3 {
  margin: 0;
  font-size: 17px;
}
.history-entry p {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0;
}
.history-entry .reference {
  font-size: 15px;
  color: #254635;
  overflow-wrap: anywhere;
}
.history-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.history-meta small {
  font-size: 11px;
  color: var(--muted);
}
.history-meta b {
  color: var(--green);
}
details {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 14px;
}
summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--green);
  padding: 4px 0;
}
.audit {
  padding: 12px 14px;
  margin-top: 12px;
  background: #f4f6f1;
  border-radius: 10px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.audit p {
  margin: 5px 0;
  font-size: 12px;
}
.audit strong {
  font-size: 12px;
}
.empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 40px;
  color: var(--muted);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 22px;
  width: min(480px, calc(100% - 24px));
  max-height: calc(100dvh - 32px);
  padding: 26px;
  color: inherit;
  box-shadow: 0 30px 100px #05231e2b;
  overflow-y: auto;
}
dialog::backdrop {
  background: #16372e66;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font-size: 28px;
  letter-spacing: -0.7px;
  margin: 8px 0 10px;
}
dialog p {
  font-size: 13px;
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.close {
  background: none;
  color: #7b8b7d;
  font-size: 28px;
  padding: 0 8px;
  line-height: 1;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-top: 20px;
}
input,
select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  font-size: 16px;
  min-height: 50px;
  border: 1px solid #d7e0d6;
  background: #fbfcf9;
  color: #19382f;
  border-radius: 10px;
  padding: 12px;
  margin-top: 8px;
}
input:focus,
select:focus {
  outline: 2px solid #87a793;
  outline-offset: 1px;
}
.quantity-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.mini-balance {
  background: #f0f5ec;
  border-radius: 10px;
  padding: 12px;
  font-size: 13px;
  line-height: 1.6;
}
.preview {
  background: #f0f5ec;
  border-radius: 10px;
  padding: 14px;
  margin: 20px 0;
  font-size: 13px;
  line-height: 1.6;
}
.full {
  width: 100%;
  margin-top: 20px;
  min-height: 50px;
}
.preview + .error {
  margin-bottom: 0;
}
.form-note {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}
.error {
  color: #a53c2c;
  font-size: 13px;
  line-height: 1.5;
}
.primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 22px;
  background: #173d32;
  color: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px #15382f33;
  font-size: 13px;
  width: max-content;
  max-width: calc(100% - 30px);
  z-index: 4;
}
.tools {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-top: 30px;
}
.tools button {
  font-size: 12px;
}
.notice {
  border: 1px solid #d8dcbc;
  border-radius: 12px;
  background: #f3f1db;
  color: #6f6b3d;
  padding: 13px;
  font-size: 12px;
  margin-bottom: 20px;
}
.storage-error {
  background: #ffe8de;
  padding: 15px;
  color: #883b23;
  font-size: 13px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 650px) {
  header {
    height: 76px;
    padding: 0 20px;
  }
  .wordmark {
    font-size: 17px;
  }
  .wordmark small {
    font-size: 8px;
  }
  .mark {
    width: 38px;
    height: 38px;
  }
  #profile {
    font-size: 12px;
    padding: 9px 12px;
  }
  main {
    padding: 28px 18px 12px;
  }
  .hero {
    margin: 14px 0 28px;
  }
  h1 {
    font-size: 36px;
  }
  .hero p {
    font-size: 14px;
  }
  .brand-grid {
    gap: 14px;
    grid-template-columns: 1fr;
  }
  .brand-card {
    min-height: 180px;
    padding: 27px;
  }
  .brand-card img {
    width: 155px;
    height: 46px;
    margin-bottom: 24px;
  }
  .hint-panel {
    font-size: 12px;
    padding: 18px;
  }
  .products {
    grid-template-columns: 1fr;
  }
  .page-title h1 {
    font-size: 28px;
  }
  .product-inner {
    padding: 22px;
  }
  .history-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .history-entry {
    padding: 18px;
  }
  .history-entry-head h3 {
    font-size: 16px;
  }
  .demo-bar {
    font-size: 10px;
    padding: 10px;
  }
  .history-meta {
    flex-wrap: wrap;
  }
  dialog {
    padding: 22px;
  }
  .topline {
    margin-bottom: 14px;
  }
  .tools {
    flex-wrap: wrap;
  }
}
