body { margin: 0; background: #060807; color: #F2F4F3; font-family: Montserrat, sans-serif; -webkit-font-smoothing: antialiased; }
    * { box-sizing: border-box; }
    a { color: inherit; text-decoration: none; }
    :focus-visible { outline: 2px solid #5BD46D; outline-offset: 3px; }
    .qp button, .qp input, .qp select { font: inherit; }
    .qp button { cursor: pointer; }
    .qp-panel { background: linear-gradient(180deg, #0d1210 0%, #0b0e0d 100%); border: 1px solid rgba(255,255,255,.07); border-radius: 16px; }
    .qp-pad { padding: 24px 26px; }
    .qp-bar-top { border-top: 3px solid #5BD46D; }
    .qp-title { margin: 0; font-size: 19px; font-weight: 800; font-style: italic; }
    .qp-step { display: flex; align-items: baseline; gap: 12px; margin: 34px 0 12px; }
    .qp-step span { font-size: 13px; font-weight: 800; font-style: italic; letter-spacing: .1em; color: #6d756f; }
    .qp-step h2 { margin: 0; font-size: 19px; font-weight: 800; font-style: italic; }
    .qp-lead { margin: 0 0 14px; max-width: 760px; font-size: 13px; font-weight: 500; line-height: 1.6; color: #A6ADA8; }
    .qp-kick { font-size: 11px; font-weight: 800; letter-spacing: .2em; color: #5BD46D; margin-bottom: 4px; }
    .qp-label { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: #A6ADA8; text-transform: uppercase; }
    .qp-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
    .qp-grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .qp-field { display: flex; flex-direction: column; gap: 7px; font-size: 12px; font-weight: 600; color: #C9CFCB; }
    .qp-field small { font-size: 11px; font-weight: 500; color: #7f8781; line-height: 1.45; }
    .qp-in { width: 100%; min-width: 0; height: 42px; padding: 0 14px; background: #141816; color: #F2F4F3; border: 1px solid rgba(255,255,255,.09); border-radius: 10px; font-size: 14px; font-weight: 600; }
    .qp-in:focus { outline: none; border-color: #5BD46D; }
    select.qp-in { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #C9CFCB 50%), linear-gradient(135deg, #C9CFCB 50%, transparent 50%); background-position: calc(100% - 20px) 19px, calc(100% - 15px) 19px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
    .qp-stages { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
    .qp-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
    .qp-stat { background: #0c100e; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 18px 20px; }
    .qp-stat b { display: block; margin-top: 10px; font-size: 26px; font-weight: 800; line-height: 1; }
    .qp-seg { display: inline-flex; gap: 4px; padding: 4px; background: #0c100e; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; }
    .qp-seg button { height: 36px; padding: 0 16px; border: 0; border-radius: 8px; background: transparent; color: #A6ADA8; font-size: 13px; font-weight: 700; }
    .qp-seg button[aria-pressed="true"] { background: #5BD46D; color: #06110a; }
    .qp-tabs { display: flex; gap: 20px; flex-wrap: wrap; border-bottom: 1px solid rgba(255,255,255,.07); }
    .qp-tabs button { background: none; border: 0; padding: 0 0 10px; margin-bottom: -1px; color: #8b938d; font-size: 13px; font-weight: 700; border-bottom: 2px solid transparent; }
    .qp-tabs button[aria-pressed="true"] { color: #F2F4F3; border-bottom-color: #5BD46D; }
    .qp-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
    .qp-chip.g { background: #143020; color: #5BD46D; }
    .qp-chip.r { background: #331516; color: #F0646A; }
    .qp-chip.y { background: #33280f; color: #E8B53A; }
    .qp-chip.n { background: #222725; color: #C9CFCB; }
    .qp-table { width: 100%; border-collapse: collapse; min-width: 640px; }
    .qp-table th { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8b938d; text-align: left; padding: 12px 10px; border-bottom: 1px solid rgba(255,255,255,.09); }
    .qp-table td { font-size: 13px; font-weight: 600; color: #C9CFCB; padding: 13px 10px; border-bottom: 1px solid rgba(255,255,255,.05); }
    .qp-table td b { color: #F2F4F3; font-size: 14px; }
    .qp-table tr.broken td b { color: #C44A4F; }
    .qp-prog { height: 5px; border-radius: 5px; background: #1f2421; overflow: hidden; margin-top: 6px; width: 120px; }
    .qp-prog i { display: block; height: 100%; background: #5BD46D; }
    .qp-hist { width: 100%; border-collapse: collapse; min-width: 640px; }
    .qp-hist th { position: sticky; top: 0; z-index: 2; background: #0d1210; font-size: 12px; font-weight: 600; color: #8b938d; text-align: center; padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.09); }
    .qp-hist th small { display: block; margin-top: 2px; font-size: 10px; color: #5BD46D; }
    .qp-hist th.skip small { color: #5c635f; }
    .qp-hist td { text-align: center; padding: 10px 4px; border-bottom: 1px solid rgba(255,255,255,.05); }
    .qp-hist th:first-child, .qp-hist td:first-child { text-align: left; padding-left: 0; width: 80px; }
    .qp-hist td:first-child b { display: block; font-size: 13px; font-weight: 700; }
    .qp-hist td:first-child small { font-size: 11px; color: #7f8781; }
    .qp-hist td.dim .qp-sq { opacity: .3; }
    .qp-sq { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 0; font-size: 16px; font-weight: 900; line-height: 1; }
    .qp-sq.W { background: #72E5AE; color: #0a2a1d; }
    .qp-sq.X { background: #EE6B6E; color: #2a0c0d; }
    .qp-sq.B { background: transparent; border: 2px solid #E8C25A; color: #E8C25A; }
    .qp-sq:hover { transform: scale(1.08); }
    .qp-sq .pt { position: absolute; top: -4px; right: -5px; background: #F2F4F3; color: #060807; font-size: 8px; font-weight: 800; border-radius: 4px; padding: 1px 3px; }
    .qp-sq .att { position: absolute; bottom: 0; right: 0; width: 9px; height: 9px; border-radius: 50%; background: #F2F4F3; border: 2px solid #0c100e; }
    .qp-sq.gold { box-shadow: 0 0 0 2px #0c100e, 0 0 0 4px #E8B53A; }
    .qp-sq.sm { width: 28px; height: 28px; font-size: 13px; }
    .qp-run { height: 48px; padding: 0 28px; border: 0; border-radius: 12px; background: #5BD46D; color: #06110a; font-size: 15px; font-weight: 800; box-shadow: 0 0 30px rgba(91,212,109,.3); }
    .qp-run:hover { background: #6fe081; }
    .qp-dash { color: #343a37; font-weight: 800; }
    .qp-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; font-weight: 600; color: #8b938d; }
    .qp-note { font-size: 11px; font-weight: 500; line-height: 1.65; color: #6d756f; }
    .qp-modal { position: fixed; inset: 0; z-index: 9999; background: rgba(3,4,4,.88); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 18px; }
    .qp-card { width: min(640px, 100%); max-height: 92vh; overflow: auto; background: #0c100e; border: 1px solid rgba(255,255,255,.09); border-top: 3px solid #5BD46D; border-radius: 16px; padding: 24px; }
    .qp-x { width: 36px; height: 36px; border-radius: 9px; background: transparent; border: 1px solid rgba(255,255,255,.12); color: #F2F4F3; font-size: 14px; }
    .qp-shots { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-top: 18px; }
    .qp-shot { background: #141816; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 12px; font-size: 13px; font-weight: 700; }
    .qp-shot img { display: block; width: 100%; height: 150px; object-fit: contain; background: #060807; border-radius: 8px; cursor: zoom-in; margin-top: 10px; }
    .qp-shot .empty { height: 150px; margin-top: 10px; border-radius: 8px; background: #0c100e; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: #7f8781; }
    @media (max-width: 960px) {
      .qp-grid, .qp-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
      .qp-stages { grid-template-columns: 1fr; }
    }
    @media (max-width: 560px) {
      .qp-pad { padding: 18px 16px; }
      .qp-grid.two { grid-template-columns: 1fr 1fr; }
      .qp-stats { gap: 10px; }
      .qp-stat b { font-size: 21px; }
      .qp-shots { grid-template-columns: 1fr; }
    }

.qp-need { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: #111614; font-size: 12px; font-weight: 600; line-height: 1.5; color: #A6ADA8; }
.qp-need:empty { display: none; }
.qp-need b { color: #F2F4F3; }

/* ---- accounts ---- */
.qp-acct { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; color: #A6ADA8; }
.qp-acct b { color: #F2F4F3; font-weight: 800; }
.qp-acct button, .qp-btn { height: 34px; padding: 0 14px; border-radius: 9px; background: transparent; border: 1px solid rgba(255,255,255,.14); color: #F2F4F3; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.qp-acct button:hover, .qp-btn:hover { border-color: #5BD46D; }
.qp-acct button.go { background: #5BD46D; border-color: #5BD46D; color: #06110a; }
.qp-btn { height: 48px; padding: 0 20px; border-radius: 12px; font-size: 14px; }
.qp button:disabled { opacity: .55; cursor: default; }
.qp-link { background: none; border: 0; padding: 0; color: #5BD46D; font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }
.qp-msg { margin: 0; min-height: 18px; font-size: 12px; font-weight: 700; line-height: 1.5; color: #F0646A; }
.qp-msg.good { color: #5BD46D; }
.qp-msg:empty { display: none; }
