/* 31UP QR Studio 1.7 — content types (module A): type picker, schema forms, uploads, phone preview, dashboard type chips. Loaded with qr31.css. */
.qr31-ti { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---- type picker */
.qr31-tp { margin: 0 0 16px; }
.qr31-tp-cur { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--qr31-line); border-radius: 14px; background: var(--qr31-soft); }
.qr31-tp-cur-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.qr31-tp-cur-t b { font-size: 16px; }
.qr31-tp-cur-t small { color: var(--qr31-muted); font-size: 13px; line-height: 1.35; }
.qr31-tp-ic { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: color-mix(in srgb, var(--qr31-brand) 12%, #fff); color: var(--qr31-brand); flex: none; }
.qr31-tp-ic.is-big { width: 46px; height: 46px; border-radius: 13px; background: var(--qr31-brand); color: #fff; }
.qr31-tp-body { margin-top: 12px; }
.qr31-tp-search { width: 100%; font: inherit; font-size: 16px; padding: 11px 14px 11px 40px; min-height: 46px; border: 1.5px solid var(--qr31-line); border-radius: 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6178' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") no-repeat 12px center / 18px; color: var(--qr31-ink); }
.qr31-tp-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-tp-sub { margin: 16px 0 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--qr31-muted); }
.qr31-tp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.qr31-tp-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 92px; padding: 12px 6px 10px; font: inherit; font-size: 13.5px; font-weight: 600; line-height: 1.2; text-align: center; color: var(--qr31-ink); background: #fff; border: 1.5px solid var(--qr31-line); border-radius: 14px; cursor: pointer; transition: border-color .12s, transform .12s, box-shadow .12s; }
.qr31-tp-tile:hover { border-color: var(--qr31-brand); box-shadow: 0 6px 16px -10px rgba(22, 115, 255, .55); }
.qr31-tp-tile:active { transform: scale(.97); }
.qr31-tp-tile:focus-visible { outline: 3px solid color-mix(in srgb, var(--qr31-brand) 45%, transparent); outline-offset: 1px; }
.qr31-tp-tile.is-on { border-color: var(--qr31-brand); background: color-mix(in srgb, var(--qr31-brand) 7%, #fff); box-shadow: inset 0 0 0 1px var(--qr31-brand); }
.qr31-tp-tile.is-on .qr31-tp-ic { background: var(--qr31-brand); color: #fff; }
.qr31-tp-tile.is-locked { opacity: .62; }
.qr31-tp-l { overflow-wrap: anywhere; }
.qr31-tp-tag { position: absolute; top: 6px; right: 6px; font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .03em; padding: 1px 6px; border-radius: 99px; background: #ecfdf5; color: #047857; }
.qr31-tp-more { display: block; margin: 14px auto 0; min-height: 40px; font-weight: 600; }
@media (max-width: 480px) { .qr31-tp-cur-t small { display: none; } .qr31-tp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .qr31-tp-tile { min-height: 84px; font-size: 12.5px; padding: 10px 4px 8px; } .qr31-tp-cur .qr31-btn { padding-left: 10px; padding-right: 10px; } }
@media (max-width: 340px) { .qr31-tp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- schema forms */
.qr31-must { font-style: normal; color: #c2410c; margin-left: 3px; }
.qr31-field > .qr31-hint, .qr31-field + .qr31-hint { display: block; margin-top: 5px; font-size: 13px; }
.qr31-fields .qr31-field .qr31-check { margin: 4px 0 0; }
.qr31-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.qr31-chips button { font: inherit; font-size: 13.5px; min-height: 36px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--qr31-line); background: #fff; color: var(--qr31-ink); cursor: pointer; }
.qr31-chips button.is-on { background: var(--qr31-ink); border-color: var(--qr31-ink); color: #fff; }
.qr31-colorf { display: flex; gap: 8px; align-items: center; }
.qr31-colorf input[type=color] { width: 46px; height: 44px; padding: 3px; border: 1px solid var(--qr31-line); border-radius: 10px; background: #fff; flex: none; cursor: pointer; }
.qr31-colorf input[type=text] { flex: 1; min-width: 0; font: inherit; font-family: ui-monospace, Menlo, Consolas, monospace; padding: 10px 12px; min-height: 44px; border: 1.5px solid var(--qr31-line); border-radius: 10px; }
.qr31-tsec { margin-top: 6px; }
.qr31-tsec-box { margin: 6px 0 12px; padding: 12px 14px 2px; border-radius: 12px; background: var(--qr31-soft); }

/* repeaters */
.qr31-rep { margin: 4px 0 14px; }
.qr31-rep-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.qr31-rep-head span { font-size: 13px; font-weight: 600; color: var(--qr31-muted); }
.qr31-rep-head small { font-size: 12px; color: var(--qr31-muted); }
.qr31-rep-item { border: 1px solid var(--qr31-line); border-radius: 12px; background: #fff; margin-bottom: 8px; }
.qr31-rep-item[open] { box-shadow: 0 4px 14px -10px rgba(11, 26, 58, .4); }
.qr31-rep-item > summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px 6px 4px 10px; cursor: pointer; list-style: none; }
.qr31-rep-item > summary::-webkit-details-marker { display: none; }
.qr31-rep-item > summary b { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qr31-rep-n { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--qr31-soft); color: var(--qr31-muted); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.qr31-rep-tools { display: flex; gap: 2px; flex: none; }
.qr31-rep-tools .qr31-ibtn { width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: none; border-radius: 10px; color: var(--qr31-muted); cursor: pointer; }
.qr31-rep-tools .qr31-ibtn:hover:not(:disabled) { background: var(--qr31-soft); color: var(--qr31-ink); }
.qr31-rep-tools .qr31-ibtn.is-danger:hover { color: #b42318; background: #fef3f2; }
.qr31-rep-tools .qr31-ibtn:disabled { opacity: .3; cursor: default; }
.qr31-rep-tools .qr31-ti { width: 18px; height: 18px; }
.qr31-rep-body { padding: 4px 12px 2px; border-top: 1px dashed var(--qr31-line); }
.qr31-rep-body .qr31-rep { margin-top: 8px; }
.qr31-rep-body .qr31-rep-item { background: var(--qr31-soft); }
.qr31-rep-add { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; font: inherit; font-weight: 600; color: var(--qr31-brand); background: #fff; border: 1.5px dashed color-mix(in srgb, var(--qr31-brand) 45%, var(--qr31-line)); border-radius: 12px; cursor: pointer; }
.qr31-rep-add:hover { background: color-mix(in srgb, var(--qr31-brand) 6%, #fff); }

/* uploads */
.qr31-up-row { display: flex; gap: 12px; align-items: center; }
.qr31-up-prev { flex: none; width: 64px; height: 64px; border-radius: 12px; border: 1px solid var(--qr31-line); background: var(--qr31-soft) repeating-conic-gradient(#eef0f5 0 25%, #fff 0 50%) 50% / 14px 14px; display: grid; place-items: center; overflow: hidden; color: var(--qr31-muted); }
.qr31-up:not(.is-img) .qr31-up-prev, .qr31-up:not(.has-file) .qr31-up-prev { background: var(--qr31-soft); }
.qr31-up-prev img { width: 100%; height: 100%; object-fit: cover; }
.qr31-up.has-file:not(.is-img) .qr31-up-prev { color: var(--qr31-brand); background: color-mix(in srgb, var(--qr31-brand) 10%, #fff); }
.qr31-up-act { position: relative; flex: 1; min-width: 0; }
.qr31-up-btns { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.qr31-up-btns .qr31-btn { min-height: 40px; cursor: pointer; }
.qr31-up-in { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.qr31-up-in:focus-visible + .qr31-up-btns .qr31-btn { outline: 3px solid color-mix(in srgb, var(--qr31-brand) 45%, transparent); }
.qr31-up-msg { display: block; margin-top: 5px; font-size: 12.5px; color: var(--qr31-muted); overflow-wrap: anywhere; }
.qr31-up-msg.is-wait { color: var(--qr31-brand); font-weight: 600; }

/* ---- preview card: QR / phone toggle */
.qr31-pvbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -4px 0 14px; }
.qr31-pvbar[hidden] { display: none; }
.qr31-pvbar .qr31-seg button { min-height: 36px; }
.qr31-phone { display: none; position: relative; margin: 0 auto 12px; width: 100%; max-width: 340px; padding: 12px; border-radius: 36px; background: #0b1020; box-shadow: 0 18px 40px -20px rgba(11, 26, 58, .6), inset 0 0 0 2px #2a3350; }
.qr31-phone-notch { position: absolute; z-index: 1; top: 18px; left: 50%; width: 84px; height: 20px; margin-left: -42px; border-radius: 12px; background: #0b1020; }
.qr31-phone iframe { display: block; width: 100%; height: min(640px, 72vh); border: 0; border-radius: 26px; background: #eef1f7; }
.qr31-preview-card.is-page .qr31-phone { display: block; }
.qr31-preview-card.is-page .qr31-preview, .qr31-preview-card.is-page .qr31-scan, .qr31-preview-card.is-page .qr31-warn, .qr31-preview-card.is-page .qr31-meta, .qr31-preview-card.is-page .qr31-dl { display: none; }
@media (max-width: 960px) { .qr31-phone iframe { height: 560px; } }

/* ---- dashboard: type chips, filter, page activity */
.qr31-type-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 2px 9px 2px 6px; border-radius: 99px; font-size: 12px; font-weight: 600; color: var(--qr31-ink); background: var(--qr31-soft); border: 1px solid var(--qr31-line); vertical-align: middle; }
.qr31-type-chip .qr31-ti { width: 14px; height: 14px; color: var(--qr31-brand); }
.qr31-tile-type { margin: 2px 0 6px; }
.qr31-content-box { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--qr31-soft); margin-bottom: 12px; }
.qr31-content-box > span:first-child { flex: 1; min-width: 0; }
.qr31-content-box b { display: block; }
.qr31-content-box small { color: var(--qr31-muted); overflow-wrap: anywhere; }
.qr31-taps { list-style: none; margin: 0 0 8px; padding: 0; }
.qr31-taps li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--qr31-line); font-size: 14px; }
.qr31-taps li span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.qr31-taps li i { flex: none; height: 6px; border-radius: 3px; background: var(--qr31-brand); opacity: .75; }
.qr31-taps li b { flex: none; min-width: 32px; text-align: right; }
.qr31-resp-sum { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.qr31-resp-sum b { font-size: 26px; }
.qr31-resp { padding: 10px 0; border-bottom: 1px solid var(--qr31-line); font-size: 14px; }
.qr31-resp-top { display: flex; align-items: center; gap: 8px; }
.qr31-resp-top .qr31-stars { color: #f59e0b; letter-spacing: 1px; }
.qr31-resp-top small { color: var(--qr31-muted); margin-left: auto; }
.qr31-resp p { margin: 4px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.qr31-resp .qr31-link { margin-top: 4px; min-height: 32px; }
.qr31-resp.is-low { background: linear-gradient(90deg, #fef3f2, transparent 70%); margin: 0 -8px; padding: 10px 8px; border-radius: 8px; }
