:root {
  color-scheme: light;
  --ink: #182f27;
  --muted: #52665b;
  --canvas: #f3f6f2;
  --paper: #fff;
  --line: #dce5de;
  --green: #245941;
  --green-dark: #173c2d;
  --focus: #277aac;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--canvas);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.45; }
button, input, select { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
img { display: block; max-width: 100%; }
h1, h2, p, ol { margin: 0; }
h1 { font-size: clamp(1.5rem, 3vw, 2.28rem); font-weight: 690; letter-spacing: -.047em; line-height: 1.14; overflow-wrap: anywhere; }
h2 { font-size: 1.125rem; font-weight: 675; letter-spacing: -.022em; }
.container { width: min(1192px, calc(100% - 56px)); margin-inline: auto; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 5; transform: translateY(-220%); padding: 10px 14px; background: var(--paper); color: var(--ink); }
.skip:focus { transform: translateY(0); }
.initial { text-align: center; padding: 15vh 16px; }
.top { background: var(--paper); border-bottom: 1px solid var(--line); }
.top-inner { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand img { width: 148px; height: 40px; object-fit: contain; object-position: left center; }
.sign-out { background: none; border: 0; padding: 0 3px; display: flex; align-items: center; gap: 7px; min-height: 44px; font-size: .9375rem; font-weight: 630; color: var(--muted); white-space: nowrap; }
.sign-out:hover { color: var(--green-dark); }
.sign-out svg { width: 17px; height: 17px; }
.preview-strip { background: #e8efea; color: #3d5951; text-align: center; padding: 4px 12px; font-size: .8125rem; }
.page { min-height: calc(100svh - 150px); padding-block: clamp(1.25rem, 3vw, 2.1rem) 1.6rem; }
.page-header { display: flex; align-items: end; justify-content: space-between; gap: 12px 20px; margin-bottom: 19px; }
.eyebrow { margin-bottom: 5px; font-size: .8125rem; font-weight: 690; color: var(--muted); letter-spacing: .082em; text-transform: uppercase; }
.select { position: relative; min-width: 0; max-width: 100%; }
.select select { display: block; width: 100%; min-height: 43px; appearance: none; border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 0 32px 0 11px; font-size: .875rem; }
.select svg { position: absolute; right: 10px; top: calc(50% - 8px); width: 16px; height: 16px; pointer-events: none; color: var(--muted); }
#account-switch { max-width: 340px; text-overflow: ellipsis; }
.card { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.button { min-height: 43px; padding: 8px 13px; display: inline-flex; justify-content: center; align-items: center; gap: 7px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); color: var(--green-dark); font-weight: 665; font-size: .875rem; line-height: 1.3; text-decoration: none; white-space: nowrap; }
.button svg { width: 16px; height: 16px; }
.button.primary { color: white; background: var(--green); border-color: var(--green); }
.button.primary:hover { background: var(--green-dark); }
.button.secondary:hover { border-color: #a9bcaf; background: #f3f8f4; }

.reward-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #274638;
  border-radius: 18px;
  background: #112f24;
  color: #fafff9;
  padding: 18px clamp(19px, 3.4vw, 36px) 16px;
  margin-bottom: 16px;
  box-shadow: 0 9px 26px #16352619;
}
.reward-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: 58%;
  background: linear-gradient(90deg, #112f24 0%, #102b2266 38%, #10241e0d 76%),
    linear-gradient(0deg, #10251ded, transparent 46%, #10251d37),
    url("./loyalty-table.webp") center 51% / cover no-repeat;
}
.reward-top { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 12px; }
.reward-top h2 { color: #f0d798; font-size: 1.26rem; letter-spacing: -.022em; }
.current-tier { display: flex; align-items: center; gap: 7px; padding: 5px 10px; color: #f4f8f0; background: #081d17ce; border: 1px solid #e6ecd245; border-radius: 99px; font-size: .8125rem; white-space: nowrap; }
.current-tier strong { color: #f6df9e; font-weight: 710; }
.current-tier[data-tier="standard"] strong { color: #c5e6d1; }
.current-tier[data-tier="silver"] strong { color: #e0eff6; }
.current-tier[data-tier="platinum"] strong { color: #d9efe9; }
.reward-main { width: min(100%, 695px); }
.spend-label { color: #e5f0e8; font-size: .9375rem; font-weight: 570; }
.reward-spend { font-size: clamp(2.4rem, 5.2vw, 4.05rem); font-weight: 650; letter-spacing: -.058em; line-height: 1.09; font-variant-numeric: tabular-nums; margin-block: 3px; overflow-wrap: anywhere; }
.quarter-range { color: #d1e3d8; font-size: .85rem; font-weight: 530; }
.spend-date { color: #b9d0c4; font-weight: 450; }
.milestones { position: relative; margin: 17px -7px 0; }
.milestone-rail { position: absolute; inset: 5px 12.5% auto; appearance: none; display: block; height: 5px; width: 75%; border: 0; border-radius: 6px; overflow: hidden; background: #56786a; color: #b8efc7; }
.milestone-rail::-webkit-progress-bar { background: #56786a; }
.milestone-rail::-webkit-progress-value { background: #b8efc7; border-radius: 6px; }
.milestone-rail::-moz-progress-bar { background: #b8efc7; border-radius: 6px; }
.milestone-list { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); padding: 0; list-style: none; text-align: center; }
.milestone-list li { display: flex; flex-direction: column; align-items: center; gap: 1px; color: #deebe1; font-size: .8125rem; }
.milestone-list strong { color: #fff; font-size: .9rem; font-weight: 665; }
.milestone-dot { width: 15px; height: 15px; border-radius: 50%; border: 2px solid #abc6b6; background: #294e40; margin-bottom: 5px; }
.milestone-list .reached .milestone-dot { border-color: #b8efc7; background: #b8efc7; }
.milestone-list [aria-current="step"] .milestone-dot { outline: 1px solid #b8efc7; outline-offset: 3px; }
.reward-action { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #dbeadb38; }
.reward-goal { display: flex; align-items: center; gap: 9px; }
.reward-goal strong { color: #f0f9f1; font-size: 1rem; font-weight: 700; letter-spacing: -.008em; }
.reward-action p { color: #d0e4d9; font-size: .85rem; }
.reward-notice strong { color: #f5dfa1; }
.notice-icon { flex: 0 0 32px; height: 32px; border: 1px solid #e3d1915e; border-radius: 8px; display: grid; place-items: center; background: #e5cb7221; color: #f4df9e; }
.notice-icon svg { width: 16px; height: 16px; }
.button.loyalty-prices { background: #f9e5ad; color: #223821; border-color: #f9e5ad; padding-inline: 17px; }
.button.loyalty-prices:hover { background: #fff2ca; }
.button.loyalty-prices:focus-visible { outline-color: #fff2ca; }
.reward-empty .reward-action { padding-top: 11px; }

.account-grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 16px; align-items: start; }
.account-summary { padding: 16px 17px 0; }
.balance-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 9px; }
.balance-head .select select { min-height: 36px; }
.balance-net strong { display: block; font-size: clamp(1.6rem, 2.7vw, 2.07rem); line-height: 1.23; letter-spacing: -.045em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.balance-net p, .balance-time, .balance-overdue small { color: var(--muted); font-size: .8125rem; }
.balance-net p { margin-top: 4px; }
.balance-overdue { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 5px 8px; margin-top: 14px; padding-top: 11px; border-top: 1px solid var(--line); }
.balance-overdue p { font-size: .9rem; font-weight: 635; }
.balance-overdue small { display: block; margin-block: 2px; }
.balance-overdue strong { font-size: .9375rem; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.balance-time { display: block; margin-block: 12px; }
.account-help { margin-top: 1px; border-top: 1px solid var(--line); }
.account-help summary { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .9rem; font-weight: 635; }
.account-help summary::-webkit-details-marker { display: none; }
.account-help summary svg { width: 16px; height: 16px; }
.account-help[open] summary svg { transform: rotate(180deg); }
.payment-copy { color: var(--muted); font-size: .875rem; padding: 3px 0 14px; }
.payment-copy dl { margin-block: 8px; }
.payment-copy dt { font-size: .8125rem; }
.payment-copy dd { margin: 0 0 7px; color: var(--ink); font-weight: 630; }
.payment-copy .button { margin-top: 9px; }
.help-panel { padding: 18px 19px; }
.help-panel p { color: var(--muted); margin-bottom: 8px; max-width: 68ch; white-space: pre-line; }
.help-panel p:last-child { margin-bottom: 0; }
.notice { color: #674817; background: #fff7e0; border: 1px solid #eedb9f; padding: 9px 10px; border-radius: 8px; font-size: .8125rem; }
.stale { display: flex; align-items: center; gap: 7px; margin-bottom: 11px; }
.stale svg { flex: 0 0 15px; }

.documents, .catalogue { overflow: hidden; }
.documents-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 16px 10px; }
.document-tools { display: flex; justify-content: space-between; align-items: center; gap: 9px; padding: 0 16px 11px; }
.document-tools .search { width: min(325px, 66%); }
.document-tools .select { flex: 0 1 auto; }
.search { display: flex; align-items: center; gap: 7px; min-width: 0; min-height: 43px; padding: 0 10px; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.search svg { flex: 0 0 16px; width: 16px; height: 16px; }
.search input { border: 0; background: transparent; min-height: 41px; width: 100%; min-width: 0; font-size: .875rem; }
.search:focus-within { outline: 2px solid var(--focus); outline-offset: 1px; }
.search input:focus-visible { outline: 0; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .875rem; }
thead { color: var(--muted); background: #edf3ef; }
th, td { padding: 9px 8px; }
th:first-child, td:first-child { padding-left: 16px; }
th:last-child, td:last-child { padding-right: 16px; }
td { border-top: 1px solid var(--line); vertical-align: middle; }
.numeric { text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
td small, .doc-ref div > span { display: block; color: var(--muted); font-size: .8125rem; }
.doc-ref { display: flex; align-items: center; gap: 7px; }
.doc-icon svg { width: 15px; height: 15px; display: block; color: var(--muted); }
.price-item strong, .doc-ref strong { overflow-wrap: anywhere; }
.price-member strong { font-size: 1rem; font-weight: 700; }
.price-label, .cell-label { display: none; }
.price-unavailable, s { color: var(--muted); }
.pill { display: inline-block; border-radius: 20px; padding: 3px 7px; background: #ebf0ee; color: #385649; font-size: .8125rem; font-weight: 640; white-space: nowrap; }
.pill.saving, .pill.credit { background: #e7f4eb; color: #225640; }
.pill.late { background: #faece9; color: #8b372b; }
.table-footer { display: flex; justify-content: space-between; gap: 8px; padding: 9px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8125rem; }
.empty { display: grid; justify-items: center; text-align: center; gap: 5px; padding: 16px 10px; color: var(--muted); }
.empty svg { width: 19px; height: 19px; }
.empty strong { color: var(--ink); }

.price-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(760px, 100%);
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--canvas);
  color: var(--ink);
  border: 0;
  box-shadow: -22px 0 75px #102b2340;
}
.price-drawer::backdrop { background: #0c241b91; }
body:has(.price-drawer[open]) { overflow: hidden; }
.drawer-frame { display: flex; flex-direction: column; min-height: 100%; max-height: 100%; }
.drawer-head { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 9px 12px; padding: 17px 22px; background: var(--paper); border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); letter-spacing: -.038em; }
.drawer-head .eyebrow { overflow-wrap: anywhere; }
.drawer-actions { flex: none; display: flex; align-items: center; gap: 6px; }
.drawer-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 15px 16px 24px; }
.price-tools { padding-top: 13px; }
@media (min-width: 761px) and (prefers-reduced-motion: no-preference) {
  .price-drawer[open] { animation: drawer-in .22s ease-out both; }
  @keyframes drawer-in { from { transform: translateX(50px); opacity: .45; } }
}

.footer { width: min(1192px, calc(100% - 56px)); margin-inline: auto; padding-block: 14px 22px; color: var(--muted); font-size: .8125rem; }
.login-layout { display: grid; grid-template-columns: 1fr minmax(250px, 370px); align-items: center; gap: clamp(20px, 6vw, 60px); min-height: 70svh; padding-block: 36px; }
.login-intro img { display: none; }
.login-intro p, .login-card p { color: var(--muted); margin-block: 10px 14px; }
.login-card { padding: 25px; }
.login-card .feature-icon { display: none; }
.login-card .notice { margin-bottom: 13px; }
.login-note { font-size: .875rem; }
.toast { position: fixed; right: 16px; bottom: 16px; z-index: 2; padding: 10px 15px; border-radius: 8px; color: white; background: var(--green-dark); visibility: hidden; }
.toast.visible { visibility: visible; }

@media (max-width: 1010px) {
  .account-grid { grid-template-columns: minmax(0, 1fr); gap: 13px; }
}
@media (max-width: 670px) {
  .container, .footer { width: calc(100% - 28px); }
  .top-inner { gap: 8px; min-height: 53px; }
  .brand img { width: 128px; }
  .page-header { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 12px; }
  #account-switch { max-width: min(320px, 100%); }
  .reward-card { padding: 13px 13px 12px; border-radius: 13px; }
  .reward-card::before { width: 85%; opacity: .37; }
  .reward-top { margin-bottom: 10px; }
  .reward-top h2 { font-size: 1.13rem; }
  .current-tier { gap: 5px; padding: 4px 8px; }
  .reward-spend { font-size: clamp(1.85rem, 8.4vw, 2.85rem); }
  .milestones { margin: 14px -3px 0; }
  .milestone-list strong { font-size: .8125rem; }
  .milestone-list li { font-size: .75rem; }
  .reward-action { margin-top: 11px; padding-top: 10px; }
  .button.loyalty-prices { padding-inline: 9px; font-size: .8125rem; }
  .notice-icon { display: none; }
  .reward-goal strong { font-size: .875rem; }
  .reward-action p { font-size: .8125rem; }
  .account-summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: 0 10px; padding: 12px 13px 0; }
  .account-summary > :not(.balance-net, .balance-overdue) { grid-column: 1 / -1; }
  .balance-head { margin-bottom: 8px; }
  .balance-net strong { font-size: clamp(1.1rem, 5.4vw, 1.65rem); }
  .balance-overdue { grid-template-columns: minmax(0, 1fr); gap: 1px; margin: 0; padding: 0 0 0 10px; border: 0; border-left: 1px solid var(--line); }
  .balance-overdue > div { display: contents; }
  .balance-overdue p { grid-row: 1; font-size: .8125rem; }
  .balance-overdue strong { grid-row: 2; }
  .balance-overdue small { grid-row: 3; margin: 0; }
  .balance-time { margin-block: 8px; }
  .account-help summary { min-height: 39px; }
  .documents-head, .document-tools, .table-footer { padding-inline: 12px; }
  .documents-head h2 { font-size: 1rem; }
  .statement-button { min-height: 40px; font-size: .8125rem; }
  .document-tools .search { flex: 1 1 45%; }
  .document-tools .select select { padding-inline-start: 8px; }
  .documents thead, .catalogue thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .documents tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 9px; padding: 9px 12px; border-top: 1px solid var(--line); }
  .documents td { border: 0; padding: 0; min-width: 0; }
  .documents td[colspan] { grid-column: 1 / -1; }
  .documents .issued { grid-column: 1; grid-row: 3; }
  .documents .due { grid-column: 1; grid-row: 2; }
  .documents .document-amount { grid-column: 2; grid-row: 1; align-self: start; }
  .documents .document-status { grid-column: 2; grid-row: 2 / 4; text-align: right; }
  .documents .due, .documents .issued { font-size: .8125rem; color: var(--muted); }
  .cell-label { display: inline; font-weight: 620; }
  .drawer-head { padding: 12px 12px; }
  .drawer-body { padding: 11px 9px 19px; }
  .catalogue tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0 7px; padding: 9px 11px; border-top: 1px solid var(--line); }
  .catalogue td { border: 0; text-align: left; padding: 4px 0; }
  .catalogue td:first-child { grid-column: 1 / -1; }
  .catalogue .price-label { display: block; color: var(--muted); font-size: .8125rem; }
  .catalogue .pill { white-space: normal; }
  .catalogue td:nth-child(4) { align-self: end; }
  .login-layout { grid-template-columns: 1fr; min-height: 0; }
}
@media (max-width: 350px) {
  .drawer-head { flex-wrap: wrap; }
  .button.loyalty-prices { max-width: 41%; white-space: normal; }
  .milestone-list li { font-size: .72rem; }
}

.login-card form, .login-card label, .approved-accounts { display: grid; gap: .45rem; }
.login-card form, .approved-accounts { gap: .95rem; margin-block: 1rem; }
.login-card label { font-size: .875rem; font-weight: 630; }
.login-card input, .login-card select { width: 100%; min-height: 44px; padding: .5rem .7rem; background: white; border: 1px solid var(--line); border-radius: 6px; }
.login-card small { color: var(--muted); }
.login-link { background: transparent; border: 0; padding: .5rem 0; color: var(--green); text-decoration: underline; }
