:root {
  color-scheme: dark;
  --lemon: #f5e500;
  --black: #111111;
  --graphite: #242424;
  --white: #ffffff;
  --muted: #ababab;
  --green: #83d1a1;
  --red: #ff6969;
  font: 16px/1.45 system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #080808;
  color: var(--white);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: auto; max-width: 700px; background: var(--black); min-height: 100dvh; }
main, #header { padding: 18px; }
main { padding-top: 6px; padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
#header { padding-top: max(18px, env(safe-area-inset-top)); }
.brand { color: var(--lemon); font-weight: 800; font-size: 24px; letter-spacing: -.025em; }
.rolebar { margin-top: 14px; }
h1,h2,h3,p { margin: 0; overflow-wrap: anywhere; }
h1 { font-size: 26px; letter-spacing: -.025em; margin-bottom: 14px; }
h2 { font-size: 20px; letter-spacing: -.015em; }
h3 { font-size: 17px; }
.stack { display: grid; gap: 12px; }
.row { display: flex; align-items: center; gap: 9px; min-width: 0; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.muted, small { color: var(--muted); }
.accent { color: var(--lemon); }
.good { color: var(--green); }
.bad { color: var(--red); }
.card { padding: 16px; border-radius: 17px; background: var(--graphite); min-width: 0; }
.inset { padding: 12px; border-radius: 12px; background: #363636; }
.amount { font-size: 28px; font-weight: 750; color: var(--lemon); letter-spacing: -.025em; }
.hero-amount { font-size: clamp(30px, 9vw, 45px); }
.icon { width: 23px; height: 23px; display: inline-grid; place-items: center; flex: 0 0 auto; vertical-align: middle; }
.icon svg { display: block; width: 100%; height: 100%; }
.avatar { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: #333; flex: 0 0 auto; }
button, .button, input, select, textarea { font: inherit; }
button, .button { border: 0; border-radius: 11px; background: #363636; color: var(--white); min-height: 44px; padding: 8px 12px; cursor: pointer; text-decoration: none; }
button:disabled { opacity: .48; cursor: default; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--lemon); outline-offset: 3px; }
.primary, .tile[aria-pressed=true] { background: var(--lemon); color: var(--black); font-weight: 680; }
.outline { border: 1px solid var(--lemon); background: transparent; color: var(--lemon); }
.plain { background: transparent; color: var(--lemon); padding-inline: 0; }
.danger { background: transparent; color: var(--red); }
.full { width: 100%; }
.left { text-align: left; }
input,select,textarea { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #444; border-radius: 10px; padding: 9px 10px; color: var(--white); background: #191919; }
input[type=checkbox],input[type=radio] { width: auto; min-height: initial; accent-color: var(--lemon); }
label { display: grid; gap: 5px; font-size: 14px; color: var(--muted); }
textarea { min-height: 88px; resize: vertical; }
details { min-width: 0; }
details > summary { cursor: pointer; list-style: none; min-height: 40px; }
summary::-webkit-details-marker { display: none; }
details > summary::after { content: '⌄'; margin-left: auto; }
details[open] > summary::after { content: '⌃'; }
details > :nth-child(2) { margin-top: 12px; }
.grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.tile { text-align: left; background: var(--graphite); min-height: 85px; overflow-wrap: anywhere; }
.tile strong { display: block; font-size: 27px; color: var(--lemon); }
.tile[aria-pressed=true] strong { color: inherit; }
.thumb { width: 70px; height: 70px; border-radius: 10px; object-fit: cover; background: #363636; display: grid; place-items: center; color: var(--muted); flex: 0 0 auto; }
.product-picture { width: 100%; aspect-ratio: 4/3; height: auto; object-fit: contain; }
.rule { border-top: 1px solid #454545; padding-top: 12px; }
.info { display: flex; justify-content: space-between; gap: 10px; }
.info dd, .info dt { margin: 0; overflow-wrap: anywhere; }
.tabs { display: flex; flex-wrap: wrap; gap: 5px; }
.tabs button { flex: 1 1 auto; background: transparent; color: var(--muted); border-radius: 99px; font-size: 14px; }
.tabs button[aria-pressed=true] { background: #393939; color: var(--white); }
#navigation { position: fixed; bottom: 0; width: min(100%,700px); z-index: 3; display: flex; gap: 2px; padding: 7px 5px calc(7px + env(safe-area-inset-bottom)); background: #151515; border-top: 1px solid #303030; }
#navigation button { position: relative; flex: 1 1 0; min-width: 0; display: grid; justify-items: center; gap: 2px; background: transparent; color: var(--muted); font-size: clamp(10px, 3vw, 14px); padding: 4px 1px; }
#navigation button[aria-current=page] { color: var(--lemon); }
.badge { position: absolute; top: 0; left: calc(50% + 6px); background: #b51a27; color: #fff; padding: 0 5px; border-radius: 999px; font-size: 11px; }
#feedback { position: fixed; z-index: 8; top: max(5px,env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: min(92vw,600px); padding: 10px 14px; border-radius: 10px; background: #373737; box-shadow: 0 4px 20px #0008; }
dialog { width: min(100%,700px); max-width: 100%; height: 100dvh; max-height: 100dvh; border: 0; background: var(--black); color: var(--white); margin: auto; padding: max(14px,env(safe-area-inset-top)) 16px max(16px,env(safe-area-inset-bottom)); }
dialog::backdrop { background: #000a; }
.gallery-image { width: 100%; height: min(60dvh,580px); object-fit: contain; background: var(--graphite); border-radius: 15px; touch-action: pan-y; }
.dots { display: flex; justify-content: center; gap: 7px; color: #666; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.dots .selected { color: var(--lemon); }
.document { white-space: pre-wrap; overflow-wrap: anywhere; }
.viewer { width: 100%; min-height: 70dvh; border: 0; background: #333; }
.viewer-picture { display: block; max-width: 100%; margin: auto; cursor: zoom-in; }
.viewer-picture.zoomed { max-width: none; width: 170%; cursor: zoom-out; }
.overflow { overflow: auto; }
.message { padding: 10px 12px; background: var(--graphite); border-radius: 12px; overflow-wrap: anywhere; }
.order:first-child { margin-top: 0; }
@media (min-width: 520px) { main, #header { padding-inline: 24px; } }
.modal-feedback { position: sticky; top: 0; z-index: 4; padding: 10px 12px; margin-bottom: 10px; border-radius: 10px; background: #373737; }
.card .grid > .card { background: #303030; }
#header .row > .plain { flex: 0 0 auto; font-size: 14px; }
[data-panel] { padding-block: 10px; }
[data-panel] > summary { min-height: 36px; }
