/* R21 onboarding — MIZAN: the form IS the resume editor. The step-tree
   rail (Stripe) + the thick progress bar (Square) are the surface's
   named ideas. The margin rail, the ask pill and the versions list keep
   their r20 classes (r20-editor.js queries and creates them), so those
   rules stay in r20-onboarding.css; this sheet styles only the r21
   classes. */
.r21-form-field { display: flex; flex-direction: column; gap: var(--r21-s-1); font-size: var(--r21-t-body); font-weight: 500; margin-bottom: var(--r21-s-3); }
.r21-form-field--row { flex-direction: row; align-items: center; }
.r21-form-field input, .r21-form-field textarea, .r21-form-field select { font-family: var(--r21-font-body); font-size: var(--r21-t-body); color: var(--r21-ink); background: var(--r21-bg); border: 1px solid var(--r21-border); border-radius: var(--r21-r-btn); padding: var(--r21-s-2) var(--r21-s-3); }
.r21-form-field input:focus, .r21-form-field textarea:focus, .r21-form-field select:focus { outline: 2px solid var(--r21-blue); outline-offset: 1px; border-color: var(--r21-blue); }
.r21-form-field input:disabled { background: var(--r21-paper); color: var(--r21-body); }
.r21-muted { color: var(--r21-body); font-size: var(--r21-t-small); margin: 0; }
.r21-error { color: var(--r21-urgent); background: var(--r21-paper); border: 1px solid var(--r21-border); border-radius: var(--r21-r-card); padding: var(--r21-s-3); margin: 0; }
.r21-editor { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--r21-s-4); align-items: start; }
.r21-editor-form { min-width: 0; }
.r21-editor-card { background: var(--r21-bg); border: 1px solid var(--r21-border); border-radius: var(--r21-r-card); padding: var(--r21-s-5); }
.r21-editor-card h1 { margin: 0 0 var(--r21-s-1); }
.r21-editor-card > p { margin: 0 0 var(--r21-s-3); color: var(--r21-body); }
.r21-onb-steps { list-style: none; margin: 0 0 var(--r21-s-3); padding: 0; display: flex; gap: var(--r21-s-2); position: relative; }
.r21-onb-steps::before { content: ""; position: absolute; inset-inline: var(--r21-s-3); top: 50%; height: 1px; background: var(--r21-border); z-index: 0; }
.r21-onb-steps li { position: relative; z-index: 1; flex: 1; text-align: center; padding: var(--r21-s-2) var(--r21-s-1); border: 1px solid var(--r21-border); border-radius: var(--r21-r-btn); background: var(--r21-bg); color: var(--r21-body); font-size: var(--r21-t-small); font-weight: 700; }
.r21-onb-steps li.is-current { color: var(--r21-blue-ink); background: var(--r21-blue); border-color: var(--r21-blue); }
.r21-onb-steps li.is-done { color: var(--r21-success); border-color: var(--r21-success); }
.r21-progress { height: 12px; background: var(--r21-paper); border: 1px solid var(--r21-border); border-radius: 999px; overflow: hidden; margin-bottom: var(--r21-s-4); }
.r21-progress-fill { height: 100%; background: var(--r21-blue); }
.r21-wizard-panel[hidden] { display: none; }
.r21-callout { background: var(--r21-paper); border: 1px solid var(--r21-border); border-radius: var(--r21-r-card); padding: var(--r21-s-3); margin-bottom: var(--r21-s-3); }
.r21-callout p { margin: 0 0 var(--r21-s-2); }
.r21-callout p:last-child { margin-bottom: 0; }
.r21-chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--r21-s-2); margin-bottom: var(--r21-s-3); }
.r21-wizard-actions { display: flex; justify-content: space-between; gap: var(--r21-s-2); margin-top: var(--r21-s-4); }
.r21-wizard-actions span { flex: 1; }
.r21-field-section { margin-top: var(--r21-s-4); }
.r21-field-section-title { font-size: var(--r21-t-body); font-weight: 700; margin: 0 0 var(--r21-s-1); }
.r21-field-section > p { margin: 0 0 var(--r21-s-3); }
.r21-history-entry { border: 1px solid var(--r21-border); border-radius: var(--r21-r-card); padding: var(--r21-s-3); margin: var(--r21-s-3) 0; }
.r21-history-years { display: flex; gap: var(--r21-s-2); }
.r21-history-years .r21-form-field { flex: 1; min-width: 0; }
.r21-history-remove { margin-top: var(--r21-s-1); }
.r21-dropzone { display: flex; flex-direction: column; gap: var(--r21-s-1); border: 1px dashed var(--r21-border); border-radius: var(--r21-r-card); padding: var(--r21-s-3); }
.r21-dropzone-prompt { font-weight: 700; }
.r21-dropzone-name { color: var(--r21-body); font-size: var(--r21-t-small); }
.r21-style-picker { border: 1px solid var(--r21-border); border-radius: var(--r21-r-card); padding: var(--r21-s-4); margin: var(--r21-s-4) 0 0; }
.r21-style-picker legend { font-weight: 700; padding: 0 var(--r21-s-1); }
.r21-style-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--r21-s-2); }
.r21-style-option { border: 1px solid var(--r21-border); border-radius: var(--r21-r-card); padding: var(--r21-s-3); cursor: pointer; display: flex; flex-direction: column; gap: var(--r21-s-1); }
.r21-style-option.is-selected { border-color: var(--r21-blue); }
.r21-style-option input { position: absolute; opacity: 0; pointer-events: none; }
.r21-style-thumb { display: flex; flex-direction: column; gap: 2px; height: 56px; border: 1px solid var(--r21-border); border-radius: var(--r21-r-btn); padding: var(--r21-s-2); background: var(--r21-paper); }
.r21-style-thumb i { display: block; height: 4px; background: var(--r21-body); border-radius: 2px; }
.r21-style-thumb--modern i:nth-child(1) { width: 40%; background: var(--r21-blue); }
.r21-style-thumb--compact i { height: 3px; }
.r21-style-name { font-weight: 700; }
.r21-style-desc { color: var(--r21-body); font-size: var(--r21-t-small); }
.r21-editor-preview { background: var(--r21-bg); border: 1px solid var(--r21-border); border-radius: var(--r21-r-card); padding: var(--r21-s-5); min-width: 0; }
.r21-editor-preview-head { margin-bottom: var(--r21-s-4); }
.r21-editor-preview-head h2 { margin: 0 0 var(--r21-s-1); }
.r21-editor-status, .r21-editor-complete { color: var(--r21-body); font-size: var(--r21-t-small); margin: 0 0 var(--r21-s-1); }
.r21-sheet-wrap { margin-bottom: var(--r21-s-4); }
.r21-editor-preview .r21-versions { margin-bottom: var(--r21-s-3); }
@media (max-width: 1024px) { .r21-editor { grid-template-columns: 1fr; } .r21-style-options { grid-template-columns: 1fr; } }
