/* The right edge (assets/js/ems-edge.js) and the panel chrome every right-edge
   panel wears, PORTED from MPMA Pathways' final help-fab.js CSS (efa8e39, 10-22)
   rule for rule (Tyler 11-06: "match how it was in the pathways final app we did
   exactly"): the .hfab stack (54x42 pill, 32px white disc with the icon or the
   face, the label sliding out on hover, 6px apart, the staggered entrance that
   fills BACKWARDS so it never pins the hover lift), Miles' navy band (.hp-*),
   Feedback (.fb-*), the goals-style body/foot (.gp-*), the first-look tip
   (first-look.js .flk-pnote) and the mic (mpma.css .dict-*). Only the colours
   differ: MPMA navy/blue are EMS navy tokens (--ee-*). The slide-out itself is
   side-panel.js (its CSS travels with it). What is EMS's own (the goals,
   journal, mentees and requests bodies) is prefixed ee- at the end. */
:root { --ee-navy: var(--ems-navy-500); --ee-blue: var(--ems-navy-400); --ee-band: var(--ems-navy-700); }
.hfab-stack[hidden], .hfab[hidden] { display: none; }
  @keyframes hfabIn{0%{opacity:0;transform:translateX(60px) scale(.7)}60%{opacity:1;transform:translateX(-4px) scale(1.03)}100%{opacity:1;transform:translateX(0) scale(1)}}
  .hfab-stack{position:fixed;right:8px;top:116px;z-index:900;display:flex;flex-direction:column;gap:6px;align-items:flex-end}
  .hfab{position:relative;display:inline-flex;align-items:center;gap:7px;height:42px;padding:5px 10px 5px 5px;border-radius:999px;border:0;box-sizing:border-box;
    background:var(--ee-navy);background-image:none;color:#fff;font-family:var(--ems-font-ui);font-size:12px;font-weight:500;cursor:pointer;
    box-shadow:0 4px 12px rgba(42,56,144,.18);
    transition:transform .35s cubic-bezier(.23,1,.32,1),box-shadow .35s cubic-bezier(.23,1,.32,1),opacity .35s cubic-bezier(.23,1,.32,1),filter .2s ease;
    animation:hfabIn .55s cubic-bezier(.23,1,.32,1) backwards}
  .hfab:nth-child(2){animation-delay:.06s}.hfab:nth-child(3){animation-delay:.12s}.hfab:nth-child(4){animation-delay:.18s}.hfab:nth-child(5){animation-delay:.24s}
  .hfab-ic{width:32px;height:32px;border-radius:999px;background:#fff;color:var(--ee-navy);flex:0 0 auto;overflow:hidden;
    display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;letter-spacing:.02em}
  .hfab-ic svg{display:block;width:19px;height:19px}
  .hfab-ic img{width:100%;height:100%;object-fit:cover;display:block;border-radius:999px;user-select:none;-webkit-user-drag:none;animation:hfabFace .4s ease backwards}
  @keyframes hfabFace{from{opacity:0;transform:scale(.8)}}
  .hfab-l{white-space:nowrap;overflow:hidden;max-width:0;opacity:0;transition:max-width .18s ease,opacity .18s ease}
  .hfab:hover,.hfab:focus-visible{transform:translateY(-2px) scale(1.06);box-shadow:0 8px 20px rgba(42,56,144,.24);filter:brightness(1.08)}
  .hfab:active{transform:translateY(0) scale(.97);transition-duration:.1s}
  .hfab:hover .hfab-l,.hfab:focus-visible .hfab-l{max-width:110px;opacity:1}
  .hfab:focus-visible{outline:2px solid var(--ee-navy);outline-offset:2px}
  .hfab-dot{position:absolute;top:-4px;right:-4px;min-width:18px;height:18px;padding:0 5px;box-sizing:border-box;border-radius:999px;background:#ef4444;color:#fff;
    font:700 10px/18px var(--ems-font-ui);text-align:center;box-shadow:0 2px 6px rgba(239,68,68,.4);pointer-events:none}

  /* ── shared panel chrome: Miles' navy band ── */
  .hp-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 14px 13px 18px;flex:0 0 auto;color:#f8fafc;
    background:linear-gradient(135deg,var(--ee-band) 0%,var(--ems-navy-900) 100%)}
  .hp-id{display:flex;align-items:center;gap:12px;min-width:0}
  .hp-av{width:42px;height:42px;border-radius:50%;background:#fff;color:var(--ee-navy);flex:0 0 auto;display:grid;place-items:center;overflow:hidden;
    box-shadow:0 0 0 2px rgba(255,255,255,.2),0 4px 12px rgba(0,0,0,.3)}
  .hp-av svg{width:24px;height:24px}
  .hp-name{font:700 16px/1.2 var(--ems-font-display);letter-spacing:-.01em}
  .hp-sub{font-size:12px;color:var(--ems-navy-200);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .hp-sub i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#34d399;margin-right:5px;box-shadow:0 0 0 3px rgba(52,211,153,.2);animation:hpLive 2s ease-in-out infinite}
  @keyframes hpLive{50%{box-shadow:0 0 0 5px rgba(52,211,153,.05)}}
  .hp-acts{display:flex;gap:2px;flex:0 0 auto}
  .hp-ib{width:34px;height:34px;border-radius:9px;border:0;background:transparent;color:var(--ems-navy-200);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;
    transition:background .18s,color .18s,transform .15s cubic-bezier(.16,1,.3,1)}
  .hp-ib:hover{background:rgba(255,255,255,.12);color:#fff;transform:scale(1.06)}
  .hp-ib:active{transform:scale(.94)}
  .hp-ib svg{width:17px;height:17px}
  .hp-ib[aria-pressed="true"]{background:rgba(255,255,255,.14);color:#fff}

  /* ── Feedback: VisionOne's Improve form ── */
  .fb-body{flex:1;min-height:0;overflow-y:auto;padding:20px 22px 8px}
  .fb-body>*{max-width:680px;margin-left:auto;margin-right:auto}
  .fb-l{display:block;font-weight:700;font-size:13.5px;color:#0f172a;margin:0 0 8px}
  .fb-sec{margin:0 auto 20px;animation:fbUp .45s cubic-bezier(.22,1,.36,1) backwards}
  .fb-sec:nth-child(2){animation-delay:.04s}.fb-sec:nth-child(3){animation-delay:.08s}.fb-sec:nth-child(4){animation-delay:.12s}.fb-sec:nth-child(5){animation-delay:.16s}
  @keyframes fbUp{from{opacity:0;transform:translateY(8px)}}
  @keyframes fbFade{from{opacity:0}}
  .fb-kinds{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px}
  .fb-kind{border:1.5px solid #e2e8f0;background:#fff;border-radius:12px;padding:10px 12px;font:inherit;font-size:13.5px;font-weight:650;color:#334155;cursor:pointer;text-align:left;
    transition:border-color .2s,background .2s,transform .2s cubic-bezier(.22,1.2,.36,1),box-shadow .2s}
  .fb-kind:hover{border-color:#94a3b8;transform:translateY(-1px)}
  .fb-kind[aria-pressed="true"]{border-color:var(--ee-navy);background:rgba(42,56,144,.06);color:var(--ee-navy);box-shadow:0 0 0 3px rgba(42,56,144,.08)}
  .fb-to{display:flex;gap:10px;align-items:flex-start;margin:0 0 16px;padding:11px 13px;border-radius:12px;background:rgba(99,113,189,.07);border:1px solid rgba(99,113,189,.18);color:#0f172a;font-size:13.5px;line-height:1.45}
  .fb-to svg{width:17px;height:17px;flex:0 0 auto;margin-top:1px;color:var(--ee-blue)}
  .fb-to b{color:var(--ee-navy)}
  .fb-chips{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
  .fb-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 6px 6px 10px;border-radius:999px;background:rgba(42,56,144,.08);color:var(--ee-navy);font-size:13px;font-weight:650;
    animation:fbChip .3s cubic-bezier(.22,1.2,.36,1) backwards}
  @keyframes fbChip{from{opacity:0;transform:scale(.85)}}
  .fb-chip svg{width:13px;height:13px}
  .fb-chip em{font-style:normal;font-weight:500;font-size:11.5px;color:#5b6b7a}
  .fb-chip button{border:0;background:transparent;color:inherit;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;cursor:pointer;padding:0}
  .fb-chip button:hover{background:rgba(42,56,144,.14)}
  .fb-chip button svg{width:11px;height:11px}
  .fb-add{border:1.5px dashed #cbd5e1;background:#fff;border-radius:999px;padding:6px 12px;font:inherit;font-size:13px;font-weight:650;color:#475569;cursor:pointer;display:inline-flex;gap:5px;align-items:center}
  .fb-add:hover{border-color:var(--ee-navy);color:var(--ee-navy)}
  .fb-add svg{width:13px;height:13px}
  .fb-pick{position:relative;margin-top:8px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;box-shadow:0 12px 30px rgba(15,23,42,.1);overflow:hidden;animation:fbUp .25s cubic-bezier(.22,1,.36,1)}
  .sp-panel .fb-pick input{width:100%;box-sizing:border-box;border:0;border-bottom:1px solid #eef0f3;padding:10px 12px;font:inherit;font-size:14px;outline:0}
  .fb-pick-list{max-height:220px;overflow-y:auto;padding:4px}
  .fb-pick-list button{display:flex;width:100%;gap:8px;align-items:center;border:0;background:transparent;text-align:left;padding:8px 10px;border-radius:8px;font:inherit;font-size:13.5px;cursor:pointer;color:#0f172a}
  .fb-pick-list button:hover{background:#f1f5f9}
  .fb-pick-list button span{color:#94a3b8;font-size:12px;margin-left:auto}
  .fb-tools{display:flex;flex-wrap:wrap;gap:8px}
  .fb-tool{display:inline-flex;align-items:center;gap:8px;border:1px solid #e2e8f0;background:#fff;border-radius:10px;padding:9px 13px;font:inherit;font-size:13.5px;font-weight:650;color:var(--ee-navy);cursor:pointer;
    transition:border-color .2s,transform .2s,box-shadow .2s}
  .fb-tool:hover{border-color:var(--ee-navy);transform:translateY(-1px);box-shadow:0 6px 14px rgba(42,56,144,.1)}
  .fb-tool svg{width:16px;height:16px}
  .sp-panel .fb-ta{width:100%;box-sizing:border-box;min-height:140px;border:1px solid #d6dbe1;border-radius:12px;padding:12px 14px;font:inherit;font-size:14.5px;line-height:1.5;resize:vertical;
    transition:border-color .2s,box-shadow .2s}
  .sp-panel .fb-ta:focus{outline:0;border-color:var(--ee-navy);box-shadow:0 0 0 3px rgba(42,56,144,.1)}
  .fb-drop{display:flex;align-items:center;gap:12px;border:1.5px dashed #cbd5e1;border-radius:12px;padding:14px;cursor:pointer;background:#f8fafc;transition:border-color .2s,background .2s}
  .fb-drop:hover,.fb-drop.over{border-color:var(--ee-navy);background:rgba(42,56,144,.04)}
  .fb-drop-ic{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:rgba(42,56,144,.08);color:var(--ee-navy);flex:0 0 auto}
  .fb-drop-ic svg{width:17px;height:17px}
  .fb-drop b{display:block;font-size:13.5px;color:#0f172a}.fb-drop span{font-size:12.5px;color:#64748b}
  .fb-files{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:8px;margin-top:10px}
  .fb-file{position:relative;border:1px solid #e2e8f0;border-radius:10px;overflow:hidden;background:#fff;animation:fbChip .3s cubic-bezier(.22,1.2,.36,1) backwards}
  .fb-file img{width:100%;height:78px;object-fit:cover;display:block;background:#f1f5f9}
  .fb-file .ph{height:78px;display:grid;place-items:center;background:#f1f5f9;color:#64748b;font:700 12px var(--ems-font-ui)}
  .fb-file div{font-size:11.5px;color:#334155;padding:5px 7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .fb-file button{position:absolute;top:4px;right:4px;width:22px;height:22px;border-radius:50%;border:0;background:rgba(15,23,42,.7);color:#fff;display:grid;place-items:center;cursor:pointer;padding:0}
  .fb-file button svg{width:11px;height:11px}
  .fb-err{color:#b91c1c;font-size:13px;margin-top:6px}
  .fb-who{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:12px;background:#f8fafc;border:1px solid #eef0f3}
  .fb-face{width:38px;height:38px;border-radius:50%;background:var(--ee-navy);color:#fff;display:grid;place-items:center;font:700 13px var(--ems-font-ui);flex:0 0 auto}
  .fb-who-t{flex:1;min-width:0;font-size:13.5px;color:#334155;line-height:1.45}
  .fb-who-t b{color:#0f172a}
  .fb-link{border:0;background:none;color:var(--ee-navy);font:inherit;font-weight:700;cursor:pointer;padding:0;text-decoration:underline}
  .fb-whobox{display:none;gap:8px;margin-top:8px}
  .fb-whobox.on{display:grid;grid-template-columns:1fr 1fr}
  .sp-panel .fb-whobox input{border:1px solid #d6dbe1;border-radius:10px;padding:9px 10px;font:inherit;font-size:14px;min-width:0}
  .fb-foot{flex:0 0 auto;display:flex;align-items:center;gap:12px;padding:14px 22px 16px;border-top:1px solid #eef0f3;background:#fff}
  .fb-send{border:0;border-radius:12px;background:var(--ee-navy);color:#fff;font:700 14.5px var(--ems-font-ui);padding:12px 22px;cursor:pointer;display:inline-flex;align-items:center;gap:8px;
    box-shadow:0 6px 16px rgba(42,56,144,.28);transition:filter .2s,transform .15s,box-shadow .2s}
  .fb-send:hover{filter:brightness(1.12);transform:translateY(-1px)}
  .fb-send:disabled{opacity:.6;cursor:default;transform:none}
  .fb-send svg{width:16px;height:16px}
  .fb-note{font-size:12.5px;color:#64748b;flex:1}
  .fb-done{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px;animation:fbFade .3s ease}
  .fb-done-ic{width:72px;height:72px;border-radius:50%;background:#e7f4ec;color:#1e7a45;display:grid;place-items:center;margin-bottom:16px;animation:fbPop .5s cubic-bezier(.22,1.4,.36,1)}
  .fb-done-ic svg{width:34px;height:34px;stroke-dasharray:30;stroke-dashoffset:30;animation:fbTick .45s .2s ease forwards}
  @keyframes fbPop{from{transform:scale(.4);opacity:0}}
  @keyframes fbTick{to{stroke-dashoffset:0}}
  .fb-done h3{font-size:21px;margin:0 0 6px;color:#0f172a}.fb-done p{color:#475569;margin:0 0 20px;font-size:14.5px;max-width:380px}
  .fb-done .row{display:flex;gap:8px}
  .fb-done .row button{border:1px solid #d6dbe1;background:#fff;border-radius:10px;padding:10px 16px;font:650 14px var(--ems-font-ui);cursor:pointer;color:var(--ee-navy)}
  .fb-done .row button.pri{background:var(--ee-navy);color:#fff;border-color:transparent}
  /* point at it */
  .fb-aim-bar{position:fixed;top:14px;left:50%;transform:translateX(-50%);z-index:10050;background:#0f172a;color:#fff;border-radius:999px;padding:10px 10px 10px 18px;font:600 14px var(--ems-font-ui);
    display:flex;align-items:center;gap:12px;box-shadow:0 12px 30px rgba(0,0,0,.3);animation:fbUp .3s cubic-bezier(.22,1,.36,1)}
  .fb-aim-bar button{border:0;border-radius:999px;background:rgba(255,255,255,.14);color:#fff;font:inherit;font-size:13px;padding:6px 12px;cursor:pointer}
  .fb-aim-box{position:fixed;z-index:10049;pointer-events:none;border:2px solid #38d6f5;border-radius:8px;background:rgba(56,214,245,.12);box-shadow:0 0 0 4000px rgba(15,23,42,.18);
    transition:all .12s cubic-bezier(.22,1,.36,1)}
  body.fb-aiming,body.fb-aiming *{cursor:crosshair !important}
  /* taking a screenshot: the panel and the pills vanish at once (no slide), so
     the browser's share preview and the picture are of the page alone */
  body.fb-shooting .sp-shell,body.fb-shooting .hfab-stack{visibility:hidden !important;transition:none !important;animation:none !important}
  /* then the picture freezes and you drag around the part you mean */
  .fb-shot{position:fixed;inset:0;z-index:2147483000;background:#0b1220;cursor:crosshair;user-select:none;-webkit-user-select:none;touch-action:none}
  .fb-shot img{position:absolute;pointer-events:none;-webkit-user-drag:none}
  .fb-shot .shot-dim{position:absolute;inset:0;background:rgba(15,23,42,.45);pointer-events:none;transition:opacity .15s}
  .fb-shot.picking .shot-dim{opacity:0}
  .fb-shot .shot-box{position:absolute;display:none;border:2px solid #38d6f5;border-radius:4px;box-shadow:0 0 0 9999px rgba(15,23,42,.45);pointer-events:none}
  .fb-shot.picking .shot-box{display:block}
  .fb-shot .shot-size{position:absolute;left:0;top:-26px;background:#0f172a;color:#fff;font:600 11.5px/1 var(--ems-font-ui);padding:5px 7px;border-radius:6px;white-space:nowrap}
  .fb-shot .fb-aim-bar{cursor:default}
  .fb-shot .fb-aim-bar button.pri{background:#38d6f5;color:#0f172a}
  .fb-shot.picking .fb-aim-bar{opacity:0;pointer-events:none;transition:opacity .15s}
  /* ── Goals: the seeker's goals, most important first (goals-ui.js panelHtml) ── */
  .gp-body{flex:1;min-height:0;overflow-y:auto;padding:18px 20px 10px;background:#f8fafc}
  .gp-body>*{max-width:720px;margin-left:auto;margin-right:auto}
  .gp-foot{flex:0 0 auto;display:flex;align-items:center;gap:10px;padding:14px 20px 16px;border-top:1px solid #eef0f3;background:#fff}
  .gp-foot .fb-send{padding:11px 18px}
  .gp-link{border:0;background:none;color:var(--ee-navy);font:700 14px var(--ems-font-ui);cursor:pointer;padding:8px 4px;margin-left:auto}
  .gp-link:hover{text-decoration:underline}

  @media (max-width:760px){.hfab-stack{top:auto;bottom:84px;right:8px}.hfab .hfab-l{display:none}.fb-body{padding:16px}}
  @media (prefers-reduced-motion:reduce){.hfab,.fb-sec,.fb-chip,.flk-pnote{animation:none !important}.hfab,.hfab .hfab-l{transition:none}}
  /* first-look.js: one short card the first time a panel opens */
  .flk-pnote{display:flex;align-items:flex-start;gap:12px;margin:10px 16px 4px;padding:12px 14px;border-radius:14px;background:var(--ems-navy-50);color:var(--ems-navy-900);animation:flIn .38s cubic-bezier(.22,1,.36,1) .15s backwards;flex:none}
  @keyframes flIn{from{opacity:0;transform:translateY(-6px)}}
  .flk-pnote.is-out{opacity:0;transform:translateY(-6px);transition:opacity .2s,transform .2s}
  .flk-pnote-ic{flex:none;width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:var(--ee-navy);color:#fff}
  .flk-pnote-ic svg{width:17px;height:17px}
  .flk-pnote-t{flex:1;min-width:0;font-size:13.5px;line-height:1.45;color:#334155}
  .flk-pnote-t b{display:block;font-size:14.5px;color:var(--ems-navy-900);margin-bottom:2px}
  .flk-pnote-ok{flex:none;align-self:center;border:0;border-radius:999px;padding:8px 14px;background:var(--ee-navy);color:#fff;font:700 13px/1 var(--ems-font-ui);cursor:pointer}

  /* mpma.css: the mic sits inside the box's bottom-right, clear of the resize grip */
  .dict-shell{position:relative;display:block}
  .sp-panel .dict-shell>textarea{padding-right:46px}
  .dict-btn{position:absolute;right:8px;bottom:10px;width:30px;height:30px;padding:0;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--ems-line-2);border-radius:999px;background:#fff;color:var(--ems-mute-2);cursor:pointer;opacity:.62;transition:opacity .15s ease,color .15s ease,border-color .15s ease,background .15s ease;z-index:2}
  .dict-shell:hover .dict-btn,.dict-shell>textarea:focus~.dict-btn,.dict-btn:hover,.dict-btn:focus-visible{opacity:1}
  .dict-btn:hover{color:var(--ee-navy);border-color:var(--ee-navy)}
  .dict-btn:focus-visible{outline:2px solid var(--ee-navy);outline-offset:2px;opacity:1}
  .dict-btn.dict-on{opacity:1;color:#fff;background:#c0392b;border-color:#c0392b;animation:dictPulse 1.5s ease-in-out infinite}
  @keyframes dictPulse{0%,100%{box-shadow:0 0 0 0 rgba(192,57,43,.45)}50%{box-shadow:0 0 0 6px rgba(192,57,43,0)}}
  .sp-panel .dict-shell>textarea.dict-field-on{border-color:#c0392b;box-shadow:0 0 0 3px rgba(192,57,43,.12)}
  .dict-status{display:block;font-size:12px;color:#c0392b;margin-top:5px}
  .dict-status:empty{display:none}
  @media (prefers-reduced-motion:reduce){.dict-btn.dict-on{animation:none;box-shadow:0 0 0 3px rgba(192,57,43,.3)}}

/* ── EMS's own, inside Pathways' chrome ── */
/* Pathways wrote these as inline styles; the right edge keeps colour/spacing in CSS. */
.hp-t { min-width: 0; }
.fb-opt { font-weight: 500; color: #64748b; }
.fb-pointed { margin-top: 8px; }
.fb-pointed:empty { display: none; }
.fb-drop { margin-top: 10px; }
.fb-note .error, .ee-msg .error { color: #b91c1c; font-weight: 600; }
.fb-done.is-warn .fb-done-ic { background: var(--ems-warn-50); color: var(--ems-warn); }
.fb-done.is-warn .fb-done-ic svg { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
.hfab-ic .hfab-logo { width: 24px; height: 24px; object-fit: contain; border-radius: 0; }
.fb-chip > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-panel .fb-body { scroll-behavior: smooth; }

/* The stack has its own lane (Tyler 11-05: it sat on top of "4 of 7 steps done").
   Desktop only; on a phone the stack is a bottom-right column. */
@media (min-width: 761px) { body.ee-has .content { padding-right: 64px; } }
@media (max-width: 760px) {
  .hfab-stack { gap: 8px; }
  /* The column never sits on the last button of a page (84px up, 50px a pill). */
  body.ee-has .content { padding-bottom: calc(var(--ee-n, 1) * 50px + 100px); }
  .fb-kinds { grid-template-columns: 1fr 1fr; }
  .fb-whobox.on { grid-template-columns: 1fr; }
  .fb-foot { padding: 12px 16px 14px; }
  .fb-aim-bar { top: auto; bottom: 18px; max-width: calc(100vw - 24px); box-sizing: border-box; }
}

/* Goals, Journal, Mentees and Requests: soft white cards on the gp-body's grey,
   Pathways' own radii and borders. */
.ee-body .fb-sec { animation: none; }
.ee-plans { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 auto 14px; }
.ee-plan { padding: 6px 12px; border-radius: 999px; border: 1px solid #d6dbe1; background: #fff; color: var(--ee-navy); font: 650 13px/1.2 var(--ems-font-ui); cursor: pointer; transition: border-color .2s, background .2s; }
.ee-plan:hover { border-color: var(--ee-navy); }
.ee-plan.is-on { border-color: transparent; background: var(--ee-navy); color: #fff; }
.ee-vision { margin: 0 auto 14px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid #e2e8f0; font-size: 14.5px; line-height: 1.55; color: #334155; }
.ee-vision span { display: block; margin-bottom: 3px; font: 700 11.5px/1.2 var(--ems-font-ui); letter-spacing: .06em; text-transform: uppercase; color: #64748b; }
.ee-goals { list-style: none; margin: 0 auto 18px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ee-goals li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid #e2e8f0; font-size: 14.5px; line-height: 1.45; color: #0f172a; overflow-wrap: anywhere; }
.ee-num { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ee-navy); color: #fff; font: 700 12px/1 var(--ems-font-ui); }
.ee-add { margin: 0 auto; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid #e2e8f0; }
.ee-add-row { display: flex; gap: 8px; align-items: stretch; }
.ee-add-row input { flex: 1; min-width: 0; }
.ee-add-row .fb-send { flex: none; padding: 10px 18px; }
.ee-hint { margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: #64748b; }
.ee-h3 { margin: 18px auto 8px; font: 700 12px/1.2 var(--ems-font-ui); letter-spacing: .06em; text-transform: uppercase; color: #64748b; }
.ee-h3:first-child { margin-top: 0; }
.ee-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 16px; margin: 0 auto 14px; border: 1px dashed #d6dbe1; border-radius: 14px; background: #fff; text-align: center; }
.ee-empty b { font-size: 14.5px; color: #0f172a; }
.ee-empty span { font-size: 13.5px; line-height: 1.55; color: #475569; }
.ee-empty .fb-tool { margin-top: 6px; }
.ee-clear { margin: 0 auto 6px; padding: 12px 14px; border-radius: 12px; background: #e9f6ee; color: #14532d; font-size: 14px; }
.ee-skel { display: flex; flex-direction: column; gap: 8px; }
.ee-skel i { display: block; height: 62px; border-radius: 14px; background: linear-gradient(90deg, #eef1f6, #f8fafc, #eef1f6); background-size: 200% 100%; animation: eeShim 1.2s linear infinite; }
@keyframes eeShim { to { background-position: -200% 0; } }
.ee-row-gap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 10px; }
.ee-select { width: 100%; }
.ee-prompt { margin: 8px 0 0; }
.ee-ctx-wrap { margin: 0 auto 16px; }
.ee-ctx { max-width: 100%; }
.ee-ctx b { color: var(--ems-navy-800); }
.ee-recent-box:not(:empty) { margin-top: 4px; }
.ee-recent { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ee-recent li { padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid #e2e8f0; }
.ee-rec-m { margin: 0; font-size: 12.5px; line-height: 1.4; color: #64748b; }
.ee-rec-m b { color: #334155; font-weight: 650; }
.ee-rec-m a { color: var(--ee-navy); text-decoration: none; font-weight: 650; }
.ee-rec-m a:hover { text-decoration: underline; }
.ee-rec-t { margin: 4px 0 0; font-size: 14px; line-height: 1.55; color: #0f172a; white-space: pre-wrap; overflow-wrap: anywhere; }
/* On the Journal page: the screen an entry was written on (ems-edge.js). */
.rf-tl-from { margin-left: 8px; font: 500 12.5px/1.3 var(--ems-font-ui); color: var(--ems-mute-2); }
.ee-rows { display: flex; flex-direction: column; gap: 8px; }
.ee-row { display: flex; align-items: center; gap: 12px; margin: 0; flex-wrap: nowrap; width: 100%; padding: 12px 12px 12px 14px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; color: #0f172a; text-align: left; cursor: pointer; font: inherit;
  transition: border-color .2s, box-shadow .2s, transform .2s; }
.ee-row:hover, .ee-row:focus-visible { border-color: var(--ee-navy); box-shadow: 0 8px 18px rgba(42, 56, 144, .08); transform: translateY(-1px); outline: none; }
.ee-row.is-hot { border-color: var(--ems-red-200); }
.ee-av { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ems-navy-50); color: var(--ee-navy); font: 700 14px/1 var(--ems-font-ui); background-size: cover; background-position: center; }
.ee-av.demo-face { color: transparent; }
.ee-row-m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ee-row-m b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ee-row-m small { font-size: 12.5px; line-height: 1.35; color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ee-row-m q { margin-top: 3px; font-size: 13.5px; line-height: 1.45; color: #334155; quotes: '“' '”'; overflow-wrap: anywhere; font-style: italic; }
.ee-row-s { flex: none; display: flex; }
.ee-tag { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--ems-navy-50); color: var(--ee-navy); white-space: nowrap; }
.ee-tag.is-hot { background: var(--ems-red-50); color: var(--ems-red-600); }
.ee-chev { flex: none; color: #94a3b8; display: grid; }
.ee-chev svg { width: 16px; height: 16px; }
.gp-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; margin-left: 0; }
.gp-link svg { width: 15px; height: 15px; transition: transform .2s; }
.gp-link:hover svg { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .ee-skel i { animation: none; } .ee-row, .gp-link svg { transition: none; } }
/* The toast (app.js) fades to opacity 0 but stayed clickable at z 9999, over the
   panel's sticky footer: on a phone it swallowed the tap on Send feedback. A
   hidden toast takes no clicks. */
.toast:not(.show) { pointer-events: none; }

/* ── My mentees (ems-edge.js menteesView) ─────────────────────────────────────
   Tyler 11-15: a workspace, not a notification drawer. One white card of
   compact rows (still reads at 20 mentees), dividers instead of a box each, no
   red outlines; "unread" is navy, a follow-up is amber - never the same chip. */
.ee-mbody { padding-top: 18px; }
.ee-mrows { display: flex; flex-direction: column; background: #fff; border: 1px solid #e6e9ef; border-radius: 14px; overflow: hidden; }
.ee-mrow { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0; padding: 10px 12px 10px 14px; border: 0; border-top: 1px solid #eef0f4; background: #fff; color: #0f172a; text-align: left; cursor: pointer; font: inherit;
  transition: background .15s; }
.ee-mrow:first-child { border-top: 0; }
.ee-mrow:hover, .ee-mrow:focus-visible { background: var(--ems-navy-50); outline: none; }
.ee-mrow:focus-visible { box-shadow: inset 3px 0 0 var(--ee-navy); }
.ee-mrow .ee-av { width: 36px; height: 36px; font-size: 13px; }
.ee-mrow .ee-row-m b { font-size: 14px; }
.ee-mrow .ee-row-m small { font-size: 12.5px; }
.ee-mrow.is-new .ee-row-m b::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 7px; border-radius: 50%; background: var(--ee-navy); vertical-align: middle; }
.ee-mrow .ee-row-s { gap: 6px; }
.ee-tag.is-new { background: var(--ee-navy); color: #fff; }
.ee-tag.is-due { background: #fdf3dc; color: #8a5a00; }
.ee-msearch { display: block; margin: 0 0 14px; }
.ee-msearch input { width: 100%; height: 38px; padding: 0 14px; border: 1px solid #d6dbe1; border-radius: 10px; font: inherit; font-size: 14px; background: #fff; }
.ee-msearch input:focus { outline: none; border-color: var(--ee-navy); box-shadow: 0 0 0 3px rgba(42, 56, 144, .12); }
.ee-mnone { margin: 8px 0; color: #64748b; font-size: 14px; }
.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; }

/* ── One mentee (ems-mentee.js): the member's mentor panel, turned around ── */
.emt-head { padding-left: 16px; gap: 14px; }
.emt-back { flex: none; align-self: flex-start; margin-top: 2px; width: 36px; height: 36px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; transition: background .18s, transform .15s; }
.emt-back:hover, .emt-back:focus-visible { background: rgba(255, 255, 255, .24); transform: translateX(-2px); outline: none; }
.emt-back svg { width: 18px; height: 18px; }
.emt .cpop-face { width: 60px; height: 60px; font-size: 20px; }
.emt-full { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; }
.emt-full svg { width: 14px; height: 14px; }
.emt-atts { display: flex; flex-direction: column; gap: 8px; margin: 0 0 14px; }
.emt-att { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 11px 14px; border-radius: 12px; border: 0; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.emt-att span { font-weight: 700; font-size: 13px; white-space: nowrap; }
.emt-att.is-new { background: var(--ems-navy-50); color: var(--ems-navy-800); }
.emt-att.is-due { background: #fdf3dc; color: #6b4600; }
.emt-att:hover { filter: brightness(.97); }
.emt-road-l { margin-top: 8px; }
.emt-mute { color: #64748b; font-size: 13px; }
.emt-road { margin: 6px 0 4px; font-size: 13.5px; }
.emt-road summary { cursor: pointer; color: var(--ee-navy); font-weight: 650; }
.emt-road ol { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.emt-road li { display: flex; gap: 10px; align-items: flex-start; }
.emt-road li > span:first-child { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #cbd5e1; display: grid; place-items: center; margin-top: 1px; }
.emt-road li.is-done > span:first-child { background: var(--ee-navy); border-color: var(--ee-navy); color: #fff; }
.emt-road li.is-now > span:first-child { border-color: var(--ems-red-500, #c8102e); }
.emt-road li > span:first-child svg { width: 11px; height: 11px; stroke-width: 3; }
.emt-road li small { display: block; color: #64748b; font-size: 12.5px; }
.emt-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.emt-stat { display: flex; flex-direction: column; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: #f6f7fa; font-size: 12px; color: #64748b; }
.emt-stat b { font: 700 18px/1.2 var(--ems-font-ui); color: #0f172a; }
.emt-tk { border: 2px solid #cbd5e1; border-radius: 6px; }
.cpop-fc.done .emt-tk { background: var(--ee-navy); border-color: var(--ee-navy); color: #fff; }
.emt-add { display: flex; gap: 8px; margin-top: 10px; }
.emt-add input { flex: 1; min-width: 0; height: 36px; padding: 0 12px; border: 1px solid #d6dbe1; border-radius: 10px; font: inherit; font-size: 14px; }
.emt-add input[type=date] { flex: none; width: 150px; }
.emt-add input:focus, .emt-goal input:focus { outline: none; border-color: var(--ee-navy); box-shadow: 0 0 0 3px rgba(42, 56, 144, .12); }
.emt-goal { display: flex; flex-direction: column; gap: 8px; }
.emt-goal > input { height: 38px; padding: 0 12px; border: 1px solid #d6dbe1; border-radius: 10px; font: inherit; font-size: 14px; }
.emt-goal-r { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.emt-goal-r label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #475569; }
.emt-goal-r input { height: 34px; padding: 0 10px; border: 1px solid #d6dbe1; border-radius: 10px; font: inherit; }
.emt-msg { font-size: 13px; color: #166534; min-height: 1em; }
@media (max-width: 560px) { .emt-stats { grid-template-columns: repeat(2, 1fr); } .emt-full { margin-left: 0; } }
/* coachGoalsHtml marks a late date with the global .error (a boxed alert); inside a row it is just red words. */
.emt .ems-s-todo .error { display: inline; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; color: var(--ems-red-600, #b42318); font-weight: 650; }
