:root:not([data-theme]), :root[data-theme="indigo"] {
  --rg-accent: #454eb6;
  --rg-bg: #eff0fa;
  --rg-soft: #e9eafa;
  --rg-surface: #fff;
  --rg-line: #d5d8eb;
  --rg-text: #242741;
  --rg-muted: #555b74;
  --rg-shadow: 0 4px 18px rgb(39 46 102 / 8%);
}
.trial-entry {
  margin: 0; min-height: 100svh; box-sizing: border-box;
  display: grid; place-items: center; padding: 24px;
  font-family: "Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;
  background: var(--rg-bg); color: var(--rg-text);
}
.trial-card {
  width: min(100%, 540px); border: 1px solid var(--rg-line); overflow: hidden;
  border-radius: 22px; background: var(--rg-surface); box-shadow: var(--rg-shadow);
}
.trial-card header {
  display: flex; align-items: center; gap: 12px; padding: 22px clamp(20px,5vw,40px);
  background: var(--rg-accent); color: white; font-size: 24px; font-weight: 700;
}
.trial-mark { border: 1px solid currentColor; border-radius: 9px; padding: 2px 9px; }
.trial-card section { padding: clamp(20px,5vw,40px); }
.trial-card h1 { margin: 0 0 1rem; font-size: clamp(26px,5vw,34px); }
.trial-card p { line-height: 1.8; color: var(--rg-muted); }
.trial-card button {
  margin-top: 12px; width: 100%; min-height: 48px; border: 0; border-radius: 14px;
  background: var(--rg-accent); color: white; font: inherit; font-weight: 700; cursor: pointer;
}
.trial-card button:focus-visible { outline: 3px solid var(--rg-text); outline-offset: 3px; }
dialog .pay-total, dialog .change {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 4px 16px; padding: 12px 16px;
  border-radius: 14px; background: var(--rg-soft);
}
dialog .pay-total strong, dialog .change strong, dialog .tender input {
  font-variant-numeric: tabular-nums; text-align: end;
}
dialog .tender input[aria-invalid="true"] { border-color: var(--rg-danger); }
dialog .presets { display: flex; gap: 8px; flex-wrap: wrap; }
dialog .presets button { flex: 1 1 auto; min-height: 44px; }
dialog #tender-status { min-height: 1.6em; line-height: 1.6; }
dialog .keypad button { min-height: 44px; font-variant-numeric: tabular-nums; }
dialog .primary.checkout { min-height: 60px; width: 100%; }
.history-row .receipt-heading {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 4px 16px;
}
.receipt-heading time { color: var(--rg-muted); font-variant-numeric: tabular-nums; }
.receipt-heading strong { margin-inline-start: auto; }
.history-row small, dialog .sale-id { overflow-wrap: anywhere; }
@media (max-width: 520px) {
  dialog:has(.pay-total), dialog:has(.change) {
    box-sizing: border-box; width: calc(100% - 24px); max-height: calc(100dvh - 24px);
    padding: 16px; overflow-y: auto; overscroll-behavior: contain;
  }
}
.trial-card header {
  padding-block: 18px;
  background: var(--rg-surface); color: var(--rg-text);
  border-bottom: 1px solid var(--rg-line);
}
.trial-mark {
  display: grid; place-items: center; width: 36px; height: 36px;
  padding: 0; border: 0; border-radius: 14px;
  background: var(--rg-accent); color: white; font-size: 21px;
}
.trial-card p + p { color: var(--rg-muted); font-size: .9rem; }
.trial-card button, .cart button.primary { min-height: 60px; }
.trial-card button:hover { filter: brightness(.92); }
.totals .grand-total {
  padding: 10px 14px; border-radius: 14px;
  background: var(--rg-accent-soft); color: var(--rg-accent);
}
/* The public trial does not serve the prototype pages, so their menu entry is not shown here. */
.app-nav [data-prototype-link] { display: none; }
.totals > div > :last-child, .discovery-product .product-price, .history-row strong,
dialog .pay-total strong, dialog .change strong {
  font-family: "IBM Plex Mono","Zen Maru Gothic",monospace;
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum";
}
.totals > div > :last-child { text-align: end; }
.catalog .search-controls input:focus {
  border-color: var(--rg-accent);
  box-shadow: 0 0 0 3px var(--rg-accent-soft);
}
.catalog .category-nav button[aria-pressed="true"],
.catalog .view-mode button[aria-pressed="true"] {
  background: var(--rg-accent-soft);
  color: var(--rg-accent);
  box-shadow: inset 0 0 0 1px var(--rg-accent);
}
.catalog .cart-badge {
  display: inline-block; padding: 2px 8px; border-radius: 14px;
  color: var(--rg-accent); background: var(--rg-accent-soft);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 759px) {
  .catalog .search-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
  .catalog .search-controls .search { flex: 1 1 220px; min-width: 0; }
  .catalog .search-controls input, .catalog .category-select select { font-size: 16px; min-height: 44px; }
  .catalog .pagination button { min-height: 44px; }
}
.app-nav > button[aria-current="page"] { box-shadow: inset 3px 0 var(--rg-accent); }
.app-shell :focus-visible, dialog :focus-visible, .trial-entry :focus-visible {
  outline: 3px solid var(--rg-accent); outline-offset: 3px;
}
@media (max-width: 520px) {
  .trial-entry { padding: 16px; }
  .trial-card { border-radius: 20px; }
  .trial-card section { padding: 20px 18px; }
  .trial-card h1 { line-height: 1.4; }
}
:root[data-theme="indigo"] .app-content header { border-bottom: 3px solid var(--rg-accent); }
:root[data-theme="indigo"] .app-nav button[aria-current="page"] { background: var(--rg-soft); color: var(--rg-accent); }
@media (min-width: 1100px) {
  .app-content .workspace { gap: 16px; padding: 16px; box-sizing: border-box; background: var(--rg-bg); }
  .workspace > .catalog, .workspace > .cart { background: var(--rg-surface); border-radius: 14px; }
}
