/* the portal has no prototype bar above the shell */
.shell { min-height: 100vh; }
.side { top: 0; height: 100vh; }
.topbar { top: 0; }
.proto-link { display: block; margin: auto 20px 10px; font-size: 0.72rem; color: var(--mist); opacity: 0.65; text-decoration: underline; text-underline-offset: 2px; }
.proto-link:hover { opacity: 1; color: #fff; }
.alert.red { background: var(--bad-soft); border-color: #f2c2c7; color: var(--bad); }
.mb { margin-bottom: 16px; }
.card.stat b { display: block; font-family: var(--f-display); font-size: 1.9rem; color: var(--ink); margin: 6px 0 2px; }
.card.stat .s { font-size: 0.8rem; color: var(--muted); }
.card-head.pad { padding: 16px 20px 0; }
.input.sm { padding: 6px 10px; max-width: 120px; }
.sample-banner { margin-bottom: 16px; }

.lpages { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; max-height: 1080px; overflow-y: auto; padding: 2px; }
.lpage { position: relative; cursor: pointer; border: 1px solid var(--line); border-radius: 4px; background: #fff; overflow: hidden; transition: transform 0.12s, box-shadow 0.12s; aspect-ratio: 450 / 666; }
.lpage:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(20, 18, 42, 0.12); }
.lpage img { width: 100%; height: 100%; object-fit: cover; }
.lpage.flagged { outline: 2px solid #e0b34a; }
.lpage.personal { border-color: #c9bdfb; }
.lpage .flag { position: absolute; top: 6px; left: 6px; }
.lpage .pn { position: absolute; bottom: 4px; right: 6px; font-family: var(--f-mono); font-size: 0.6rem; color: var(--muted); background: rgba(255, 255, 255, 0.85); padding: 0 4px; border-radius: 3px; }
.bigpage { width: 100%; max-width: 520px; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 10px 30px rgba(20, 18, 42, 0.12); }
.checks li.click { cursor: pointer; }
.checks li.click:hover { background: #faf9fd; }
.checks li .s { font-size: 0.78rem; color: var(--muted); margin-top: 3px; }
.checks .ok .ic { width: 12px; height: 12px; }

.qr-live { display: flex; gap: 16px; align-items: flex-start; }
.qr-live img { width: 120px; height: 120px; border: 1px solid var(--line); border-radius: 6px; flex-shrink: 0; }
.qr-live .grow { flex: 1; min-width: 0; }
.qr-live b { color: var(--ink); }
.qr-live .s { font-size: 0.8rem; color: var(--muted); }
.qr-stats { display: flex; gap: 14px; font-size: 0.8rem; color: var(--muted); margin: 8px 0; }
.qr-stats b { color: var(--ink); }
.qr-live .url { margin-top: 4px; }

.check-row { margin: 6px 0; }
h4.sec { font-size: 0.9rem; color: var(--ink); margin-bottom: 8px; }
.kv b.pw { font-family: var(--f-mono); font-size: 1rem; letter-spacing: 0.04em; }
.mono-s { font-family: var(--f-mono); font-size: 0.74rem; }
.s.mono-s { display: block; }
td.nowrap { white-space: nowrap; text-align: right; }
.lbl { font-weight: 700; font-size: 0.82rem; color: var(--ink); display: block; margin-bottom: 6px; }
.grid.tight { gap: 10px; }
.grid.tight .field { margin-bottom: 8px; }
.grid.tight .field label:empty { display: none; }
.media-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.media-slot { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.media-slot img { width: 100%; height: 90px; object-fit: contain; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 6px; }
.media-empty { width: 100%; height: 90px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); border: 1px dashed var(--line); border-radius: var(--r-md); color: var(--muted); font-size: 0.8rem; }
.media-slot label.btn { cursor: pointer; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 4px; border: 1px solid var(--line); }
.cover-prev { width: 100%; max-height: 260px; object-fit: contain; background: var(--surface-2); border-radius: var(--r-md); }
.transcript { max-height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; font-size: 0.86rem; }
.tline { padding: 8px 10px; border-radius: var(--r-md); background: var(--surface-2); }
.tline.g { background: var(--violet-soft); }
.tline b { font-family: var(--f-mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-right: 6px; }
input[type=color].input { padding: 4px; height: 40px; }

.btn:disabled { opacity: .45; cursor: not-allowed; }
.alert.green { background: var(--go-soft); border-color: #bfe3cc; color: var(--go); }
.select.sm { padding: 5px 8px; font-size: 0.8rem; width: auto; min-width: 140px; }
.steps { padding-left: 20px; display: grid; gap: 10px; font-size: 0.86rem; margin: 12px 0 16px; }
.steps li { padding-left: 4px; }
.steps a.linkish { white-space: nowrap; }
details.help { font-size: 0.82rem; color: var(--muted); margin: 0 0 14px; }
details.help summary { cursor: pointer; font-weight: 700; color: var(--ink); }
details.help p, details.help .grid { margin-top: 8px; }
.wiz-note { display: flex; gap: 10px; align-items: center; margin: 12px 0 4px; }
