/* GENERATED by web-app/build_frontend.py from the local frontend - do not edit by hand. */
.qr-app {
  --qr-bg:          #0d1117;
  --qr-panel:       #12161e;
  --qr-card:        #161b24;
  --qr-line:        rgba(255,255,255,.14);
  --qr-text:        #e8ecf2;
  --qr-muted:       #98a2b3;
  --qr-accent:      #dca24a;
  --qr-accent-soft: #d3a05a;
  --qr-accent2:     #2f86ff;
  --qr-ok:          #33bd6b;
  --qr-input:       #10151d;
}
.qr-app *, .qr-app *::before, .qr-app *::after { box-sizing: border-box; }
.qr-app [hidden] { display: none !important; }
.qr-app { background: var(--qr-bg); color: var(--qr-text); font-family: "Rubik", "Segoe UI", system-ui, sans-serif; }
.qr-app { display: flex; flex-direction: column; height: 900px; border-radius: 14px; overflow: hidden; position: relative; }
.qr-app #topbar { flex-shrink: 0; background: var(--qr-panel);
         border-bottom: 1px solid var(--qr-line); padding: 12px 22px;
         display: flex; align-items: center; justify-content: space-between;
         gap: 12px; flex-wrap: wrap; }
.qr-app #main { display: flex; flex: 1; min-height: 0; }
.qr-app #viewport { position: relative; flex: 1; min-width: 0; background: var(--qr-bg); }
.qr-app #panel { width: 340px; flex-shrink: 0; background: var(--qr-panel);
            border-left: 1px solid var(--qr-line); overflow-y: auto; padding: 12px 14px; }
.qr-app #mobile-notice { display: none; }
.qr-app #topbar h1 { margin: 0; font-size: 20.8px; font-weight: 800; letter-spacing: .3px; color: var(--qr-accent); }
.qr-app #topbar .subtitle { margin-top: 2px; font-size: 13.6px; font-weight: 400; color: var(--qr-muted); }
.qr-app .topbar-actions { display: flex; gap: 8px; flex-shrink: 0; }
.qr-app #topbar .topbar-actions button.ghost { width: auto; margin-top: 0; padding: 7px 12px; font-size: 12.8px; }
.qr-app .tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.qr-app .tab { flex: 1; background: transparent; color: var(--qr-muted);
        border: 1px solid var(--qr-line); border-radius: 9px; padding: 9px 6px;
        font-weight: 600; font-size: 14.08px; cursor: pointer; }
.qr-app .tab:hover:not(:disabled):not(.active) { color: var(--qr-text); border-color: var(--qr-accent); }
.qr-app .tab.active { color: #201603; background: var(--qr-accent-soft); border-color: var(--qr-accent-soft); }
.qr-app .tab:disabled { opacity: .4; cursor: not-allowed; }
.qr-app .info-note { font-size: 13.12px; color: var(--qr-muted); line-height: 1.45; margin: 0; }
.qr-app .card { background: var(--qr-card); border: 1px solid var(--qr-line);
          border-radius: 11px; padding: 9px 12px; margin-bottom: 6px; }
.qr-app .card h2 { font-size: 15.2px; color: var(--qr-accent); margin: 0 0 6px;
          font-weight: 700; letter-spacing: .2px; }
.qr-app .acc .acc-head { display: flex; align-items: center; justify-content: space-between;
                 cursor: pointer; user-select: none; }
.qr-app .acc .acc-head:focus-visible { outline: 1px solid var(--qr-accent2); outline-offset: 3px; border-radius: 6px; }
.qr-app .card.acc .acc-head h2 { margin: 0; }
.qr-app .acc.locked .acc-head { cursor: not-allowed; }
.qr-app .acc .chev { color: var(--qr-muted); display: flex; font-size: 11.2px; transition: transform .2s ease; }
.qr-app .acc.open .chev { transform: rotate(180deg); }
.qr-app .acc .acc-body { display: none; margin-top: 8px; }
.qr-app .acc.open .acc-body { display: block; }
.qr-app .card.locked { opacity: .5; }
.qr-app .card.locked h2 { color: var(--qr-muted); }
.qr-app .field { margin-bottom: 6px; }
.qr-app .field label { display: block; font-size: 11.2px; color: var(--qr-muted); margin-bottom: 3px; }
.qr-app .field input {
  width: 100%; background: var(--qr-input); border: 1px solid var(--qr-line);
  color: var(--qr-text); border-radius: 7px; padding: 8px; font-size: 13.6px;
}
.qr-app .field input:hover, .qr-app .field input:focus { border-color: var(--qr-accent); outline: none; }
.qr-app .field input:disabled { opacity: .45; }
.qr-app input:-webkit-autofill, .qr-app input:-webkit-autofill:hover, .qr-app input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--qr-text); caret-color: var(--qr-text);
  box-shadow: 0 0 0 1000px var(--qr-input) inset; transition: background-color 9999s;
}
.qr-app .row2 { display: flex; gap: 8px; }
.qr-app .row2 .field { flex: 1; }
.qr-app .select {
  width: 100%; background: var(--qr-input); border: 1px solid var(--qr-line);
  color: var(--qr-text); border-radius: 7px; padding: 8px; font-size: 13.6px;
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%238a93a6' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: left 10px center;
}
.qr-app .select:hover:not(:disabled), .qr-app .select:focus { border-color: var(--qr-accent); outline: none; }
.qr-app .select:disabled { opacity: .45; cursor: not-allowed; }
.qr-app .check-row {
  display: flex; align-items: center; gap: 8px; margin: 4px 0 6px;
  font-size: 13.12px; color: var(--qr-text); cursor: pointer;
}
.qr-app input[type=checkbox] { accent-color: var(--qr-accent2); width: 15px; height: 15px; }
.qr-app .dims-bar { position: absolute; bottom: 0; left: 0; right: 0; z-index: 4;
            display: flex; justify-content: center; gap: clamp(10px, 3vw, 36px); padding: 11px 12px;
            white-space: nowrap;
            background: rgba(13,17,23,.88); border-top: 1px solid var(--qr-line);
            font-size: 14.08px; color: var(--qr-muted); pointer-events: none; }
.qr-app .dims-bar[hidden] { display: none; }
.qr-app .dims-bar b { color: var(--qr-text); font-weight: 700; }
.qr-app button.primary {
  background: var(--qr-accent-soft); color: #201603; border: none;
  border-radius: 9px; padding: 11px; font-weight: 700; font-size: 14.72px;
  cursor: pointer; width: 100%; margin-top: 8px;
}
.qr-app button.primary:hover { filter: brightness(1.06); }
.qr-app button.primary:disabled { opacity: .45; cursor: not-allowed; }
.qr-app button.primary.alt { background: var(--qr-ok); color: #fff; }
.qr-app button.ghost {
  background: transparent; border: 1px solid var(--qr-line); color: var(--qr-muted);
  border-radius: 8px; padding: 7px 10px; font-size: 13.12px; cursor: pointer; width: 100%;
}
.qr-app button.ghost:hover:not(:disabled) { color: var(--qr-text); border-color: var(--qr-accent2); }
.qr-app button.ghost:disabled { opacity: .45; cursor: not-allowed; }
.qr-app button.ghost + button.ghost { margin-top: 8px; }
.qr-app button.ghost.accent { color: var(--qr-accent); border-color: rgba(220,162,74,.45); }
.qr-app button.ghost.accent:hover:not(:disabled) { color: var(--qr-accent); border-color: var(--qr-accent); }
.qr-app .ghost.danger:not(:disabled) { color: #fff; background: #d9534f; border-color: #d9534f; }
.qr-app .btn-row { display: flex; gap: 8px; margin-top: 6px; }
.qr-app .btn-row > button { flex: 1; width: auto; margin-top: 0; }
.qr-app .mini-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.qr-app .mini-row label { display: flex; flex-direction: column; gap: 4px; font-size: 11.2px; color: var(--qr-muted); }
.qr-app .mini-row input {
  width: 100%; background: var(--qr-input); border: 1px solid var(--qr-line); color: var(--qr-text);
  border-radius: 7px; padding: 6px; font-size: 13.6px;
}
.qr-app .hole-row { display: grid; gap: 8px; align-items: end; margin-bottom: 8px; }
.qr-app .hole-row.three { grid-template-columns: 40px 1fr 1fr; }
.qr-app .hole-row.two { grid-template-columns: 40px 1fr; }
.qr-app .hole-row label { display: flex; flex-direction: column; gap: 4px; font-size: 11.2px; color: var(--qr-muted); }
.qr-app .hole-row input {
  width: 100%; background: var(--qr-input); border: 1px solid var(--qr-line); color: var(--qr-text);
  border-radius: 7px; padding: 6px; font-size: 13.6px;
}
.qr-app .icon-btn {
  height: 33px; background: var(--qr-input); border: 1px solid var(--qr-line); border-radius: 8px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.qr-app .icon-btn:hover:not(:disabled) { border-color: var(--qr-accent2); }
.qr-app .icon-btn:disabled { opacity: .4; cursor: not-allowed; }
.qr-app .icon-btn .sq { width: 15px; height: 15px; border: 2px solid var(--qr-text); border-radius: 2px; }
.qr-app .icon-btn .ci { width: 15px; height: 15px; border: 2px solid var(--qr-text); border-radius: 50%; }
.qr-app .spinner { position: absolute; inset: 0; display: flex; flex-direction: column;
           align-items: center; justify-content: center; gap: 14px;
           background: rgba(16,19,26,.6); color: var(--qr-text); z-index: 5; }
.qr-app .spin { width: 44px; height: 44px; border: 4px solid var(--qr-line);
           border-top-color: var(--qr-accent); border-radius: 50%;
           animation: qr-spin 1s linear infinite; }
@keyframes qr-spin { to { transform: rotate(360deg); } }
.qr-app .overlay-tools { position: absolute; top: 12px; left: 12px; z-index: 4;
                         display: flex; flex-direction: column; gap: 6px; }
.qr-app .overlay-tools .view-row, .qr-app .overlay-tools .toggle-row { display: flex; gap: 6px; }
.qr-app .overlay-tools button { background: rgba(30,36,48,.8); color: var(--qr-text);
                        border: 1px solid var(--qr-line); border-radius: 8px;
                        padding: 6px 10px; font-size: 13.12px; cursor: pointer; }
.qr-app .overlay-tools button:hover:not(:disabled) { border-color: var(--qr-accent2); }
.qr-app .overlay-tools button:disabled { opacity: .45; cursor: not-allowed; }
.qr-app .overlay-tools button.active { color: #201603; background: var(--qr-accent-soft); border-color: var(--qr-accent-soft); }
.qr-app .overlay-tools button.toggle-btn { display: inline-grid; }
.qr-app .overlay-tools button.toggle-btn > span { grid-area: 1 / 1; white-space: nowrap; }
.qr-app .overlay-tools button.toggle-btn > .btn-sizer { visibility: hidden; }
.qr-app .guide-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--qr-accent-soft); color: #201603; font-weight: 700; font-family: inherit;
  border: 1px solid var(--qr-accent-soft); border-radius: 8px; padding: 6px 18px;
  font-size: 13.12px; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.qr-app .guide-btn:hover { filter: brightness(1.06); }
.qr-app .guide-btn[hidden] { display: none; }
.qr-app .banner { position: absolute; bottom: 0; left: 0; right: 0; z-index: 4;
          background: linear-gradient(180deg, #3a2c0c, #2c2109);
          color: var(--qr-accent); border-top: 1px solid rgba(220,162,74,.5);
          text-align: center; font-size: 14.4px; font-weight: 600;
          padding: 9px 16px; pointer-events: none; }
.qr-app .msgbox { position: fixed; inset: 0; z-index: 9999; display: flex;
          align-items: center; justify-content: center; padding: 20px;
          background: rgba(8,11,20,.66); }
.qr-app .msgbox[hidden] { display: none; }
.qr-app .msgbox-card {
  width: min(430px,100%); text-align: center; direction: rtl;
  background: #1e2438; border: 1px solid #2b3350; border-top: 4px solid #ff5c72;
  border-radius: 16px; padding: 26px 24px; box-shadow: 0 10px 30px rgba(0,0,0,.35);
  animation: qr-pop .16s ease-out;
}
.qr-app .msgbox-title { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: #e7eaf3; }
.qr-app .msgbox-msg { margin: 0 0 20px; font-size: 14px; line-height: 1.65; color: #9aa3bd; }
.qr-app .msgbox-btn { min-width: 130px; padding: 10px 18px; border-radius: 10px; border: none;
                font-weight: 700; font-size: 14px; color: #fff; cursor: pointer;
                background: linear-gradient(90deg, #5b8cff, #7c5cff); }
@keyframes qr-pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (max-width: 768px) {
.qr-app #main { flex-direction: column; }
.qr-app #viewport { flex: 0 0 42%; min-height: 220px; order: -1; }
.qr-app #panel { width: 100%; flex: 1; min-height: 0; }
.qr-app #mobile-notice {
    display: block; text-align: center; font-weight: 700; font-size: 13px;
    background: var(--qr-accent-soft); color: #201603; border-radius: 9px;
    padding: 8px 10px; margin-bottom: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
.qr-app .msgbox-card { animation: none; }
}

/* ---- Host-theme isolation (see SLIDER-CSS-IN-HOST-PAGE-SNIPPET.md in the sibling project) ---------
   Themes / page builders (Elementor...) set typography with high specificity and !important, and
   their rem/line-height leak in. Re-declare on every element, with !important: */
.qr-app, .qr-app * { font-family: "Rubik", "Segoe UI", system-ui, sans-serif !important; }
.qr-app, .qr-app * { line-height: normal !important; }
.qr-app .info-note { line-height: 1.45 !important; }
.qr-app .msgbox-msg { line-height: 1.65 !important; }
.qr-app button { text-transform: none; letter-spacing: normal; min-height: 0; box-shadow: none; }
/* The icon buttons (hole-placement square / circle) are 40px wide and declare no padding of their
   own, so a host theme's global `button { padding: ... }` used to leave them ~2px of content box and
   squash the shape inside to a thin bar. */
.qr-app button.icon-btn { padding: 0; min-width: 0; }
.qr-app .credit-cost { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: 6px; font-weight: 700; vertical-align: middle; }
.qr-app .credit-icon { width: 16px; height: 16px; display: inline-block; vertical-align: middle; }
.qr-app button.alt { display: flex; align-items: center; justify-content: center; gap: 4px; }
