/* /me person home (2026-11-23, person accounts Task 4). Console / portal design language:
   IBM Plex Sans, indigo #4f46e5, ink #101828/#475467/#667085, split #eaecf0, layout #f4f6fb;
   text-only buttons (no border, no bold, soft fill), no underline (hover = colour only),
   tab switch = grey track + white raised selected. No important flags. */
@font-face{font-family:"IBM Plex Sans";font-style:normal;font-weight:400;font-display:swap;src:url(../pf/fonts/plex-400.woff2) format("woff2")}
@font-face{font-family:"IBM Plex Sans";font-style:normal;font-weight:500;font-display:swap;src:url(../pf/fonts/plex-500.woff2) format("woff2")}
@font-face{font-family:"IBM Plex Sans";font-style:normal;font-weight:600;font-display:swap;src:url(../pf/fonts/plex-600.woff2) format("woff2")}
*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;padding:0}
body.me{background:#f4f6fb;color:#101828;font-family:"IBM Plex Sans",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}
.me a{color:#4f46e5;text-decoration:none}
.me a:hover{color:#4338ca;text-decoration:none}
.me-wrap{max-width:720px;margin:0 auto;padding:16px 16px 48px}
.me-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0 20px}
.me-logo img{display:block;height:36px;width:auto;max-width:180px;object-fit:contain}
.me-word{font-size:18px;font-weight:600;color:#101828}
.me-who{display:flex;align-items:center;gap:8px;min-width:0}
.me-em{color:#475467;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}
.me-h1{font-size:22px;line-height:30px;font-weight:600;margin:0 0 16px;overflow-wrap:anywhere}
.me-h2{font-size:16px;line-height:24px;font-weight:600;margin:0 0 8px}
.me-panel > .me-h2{margin-top:24px}
.me-hint{color:#667085;font-size:13px;margin:0 0 12px}

/* /me in the Customer Portal shell (2026-11-23 r2): up.css draws #app (phone column centred on a computer), the
   .topbar header and the #nav bottom bar icons; the base the legacy style.css gives the portal is set here. */
body.me.up{background:#e7eaf2}
body.me.up #app{position:relative}
body.me.up #content .topbar{display:block}
body.me.up #content .topbar .top_ti{margin:0}
body.me.up .me-top-t{grid-column:2;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.me.up #content .topbar .home_des{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.me.up .me-wrap{max-width:none;padding:16px 14px calc(var(--up-nav-h) + 32px + env(safe-area-inset-bottom))}
body.me.up .me-h1{font-size:20px;line-height:28px;margin:4px 0 14px}
body.me.up .me-view > .me-h2{margin:18px 2px 8px}
body.me.up .me-view > .me-h2:first-of-type{margin-top:0}
body.me.up .me-cards{margin-bottom:12px}
body.me.up .me-card,body.me.up .me-empty,body.me.up .me-box{border-radius:14px}
body.me.up .me-reqs{margin:18px 0 12px}
body.me.up .me-reqs > .me-h2{margin:0 2px 8px}
.me-card.is-rejected .me-card-st{color:#b42318}
.me-card-note{margin-top:4px;font-size:13px;color:#475467;overflow-wrap:anywhere}
.me-row-start{justify-content:flex-start;flex-wrap:wrap;margin-top:0}
.me-paste{margin-top:14px}
.me-hint-0{margin:0 0 10px}
body.me.up #nav{position:fixed;z-index:8}
body.me.up #nav_c{margin:0}
body.me.up #nav_c .nav_r{position:relative;border:0;background:transparent;font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
body.me.up #nav_c .nav_r:hover{color:var(--up-ink)}
body.me.up #nav_c .nav_r.ed{color:var(--up-p)}
body.me.up #nav_c .nav_r:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--up-p-bd);border-radius:10px}

/* buttons: text only, no border, no bold */
.me-btn{display:inline-flex;align-items:center;justify-content:center;height:38px;padding:0 16px;border:0;border-radius:8px;font:inherit;font-size:14px;font-weight:400;cursor:pointer;white-space:nowrap;transition:background .15s,color .15s}
.me-btn[disabled]{opacity:.55;cursor:default}
.me-btn-pri{background:#4f46e5;color:#fff}
.me-btn-pri:hover{background:#4338ca}
.me-btn-soft{background:#eef2ff;color:#4338ca}
.me-btn-soft:hover{background:#e0e7ff}
.me-btn-text{background:transparent;color:#475467;padding:0 10px}
.me-btn-text:hover{background:#f2f4f7;color:#101828}
.me-btn:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(79,70,229,.25)}

.me-msg{display:none;border-radius:10px;padding:10px 12px;margin:0 0 12px;font-size:14px;overflow-wrap:anywhere}
.me-msg.is-ok{display:block;background:#ecfdf3;color:#067647}
.me-msg.is-err{display:block;background:#fef3f2;color:#b42318}

/* cards */
.me-cards{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.me-card{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;background:#fff;border:1px solid #eaecf0;border-radius:12px;padding:14px 16px}
.me-card-tx{min-width:0;flex:1 1 auto}
.me-card-t{font-size:15px;font-weight:600;overflow-wrap:anywhere}
.me-card-m{color:#667085;font-size:13px;overflow-wrap:anywhere}
.me-card-st{margin-top:6px;font-size:13px;color:#b42318;overflow-wrap:anywhere}
.me-card.is-pending .me-card-st{color:#475467}
.me-card.is-inactive .me-card-st,.me-card.is-error .me-card-st{color:#475467}
.me-card-ac{display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex:0 0 auto}
.me-empty,.me-box{background:#fff;border:1px solid #eaecf0;border-radius:12px;padding:20px 16px;margin:0 0 12px}
.me-empty h2{font-size:16px;font-weight:600;margin:0 0 6px}
.me-empty p{color:#475467;margin:0 0 14px}

/* switch */
.me-sw{display:inline-flex;align-items:center;gap:8px;margin-top:10px;font-size:13px;color:#475467;cursor:pointer;user-select:none}
.me-sw input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.me-sw-ui{position:relative;flex:0 0 auto;width:32px;height:18px;border-radius:999px;background:#d0d5dd;transition:background .15s}
.me-sw-ui::after{content:"";position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(16,24,40,.15);transition:transform .15s}
.me-sw input:checked + .me-sw-ui{background:#4f46e5}
.me-sw input:checked + .me-sw-ui::after{transform:translateX(14px)}
.me-sw input:focus-visible + .me-sw-ui{box-shadow:0 0 0 3px rgba(79,70,229,.25)}

/* forms */
.me-form{display:grid;gap:6px}
.me-lbl{font-size:13px;color:#475467;margin-top:6px}
.me-in{width:100%;height:40px;padding:0 12px;border:1px solid #d0d5dd;border-radius:8px;background:#fff;font:inherit;font-size:14px;color:#101828}
.me-in:focus{outline:none;border-color:#4f46e5;box-shadow:none}
.me-in[readonly]{background:#f9fafb;color:#667085}
.me-row{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}

@media (max-width:520px){
  .me-card{flex-direction:column}
  .me-card-ac{flex-direction:row;align-self:stretch;justify-content:flex-end}
  .me-em{max-width:140px}
}
@media (prefers-reduced-motion:reduce){.me-btn,.me-sw-ui,.me-sw-ui::after{transition:none}}

/* scanner modal (me_scan.js, Task 7): fixed header + footer, body scrolls, X top-right, Close footer-left, no border */
html.me-locked,html.me-locked body{overflow:hidden}
.me-scan{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(16,24,40,.55)}
.me-scan[hidden]{display:none}
.me-scan-box{display:flex;flex-direction:column;width:100%;max-width:460px;max-height:calc(100vh - 32px);background:#fff;border-radius:14px;box-shadow:0 20px 40px rgba(16,24,40,.2);overflow:hidden}
.me-scan-hd{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 12px 10px 16px;flex:0 0 auto}
.me-scan-hd .me-h2{margin:0}
.me-scan-x{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border:0;border-radius:8px;background:transparent;color:#475467;cursor:pointer}
.me-scan-x:hover{background:#f2f4f7;color:#101828}
.me-scan-x:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(79,70,229,.25)}
.me-scan-bd{flex:1 1 auto;overflow:auto;padding:0 16px 8px}
.me-scan-cam{position:relative;width:100%;aspect-ratio:1/1;background:#101828;border-radius:12px;overflow:hidden}
.me-scan-cam video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.me-scan-frame{position:absolute;inset:12%;border-radius:14px;box-shadow:0 0 0 2px rgba(255,255,255,.85),0 0 0 999px rgba(16,24,40,.25)}
.me-scan-msg{margin-top:10px;font-size:13px;color:#475467;min-height:20px;overflow-wrap:anywhere}
.me-scan-msg.is-err{color:#b42318}
.me-scan-ft{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 16px 14px;flex:0 0 auto}
