.profession-wizard-backdrop{position:fixed;inset:0;z-index:10000;background:rgba(14,31,48,.5);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:28px;font-family:Arial,"Microsoft YaHei",sans-serif;font-size:13px;color:#24364c}
.profession-wizard{box-sizing:border-box;width:min(1120px,100%);max-height:calc(100dvh - 56px);background:white;border:1px solid #d8e3e8;border-radius:14px;display:flex;flex-direction:column;box-shadow:0 24px 80px #142e4b40;overflow:hidden}
.profession-wizard header{padding:20px 24px 16px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e3eaf0}.profession-wizard h2{display:flex;align-items:center;gap:12px;margin:0;font-size:20px}.profession-wizard h2 svg{color:#087f79}.profession-wizard p{line-height:1.75}.profession-wizard header p{margin:3px 0 0;font-size:12px;color:#798a9f}
.profession-wizard nav{display:flex;gap:6px;padding:14px 24px;background:#f6f9fa;overflow:auto;flex-shrink:0}.profession-wizard nav button{border:0;background:none;white-space:nowrap;padding:0;color:#718196;flex:1;font-weight:600;cursor:pointer}.profession-wizard nav b{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;font-size:11px;border-radius:50%;background:#e7edef;margin-right:8px}.profession-wizard nav [aria-current]{color:#087f79}.profession-wizard nav [aria-current] b{background:#087f79;color:white}
.profession-wizard-body{padding:24px;overflow:auto;flex:1 1 auto;min-height:0}.profession-wizard-body h3{font-size:19px;margin:0 0 14px}.profession-wizard textarea,.profession-wizard input:not([type=checkbox]),.profession-wizard select{box-sizing:border-box;width:100%;padding:12px 14px;border:1px solid #d8e2ee;border-radius:9px;font:inherit;color:inherit;background:white}.profession-wizard textarea{resize:vertical;line-height:1.7}.profession-prompt{min-height:250px}.profession-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:20px}.profession-wizard .form-field{display:flex;flex-direction:column;gap:8px;margin:0 0 16px}.profession-wizard .form-field span{font-size:12px;font-weight:800}.profession-wizard footer{padding:14px 24px;flex-shrink:0;border-top:1px solid #e1e8f0;display:flex;justify-content:space-between;gap:12px}.profession-wizard footer>div{display:flex;gap:12px}.profession-wizard button{font:inherit;font-size:12px;font-weight:750}.profession-wizard button:disabled{opacity:.5;cursor:wait}.profession-wizard .primary-btn,.profession-wizard .secondary-btn{padding:11px 18px;border-radius:9px;cursor:pointer;border:1px solid #d8e2ee}.profession-wizard .primary-btn{background:#087f79;color:white;border-color:#087f79}.profession-wizard .secondary-btn{background:white;color:#3e526b}.profession-notice{padding:12px 16px;background:#eff7fc;border-radius:9px;color:#365a7b}
.profession-options{max-height:280px;overflow:auto;margin:16px 0;border:1px solid #e2e8f0;border-radius:10px}.profession-options label{display:flex;align-items:start;gap:12px;padding:14px;border-bottom:1px solid #edf0f5;cursor:pointer}.profession-options small{display:block;color:#7b8798;line-height:1.6}.profession-selected{margin-top:12px}.profession-selected>div{display:flex;gap:10px;align-items:center;padding:8px;background:#f4f8fb;margin-bottom:4px}.profession-selected span{flex:1}.profession-selected button{border:0;background:transparent;color:#1767bd;cursor:pointer}.profession-proposal{padding:22px;background:#f0f9f7;border:1px solid #b8ded6;border-radius:12px;margin-top:24px}.profession-proposal p{white-space:pre-wrap}.profession-proposal button+button{margin-left:12px}.profession-preview{border:1px solid #e1e7ee;border-radius:12px;padding:24px;margin-top:20px}.profession-preview>article>img{width:100%;max-height:260px;object-fit:cover;border-radius:10px}.profession-preview .profession-overview-metrics,.profession-preview .profession-specification-grid,.profession-preview .profession-support-grid,.profession-preview .profession-path-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.profession-preview article,.profession-preview .profession-overview-metrics>div{padding:16px;background:#f6f9fb;border-radius:10px}.profession-preview small,.profession-preview strong{display:block}.profession-preview p{white-space:pre-wrap}
@media(max-width:760px){.profession-wizard-backdrop{padding:8px}.profession-wizard{max-height:calc(100dvh - 16px);border-radius:12px}.profession-wizard header,.profession-wizard-body{padding:18px}.profession-wizard h2{font-size:20px}.profession-fields{grid-template-columns:1fr}.profession-wizard footer{padding:12px;flex-wrap:wrap}.profession-wizard footer>div{gap:6px;flex-wrap:wrap}.profession-wizard nav{padding:8px}.profession-preview .profession-specification-grid,.profession-preview .profession-support-grid,.profession-preview .profession-overview-metrics{grid-template-columns:1fr}}
.profession-wizard .teaching-cover-field{display:block;margin:20px 0}.profession-wizard .teaching-cover-field>span:first-child:not(.teaching-cover-upload){display:block;margin-bottom:8px}.profession-options small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* Match the AI course wizard typography without inheriting admin body sizing. */
.profession-wizard-body>fieldset>p{font-size:12px;color:#778597}
.profession-wizard .primary-btn,.profession-wizard .secondary-btn{font-size:12px;font-weight:800}

.profession-tag-picker{margin-top:24px;padding-top:20px;border-top:1px solid #e1e8f0}.profession-tag-group{margin-top:20px}.profession-tag-group h4{font-size:13px;margin:0 0 10px}.profession-tag-reason{font-size:12px;color:#087f79;margin:6px 0 0}
.profession-fields>.form-field:only-child{grid-column:1/-1}

/* Controls use the AI course wizard's 13px / 1.7 type scale and 44px inputs. */
.profession-wizard .form-field{gap:7px;margin:0;min-width:0}
.profession-fields{gap:18px;margin-bottom:18px;grid-template-columns:repeat(2,minmax(0,1fr))}
.profession-wizard textarea,.profession-wizard input:not([type=checkbox]):not([type=file]),.profession-wizard select{font-size:13px;font-weight:400;line-height:1.7;border:1px solid #d6e0e5;border-radius:8px;color:#26374d;outline:none}
.profession-wizard input:not([type=checkbox]):not([type=file]),.profession-wizard select{min-height:44px;padding:0 12px}
.profession-wizard textarea{padding:12px 14px}
.profession-wizard textarea:focus,.profession-wizard input:not([type=checkbox]):focus,.profession-wizard select:focus{border-color:#149383;box-shadow:0 0 0 3px #14938317}
.profession-wizard .form-field>span{font-size:12px;font-weight:800;color:#425269}
.profession-wizard-body p{font-size:12px;line-height:1.7;margin:6px 0 14px;color:#778597}
.profession-wizard-body h3{margin:0 0 6px;line-height:1.4}
.profession-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px;background:#fbfdfd;margin:12px 0}
.profession-options label{min-width:0;gap:9px;padding:10px 11px;border:1px solid #e0e7ea;border-radius:8px;background:white}
.profession-options strong{font-size:12px}.profession-options small{font-size:10px;line-height:1.55}.profession-options input{accent-color:#087f72}
.profession-wizard .primary-btn,.profession-wizard .secondary-btn{min-height:36px;padding:0 12px;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;gap:6px}
.profession-wizard footer .primary-btn,.profession-wizard footer .secondary-btn{min-height:40px;padding:0 18px}
.profession-step-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px}
.profession-step-heading>button{flex-shrink:0}
.profession-cover-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr);gap:20px;align-items:stretch}
.profession-cover-generate{margin-top:10px}
.profession-wizard .profession-cover-prompt{display:block;width:100%;min-height:0;margin-top:18px;padding:10px 12px;border-radius:9px;font-size:13px;line-height:1.7;resize:vertical}
.profession-cover-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:14px 0 24px}
.profession-wizard .profession-cover-actions>button{padding:9px 12px;font-size:13px;font-weight:400;color:#08796c}
.profession-wizard .profession-skip-cover{margin-top:10px;min-height:32px;font-weight:400}
.profession-cover-preview{min-height:220px;overflow:hidden;display:grid;place-items:center;border:1px dashed #cbdadd;border-radius:10px;background:#f4f8f9}
.profession-cover-preview img{width:100%;height:100%;max-height:300px;object-fit:cover}
.profession-cover-preview>span{display:grid;place-items:center;gap:8px;color:#91a0ad}.profession-cover-preview small{font-size:11px}
.profession-wizard .teaching-cover-field{margin:18px 0 0}
.profession-review{margin:20px 0 14px;padding:16px;border-radius:10px;background:#f3f8f8}
.profession-review h4{margin:0 0 10px;font-size:13px;color:#26394e}.profession-review dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px;margin:0}.profession-review dl>div{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid #dde8e8;font-size:11px}.profession-review dt{color:#758394}.profession-review dd{margin:0;color:#304359;font-weight:750;text-align:right}
@media(max-width:760px){.profession-fields,.profession-options,.profession-cover-layout,.profession-review dl{grid-template-columns:1fr}.profession-step-heading{display:grid}}

/* Compact review inside the wizard; portal detail presentation keeps its own layout. */
.profession-wizard .profession-preview{padding:14px;margin-top:12px;border-radius:8px}
.profession-preview .profession-presentation{margin:0;padding:0;min-width:0}
.profession-preview [role=tablist]{border-bottom:1px solid #e5ecee;margin-bottom:12px}
.profession-wizard .profession-preview [role=tab]{min-height:30px;font-size:12px;line-height:1.4;box-shadow:none}
.profession-preview [role=tabpanel]{display:grid;gap:10px;min-width:0}
.profession-preview article,.profession-preview .profession-overview-metrics>div{padding:10px 12px;border-radius:6px;min-width:0;overflow-wrap:anywhere}
.profession-wizard .profession-preview h3{font-size:13px;line-height:1.5;margin:0 0 5px}
.profession-wizard .profession-preview p{font-size:12px;line-height:1.65;margin:0;color:#66788b}
.profession-preview ul{padding-left:18px;margin:0;font-size:12px;line-height:1.65}
.profession-preview li+li{margin-top:3px}
.profession-preview .profession-overview{display:grid;gap:10px}
.profession-preview .profession-overview-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.profession-preview .profession-specification-grid,.profession-preview .profession-support-grid,.profession-preview .profession-path-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.profession-preview .profession-specification-grid>article:only-child,.profession-preview .profession-support-grid>article:only-child{grid-column:1/-1}
.profession-preview .profession-support-grid:empty,.profession-preview .profession-specification-grid:empty,.profession-preview .profession-path-grid:empty{display:none}
.profession-preview small{font-size:11px;color:#82909e;margin-bottom:3px}
.profession-preview strong{font-size:12px;line-height:1.5}
.profession-preview .profession-path-card{padding:10px 12px;border:1px solid #e2e9ed;border-radius:6px;text-decoration:none}
@media(max-width:760px){.profession-preview .profession-overview-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.profession-preview .profession-specification-grid,.profession-preview .profession-support-grid,.profession-preview .profession-path-grid{grid-template-columns:minmax(0,1fr)}}
.profession-confirm-layer{position:fixed;inset:0;z-index:10001;display:grid;place-items:center;padding:16px;background:rgba(18,31,49,.42);backdrop-filter:blur(2px)}
.profession-confirm-dialog{width:min(420px,100%);overflow:hidden;border:1px solid #d9e2ec;border-radius:10px;background:#fff;box-shadow:0 20px 60px rgba(18,34,55,.24)}
.profession-confirm-dialog>header{min-height:54px;padding:0 18px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e6ebf1}
.profession-confirm-dialog>header strong{font-size:15px;color:#25344b}
.profession-confirm-dialog>header button{width:30px;height:30px;display:grid;place-items:center;padding:0;border:0;border-radius:6px;color:#718096;background:transparent;cursor:pointer}
.profession-confirm-dialog>header button:hover{color:#1768da;background:#f0f5fd}
.profession-confirm-content{display:flex;align-items:flex-start;gap:12px;padding:20px 18px}
.profession-confirm-content>span{width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;border-radius:50%;color:#b27716;background:#fff6df}
.profession-confirm-content p{margin:0 0 5px;color:#44546b;font-size:13px;line-height:1.7}
.profession-confirm-content small{color:#8490a1;font-size:11px;line-height:1.6}
.profession-confirm-dialog>footer{padding:12px 18px;display:flex;justify-content:flex-end;gap:10px;border-top:1px solid #e6ebf1}
.profession-confirm-dialog>footer button{min-height:34px;padding:0 13px;border-radius:6px;font-size:12px;font-weight:800;cursor:pointer}
.profession-confirm-close{border:1px solid #c34854;color:#fff;background:#c34854}
.profession-confirm-close:hover{border-color:#aa3945;background:#aa3945}
.profession-wizard>footer{justify-content:flex-start;gap:8px}
.profession-wizard>footer>div{margin-left:auto}
.profession-footer-message{min-width:0;max-width:min(520px,calc(100% - 420px));flex:0 1 auto;display:flex;align-items:center;gap:7px;margin:0;padding:6px 10px;border:1px solid #e2e9f3;border-radius:6px;color:#5f7188;background:#f4f7fb;font-size:11px;line-height:1.5}
.profession-footer-message span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profession-footer-message svg{flex:0 0 auto;color:#1768da;animation:profession-footer-spin .8s linear infinite}
@keyframes profession-footer-spin{to{transform:rotate(360deg)}}
@media(max-width:760px){.profession-footer-message{order:3;max-width:100%;flex-basis:100%;margin:0;padding:6px 9px}.profession-footer-message span{white-space:normal}}

/* Compact five-part profession preview used on the final wizard step. */
.profession-preview .profession-presentation-tabs{display:flex;gap:6px;padding:0 0 10px;overflow-x:auto}
.profession-preview .profession-presentation-tabs button{min-height:30px;padding:0 10px;border:1px solid #dde5eb;border-radius:6px;display:inline-flex;align-items:center;gap:5px;flex:0 0 auto;color:#52677d;background:#fff}
.profession-preview .profession-presentation-tabs button.is-active{border-color:#087f79;color:#fff;background:#087f79}
.profession-preview .profession-presentation-panel{padding-top:0}
.profession-preview .profession-introduction{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:10px}
.profession-preview .profession-lead-card,.profession-preview .profession-objective-card,.profession-preview .profession-plan-card,.profession-preview .profession-requirement-card,.profession-preview .profession-resource-section{box-shadow:none;border:1px solid #e1e8ed;background:#f8fafb}
.profession-preview .profession-lead-card,.profession-preview .profession-plan-card{position:relative}
.profession-preview .profession-lead-card:before,.profession-preview .profession-plan-card:before{display:none}
.profession-preview .profession-lead-card h2,.profession-preview .profession-objective-card h2,.profession-preview .profession-plan-card h2{margin:3px 0 7px;font-size:14px;line-height:1.45}
.profession-preview .profession-basic-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.profession-preview .profession-basic-grid article{min-height:67px;padding:9px;display:flex;align-items:flex-start}
.profession-preview .profession-basic-grid small,.profession-preview .profession-basic-grid strong{display:block}.profession-preview .profession-basic-grid small{font-size:9px;margin-bottom:2px}.profession-preview .profession-basic-grid strong{font-size:11px;line-height:1.45}
.profession-preview .profession-specification-view,.profession-preview .profession-plan-view{display:grid;gap:8px}
.profession-preview .profession-objective-card{display:grid;grid-template-columns:30px minmax(0,1fr);gap:9px;padding:11px}
.profession-preview .profession-section-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:7px;color:#fff;background:#087f79}
.profession-preview .profession-requirement-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.profession-preview .profession-requirement-card{padding:10px}
.profession-preview .profession-requirement-card>header,.profession-preview .profession-resource-section>header{display:flex;align-items:center;gap:6px}
.profession-preview .profession-requirement-card>header{padding-bottom:7px;border-bottom:1px solid #e3e9ed}
.profession-preview .profession-requirement-card>header>span{width:25px;height:25px;display:grid;place-items:center;border-radius:6px;color:#087f79;background:#e8f5f3}
.profession-preview .profession-requirement-card h3,.profession-preview .profession-resource-section h3{margin:0;font-size:12px}
.profession-preview .profession-requirement-card header b,.profession-preview .profession-resource-section>header>b{margin-left:auto;font-size:9px;color:#85929f}
.profession-preview .profession-requirement-card ol{display:grid;gap:5px;margin:8px 0 0;padding:0;list-style:none}
.profession-preview .profession-requirement-card li{position:relative;padding-left:10px}.profession-preview .profession-requirement-card li:before{content:"";position:absolute;top:6px;left:0;width:4px;height:4px;border-radius:50%;background:#258e86}.profession-preview .profession-requirement-card li p{margin:0}
.profession-preview .profession-resource-section{padding:11px}.profession-preview .profession-resource-section>header{margin-bottom:8px}.profession-preview .profession-resource-section>header span{display:block}.profession-preview .profession-resource-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.profession-preview .profession-resource-grid>a,.profession-preview .profession-resource-grid>article{min-height:90px;padding:9px;border:1px solid #e0e7ec;border-radius:6px;display:flex;flex-direction:column;color:inherit;background:#fff;text-decoration:none}.profession-preview .profession-resource-grid strong{margin:0 0 2px;font-size:11px}.profession-preview .profession-resource-grid p{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:10px}.profession-preview .profession-resource-grid em{margin-top:auto;padding-top:5px;display:flex;align-items:center;gap:3px;color:#087f79;font-size:9px;font-style:normal}
.profession-preview .profession-resource-empty{min-height:42px;border:1px dashed #d9e2e8;border-radius:6px;display:grid;place-items:center;color:#8a98a5;background:#fff;font-size:10px}
.profession-preview .profession-rich-text{display:grid;gap:4px}.profession-preview .profession-rich-text>h3{margin:3px 0 0;font-size:12px}.profession-preview .profession-rich-text>p,.profession-preview .profession-rich-item p,.profession-preview .profession-empty-text{margin:0;font-size:11px;line-height:1.6}.profession-preview .profession-rich-item{display:grid;grid-template-columns:5px minmax(0,1fr);gap:6px}.profession-preview .profession-rich-item i{width:5px;height:5px;margin-top:6px;border-radius:50%;overflow:hidden;color:transparent;background:#087f79;font-size:0}
.profession-preview .profession-rich-item.is-numbered{grid-template-columns:18px minmax(0,1fr)}.profession-preview .profession-rich-item.is-numbered i{width:18px;height:18px;margin-top:0;display:grid;place-items:center;color:#087f79;background:#e8f5f3;font-size:9px;font-weight:800}
@media(max-width:760px){.profession-preview .profession-introduction,.profession-preview .profession-requirement-grid,.profession-preview .profession-resource-grid{grid-template-columns:1fr}}
