/* 31UP QR Studio */
.qr31-app, .qr31-dash, .qr31-login, .qr31-overlay, .qr31-menu, .qr31-toast {
  --qr31-brand: #e5322d;
  --qr31-ink: #1c2140;
  --qr31-muted: #5b6178;
  --qr31-line: #e1e4ee;
  --qr31-soft: #f3f4f8;
  --qr31-card: #ffffff;
  --qr31-radius: 14px;
  font-family: var(--qr31-font, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
  color: var(--qr31-ink);
  font-size: 15px;
  line-height: 1.45;
  box-sizing: border-box;
}
.qr31-app *, .qr31-dash *, .qr31-login *, .qr31-overlay *, .qr31-menu * { box-sizing: border-box; }
.qr31-app { position: relative; max-width: 1180px; margin: 0 auto; }
/* Break out of narrow theme content columns (block themes, Elementor boxed sections):
   centre on the parent's centre line at our own width. Doubled class beats theme !important rules. */
div.qr31-app.qr31-app, div.qr31-dash.qr31-dash { --qr31-w: min(1180px, calc(100vw - 32px)); width: var(--qr31-w); max-width: none !important; margin-left: calc(50% - var(--qr31-w) / 2) !important; margin-right: 0 !important; }
.qr31-admin div.qr31-app.qr31-app, .qr31-admin div.qr31-dash.qr31-dash { width: auto; margin-left: 0 !important; }
.qr31-app h3, .qr31-app h4, .qr31-app h5, .qr31-dash h3, .qr31-dash h4, .qr31-dash h5, .qr31-login h3, .qr31-overlay h3, .qr31-overlay h4, .qr31-overlay h5 { font-family: inherit; font-weight: 700; letter-spacing: normal; text-transform: none; line-height: 1.3; color: var(--qr31-ink); }
.qr31-loading { padding: 40px; text-align: center; color: var(--qr31-muted); }

.qr31-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.qr31-col-side { position: sticky; top: 24px; }
.admin-bar .qr31-col-side { top: 56px; }
@media (max-width: 960px) {
  .qr31-grid { grid-template-columns: 1fr; }
  .qr31-col-side { position: static; order: -1; }
}

.qr31-card { background: var(--qr31-card); border: 1px solid var(--qr31-line); border-radius: var(--qr31-radius); padding: 20px; margin-bottom: 18px; box-shadow: 0 1px 2px rgba(20,20,40,.04); }
.qr31-card h3 { margin: 0 0 14px; font-size: 18px; display: flex; align-items: center; gap: 10px; color: var(--qr31-ink); }
.qr31-step { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--qr31-brand); color: #fff; font-size: 13px; font-weight: 700; }

/* type tabs */
.qr31-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.qr31-tabs button, .qr31-seg button, .qr31-preset {
  font: inherit; cursor: pointer; border: 1px solid var(--qr31-line); background: #fff; color: var(--qr31-ink);
  border-radius: 999px; padding: 7px 14px; font-size: 14px; line-height: 1.2; transition: border-color .15s, background .15s, color .15s;
}
.qr31-tabs button:hover, .qr31-seg button:hover, .qr31-preset:hover { border-color: var(--qr31-brand); }
.qr31-tabs button.is-on, .qr31-seg button.is-on { background: var(--qr31-ink); border-color: var(--qr31-ink); color: #fff; }
.qr31-tabs button:disabled:not(.is-on), .qr31-seg button:disabled { opacity: .4; cursor: not-allowed; }
.qr31-seg { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.qr31-seg-sm button { padding: 4px 10px; font-size: 13px; }

/* fields */
.qr31-field { display: block; margin-bottom: 12px; }
.qr31-field > span, .qr31-sub, .qr31-color > span, .qr31-range > span { display: block; font-size: 13px; font-weight: 600; color: var(--qr31-muted); margin-bottom: 5px; }
.qr31-field input, .qr31-field textarea, .qr31-field select, .qr31-dest input, .qr31-search, .qr31-size {
  width: 100%; font: inherit; color: var(--qr31-ink); background: #fff; border: 1px solid #d8d8e0; border-radius: 10px; padding: 10px 12px; min-height: 42px;
}
.qr31-field input:focus, .qr31-field textarea:focus, .qr31-dest input:focus, .qr31-search:focus { outline: none; border-color: var(--qr31-brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--qr31-brand) 18%, transparent); }
.qr31-check { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-size: 14px; cursor: pointer; }
.qr31-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 10px; }
@media (max-width: 480px) { .qr31-row { grid-template-columns: 1fr; } }
.qr31-color { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; gap: 0 8px; align-items: center; }
.qr31-color > span { grid-column: 1 / -1; }
.qr31-color input[type=color] { width: 44px; height: 40px; padding: 2px; border: 1px solid #d8d8e0; border-radius: 10px; background: #fff; cursor: pointer; }
.qr31-hex { font: 14px ui-monospace, Menlo, Consolas, monospace; border: 1px solid #d8d8e0; border-radius: 10px; padding: 9px 10px; width: 100%; min-height: 40px; }
.qr31-range { display: block; margin: 10px 0; }
.qr31-range input { width: 100%; accent-color: var(--qr31-brand); }
.qr31-hint { color: var(--qr31-muted); font-size: 13px; margin: 6px 0 10px; }
.qr31-badge { margin-right: auto; font-style: normal; font-size: 11px; background: var(--qr31-brand); color: #fff; padding: 2px 7px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; }

/* accordions */
.qr31-acc { border-top: 1px solid var(--qr31-line); }
.qr31-acc summary { cursor: pointer; padding: 13px 2px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.qr31-acc summary::-webkit-details-marker { display: none; }
.qr31-acc summary::after { content: "+"; font-size: 20px; color: var(--qr31-muted); font-weight: 400; }
.qr31-acc[open] summary::after { content: "–"; }
.qr31-acc-body { padding: 0 2px 14px; }

/* presets */
.qr31-presets { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 8px; }
@media (max-width: 640px) { .qr31-presets { grid-template-columns: repeat(3, 1fr); } }
.qr31-preset { border-radius: 12px; padding: 8px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; }
.qr31-preset-img svg { width: 56px; height: 56px; display: block; border-radius: 6px; }

/* uploads */
.qr31-upload { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.qr31-upload input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.qr31-thumb img { width: 42px; height: 42px; object-fit: cover; border-radius: 8px; border: 1px solid var(--qr31-line); display: block; }

/* dynamic box */
.qr31-dyn-box { background: var(--qr31-soft); border-radius: 12px; padding: 14px; margin-top: 4px; }
.qr31-dyn-box p { margin: 4px 0 10px; color: var(--qr31-muted); font-size: 14px; }
.qr31-dyn-box.is-on { background: color-mix(in srgb, var(--qr31-brand) 8%, #fff); }
.qr31-dyn-box code { font-size: 13px; }
.qr31-switch { display: flex; align-items: center; gap: 10px; cursor: pointer; margin: 6px 0 12px; font-size: 14px; }
.qr31-switch input { position: absolute; opacity: 0; }
.qr31-switch span { width: 40px; height: 23px; background: #cfcfd8; border-radius: 999px; position: relative; flex: none; transition: background .2s; }
.qr31-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.qr31-switch input:checked + span { background: var(--qr31-brand); }
.qr31-switch input:checked + span::after { transform: translateX(17px); }
.qr31-switch input:focus-visible + span { outline: 2px solid var(--qr31-brand); outline-offset: 2px; }

/* buttons */
.qr31-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; border: 1px solid var(--qr31-brand); background: var(--qr31-brand); color: #fff !important; border-radius: 10px; padding: 10px 16px; text-decoration: none !important; line-height: 1.2; min-height: 42px; transition: filter .15s; }
.qr31-btn:hover { filter: brightness(.94); }
.qr31-btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.qr31-btn-ghost { background: #fff; color: var(--qr31-ink) !important; border-color: #d8d8e0; }
.qr31-btn-ghost:hover { border-color: var(--qr31-ink); filter: none; }
.qr31-btn-sm { padding: 6px 11px; min-height: 34px; font-size: 13px; }
.qr31-btn-wide { width: 100%; }
.qr31-link { font: inherit; font-size: 13px; background: none; border: 0; padding: 4px 2px; color: var(--qr31-brand); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.qr31-danger { color: #b42318; }

/* preview */
.qr31-preview { background: repeating-conic-gradient(#f1f1f4 0 25%, #fff 0 50%) 0 0 / 18px 18px; border-radius: 12px; padding: 18px; display: grid; place-items: center; min-height: 240px; position: relative; }
.qr31-preview svg { width: 100%; max-width: 320px; height: auto; display: block; }
.qr31-preview.is-draft::after { content: "Preview — create it to download"; position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); background: rgba(29,29,36,.85); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.qr31-meta { font-size: 12px; color: var(--qr31-muted); text-align: center; margin: 8px 0 12px; }
.qr31-warn p { background: #fff7e6; border: 1px solid #ffd99a; color: #7a4b00; font-size: 13px; padding: 8px 10px; border-radius: 10px; margin: 10px 0 0; }
.qr31-err { background: #fdecec; color: #8a1c1c; padding: 14px; border-radius: 10px; font-size: 14px; }
.qr31-dl { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; }
.qr31-size { min-height: 42px; padding: 8px; }
.qr31-save { margin-top: 12px; }
.qr31-saved-info { font-size: 13px; color: var(--qr31-muted); margin-top: 8px; word-break: break-all; }

/* toast */
.qr31-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--qr31-ink); color: #fff; padding: 11px 18px; border-radius: 12px; font-size: 14px; z-index: 100000; box-shadow: 0 10px 30px rgba(0,0,0,.2); transition: opacity .4s; max-width: calc(100vw - 32px); }
.qr31-toast.is-bad { background: #b42318; }
.qr31-toast.is-out { opacity: 0; }


/* ================================================================ dashboard */
.qr31-dash { position: relative; }
.qr31-dash-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; border-bottom: 1px solid var(--qr31-line); }
.qr31-tabs-main { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin-bottom: -1px; }
.qr31-tabs-main::-webkit-scrollbar { display: none; }
.qr31-tabs-main button { font: inherit; font-weight: 600; font-size: 15px; background: none; border: 0; border-bottom: 3px solid transparent; color: var(--qr31-muted); padding: 12px 14px; cursor: pointer; white-space: nowrap; }
.qr31-tabs-main button:hover { color: var(--qr31-ink); }
.qr31-tabs-main button.is-on { color: var(--qr31-ink); border-bottom-color: var(--qr31-brand); }
.qr31-tabs-main button:focus-visible { outline: 2px solid var(--qr31-brand); outline-offset: -2px; border-radius: 6px; }
.qr31-new { flex: none; margin-bottom: 8px; }
@media (max-width: 640px) { .qr31-new { display: none; } }

.qr31-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.qr31-card-head h3 { margin: 0; }
.qr31-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.qr31-select { font: inherit; font-size: 14px; color: var(--qr31-ink); background: #fff; border: 1px solid #d3d6e2; border-radius: 10px; padding: 8px 10px; min-height: 38px; max-width: 100%; }
.qr31-sum { margin: 0 0 8px; color: var(--qr31-muted); }
.qr31-sum strong { color: var(--qr31-ink); }
.qr31-h5, .qr31-break h5 { margin: 18px 0 8px; font-size: 13px; font-weight: 600; color: var(--qr31-muted); }
.qr31-h5 small { font-weight: 400; }
.qr31-fine { font-size: 11px; color: var(--qr31-muted); margin-top: 14px; }
.qr31-empty { text-align: center; padding: 48px 20px; background: #fff; border: 1.5px dashed #cdd1de; border-radius: var(--qr31-radius); }
.qr31-empty h3 { margin: 0 0 6px; font-size: 19px; }
.qr31-empty p { color: var(--qr31-muted); margin: 0 0 16px; }

/* KPIs */
.qr31-kpis { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 12px; margin-bottom: 18px; }
.qr31-kpi { background: #fff; border: 1px solid var(--qr31-line); border-radius: var(--qr31-radius); padding: 16px 18px; min-width: 0; }
.qr31-kpi span { display: block; font-size: 13px; color: var(--qr31-muted); }
.qr31-kpi strong { display: block; font-size: 28px; line-height: 1.15; margin-top: 4px; font-variant-numeric: tabular-nums; }
.qr31-kpi strong small { font-size: 15px; color: var(--qr31-muted); font-weight: 500; }
.qr31-kpi .qr31-kpi-name { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 8px; }
.qr31-kpi em { font-style: normal; font-size: 13px; color: var(--qr31-muted); }
.qr31-kpi em.is-up { color: #13703a; }
.qr31-kpi em.is-down { color: #b42318; }
.qr31-kpi-main { background: var(--qr31-ink); border-color: var(--qr31-ink); color: #fff; }
.qr31-kpi-main span { color: rgba(255,255,255,.72); }
.qr31-kpi-main strong { font-size: 38px; }
.qr31-kpi-main em.is-up { color: #7ee2a8; }
.qr31-kpi-main em.is-down { color: #ffb4ab; }
@media (max-width: 860px) { .qr31-kpis { grid-template-columns: 1fr 1fr; } .qr31-kpi-main { grid-column: 1 / -1; } }

/* charts */
.qr31-chart { width: 100%; height: 140px; display: block; }
.qr31-chart rect { fill: var(--qr31-brand); }
.qr31-chart-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--qr31-muted); margin-top: 4px; }
.qr31-hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; height: 70px; align-items: end; }
.qr31-hour { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.qr31-hour i { display: block; background: var(--qr31-ink); opacity: .82; border-radius: 3px 3px 0 0; }
.qr31-hour span { font-size: 10px; color: var(--qr31-muted); height: 14px; line-height: 14px; white-space: nowrap; }
.qr31-breaks { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 4px 22px; }
.qr31-bar { display: grid; grid-template-columns: 92px 1fr 52px; gap: 8px; align-items: center; font-size: 13px; margin-bottom: 5px; }
.qr31-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qr31-bar i { display: block; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--qr31-brand) 72%, #fff); }
.qr31-bar b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

.qr31-projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.qr31-project { font: inherit; text-align: left; background: var(--qr31-soft); border: 1px solid transparent; border-radius: 12px; padding: 12px 14px; cursor: pointer; color: var(--qr31-ink); }
.qr31-project:hover, .qr31-project:focus-visible { border-color: var(--qr31-brand); outline: none; }
.qr31-project b { display: block; }
.qr31-project span { font-size: 13px; color: var(--qr31-muted); }

/* toolbar */
.qr31-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.qr31-toolbar .qr31-search { flex: 1 1 240px; min-height: 40px; }
.qr31-search { font: inherit; border: 1px solid #d3d6e2; border-radius: 10px; padding: 9px 12px; background: #fff; color: var(--qr31-ink); }
.qr31-toolbar .qr31-seg { margin: 0; }
.qr31-filter-chip { display: inline-flex; gap: 8px; align-items: center; background: var(--qr31-soft); padding: 6px 12px; border-radius: 999px; font-size: 14px; margin-bottom: 12px; }

/* gallery */
.qr31-list.is-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.qr31-tile { background: #fff; border: 1px solid var(--qr31-line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.qr31-tile.is-paused .qr31-tile-qr { filter: grayscale(1); opacity: .55; }
.qr31-tile-qr { all: unset; display: grid; place-items: center; background: var(--qr31-soft); padding: 18px; cursor: zoom-in; aspect-ratio: 1 / 1; box-sizing: border-box; }
.qr31-tile-qr:focus-visible { outline: 3px solid var(--qr31-brand); outline-offset: -3px; }
.qr31-tile-qr svg { width: 100%; height: 100%; display: block; }
.qr31-tile-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.qr31-tile-title { display: flex; gap: 8px; align-items: baseline; justify-content: space-between; }
.qr31-tile-title h4 { margin: 0; font-size: 16px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qr31-tile-meta { margin: 0; font-size: 13px; color: var(--qr31-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qr31-tile-link { margin: 2px 0 0; font-size: 14px; display: flex; gap: 6px; align-items: center; min-width: 0; }
.qr31-tile-link a { color: var(--qr31-ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qr31-tile-dest { margin: 0; font-size: 13px; color: var(--qr31-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qr31-tile-num { margin: 6px 0 10px; font-size: 14px; color: var(--qr31-muted); }
.qr31-tile-num b { color: var(--qr31-ink); font-size: 22px; font-variant-numeric: tabular-nums; margin-right: 4px; }
.qr31-tile-num span { display: block; font-size: 12px; }
.qr31-tile-act { display: flex; gap: 6px; margin-top: auto; }
.qr31-tile-act .qr31-btn { flex: 1; }
.qr31-pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; align-self: flex-start; }
.qr31-pill.is-off { background: #eceef4; color: var(--qr31-muted); }
.qr31-pill.is-mig { background: #e7f6ec; color: #13703a; }
.qr31-pill.is-wait { background: #fff4dc; color: #7a4b00; }
.qr31-icon { font: inherit; font-size: 20px; line-height: 1; width: 38px; min-height: 34px; border: 1px solid #d3d6e2; background: #fff; border-radius: 10px; cursor: pointer; color: var(--qr31-ink); flex: none; }
.qr31-icon:hover { border-color: var(--qr31-ink); }

/* table / list view */
.qr31-table { border: 1px solid var(--qr31-line); border-radius: 14px; overflow: hidden; background: #fff; }
.qr31-tr { display: grid; grid-template-columns: 64px minmax(0, 1.4fr) minmax(0, 1.4fr) 110px auto; gap: 14px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--qr31-line); font-size: 14px; }
.qr31-tr:first-child { border-top: 0; }
.qr31-th { background: var(--qr31-soft); font-size: 12px; font-weight: 600; color: var(--qr31-muted); padding-top: 8px; padding-bottom: 8px; }
.qr31-tr small { display: block; color: var(--qr31-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qr31-tr small a { color: inherit; }
.qr31-tr.is-paused { opacity: .6; }
.qr31-tr.is-bad { background: #fdf0ee; }
.qr31-td-qr svg { width: 56px; height: 56px; display: block; }
.qr31-td-url { color: var(--qr31-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qr31-td-act { display: flex; gap: 6px; justify-content: flex-end; }
.qr31-clients .qr31-tr { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.3fr) 70px 90px auto; }
.qr31-table-sm .qr31-tr { grid-template-columns: 34px minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr); padding: 7px 12px; font-size: 13px; }
.qr31-mig-bulk-out .qr31-table-sm .qr31-tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; }
@media (max-width: 760px) {
  .qr31-tr, .qr31-clients .qr31-tr { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .qr31-tr > :nth-child(3) { display: none; }
  .qr31-tr > :nth-child(4) { display: none; }
  .qr31-clients .qr31-tr { grid-template-columns: minmax(0, 1fr) auto; }
  .qr31-clients .qr31-tr > :nth-child(2), .qr31-clients .qr31-tr > :nth-child(3) { display: none; }
  .qr31-clients .qr31-tr > :nth-child(4) { display: block; }
  .qr31-table-sm .qr31-tr { grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1fr); }
  .qr31-table-sm .qr31-tr > :nth-child(n+4) { display: none; }
  .qr31-mig-bulk-out .qr31-table-sm .qr31-tr > :nth-child(3) { display: block; }
}
.qr31-pager { display: flex; gap: 12px; justify-content: center; align-items: center; font-size: 14px; color: var(--qr31-muted); margin-top: 18px; }

/* overlays (drawer + dialog) */
html.qr31-locked { overflow: hidden; }
.qr31-overlay { position: fixed; inset: 0; z-index: 99990; }
.qr31-scrim { position: absolute; inset: 0; background: rgba(20,24,45,.45); opacity: 0; transition: opacity .2s; }
.qr31-overlay.is-open .qr31-scrim { opacity: 1; }
.qr31-drawer, .qr31-dialog { position: absolute; background: #fff; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(20,24,45,.3); }
.qr31-drawer { top: 0; right: 0; bottom: 0; width: min(560px, 100vw); transform: translateX(24px); opacity: 0; transition: transform .22s ease, opacity .22s ease; }
.qr31-dialog { left: 50%; top: 50%; width: min(480px, calc(100vw - 24px)); max-height: calc(100vh - 24px); border-radius: 18px; transform: translate(-50%, -46%); opacity: 0; transition: transform .2s ease, opacity .2s ease; }
.qr31-overlay.is-open .qr31-drawer { transform: none; opacity: 1; }
.qr31-overlay.is-open .qr31-dialog { transform: translate(-50%, -50%); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .qr31-drawer, .qr31-dialog, .qr31-scrim { transition: none; } }
.qr31-ov-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--qr31-line); }
.qr31-ov-head h3 { margin: 0; font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qr31-x { font: 400 28px/1 sans-serif; background: none; border: 0; width: 40px; height: 40px; border-radius: 10px; cursor: pointer; color: var(--qr31-muted); flex: none; }
.qr31-x:hover { background: var(--qr31-soft); color: var(--qr31-ink); }
.qr31-ov-body { padding: 18px 20px; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.qr31-ov-foot { display: flex; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--qr31-line); background: #fff; }
.qr31-ov-foot .qr31-btn:first-child { flex: 1; }
.qr31-form fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.qr31-form legend { font-weight: 700; font-size: 15px; margin-bottom: 10px; padding: 0; }
.qr31-form details { border: 1px solid var(--qr31-line); border-radius: 12px; margin-bottom: 8px; }
.qr31-form summary { cursor: pointer; padding: 12px 14px; font-weight: 600; font-size: 14px; list-style: none; display: flex; justify-content: space-between; }
.qr31-form summary::-webkit-details-marker { display: none; }
.qr31-form summary::after { content: "+"; color: var(--qr31-muted); font-weight: 400; font-size: 18px; line-height: 1; }
.qr31-form details[open] summary::after { content: "–"; }
.qr31-form details > :not(summary) { margin-left: 14px; margin-right: 14px; }
.qr31-form details > :last-child { margin-bottom: 14px; }
.qr31-prefix { display: flex; align-items: stretch; border: 1px solid #d8d8e0; border-radius: 10px; overflow: hidden; }
.qr31-prefix span { background: var(--qr31-soft); color: var(--qr31-muted); padding: 10px 4px 10px 12px; font-size: 14px; white-space: nowrap; display: flex; align-items: center; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.qr31-prefix input { border: 0; font: inherit; padding: 10px 12px; flex: 1; min-width: 0; }
.qr31-prefix:focus-within { border-color: var(--qr31-brand); }
.qr31-prefix input:focus { outline: none; }
.qr31-hint.is-ok { color: #13703a; }
.qr31-hint.is-bad, .qr31-err-inline { color: #b42318; }
.qr31-warn-inline { background: #fff7e6; border: 1px solid #ffd99a; color: #7a4b00; font-size: 13px; padding: 8px 10px; border-radius: 10px; }
.qr31-sched { background: var(--qr31-soft); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.qr31-days { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.qr31-days label { cursor: pointer; }
.qr31-days input { position: absolute; opacity: 0; }
.qr31-days span { display: inline-block; font-size: 13px; padding: 5px 9px; border-radius: 8px; border: 1px solid #d3d6e2; background: #fff; }
.qr31-days input:checked + span { background: var(--qr31-ink); color: #fff; border-color: var(--qr31-ink); }
.qr31-days input:focus-visible + span { outline: 2px solid var(--qr31-brand); outline-offset: 1px; }
.qr31-sched-row { display: flex; gap: 10px; align-items: flex-end; margin-bottom: 6px; }
.qr31-sched-row label span { display: block; font-size: 12px; color: var(--qr31-muted); }
.qr31-sched-row input { font: inherit; border: 1px solid #d3d6e2; border-radius: 8px; padding: 6px 8px; background: #fff; }
.qr31-sched-row .qr31-link { margin-left: auto; }
.qr31-row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 700px) { .qr31-row3 { grid-template-columns: 1fr; } }
.qr31-row-inline { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin: 10px 0; }
.qr31-inline { margin: 0; min-width: 200px; }
.qr31-file { position: relative; overflow: hidden; cursor: pointer; }
.qr31-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.qr31-stats-top { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.qr31-stats-qr svg { width: 110px; height: 110px; display: block; border-radius: 8px; }
.qr31-big { font-size: 34px; font-weight: 700; margin: 0; line-height: 1.1; font-variant-numeric: tabular-nums; }
.qr31-big small { font-size: 14px; font-weight: 400; color: var(--qr31-muted); }

/* popover menu */
.qr31-menu { position: absolute; z-index: 99995; background: #fff; border: 1px solid var(--qr31-line); border-radius: 12px; box-shadow: 0 14px 40px rgba(20,24,45,.18); padding: 6px; min-width: 210px; }
.qr31-menu button { display: block; width: 100%; text-align: left; font: inherit; font-size: 14px; background: none; border: 0; padding: 9px 12px; border-radius: 8px; cursor: pointer; color: var(--qr31-ink); }
.qr31-menu button:hover, .qr31-menu button:focus-visible { background: var(--qr31-soft); outline: none; }
.qr31-menu button.is-danger { color: #b42318; }
.qr31-menu hr { border: 0; border-top: 1px solid var(--qr31-line); margin: 5px 4px; }

/* batch */
.qr31-batch-in, .qr31-mig-bulk { width: 100%; font: 13px/1.5 ui-monospace, Menlo, Consolas, monospace; border: 1px solid #d3d6e2; border-radius: 10px; padding: 10px 12px; resize: vertical; }
.qr31-batch-preview { margin-top: 12px; }
.qr31-batch-preview .qr31-btn { margin-top: 12px; }
.qr31-mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin-top: 12px; }
.qr31-mini-grid figure { margin: 0; text-align: center; font-size: 13px; }
.qr31-mini-grid svg { width: 100%; height: auto; display: block; background: var(--qr31-soft); border-radius: 10px; padding: 6px; }
.qr31-mini-grid small { display: block; color: var(--qr31-muted); }

/* migration */
.qr31-steps { margin: 0 0 22px; padding-left: 22px; display: grid; gap: 8px; max-width: 72ch; }
.qr31-steps li { padding-left: 4px; }
.qr31-mig-next { display: flex; gap: 18px; align-items: center; background: #f1faf4; border: 1px solid #bfe5cc; border-radius: 14px; padding: 16px; margin-top: 18px; }
.qr31-mig-next h4 { margin: 0 0 6px; }
.qr31-mig-next p { margin: 0 0 8px; }
.qr31-mig-qr svg { width: 120px; height: 120px; display: block; }
.qr31-copyline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.qr31-copyline code { background: #fff; border: 1px solid var(--qr31-line); padding: 8px 10px; border-radius: 8px; font-size: 14px; word-break: break-all; }
@media (max-width: 600px) { .qr31-mig-next { flex-direction: column; align-items: flex-start; } }

/* account */
.qr31-acct { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 18px; align-items: start; }

/* wp-admin */
.qr31-admin .qr31-app, .qr31-admin .qr31-dash { margin-top: 16px; }
.qr31-admin .qr31-dash { --qr31-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
