/* In the `components` cascade layer, declared in _head_assets.html. This sheet loads after style.css and shares its layer, so a tie still resolves in this file's favour by source order, exactly as when both were unlayered. The creator theme block stays unlayered and outranks both. */ @layer components { /* Creation Wizard Layout */ .wizard-layout { display: flex; max-width: 1100px; margin: 0 auto; gap: var(--gap-page); min-height: 60vh; } .wizard-sidebar { width: 220px; flex-shrink: 0; padding-top: var(--gap-peer); } .wizard-sidebar h2 { font-family: var(--font-display); font-weight: bold; font-size: var(--text-subhead); margin-bottom: var(--gap-pane); } .wizard-content { flex: 1; min-width: 0; } /* Step Indicator */ .wizard-steps { list-style: none; padding: 0; margin: 0; } .wizard-step-indicator { display: flex; align-items: center; gap: var(--gap-group); padding: var(--gap-peer) 0; font-size: var(--text-note); color: var(--content-muted); position: relative; } .wizard-step-indicator + .wizard-step-indicator::before { content: ''; position: absolute; left: 12px; top: -4px; width: 1px; height: 12px; background: var(--border); } .wizard-step-indicator.completed + .wizard-step-indicator::before { background: var(--action); } .step-number { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: var(--radius-round); font-size: var(--text-fine); font-weight: bold; flex-shrink: 0; border: 2px solid var(--border); color: var(--content-muted); background: transparent; } .wizard-step-indicator.active .step-number { border-color: var(--action); background: var(--action); color: var(--primary-light); } .wizard-step-indicator.completed .step-number { border-color: var(--action); color: var(--action); } .wizard-step-indicator.active .step-label { color: var(--content); font-weight: bold; } .wizard-step-indicator.completed .step-label { color: var(--content); } /* Step Content */ .wizard-step { background: var(--surface-overlay); padding: var(--gap-page); border-radius: var(--radius-control); } .wizard-step h2 { font-family: var(--font-display); font-weight: bold; font-size: var(--text-head); margin-bottom: var(--gap-bound); } .step-description { color: var(--content-muted); font-size: var(--text-note); margin-bottom: var(--gap-pane); } /* Wizard Actions (button row) */ .wizard-actions { display: flex; align-items: center; gap: var(--gap-section); margin-top: var(--gap-page); padding-top: var(--gap-pane); border-top: 1px solid var(--border); flex-wrap: wrap; } .wizard-actions .primary { margin-left: auto; } /* Type Card Grid */ .type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: var(--gap-section); margin-top: var(--gap-peer); } .type-grid-large { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } /* (The cards themselves are .card--selectable, defined in style.css; this file only contains wizard-specific layouts.) */ /* Suggestion Input (category, tags) */ .suggestion-input { position: relative; } .suggestion-dropdown { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface-page); border: 1px solid var(--border); border-top: none; border-radius: 0 0 var(--radius-control) var(--radius-control); max-height: 200px; overflow-y: auto; z-index: var(--z-dropdown); box-shadow: var(--elevation-overlay); } .suggestion-dropdown.open { display: block; } .suggestion-item { padding: var(--gap-peer) var(--gap-section); cursor: pointer; font-size: var(--text-note); } .suggestion-item:hover { background: var(--surface-overlay); } .suggestion-create { font-style: italic; opacity: 0.8; border-top: 1px solid var(--border); } /* (`.monetization-card{,-cards,.info-only}` removed 2026-05-20, dead CSS, no template references. Selectable monetization choices use the canonical `.card--selectable` recipe in style.css.) */ .tier-row { display: flex; justify-content: space-between; padding: var(--gap-peer) 0; font-size: var(--text-note); border-bottom: 1px solid var(--border); } .tier-form-row { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: var(--gap-section); margin-top: var(--gap-peer); padding: var(--gap-section); background: var(--surface-raised); border-radius: var(--radius-control); } /* Pricing Cards */ .pricing-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--gap-section); margin-bottom: var(--gap-pane); } /* (The cards are `.card--selectable`, the text-heavy pricing variant adds `.is-text-heavy`, and `.is-disabled` is its modifier. All in style.css.) */ .pricing-fields { margin-top: var(--gap-section); } .content-choice-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--gap-section); margin-bottom: var(--gap-pane); } /* Preview Summary */ .preview-summary { margin-bottom: var(--gap-pane); } .preview-row { display: flex; padding: var(--gap-group) 0; border-bottom: 1px solid var(--border); font-size: var(--text-note); } .preview-row.indent { padding-left: var(--gap-pane); } .preview-label { width: 180px; flex-shrink: 0; color: var(--content-muted); font-weight: bold; } .preview-value { flex: 1; } /* Preview Checklist */ .preview-checklist { margin-bottom: var(--gap-pane); } .preview-checklist h3 { font-family: var(--font-mono); font-size: var(--text-body); margin-bottom: var(--gap-peer); } .preview-checklist ul { list-style: none; padding: 0; margin: 0; } .preview-checklist li { padding: var(--gap-bound) 0; padding-left: var(--gap-page); position: relative; font-size: var(--text-note); } .preview-checklist li::before { position: absolute; left: 0; font-family: var(--font-mono); font-size: var(--text-fine); text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.6; } .check-done::before { content: "Done"; color: var(--success); } .check-missing::before { content: "Todo"; color: var(--content-muted); } /* Upload Areas */ .upload-area { border: 2px dashed var(--border); border-radius: var(--radius-control); padding: var(--gap-page); text-align: center; cursor: pointer; transition: border-color 0.15s; background: var(--surface-page); } .upload-area:hover, .upload-area.dragover { border-color: var(--action); } /* Project Image Dropzone */ .project-image-dropzone { border: 2px dashed var(--border); border-radius: var(--radius-control); padding: var(--gap-page); text-align: center; cursor: pointer; transition: border-color 0.15s; background: var(--surface-page); max-width: 300px; } .project-image-dropzone:hover, .project-image-dropzone.dragover { border-color: var(--action); } .project-image-placeholder { color: var(--content-muted); } .project-image-upload { display: flex; flex-direction: column; gap: var(--gap-section); max-width: 300px; } .project-image-upload .secondary { align-self: flex-start; } .project-image-current img { width: 200px; height: 200px; object-fit: cover; border-radius: var(--radius-control); } .upload-progress-inline { font-size: var(--text-note); display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap-peer); } .upload-progress-inline .progress-bar-container { width: 100%; height: 6px; background: var(--border); border-radius: var(--radius-control); overflow: hidden; } .upload-progress-inline .progress-bar { height: 100%; background: var(--action); transition: width 0.2s; } .upload-error-inline { font-size: var(--text-note); color: var(--danger); padding: var(--gap-peer) var(--gap-section); background: color-mix(in oklch, var(--danger) 8%, transparent); border-radius: var(--radius-control); } /* Project Card Preview */ .project-card-preview { display: flex; gap: var(--gap-section); align-items: center; padding: var(--gap-section); background: var(--surface-page); border: 1px solid var(--border); border-radius: var(--radius-control); } .preview-cover { width: 80px; height: 80px; flex-shrink: 0; border-radius: var(--radius-control); overflow: hidden; background: var(--surface-sunken); } .preview-cover img { width: 100%; height: 100%; object-fit: cover; } .preview-cover-empty { display: flex; align-items: center; justify-content: center; height: 100%; font-size: var(--text-fine); color: var(--content-muted); } /* Distribution */ .distribution-section { background: var(--surface-page); padding: var(--gap-section); border: 1px solid var(--border); border-radius: var(--radius-control); } .distribution-section h3 { font-family: var(--font-mono); font-size: var(--text-body); margin-bottom: var(--gap-peer); } .checkbox-label { display: flex; align-items: center; gap: var(--gap-peer); cursor: pointer; font-size: var(--text-note); } /* Monospace input for text editor */ .monospace-input { font-family: var(--font-mono); font-size: var(--text-note); line-height: 1.6; } /* Readonly field */ .readonly-field { opacity: 0.6; cursor: not-allowed; } /* Info box */ .info-box { background: var(--surface-raised); padding: var(--gap-section); border-radius: var(--radius-control); font-size: var(--text-note); } /* Responsive */ @media (max-width: 839px) { .wizard-layout { flex-direction: column; } .wizard-sidebar { width: 100%; } .wizard-steps { display: flex; gap: var(--gap-bound); overflow-x: auto; } .wizard-step-indicator { flex-direction: column; gap: var(--gap-bound); font-size: var(--text-fine); min-width: 0; } .wizard-step-indicator + .wizard-step-indicator::before { display: none; } .step-label { white-space: nowrap; } .type-grid { grid-template-columns: repeat(2, 1fr); } .tier-form-row { grid-template-columns: 1fr; } .preview-row { flex-direction: column; gap: var(--gap-bound); } .preview-label { width: auto; } } /* =========================================== WIZARD STEPS, shared step-level patterns =========================================== Patterns shared across: - wizards/wizard_project.html - wizards/steps/project/basics.html - wizards/steps/project/appearance.html - wizards/steps/item/basics.html - wizards/steps/join/stripe.html */ /* Intro paragraph below .step-description that explains the concept. */ .wizard-step .form-hint { margin-bottom: var(--gap-pane); } /* "Checking..." style spinner shown next to async-validated inputs. */ .wizard-field-spinner { font-size: var(--text-note); } /* Spacing helpers for hints that sit just above a control group. */ .wizard-hint-gap-sm { margin-bottom: var(--gap-peer); } .wizard-hint-gap-md { margin-bottom: var(--gap-section); } /* Vertical radio group for AI disclosure and similar one-of-many pickers. */ .wizard-radio-group { display: flex; flex-direction: column; gap: var(--gap-peer); } .wizard-radio-option { display: flex; align-items: center; gap: var(--gap-peer); cursor: pointer; } /* Optional-label suffix, e.g. "(optional)". */ .wizard-optional-tag { opacity: 0.5; font-weight: normal; } /* Square cover images inside upload previews (project + item basics). */ .wizard-cover-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; } /* Stripe-step layout. */ .stripe-connect-box { background: var(--surface-sunken); padding: var(--gap-section); text-align: center; margin: var(--gap-section) 0; } .stripe-connect-box .stripe-intro { margin: var(--gap-section) 0; opacity: 0.8; } .stripe-connect-actions { margin-top: var(--gap-section); } .stripe-connect-cta { display: inline-block; padding: var(--gap-section) var(--gap-pane); text-decoration: none; background: var(--stripe); border: none; color: var(--primary-light); } .stripe-connect-cta:hover { opacity: 0.85; } .stripe-connect-note { font-size: var(--text-fine); opacity: 0.5; margin-top: var(--gap-section); } .stripe-connect-note-secondary { font-size: var(--text-fine); opacity: 0.7; margin-top: var(--gap-peer); } .stripe-benefits { text-align: left; margin-top: var(--gap-section); } .benefit-item { padding: var(--gap-peer) 0 var(--gap-peer) var(--gap-pane); position: relative; font-size: var(--text-note); } .benefit-item::before { content: "•"; position: absolute; left: 0; color: var(--success); } }