/* Import Résumé v2 (audit/account_import_plan.md). Builds on dashboard.css (.hm). */
.ir-page{--hm:#0d9488;--hm-ink:#0f766e;--hm-soft:#ecfdf9;--hm-line:#99f6e4;--hm-grad:linear-gradient(90deg,#0d9488,#2563eb)}
.ir-page .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.ir-page [hidden]{display:none!important}
.ir-page .ir-wrap{max-width:980px;display:grid;gap:16px}
.ir-page .ir-card{padding:20px}
.ir-page .lbl{display:block;font-size:13px;font-weight:800;color:var(--ink);margin:0 0 6px}
.ir-page .lbl small{font-weight:600;color:var(--faint)}
.ir-page .inp{width:100%;min-height:46px;padding:0 14px;border:1px solid #8590a3;border-radius:12px;font:inherit;font-size:15px;background:#fff;color:var(--ink)}
.ir-page .ta{min-height:220px;padding:12px 14px;resize:vertical;line-height:1.5}
.ir-page .seg{display:inline-flex;background:#eef2f6;border-radius:12px;padding:4px;gap:4px;margin:14px 0 10px}
.ir-page .seg button{font:inherit;font-size:13.5px;font-weight:750;border:0;border-radius:9px;padding:9px 14px;min-height:40px;background:transparent;color:#5b6577;cursor:pointer}
.ir-page .seg button[aria-selected="true"]{background:#fff;color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.08)}
.ir-page .drop{display:block;border:2px dashed #99f6e4;border-radius:16px;background:#f0fdfa;padding:26px 16px;text-align:center;cursor:pointer}
.ir-page .drop.over{background:#ccfbf1;border-color:#0d9488}
.ir-page .drop .ic{width:52px;height:52px;border-radius:14px;background:#fff;display:grid;place-items:center;margin:0 auto 10px;color:var(--hm-ink);box-shadow:0 2px 8px rgba(13,148,136,.15)}
.ir-page .drop b{display:block;font-size:15.5px;color:var(--ink)}
.ir-page .drop span{font-size:13px;color:var(--faint)}
.ir-page .drop em{display:block;font-style:normal;margin-top:8px;font-size:13.5px;font-weight:800;color:var(--hm-ink)}
.ir-page .priv{display:flex;gap:8px;align-items:flex-start;font-size:12.5px;color:var(--faint);margin:12px 0 0;line-height:1.45}
.ir-page .ir-err{margin:12px 0 0;padding:10px 12px;border-radius:10px;background:#fef2f2;color:#b91c1c;border:1px solid #fecaca;font-size:13.5px;font-weight:650}
.ir-page .ir-err a{color:#b91c1c;font-weight:800}
.ir-page .wide{width:100%;margin-top:14px}
.ir-page .ir-loading{display:grid;justify-items:center;gap:6px;text-align:center;color:var(--faint);font-size:13.5px}
.ir-page .ir-loading b{color:var(--ink);font-size:15px}
.ir-page .ir-loading.inline{display:flex;gap:10px;justify-content:center;margin-top:12px}
.ir-page .spin{width:28px;height:28px;border-radius:50%;border:3px solid #ccfbf1;border-top-color:#0d9488;animation:irspin .8s linear infinite}
@keyframes irspin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.ir-page .spin{animation:none}}
.ir-page #resultsSection{display:grid;gap:16px}
.ir-page .score{display:grid;grid-template-columns:150px minmax(0,1fr);gap:22px;align-items:center}
.ir-page .sring{width:140px;height:140px;border-radius:50%;background:conic-gradient(#0d9488 calc(var(--p)*1%),#e5e7eb 0);display:grid;place-items:center}
.ir-page .sring>div{width:112px;height:112px;border-radius:50%;background:#fff;display:grid;place-items:center;align-content:center;text-align:center}
.ir-page .sring b{color:var(--ink);font-size:38px;font-weight:900;letter-spacing:-.03em;line-height:1}
.ir-page .sring span{font-size:12px;color:var(--faint);font-weight:700}
.ir-page .verdict>b{font-size:20px;letter-spacing:-.02em;display:block;color:var(--ink)}
.ir-page .verdict p{margin:4px 0 12px;color:var(--faint);font-size:14px;line-height:1.5}
.ir-page .cats{display:grid;gap:8px}
.ir-page .cat{display:grid;grid-template-columns:110px minmax(0,1fr) 48px;gap:10px;align-items:center;font-size:13px;font-weight:700;color:var(--ink)}
.ir-page .cat .bar{height:8px;border-radius:99px;background:#eef0f6;overflow:hidden}
.ir-page .cat .bar i{display:block;height:100%;background:var(--hm-grad);border-radius:99px}
.ir-page .cat .bar.lo i{background:#f59e0b}
.ir-page .cat em{font-style:normal;color:var(--faint);text-align:right}
.ir-page .fx2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}
.ir-page .fx{display:grid;gap:10px;margin:0;padding:0}
.ir-page .fx li{list-style:none;display:grid;grid-template-columns:28px minmax(0,1fr);gap:10px;padding:12px 14px;border-radius:14px;background:#f8fafc;font-size:14px;line-height:1.45;color:var(--ink)}
.ir-page .fx li i{width:26px;height:26px;border-radius:50%;background:#fef3c7;color:#854d0e;display:grid;place-items:center;font-style:normal;font-weight:900;font-size:13px}
.ir-page .fx.good li i{background:#dcfce7;color:#15803d}
.ir-page .fx li.empty{display:block;color:var(--faint)}
.ir-page .next{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.ir-page .nx{border:1px solid var(--line);border-radius:16px;padding:16px;background:#fff;display:flex;flex-direction:column;gap:8px}
.ir-page .nx.main{border:2px solid #0d9488;background:linear-gradient(180deg,#f0fdfa,#fff)}
.ir-page .nx>b{font-size:15.5px;color:var(--ink)}
.ir-page .nx p{margin:0;font-size:13px;color:var(--faint);line-height:1.45;flex:1}
.ir-page .nx .ir-err{flex:0}
.ir-page .chip{display:inline-flex;align-items:center;font-size:11px;font-weight:800;padding:2px 8px;border-radius:999px;vertical-align:1px}
.ir-page .chip.pro{background:#ede9fe;color:#6d28d9}.ir-page .chip.free{background:#ecfdf3;color:#15803d}
.ir-page .cmp{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}
.ir-page .cmp h3{margin:0 0 6px;font-size:13px;font-weight:800;color:var(--faint);text-transform:uppercase;letter-spacing:.06em}
.ir-page .doc{margin:0;white-space:pre-wrap;word-break:break-word;font:inherit;font-size:13.5px;line-height:1.55;background:#f8fafc;border:1px solid var(--line);border-radius:12px;padding:14px;max-height:520px;overflow:auto;color:var(--ink)}
.ir-page .row-btns{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
@media (max-width:820px){
  .ir-page .score{grid-template-columns:minmax(0,1fr);justify-items:center;text-align:center}
  .ir-page .cats{width:100%;text-align:left}
  .ir-page .cat{grid-template-columns:90px minmax(0,1fr) 44px}
  .ir-page .fx2,.ir-page .next,.ir-page .cmp{grid-template-columns:minmax(0,1fr)}
  .ir-page .row-btns .btn{flex:1 1 100%}
}
/* Design pass C (Nate, round 2): centre the page instead of leaving the upload
   card in the top-left of a wide empty area. The upload card is narrower. */
.ir-page .ir-wrap{margin-left:auto;margin-right:auto;width:100%}
.ir-page #irUpload,.ir-page #loadingSection{max-width:640px;width:100%;justify-self:center;box-sizing:border-box}

/* Nate 2026-11-02: the upload card sat right under the header on laptops and
   touched the screen edges on phones. It now has room around it like the
   other pages, and on a laptop it sits in the middle of the screen until the
   results show (then the page reads top-down as before). */
.ir-page .ir-wrap{padding:24px}
@media (min-width:721px){
  .ir-page .ir-wrap:has(> #resultsSection[hidden]){min-height:calc(100vh - 75px);align-content:center}
}
@container hm (max-width:760px){
  .ir-page .ir-wrap{padding:16px 16px 24px}
}
