/* Wizard page (V2\Wizard) – standalone, no theme */
:root {
	--qw-accent: #157f87;
	--qw-accent-dark: #0f6168;
	--qw-text: #1b2430;
	--qw-muted: #6b7280;
	--qw-border: #e3e7ec;
	--qw-bg: #f5f7f9;
	--qw-panel: #fff;
}
* { box-sizing: border-box; }
body.qw { margin: 0; background: var(--qw-bg); color: var(--qw-text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
[hidden] { display: none !important; }

.qw-header { background: var(--qw-panel); border-bottom: 1px solid var(--qw-border); padding: 14px 16px; }
.qw-brand { color: var(--qw-text); font-weight: 700; text-decoration: none; }

.qw-main { max-width: 720px; margin: 0 auto; padding: 24px 16px 40px; }
.qw-card { background: var(--qw-panel); border: 1px solid var(--qw-border); border-radius: 14px; padding: 24px; }
.qw-title { font-size: 26px; line-height: 1.25; margin: 0 0 6px; }
.qw-lead { color: var(--qw-muted); margin: 0 0 18px; }

/* chat */
.qw-log { display: flex; flex-direction: column; gap: 10px; max-height: 55vh; min-height: 160px; overflow-y: auto; padding: 4px 2px 12px; }
.qw-msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; white-space: pre-wrap; }
.qw-msg-assistant { align-self: flex-start; background: #eef5f6; border-bottom-left-radius: 4px; }
.qw-msg-user { align-self: flex-end; background: var(--qw-accent); color: #fff; border-bottom-right-radius: 4px; }
.qw-msg.is-typing { color: var(--qw-muted); letter-spacing: 2px; }

.qw-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.qw-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--qw-border); background: var(--qw-panel); border-radius: 999px; padding: 7px 14px 7px 8px; font: inherit; cursor: pointer; }
.qw-chip.is-active, .qw-chip:hover { border-color: var(--qw-accent); box-shadow: 0 0 0 2px rgba(21,127,135,.15); }
.qw-swatch { width: 20px; height: 20px; border-radius: 50%; display: inline-block; }

.qw-input { display: flex; gap: 8px; align-items: flex-end; border-top: 1px solid var(--qw-border); padding-top: 12px; }
.qw-input textarea { flex: 1; resize: none; min-height: 44px; max-height: 140px; }
.qw-done { text-align: center; margin: 8px 0 12px; }

.qw-btn { border: 1px solid var(--qw-border); background: var(--qw-panel); color: var(--qw-text); border-radius: 999px; padding: 11px 20px; font: inherit; font-weight: 600; cursor: pointer; }
.qw-btn-primary { background: var(--qw-accent); border-color: var(--qw-accent); color: #fff; }
.qw-btn-primary:hover { background: var(--qw-accent-dark); }
.qw-link { border: 0; background: none; color: var(--qw-accent); font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }
.qw-note { font-size: 13px; color: var(--qw-muted); margin: 14px 0 0; }

/* form */
textarea, input { width: 100%; border: 1px solid var(--qw-border); border-radius: 8px; padding: 10px 12px; font: inherit; color: inherit; background: #fff; }
textarea:focus, input:focus { outline: 2px solid rgba(21,127,135,.35); border-color: var(--qw-accent); }
.qw-form { display: flex; flex-direction: column; gap: 14px; }
.qw-form label { display: block; font-weight: 600; font-size: 15px; }
.qw-form label input, .qw-form label textarea { display: block; margin-top: 4px; }
.qw-opt { font-weight: 400; color: var(--qw-muted); }
.qw-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qw-colours { border: 0; padding: 0; margin: 0; }
.qw-colours legend { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.qw-hint { font-size: 13px; color: var(--qw-muted); margin: 0; }
.qw-hint.is-error { color: #b42318; }

/* building */
.qw-building { text-align: center; padding: 60px 16px; }
.qw-spinner { width: 44px; height: 44px; margin: 0 auto 18px; border: 4px solid var(--qw-border); border-top-color: var(--qw-accent); border-radius: 50%; animation: qw-spin 1s linear infinite; }
@keyframes qw-spin { to { transform: rotate(360deg); } }

@media (max-width: 560px) {
	.qw-card { padding: 18px 14px; border-radius: 10px; }
	.qw-title { font-size: 22px; }
	.qw-row { grid-template-columns: 1fr; }
	.qw-log { max-height: 50vh; }
}

/* design choice (sample company in each design) */
.qw-done { text-align: left; }
.qw-done-title { margin: 4px 0 10px; }
.qw-concepts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.qw-concept { display: flex; flex-direction: column; gap: 6px; padding: 6px; border: 2px solid var(--qw-border); border-radius: 10px; background: var(--qw-panel); font: inherit; font-weight: 600; font-size: 14px; color: var(--qw-text); cursor: pointer; text-align: center; }
.qw-concept img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-radius: 6px; background: #eef1f4; }
.qw-concept:hover, .qw-concept.is-active { border-color: var(--qw-accent); box-shadow: 0 0 0 3px rgba(21,127,135,.15); }
.qw-concept[hidden] { display: none; }
.qw-more { grid-column: 1 / -1; justify-self: start; font-size: 15px; }
@media (max-width: 560px) {
	.qw-concepts { grid-template-columns: 1fr 1fr; }
}

/* summary of the collected facts before the design choice */
.qw-summary { background: #f6f9fa; border: 1px solid var(--qw-border); border-radius: 10px; padding: 12px 14px; margin: 4px 0 14px; }
.qw-summary-title { margin: 0 0 6px; }
.qw-summary dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 15px; }
.qw-summary dt { color: var(--qw-muted); }
.qw-summary dd { margin: 0; white-space: pre-wrap; word-break: break-word; }
.qw-summary-hint { font-size: 14px; color: var(--qw-muted); margin: 10px 0 0; }
@media (max-width: 560px) {
	.qw-summary dl { grid-template-columns: 1fr; gap: 0; }
	.qw-summary dd { margin-bottom: 6px; }
}
.qw-howto { font-size: 14px; color: var(--qw-text); background: #eef6f7; border-radius: 8px; padding: 10px 12px; margin: -6px 0 16px; }
