/* AI Resume Maker — Front-end Styles */
.airm-front-wrap { max-width: 980px; margin: 0 auto; padding: 1.5rem 1rem 3rem; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif; color: #1e293b; }
.airm-hdr { text-align: center; margin-bottom: 2rem; }
.airm-title { font-size: 2rem; font-weight: 700; color: #1e293b; margin: 0 0 .3rem; }
.airm-subtitle { color: #64748b; font-size: .9rem; margin: 0; }
/* Screens: hidden by default; .airm-on shows the active one.
   #airm-s0 is visible before JS runs so the page is never blank.
   Once JS adds .airm-js-ready to #airm-app it takes full control. */
.airm-screen { display: none; }
.airm-on { display: block; }
#airm-s0 { display: block; }
.airm-js-ready .airm-screen { display: none; }
.airm-js-ready .airm-on { display: block; }
.airm-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 1.5rem; margin-bottom: 1rem; }
.airm-card h3 { font-size: 1rem; font-weight: 600; color: #1e293b; margin: 0 0 .3rem; }
.airm-hint { font-size: .8rem; color: #64748b; margin: 0 0 1rem; }

/* Mode grid */
.airm-mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.airm-mode-card { border: 2px solid #e2e8f0; border-radius: 12px; padding: 1.6rem 1.4rem; cursor: pointer; background: #fff; transition: all .2s; }
.airm-mode-card:hover { border-color: #2563eb; transform: translateY(-2px); }
.airm-mode-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: .8rem; }
.airm-icon-new { background: #dbeafe; color: #1d4ed8; }
.airm-icon-upd { background: #d1fae5; color: #059669; }
.airm-mode-card h3 { font-size: .95rem; font-weight: 600; margin: 0 0 .25rem; }
.airm-mode-card p { font-size: .78rem; color: #64748b; margin: 0; line-height: 1.5; }

/* Purpose */
.airm-purpose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.airm-purpose-card { border: 2px solid #e2e8f0; border-radius: 10px; padding: 1.1rem; cursor: pointer; background: #fff; transition: all .2s; }
.airm-purpose-card:hover, .airm-purpose-card.airm-sel { border-color: #2563eb; background: #eff6ff; }
.airm-purpose-card h4 { font-size: .88rem; font-weight: 600; margin: 0 0 .2rem; }
.airm-purpose-card p { font-size: .75rem; color: #64748b; margin: 0; }

/* Style / color pickers */
.airm-style-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.airm-style-opt { border: 2px solid #e2e8f0; border-radius: 10px; padding: .7rem; cursor: pointer; text-align: center; transition: all .2s; }
.airm-style-opt:hover, .airm-style-opt.airm-sel { border-color: #2563eb; background: #eff6ff; }
.airm-sprev { height: 58px; border-radius: 6px; margin-bottom: .5rem; border: 1px solid #e2e8f0; background: #f8fafc; overflow: hidden; }
.airm-sprev-classic::before { content: ''; display: block; height: 20px; background: #1e293b; }
.airm-sprev-modern { border-top: 3px solid #2563eb; }
.airm-sprev-minimal::after { content: ''; display: block; height: 2px; background: #1e293b; margin: 16px 8px 0; }
.airm-style-opt span { font-size: .8rem; font-weight: 500; color: #1e293b; }
.airm-color-grid { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.airm-color-opt { border: 2px solid #e2e8f0; border-radius: 8px; padding: .5rem .8rem; cursor: pointer; display: flex; align-items: center; gap: 6px; font-size: .8rem; transition: all .2s; }
.airm-color-opt:hover, .airm-color-opt.airm-sel { border-color: #2563eb; }
.airm-swatch, .airm-swatch-acc { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }

/* Progress bar */
.airm-prog { display: flex; align-items: center; margin-bottom: 1.5rem; }
.airm-pdot { display: flex; flex-direction: column; align-items: center; flex: 1; z-index: 1; }
.airm-pcirc { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #e2e8f0; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: #94a3b8; transition: all .25s; }
.airm-pdot.act .airm-pcirc { background: #2563eb; border-color: #2563eb; color: #fff; }
.airm-pdot.dn  .airm-pcirc { background: #10b981; border-color: #10b981; color: #fff; }
.airm-plbl { font-size: 10px; color: #94a3b8; margin-top: 4px; white-space: nowrap; }
.airm-pdot.act .airm-plbl { color: #2563eb; font-weight: 600; }
.airm-pline { flex: 1; height: 2px; background: #e2e8f0; margin-top: -15px; transition: background .25s; }
.airm-pline.dn { background: #10b981; }

/* Form fields */
.airm-field { display: flex; flex-direction: column; gap: 4px; }
.airm-field label { font-size: 11px; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: .05em; }
.airm-field input, .airm-field textarea, .airm-field select { border: 1px solid #e2e8f0; border-radius: 7px; padding: 9px 11px; font-size: 13px; font-family: inherit; background: #f8fafc; color: #1e293b; outline: none; transition: border-color .2s; width: 100%; box-sizing: border-box; }
.airm-field input:focus, .airm-field textarea:focus, .airm-field select:focus { border-color: #2563eb; background: #fff; }
.airm-field textarea { resize: vertical; min-height: 80px; }
.airm-fg { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.airm-fg-1 { grid-template-columns: 1fr; }
.airm-ats-tip { display: inline-flex; align-items: center; gap: 5px; background: #d1fae5; color: #065f46; font-size: 11px; font-weight: 500; padding: 4px 10px; border-radius: 20px; margin-bottom: .8rem; }

/* Skills tags */
.airm-stags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.airm-stag { background: #eff6ff; color: #1d4ed8; font-size: 12px; padding: 4px 10px; border-radius: 14px; display: flex; align-items: center; gap: 4px; }
.airm-stag .airm-rm { cursor: pointer; opacity: .5; font-size: 14px; line-height: 1; }
.airm-stag .airm-rm:hover { opacity: 1; }
.airm-skill-row { display: flex; gap: 7px; margin-top: 7px; }
.airm-skill-row input { flex: 1; border: 1px solid #e2e8f0; border-radius: 7px; padding: 8px 11px; font-size: 13px; font-family: inherit; background: #f8fafc; outline: none; }
.airm-skill-row input:focus { border-color: #2563eb; background: #fff; }
.airm-skill-row button { background: #2563eb; color: #fff; border: none; border-radius: 7px; padding: 8px 14px; font-size: 12px; cursor: pointer; font-family: inherit; }

/* Exp / Edu blocks */
.airm-eb { border: 1px solid #e2e8f0; border-radius: 9px; padding: .95rem; margin-bottom: .75rem; background: #f8fafc; }
.airm-btn-more { display: flex; align-items: center; gap: 5px; border: 1px dashed #2563eb; border-radius: 7px; background: none; color: #2563eb; font-size: 12px; padding: 7px 14px; cursor: pointer; font-family: inherit; margin-top: .6rem; transition: background .2s; }
.airm-btn-more:hover { background: #eff6ff; }
.airm-eb-rm { background: none; border: none; cursor: pointer; font-size: 17px; color: #cbd5e1; float: right; line-height: 1; }
.airm-eb-rm:hover { color: #ef4444; }

/* Nav */
.airm-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1.3rem; }
.airm-btn-back { border: 1px solid #e2e8f0; background: none; border-radius: 7px; padding: 9px 20px; font-size: 13px; cursor: pointer; font-family: inherit; color: #64748b; }
.airm-btn-next { background: #1e293b; color: #fff; border: none; border-radius: 7px; padding: 9px 22px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; transition: opacity .2s; }
.airm-btn-next:hover { opacity: .88; }
.airm-btn-gen { background: #2563eb; }

/* Output */
.airm-spin { width: 38px; height: 38px; border: 3px solid #e2e8f0; border-top-color: #2563eb; border-radius: 50%; animation: airm-sp .8s linear infinite; margin: 0 auto 1.2rem; }
@keyframes airm-sp { to { transform: rotate(360deg); } }
.airm-dl-row { display: flex; gap: .6rem; margin-top: .8rem; }
.airm-btn-dl { flex: 1; border: 1px solid #e2e8f0; background: #fff; border-radius: 7px; padding: 9px; font-size: 12px; cursor: pointer; font-family: inherit; color: #64748b; transition: all .2s; }
.airm-btn-dl.airm-btn-primary { background: #2563eb; color: #fff; border-color: #2563eb; }
.airm-btn-dl:hover { background: #1e293b; color: #fff; border-color: #1e293b; }
.airm-error-box { background: #fef2f2; border: 1px solid #fca5a5; border-radius: 9px; padding: 1rem 1.25rem; color: #991b1b; font-size: .88rem; }
.airm-ats-bar { margin-top: .7rem; padding: .7rem 1rem; border-radius: 9px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px; font-size: .82rem; }

/* Resume document */
.airm-res-doc { border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; background: #fff; }
.airm-rname { font-size: 1.7rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: 2px; }
.airm-rtitle { font-size: .88rem; font-weight: 300; margin-bottom: .65rem; }
.airm-rcontact { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11px; }
.airm-rsec { margin-bottom: 1.2rem; }
.airm-rsec:last-child { margin-bottom: 0; }
.airm-rsec-lbl { font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding-bottom: 5px; margin-bottom: 8px; border-bottom: 1px solid; }
.airm-rexp { margin-bottom: .9rem; }
.airm-rexp-title { font-weight: 600; font-size: 13px; }
.airm-rexp-co { font-size: 11px; color: #64748b; margin-bottom: 3px; }
.airm-rexp-bullets { font-size: 11px; color: #374151; line-height: 1.65; padding-left: 1.1rem; }
.airm-rexp-bullets li { margin-bottom: 2px; }
.airm-rskill { display: inline-block; font-size: 11px; padding: 3px 9px; border-radius: 12px; margin: 2px; }
.airm-redu-deg { font-weight: 600; font-size: 13px; }
.airm-redu-sch { font-size: 11px; color: #64748b; }
.airm-rsum { font-size: 12px; line-height: 1.7; color: #374151; margin: 0; }

@media print {
    .airm-hdr, .airm-prog, .airm-nav, .airm-dl-row, .airm-ats-bar { display: none !important; }
    .airm-res-doc { border: none !important; }
}

@media (max-width: 580px) {
    .airm-mode-grid, .airm-purpose-grid, .airm-fg, .airm-style-grid { grid-template-columns: 1fr; }
    .airm-title { font-size: 1.5rem; }
}

/* ── Photo upload ── */
.airm-photo-upload-wrap { display:flex; align-items:flex-start; gap:1.2rem; margin-bottom:1rem; }
.airm-photo-preview { width:88px; height:88px; border-radius:50%; background:#f1f5f9; border:2px dashed #cbd5e1; display:flex; align-items:center; justify-content:center; overflow:hidden; flex-shrink:0; cursor:pointer; transition:border-color .2s; }
.airm-photo-preview:hover { border-color:#2563eb; }
.airm-photo-preview img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
.airm-photo-preview .airm-photo-icon { font-size:28px; color:#94a3b8; pointer-events:none; }
.airm-photo-info { flex:1; }
.airm-photo-info p { font-size:.78rem; color:#64748b; margin:.25rem 0 0; line-height:1.5; }
.airm-photo-btn { display:inline-flex; align-items:center; gap:6px; border:1px solid #e2e8f0; background:#fff; border-radius:7px; padding:7px 14px; font-size:.8rem; cursor:pointer; font-family:inherit; color:#1e293b; transition:all .2s; }
.airm-photo-btn:hover { border-color:#2563eb; color:#2563eb; }
.airm-photo-remove { display:none; background:none; border:none; font-size:.78rem; color:#ef4444; cursor:pointer; margin-left:.5rem; font-family:inherit; }
#airm-photo-input { display:none; }

/* ── Export row ── */
.airm-export-row { margin-top:.8rem; }
.airm-export-label { font-size:.78rem; color:#64748b; margin:0 0 .5rem; font-weight:500; }
.airm-export-status { font-size:.82rem; padding:.6rem .9rem; border-radius:8px; margin-top:.6rem; }
.airm-export-status.loading { background:#eff6ff; color:#1d4ed8; }
.airm-export-status.error   { background:#fef2f2; color:#991b1b; }
.airm-export-status.success { background:#f0fdf4; color:#166534; }

/* ── Upload zone ── */
.airm-upload-zone { border:2px dashed #cbd5e1; border-radius:12px; padding:2.5rem 1.5rem; text-align:center; cursor:pointer; transition:all .2s; background:#fafafa; }
.airm-upload-zone:hover, .airm-upload-zone.drag-over { border-color:#2563eb; background:#eff6ff; }
.airm-upload-icon { font-size:2.5rem; margin-bottom:.75rem; }
.airm-upload-main { font-size:.95rem; font-weight:500; color:#1e293b; margin:0 0 .3rem; }
.airm-upload-sub  { font-size:.8rem; color:#94a3b8; margin:0 0 1rem; }
.airm-upload-btn  { background:#2563eb; color:#fff; border:none; border-radius:7px; padding:9px 22px; font-size:.85rem; cursor:pointer; font-family:inherit; transition:opacity .2s; }
.airm-upload-btn:hover { opacity:.88; }
.airm-upload-selected { display:flex; align-items:center; gap:10px; background:#f0fdf4; border:1px solid #86efac; border-radius:8px; padding:.75rem 1rem; margin-top:.8rem; font-size:.88rem; color:#166534; }
.airm-file-icon { font-size:1.2rem; }
.airm-upload-clear { background:none; border:none; color:#dc2626; cursor:pointer; font-size:.8rem; margin-left:auto; font-family:inherit; }

/* ═══════════════════════════════════════════
   ANALYSIS RESULTS — scoped to #airm-s6
   All rules prefixed to avoid WP theme bleed
═══════════════════════════════════════════ */

/* Scoped reset for the output container */
#airm-s6 #airm-analysis-output * { box-sizing:border-box; }
#airm-s6 #airm-analysis-output ul,
#airm-s6 #airm-analysis-output ol  { list-style:none !important; padding-left:0 !important; margin:0 !important; }
#airm-s6 #airm-analysis-output li  { margin:0 !important; padding:0 !important; }
#airm-s6 #airm-analysis-output h3,
#airm-s6 #airm-analysis-output h4,
#airm-s6 #airm-analysis-output p   { margin:0; padding:0; }

/* ── Download improved CTA ── */
.ar-cta { background:linear-gradient(135deg,#0f172a,#1e3a5f); border-radius:14px; padding:1.3rem 1.5rem; margin-bottom:1.1rem; display:flex; align-items:center; gap:1rem; flex-wrap:wrap; justify-content:space-between; }
.ar-cta-text h3 { font-size:.95rem; font-weight:700; color:#fff; margin:0 0 3px; padding:0; }
.ar-cta-text p  { font-size:.78rem; color:#94a3b8; margin:0; padding:0; line-height:1.5; }
.ar-cta-btns    { display:flex; gap:.55rem; flex-shrink:0; flex-wrap:wrap; }
.ar-cta-btn     { display:inline-flex; align-items:center; gap:6px; padding:8px 16px; border-radius:8px; font-size:.82rem; font-weight:600; cursor:pointer; font-family:inherit; border:none; transition:opacity .18s; white-space:nowrap; }
.ar-cta-btn:hover { opacity:.85; }
.ar-cta-docx  { background:#fff; color:#0f172a; }
.ar-cta-pdf   { background:#2563eb; color:#fff; }
.ar-cta-status { font-size:.78rem; padding:5px 10px; border-radius:7px; margin-top:.5rem; width:100%; }
.ar-cta-status.ar-loading { background:rgba(255,255,255,.1); color:#cbd5e1; }
.ar-cta-status.ar-error   { background:#fee2e2; color:#991b1b; }
.ar-cta-status.ar-success  { background:#d1fae5; color:#065f46; }

/* ── Score header ── */
.ar-score-hdr  { display:flex; align-items:center; gap:1.4rem; padding:1.3rem 1.5rem; background:#fff; border:1px solid #e2e8f0; border-radius:14px; margin-bottom:.9rem; flex-wrap:wrap; }
.ar-rings      { display:flex; gap:1.1rem; flex-shrink:0; }
.ar-ring       { text-align:center; }
.ar-ring svg   { display:block; margin:0 auto; }
.ar-ring-lbl   { font-size:10px; color:#64748b; text-transform:uppercase; letter-spacing:.05em; margin-top:4px; font-weight:600; }
.ar-verdict    { flex:1; min-width:160px; }
.ar-verdict-hd { font-size:.7rem; font-weight:700; color:#94a3b8; text-transform:uppercase; letter-spacing:.08em; margin:0 0 4px; }
.ar-verdict-txt{ font-size:.9rem; line-height:1.65; color:#1e293b; }

/* ── Section grid ── */
.ar-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:.7rem; margin-bottom:.9rem; }
.ar-sec  { background:#fff; border:1px solid #e2e8f0; border-radius:10px; padding:.8rem .95rem; }
.ar-sec-hd { display:flex; align-items:center; justify-content:space-between; gap:.35rem; margin-bottom:.45rem; }
.ar-sec-name { font-size:.77rem; font-weight:600; color:#1e293b; text-transform:capitalize; }
.ar-badge    { font-size:.63rem; font-weight:700; padding:2px 7px; border-radius:10px; white-space:nowrap; }
.ar-badge-excellent { background:#d1fae5; color:#065f46; }
.ar-badge-good      { background:#dbeafe; color:#1d4ed8; }
.ar-badge-needs_work{ background:#fef3c7; color:#92400e; }
.ar-badge-poor      { background:#fee2e2; color:#991b1b; }
.ar-bar { height:4px; background:#f1f5f9; border-radius:3px; margin-bottom:.55rem; overflow:hidden; }
.ar-bar-fill { height:100%; border-radius:3px; transition:width .6s ease; }
.ar-sec-issues li { font-size:.71rem; color:#dc2626; line-height:1.45; padding-left:.9rem; position:relative; margin-bottom:2px !important; }
.ar-sec-issues li::before { content:'!'; position:absolute; left:0; font-weight:700; font-size:.68rem; }
.ar-sec-tips li { font-size:.71rem; color:#475569; line-height:1.45; padding-left:.9rem; position:relative; margin-bottom:2px !important; }
.ar-sec-tips li::before { content:'›'; position:absolute; left:0; color:#94a3b8; }

/* ── Analysis blocks ── */
.ar-block { background:#fff; border:1px solid #e2e8f0; border-radius:12px; padding:1rem 1.2rem; margin-bottom:.8rem; }
.ar-block-hd { display:flex; align-items:center; gap:8px; font-size:.75rem; font-weight:700; color:#1e293b; text-transform:uppercase; letter-spacing:.06em; padding-bottom:.55rem; margin-bottom:.75rem; border-bottom:1px solid #f1f5f9; }
.ar-ico { width:22px; height:22px; border-radius:6px; display:inline-flex; align-items:center; justify-content:center; font-size:.78rem; flex-shrink:0; line-height:1; }
.ar-ico-g { background:#d1fae5; }
.ar-ico-a { background:#fef3c7; }
.ar-ico-b { background:#dbeafe; }
.ar-ico-p { background:#ede9fe; }
.ar-ico-r { background:#fee2e2; }

/* Strength list */
.ar-strength-list li { display:flex; align-items:flex-start; gap:9px; font-size:.855rem; color:#1e293b; padding:.45rem 0; border-bottom:1px solid #f8fafc; line-height:1.55; }
.ar-strength-list li:last-child { border-bottom:none; padding-bottom:0; }
.ar-check { width:18px; height:18px; background:#d1fae5; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:.62rem; color:#065f46; font-weight:700; flex-shrink:0; margin-top:1px; }

/* ATS list */
.ar-ats-list li { display:flex; align-items:flex-start; gap:9px; font-size:.855rem; color:#1e293b; padding:.45rem 0; border-bottom:1px solid #f8fafc; line-height:1.55; }
.ar-ats-list li:last-child { border-bottom:none; padding-bottom:0; }
.ar-warn { width:18px; height:18px; background:#fef3c7; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:.6rem; color:#92400e; font-weight:700; flex-shrink:0; margin-top:1px; }

/* Keywords */
.ar-kws  { display:flex; flex-wrap:wrap; gap:.4rem; }
.ar-kw   { background:#fee2e2; color:#991b1b; font-size:.74rem; padding:3px 10px; border-radius:20px; font-weight:500; }

/* Quick wins */
.ar-qw { display:grid; grid-template-columns:56px 1fr; gap:.8rem; padding:.6rem 0; border-bottom:1px solid #f8fafc; }
.ar-qw:last-child { border-bottom:none; padding-bottom:0; }
.ar-qw-pri { text-align:center; padding-top:1px; }
.ar-qw-badge { font-size:.6rem; font-weight:700; padding:3px 7px; border-radius:20px; text-transform:uppercase; display:inline-block; }
.ar-qw-high   { background:#fee2e2; color:#991b1b; }
.ar-qw-medium { background:#fef3c7; color:#92400e; }
.ar-qw-low    { background:#d1fae5; color:#065f46; }
.ar-qw-action { font-size:.855rem; font-weight:500; color:#1e293b; line-height:1.55; margin-bottom:2px; }
.ar-qw-impact { font-size:.77rem; color:#64748b; line-height:1.45; }

/* Rewrite */
.ar-rw + .ar-rw { margin-top:.85rem; }
.ar-rw-label { font-size:.68rem; font-weight:700; color:#2563eb; text-transform:uppercase; letter-spacing:.07em; margin-bottom:.35rem; }
.ar-rw-box { background:#f8fafc; border:1px solid #e2e8f0; border-left:3px solid #2563eb; border-radius:0 8px 8px 0; padding:.8rem 1rem; font-size:.855rem; color:#374151; line-height:1.7; }

@media(max-width:700px){ .ar-grid { grid-template-columns:1fr 1fr; } }
@media(max-width:480px){
  .ar-grid { grid-template-columns:1fr; }
  .ar-score-hdr { flex-direction:column; align-items:flex-start; }
  .ar-cta { flex-direction:column; }
}

/* ── Create & Download Improved Resume — big prominent section ── */
.ar-improve-section { background:linear-gradient(135deg,#0f172a 0%,#1e3a5f 100%); border-radius:16px; padding:1.6rem 1.8rem; margin-top:1rem; }
.ar-improve-header { display:flex; align-items:flex-start; gap:1rem; margin-bottom:1.2rem; }
.ar-improve-icon { font-size:2rem; flex-shrink:0; margin-top:2px; }
.ar-improve-title { font-size:1.1rem; font-weight:700; color:#fff; margin:0 0 .35rem; padding:0; line-height:1.3; }
.ar-improve-desc { font-size:.82rem; color:#94a3b8; margin:0; padding:0; line-height:1.6; }
.ar-improve-btns { display:flex; gap:.75rem; flex-wrap:wrap; }
.ar-improve-btn { display:inline-flex; align-items:center; justify-content:center; padding:13px 24px; border-radius:10px; font-size:.9rem; font-weight:700; cursor:pointer; font-family:inherit; border:none; transition:all .2s; flex:1; min-width:200px; }
.ar-improve-btn:hover { transform:translateY(-1px); opacity:.92; }
.ar-improve-btn:disabled { opacity:.5; cursor:not-allowed; transform:none; }
.ar-improve-docx { background:#fff; color:#0f172a; }
.ar-improve-pdf  { background:#2563eb; color:#fff; }
.ar-improve-status { font-size:.82rem; padding:8px 12px; border-radius:8px; margin-top:.85rem; width:100%; box-sizing:border-box; }
.ar-improve-status.ar-loading { background:rgba(255,255,255,.08); color:#94a3b8; }
.ar-improve-status.ar-error   { background:#fee2e2; color:#991b1b; }
.ar-improve-status.ar-success  { background:#d1fae5; color:#065f46; }
@media(max-width:480px){
  .ar-improve-header { flex-direction:column; gap:.5rem; }
  .ar-improve-btn { min-width:0; }
}