/* Remixly – member area + tool pages (import, screenshot, export, dashboard, checkout, settings) */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.cols-wide { grid-template-columns: 420px minmax(0, 1fr); }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stack-lg > * + * { margin-top: 18px; }
@media (max-width: 1180px) { .cols, .cols-wide { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .cols-2 { grid-template-columns: 1fr; } }
.sub-h { font: 700 12px/1 var(--rx-font); text-transform: uppercase; letter-spacing: .08em; color: var(--rx-ink-3); margin: 0 0 10px; }
.prototype-note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 12px; border: 1px dashed var(--rx-amber); background: var(--rx-amber-soft); color: var(--rx-amber-ink); font-size: 13px; margin-bottom: 16px; }
.prototype-note .ico { margin-top: 1px; }

/* option cards (radio/checkbox as cards) */
.opts { display: grid; gap: 8px; }
.opt { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--rx-line-2); background: var(--rx-surface); cursor: pointer; min-height: 48px; }
.opt:hover { border-color: var(--rx-violet); }
.opt input { margin: 2px 0 0; width: 18px; height: 18px; accent-color: var(--rx-btn); flex: none; }
.opt b { display: block; font-size: 14px; }
.opt span { font-size: 12.5px; color: var(--rx-ink-3); }
.opt:has(input:checked) { border-color: var(--rx-violet); background: var(--rx-tint); }
.opt:has(input:checked) b { color: var(--rx-tint-ink); }
.opt.disabled { opacity: .55; cursor: not-allowed; }

/* import progress */
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.steps-list li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; min-height: 46px; padding: 6px 10px; border-radius: 10px; color: var(--rx-ink-3); font-size: 14px; }
.steps-list li .st { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--rx-line-2); }
.steps-list li.run { background: var(--rx-tint); color: var(--rx-ink); }
.steps-list li.run .st { border-color: var(--rx-violet); border-top-color: transparent; animation: spin .8s linear infinite; }
.steps-list li.done { color: var(--rx-ink); }
.steps-list li.done .st { background: var(--rx-ok); border-color: var(--rx-ok); color: #fff; }
.steps-list li.done .st .ico { width: 14px; height: 14px; stroke-width: 3; }
.steps-list .cnt { font: 600 12.5px/1 var(--rx-mono); color: var(--rx-ink-2); white-space: nowrap; }
@keyframes spin { to { transform: rotate(360deg); } }
.bar { height: 10px; border-radius: 99px; background: var(--rx-surface-3); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--rx-btn); border-radius: inherit; transition: width .3s; }

/* lists */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rx-line); min-width: 0; }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .grow b, .list .grow .t { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.list .grow span { font-size: 12.5px; color: var(--rx-ink-3); }
.list .thumb { width: 64px; height: 44px; border-radius: 8px; object-fit: cover; object-position: top; border: 1px solid var(--rx-line); background: var(--rx-surface-3); flex: none; }
.file-ico { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--rx-tint); color: var(--rx-violet); flex: none; }

/* screenshot page */
.devs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dev { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 12px 6px; border-radius: 12px; border: 1px solid var(--rx-line-2); background: var(--rx-surface); cursor: pointer; font-size: 12.5px; min-height: 76px; }
.dev .ico { width: 22px; height: 22px; color: var(--rx-ink-3); }
.dev b { font-size: 13px; }
.dev span { color: var(--rx-ink-3); font: 11.5px/1 var(--rx-mono); }
.dev:has(input:checked) { border-color: var(--rx-violet); background: var(--rx-tint); box-shadow: inset 0 0 0 1px var(--rx-violet); }
.dev:has(input:checked) .ico { color: var(--rx-violet); }
.dev input { position: absolute; opacity: 0; width: 1px; height: 1px; }
@media (max-width: 420px) { .devs { grid-template-columns: 1fr 1fr; } }
.preview { position: relative; min-height: 420px; border-radius: var(--rx-r-lg); border: 1px solid var(--rx-line); background-color: var(--rx-surface-2); background-image: linear-gradient(45deg, var(--rx-surface-3) 25%, transparent 25%, transparent 75%, var(--rx-surface-3) 75%), linear-gradient(45deg, var(--rx-surface-3) 25%, transparent 25%, transparent 75%, var(--rx-surface-3) 75%); background-size: 20px 20px; background-position: 0 0, 10px 10px; display: grid; place-items: center; padding: 18px; overflow: hidden; }
.preview img { max-width: 100%; max-height: 640px; object-fit: contain; object-position: top; border-radius: 8px; box-shadow: var(--rx-shadow-lg); background: #fff; }
.preview-empty { text-align: center; color: var(--rx-ink-3); max-width: 300px; }
.preview-empty .big { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 18px; display: grid; place-items: center; background: var(--rx-surface); border: 1px solid var(--rx-line); color: var(--rx-violet); }
.preview-busy { position: absolute; inset: 0; display: none; place-items: center; background: var(--rx-surface-2); text-align: center; }
.preview.busy .preview-busy { display: grid; }
.preview-busy .spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid var(--rx-line-2); border-top-color: var(--rx-violet); animation: spin .8s linear infinite; margin: 0 auto 12px; }
.shot-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

/* dashboard */
.welcome { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 22px 24px; border-radius: var(--rx-r-xl); background: var(--rx-navy); color: #DADBF5; margin-bottom: 18px; background-image: linear-gradient(rgba(167, 139, 250, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(167, 139, 250, .08) 1px, transparent 1px); background-size: 28px 28px; }
:root[data-theme="dark"] .welcome { background-color: #070919; border: 1px solid var(--rx-line); }
.welcome h2 { color: #fff; margin: 0 0 4px; font-size: 1.55rem; }
.welcome p { margin: 0; color: #B9BBDF; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; }
.quick .btn:not(.btn-primary):not(.btn-amber) { --b-bg: rgba(255, 255, 255, .08); --b-ink: #fff; --b-line: rgba(255, 255, 255, .2); }
@media (max-width: 860px) { .welcome { grid-template-columns: 1fr; } }
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.proj { background: var(--rx-surface); border: 1px solid var(--rx-line); border-radius: var(--rx-r-lg); overflow: hidden; display: flex; flex-direction: column; }
.proj-img { position: relative; display: block; aspect-ratio: 16/10; background: var(--rx-surface-3); overflow: hidden; border-bottom: 1px solid var(--rx-line); }
.proj-img img, .proj-img svg { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.proj-img .badge { position: absolute; left: 10px; top: 10px; }
.proj-body { padding: 12px 14px; display: grid; gap: 2px; }
.proj-body b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj-body span { font-size: 12.5px; color: var(--rx-ink-3); }
.proj-foot { display: flex; gap: 6px; padding: 0 10px 12px; margin-top: auto; }
.proj-foot .btn { flex: 1; }
.proj-new { border: 2px dashed var(--rx-line-2); background: transparent; display: grid; place-items: center; text-align: center; min-height: 240px; color: var(--rx-ink-2); text-decoration: none !important; border-radius: var(--rx-r-lg); }
.proj-new:hover { border-color: var(--rx-violet); color: var(--rx-violet); }
.proj-new .big { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--rx-tint); color: var(--rx-violet); margin: 0 auto 10px; }
@media (max-width: 1280px) { .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .projects { grid-template-columns: 1fr; } }
.usage { display: grid; gap: 16px; }
.usage-row .row-between { font-size: 14px; margin-bottom: 7px; }
.usage-row b { font-variant-numeric: tabular-nums; }
.job { display: grid; gap: 8px; padding: 14px; border-radius: 12px; border: 1px solid var(--rx-line); background: var(--rx-surface-2); }
.job + .job { margin-top: 10px; }

/* checkout */
.plan-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.plan-pick .opt { flex-direction: column; gap: 4px; }
.plan-pick .opt input { position: absolute; top: 14px; right: 14px; }
.plan-pick .amt { font: 800 24px/1 var(--rx-display); color: var(--rx-ink); margin-top: 4px; }
@media (max-width: 520px) { .plan-pick { grid-template-columns: 1fr; } }
.gw { display: grid; gap: 8px; }
.gw .opt { align-items: center; }
.gw-logo { width: 54px; height: 32px; border-radius: 7px; display: grid; place-items: center; font: 800 11px/1 var(--rx-font); color: #fff; flex: none; letter-spacing: .02em; }
.gw .why { margin-left: auto; font-size: 12px; text-align: right; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0; font-size: 14px; }
.summary dt { color: var(--rx-ink-2); }
.summary dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.summary .total { font: 800 22px/1 var(--rx-display); padding-top: 12px; border-top: 1px solid var(--rx-line); margin-top: 4px; }

/* settings / 2FA */
.qr { width: 168px; height: 168px; padding: 10px; background: #fff; border-radius: 12px; border: 1px solid var(--rx-line); flex: none; }
.qr svg { width: 100%; height: 100%; }
.secret { font: 600 15px/1.4 var(--rx-mono); letter-spacing: .08em; padding: 10px 12px; border-radius: 9px; background: var(--rx-surface-3); word-break: break-all; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; font: 600 14px/1 var(--rx-mono); }
.codes span { padding: 10px; border-radius: 8px; background: var(--rx-surface-3); text-align: center; }
.otp { display: flex; gap: 6px; }
.otp input { width: 46px; height: 52px; text-align: center; font: 700 22px/1 var(--rx-mono); border: 1px solid var(--rx-line-2); border-radius: 10px; background: var(--rx-surface); color: var(--rx-ink); }
.otp input:focus { outline: none; border-color: var(--rx-violet); box-shadow: 0 0 0 3px rgba(124, 58, 237, .18); }
@media (max-width: 380px) { .otp input { width: 40px; height: 48px; } }
.set-nav { display: grid; gap: 2px; position: sticky; top: 84px; }
.set-nav a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 9px; color: var(--rx-ink-2); font-weight: 600; font-size: 14px; text-decoration: none; }
.set-nav a:hover, .set-nav a.on { background: var(--rx-surface); color: var(--rx-ink); }
.set-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .set-grid { grid-template-columns: 1fr; } .set-nav { position: static; grid-auto-flow: column; overflow-x: auto; } }

/* templates gallery (public) */
.tpl-page { padding: 40px 0 72px; }
.tpl-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.tpl-tools .input-group { width: 280px; max-width: 100%; }
.tpl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tcard { background: var(--rx-surface); border: 1px solid var(--rx-line); border-radius: var(--rx-r-lg); overflow: hidden; display: flex; flex-direction: column; }
.tcard .tc-img { position: relative; border-bottom: 1px solid var(--rx-line); }
.tcard .tc-img svg { width: 100%; height: auto; display: block; }
.tcard .tc-img .badge { position: absolute; top: 10px; right: 10px; }
.tcard .tc-body { padding: 12px 14px 4px; }
.tcard .tc-body b { display: block; }
.tcard .tc-body span { font-size: 13px; color: var(--rx-ink-3); }
.tcard .tc-foot { display: flex; gap: 6px; padding: 10px 12px 12px; margin-top: auto; }
.tcard .tc-foot .btn { flex: 1; }
@media (max-width: 1200px) { .tpl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .tpl-grid { grid-template-columns: 1fr; } }
.page-hero { padding: 44px 0 8px; }
.page-hero h1 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.8rem); margin-bottom: 8px; }
.page-hero p { color: var(--rx-ink-3); font-size: 17px; max-width: 64ch; }

/* sign in */
.auth { min-height: calc(100vh - var(--rx-head-h)); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--rx-navy); color: #C9CBEA; padding: 56px; display: flex; flex-direction: column; justify-content: center; background-image: linear-gradient(rgba(167, 139, 250, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(167, 139, 250, .08) 1px, transparent 1px); background-size: 32px 32px; }
.auth-side h2 { color: #fff; }
.auth-side ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.auth-side li { display: flex; gap: 10px; }
.auth-side .ico { color: #FBBF24; margin-top: 2px; }
.auth-main { display: grid; place-items: center; padding: 40px 20px; }
.auth-box { width: min(420px, 100%); }
.auth-box h1 { font-size: 2rem; }
.demo-logins { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } }
.preview.has-img { display: block; max-height: 660px; overflow: auto; text-align: center; place-items: initial; }
.preview.has-img img { display: inline-block; max-height: none; width: auto; max-width: 100%; }

.opts.grid-3 { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.opt { min-width: 0; }
