
  :root { --green:#2b481b; --accent:#9bb846; --red:#c8102e; }
  * { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; }
  body { background: #f4f6f1; color: #1a1a1a; padding-bottom: 150px; }
  header { background: var(--green); color: #fff; padding: 20px 16px; text-align: center; }
  header h1 { font-size: 30px; letter-spacing: .5px; }
  header p { font-size: 16px; opacity: .9; margin-top: 6px; }
  .wrap { max-width: 940px; margin: 0 auto; padding: 8px 14px; }
  .step { background: #fff; border-radius: 16px; padding: 22px 20px; margin: 16px 0; border: 2px solid #dde5d5; }
  .step h2 { font-size: 23px; color: var(--green); display: flex; align-items: center; gap: 12px; }
  .step h2 .n { background: var(--green); color: #fff; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 19px; flex: none; }
  .step .help { font-size: 15px; color: #667; margin: 6px 0 14px 48px; }
  .opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
  .opts.many { max-height: 68vh; overflow-y: auto; padding-right: 6px; }
  .opts.rows { display: block; max-height: 70vh; overflow-y: auto; padding-right: 6px; }
  .opts.rows .opt { display: flex; align-items: center; gap: 14px; text-align: center; padding: 8px 14px; margin-bottom: 6px; }
  .opts.rows .opt img { width: 60px; height: 60px; object-fit: contain; margin: 0; flex-shrink: 0; }
  .opts.rows .opt .oc { flex: 1; min-width: 0; }
  .opts.rows .opt .oc b { display: block; }
  .opts.rows .opt .oc small { display: block; }
  .opts.rows .opt .price, .opts.rows .opt .old { margin-left: auto; text-align: right; flex-shrink: 0; }
  .opts.rows .opt .bftag { position: static; transform: none; flex-shrink: 0; }
  .opts.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .opts.cards .opt { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
  .opts.cards .opt[hidden] { display: none; }
  .opts.cards .opt .oc { width: 100%; overflow-wrap: anywhere; }
  .opts.cards .opt img { height: 90px; width: 100px; margin: 0 auto 4px; }
  .opts.cards .opt .bftag { position: static; transform: none; }
  .opts.cards .opt .price { margin-top: auto; padding-top: 6px; }
  .mountchoices { margin-top: 16px; }
  .pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
  .pager button { font-size: 18px; padding: 10px 16px; border: 2px solid var(--green); border-radius: 10px; background: #fff; color: var(--green); font-weight: 700; cursor: pointer; }
  .pager button:disabled { opacity: .4; cursor: default; }
  @media (max-width: 650px) {
    .wrap { padding: 4px 8px; }
    .step:not(.mobile-active) > :not(h2) { display: none; }
    .step:not(.mobile-active) { padding: 10px; }
    .step h2 { cursor: pointer; font-size: 21px; }
    .step:not(.mobile-active) h2::after { content: '+'; margin-left: auto; }
    .step.mobile-active h2::after { content: '−'; margin-left: auto; }
    #bar .sum small:not(.mount-summary) { display: none !important; }
    #bar { position: sticky; padding: 8px; }
    body { padding-bottom: 0; }

    .step { padding: 16px 10px; margin: 10px 0; }
    .step .help { margin-left: 0; }
    .opts, .opts.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .opts .opt, .opts.cards .opt { padding: 10px 7px; min-width: 0; }
    .opts .opt img, .opts.cards .opt img { width: 70px; height: 65px; max-width: 70px; max-height: 65px; margin-bottom: 3px; }
    .opt b { font-size: 18px; }
    .opt small { font-size: 15px; overflow-wrap: anywhere; }
    .opt .price { font-size: 19px; }
    .rectag { white-space: normal !important; font-size: 12px; padding: 4px 6px; }
    .stocktag { position: static; display: block; transform: none; font-size: 12px; padding: 3px; margin-bottom: 5px; }
    .filters { margin-left: 0; gap: 8px; }
    .filters select { min-width: 0; max-width: 100%; font-size: 17px; flex: 1; padding: 8px; }
    .mountchoices { margin-top: 16px; }
  .pager { gap: 8px; font-size: 14px; }
    .pager button { font-size: 17px; padding: 9px 12px; }
    #bar .sum { font-size: 15px; }
    #bar .sum small { font-size: 12px; }
    #gen { padding: 15px; font-size: 20px; }
  }
  .opt { border: 3px solid #d8e0d0; border-radius: 14px; background: #fff; padding: 16px; cursor: pointer; text-align: center; position: relative; transition: border-color .15s, box-shadow .15s; }
  .opt:hover { border-color: var(--accent); }
  .opt.sel { border-color: var(--green); box-shadow: 0 0 0 3px rgba(43,72,27,.25); }
  .opt img { display: block; margin: 0 auto 10px; max-width: 110px; max-height: 110px; object-fit: contain; }
  .opt b { overflow-wrap: anywhere; display: block; font-size: 20px; line-height: 1.25; }
  .opt small { display: block; font-size: 15px; color: #566; margin-top: 4px; line-height: 1.35; }
  .opt .price { display: block; font-size: 22px; font-weight: 800; color: var(--green); margin-top: 8px; }
  .opt .old { display: block; font-size: 15px; color: #999; text-decoration: line-through; margin-top: 6px; }
  .opt .price.bf { color: var(--red); }
  .bftag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: #fff; color: #c8102e; border: 2px solid #c8102e; font-size: 13px; font-weight: 800; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
  .opt.bf { border-color: #e3b8b8; }
  .opt.bf.sel { border-color: #ff4d4d; box-shadow: 0 0 0 3px rgba(255,77,77,.3); }
  .filters { display: flex; gap: 10px; margin: 0 0 12px 48px; flex-wrap: wrap; }
  .filters select { font-size: 19px; font-weight: 700; color: var(--green); padding: 10px 14px; border-radius: 12px; border: 2px solid var(--green); background: #fff; }
  .stocktag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: #fff; color: #777; border: 2px solid #999; font-size: 13px; font-weight: 800; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
  .rectag { display: inline-block; margin-top: 6px; background: var(--green); color: #fff; border: 2px solid var(--green); font-size: 13px; font-weight: 800; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
  .opt.nostock { opacity: .55; cursor: default; }
  .locked { opacity: .45; pointer-events: none; }
  #bar { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 3px solid var(--green); padding: 14px 16px; display: none; box-shadow: 0 -4px 18px rgba(0,0,0,.12); z-index: 10; }
  #bar.show { display: block; }
  #bar .inner { max-width: 940px; margin: 0 auto; }
  #bar .sum { font-size: 17px; font-weight: 700; line-height: 1.4; text-align: center; }
  #bar .sum small { display: block; font-weight: 400; color: #566; font-size: 14px; margin-top: 2px; }
  #bar .bfline { color: var(--red); font-weight: 800; }
  #bar .bfline s { color: #999; font-weight: 400; }
  #gen { width: 100%; margin-top: 10px; padding: 19px; font-size: 22px; font-weight: 800; color: #fff; background: var(--green); border: none; border-radius: 14px; cursor: pointer; }
  #gen:disabled { background: #9aa78f; cursor: wait; }
  footer.note { text-align: center; color: #7a7a7a; font-size: 14px; padding: 10px 16px 0; }

.reset-btn { font-size: 16px; padding: 10px 18px; border: 2px solid var(--green); border-radius: 10px; background: #fff; color: var(--green); font-weight: 700; cursor: pointer; }
.gen-root { min-height: 100vh; }

/* hosted page: the viewer shows this page in an auto-height frame, so a fixed bar would sit at the end of the content and cover it. Keep the summary and the button in the normal flow after the steps. */
body { padding-bottom: 16px !important; }
#bar { position: static !important; margin: 16px 8px 8px; border: 3px solid var(--green); border-radius: 16px; box-shadow: none; }
