.wizard-page { max-width: 1200px; }
.wizard-page .editor-heading { margin-bottom: 20px; }
.wizard-toolbar { position: sticky; top: 0; z-index: 8; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; }
.wizard-save { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; min-width: 0; }
.wizard-save .save-status { flex-basis: 100%; margin: 0; font-size: .875rem; border: 0; padding: 0; }
.wizard-save a { font-size: .875rem; padding: 10px 0; }
.wizard-nav { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.wizard-tabs { display: flex; gap: 6px; margin: 20px 0; flex-wrap: wrap; }
.wizard-tabs button { display: flex; align-items: center; gap: 8px; flex: 1; padding: 10px 12px; white-space: nowrap; }
.wizard-tabs button span { font-size: .8rem; border: 1px solid var(--border); border-radius: 50%; width: 24px; height: 24px; display: grid; place-items: center; }
.wizard-tabs button[aria-current="step"] { border: 2px solid var(--accent); background: var(--glow); font-weight: 700; }
.wizard-primary, .wizard-next:not(:disabled) { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 700; }
.wizard-mobile-step { display: none; }
.wizard-page-title { margin: 24px 0 12px; scroll-margin-top: 160px; }
.wizard-section { margin-top: 0; padding: 24px; }
.wizard-section > .mosaic-check, .wizard-section > .row-instructions { padding: 0; border: 0; margin: 0 0 24px; background: transparent; }
.wizard-section .tools-card { margin-top: 0; padding: 0 0 16px; border: 0; background: transparent; }
.wizard-section .pattern-setup { margin-top: 20px; }
.wizard-colors { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); gap: 24px; align-items: start; }
.pattern-preview { min-width: 0; }
.pattern-preview canvas { margin: auto; max-height: 55vh; width: auto; max-width: 100%; object-fit: contain; }
.drawing-colors { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.drawing-colors button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; }
.drawing-colors button[aria-pressed="true"] { border: 2px solid var(--accent); }
.wizard-bottom { display: flex; justify-content: flex-end; padding: 20px 0 0; }
.full-editor-link { display: flex; justify-content: flex-end; margin-top: 16px; }
.full-editor-link button { font-size: .875rem; text-decoration: underline; }
.wizard-downloads .chart-export { margin: 20px 0; padding: 20px 0; border-bottom: 1px solid var(--border); }
.wizard-downloads .chart-export-actions { align-items: end; }
.project-download { margin-top: 28px; }
.resume-draft { padding: 16px; margin-bottom: 20px; border: 1px solid var(--accent); border-radius: 8px; }
.wizard-page .wizard-section:not([hidden]) + .wizard-section:not([hidden]) { margin-top: 24px; }
@media (max-width: 48rem) {
    .wizard-toolbar { flex-wrap: wrap; padding: 10px; gap: 10px; }
    .wizard-save { width: 100%; }
    .wizard-toolbar .wizard-nav { margin-left: auto; }
    .wizard-tabs { display: none; }
    .wizard-mobile-step { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0; }
    .wizard-mobile-step label { display: grid; gap: 4px; font-size: .875rem; }
    .wizard-mobile-step select { max-width: 180px; }
    .wizard-section { padding: 16px; }
    .wizard-colors { grid-template-columns: minmax(0, 1fr); }
    .pattern-preview canvas { max-height: 32vh; }
    .wizard-page .editor-heading { align-items: start; }
    .wizard-page-title { scroll-margin-top: 210px; }
}
@media (max-height: 500px) { .wizard-toolbar { position: static; } }

.wizard-downloads .publication-compact { padding: 12px 16px; margin: 0; }
.publication-compact > p { margin: 8px 0; }
.publication-compact > a { display: inline-block; margin-top: 10px; }

.help-off .editor-help { display: none !important; }
.editor-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.editor-fields:disabled { opacity: .75; }
.help-switch { display: flex; align-items: center; gap: .55rem; margin-bottom: 1rem; }
.help-switch input { width: 1.1rem; height: 1.1rem; }
.grid-dimension { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.grid-dimension input, .grid-dimension select { width: 100%; box-sizing: border-box; }
.icon-action { position: relative; min-width: 44px; min-height: 44px; justify-content: center; }
.help-off .editor-toolbar .icon-action { flex: 0 0 44px; padding: 8px; }
.action-tooltip { display: none; position: absolute; z-index: 12; top: 100%; left: 50%; transform: translateX(-50%); padding: .3rem .55rem; border-radius: .35rem; background: var(--surface); color: var(--text); border: 1px solid var(--border); font-size: .8rem; white-space: nowrap; pointer-events: none; }
.icon-action:focus .action-tooltip, .icon-action:hover .action-tooltip { display: block; }
.sharing-notice { font-size: .8rem; line-height: 1.45; margin: .65rem 0 0; }
.publication-compact { margin-top: 1.25rem; border-top: 1px solid var(--border); padding-top: .75rem; }
.publication-compact details { font-size: .9rem; }
.publication-compact label { margin-top: .75rem; }
.editor-locked { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; border: 1px solid var(--border); border-radius: .6rem; padding: .75rem; margin-bottom: 1rem; }
.editor-page input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
.editor-page input::-webkit-inner-spin-button, .editor-page input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
@media (max-width: 48rem) {
    .wizard-toolbar { gap: .4rem; }
    .wizard-save { flex-wrap: wrap; }
    .wizard-save > a, .wizard-save > .text-btn { font-size: .8rem; }
    .action-tooltip { white-space: normal; min-width: 4rem; }
    .help-off .wizard-toolbar { display: grid; grid-template-columns: 44px 44px minmax(0, 1fr); }
    .help-off .wizard-save { display: contents; }
    .help-off .wizard-save .save-btn { grid-column: 1; grid-row: 1; }
    .help-off .wizard-toolbar > .icon-action { grid-column: 2; grid-row: 1; }
    .help-off .wizard-toolbar > .wizard-nav { grid-column: 3; grid-row: 1; justify-self: end; }
    .help-off .wizard-save .account-save { grid-column: 1 / 3; grid-row: 2; padding: 0; font-size: .75rem; }
    .help-off .wizard-save .save-status { grid-column: 3; grid-row: 2; font-size: .75rem; text-align: right; }
    .help-off .wizard-save > .text-btn:not(.account-save) { grid-column: 1 / -1; }
}
