@import url("insight.css");
@import url("recruit.css");
@import url("interview.css");
@import url("motion.css");
/* People additions to the Entity design system. Same nine rules as Entity
   (progress-ui.md): line icons, hairlines, one radius scale, figures in the
   interface font, sentence case, flat colour, every colour from a token. */
/* Loaded on every Entity page, so a rule that names one of Entity's own classes
   starts with body[data-ws="people"] (set while the People workspace is open)
   or an ep- id; ep- classes are People's alone. */

.ep-mute{color:var(--mute);font-size:12px;}
td .ep-mute,.ep-name .ep-mute{display:block;font-size:11.5px;}
.ep-of{font-size:15px;font-weight:500;color:var(--mute);letter-spacing:0;}
body[data-ws="people"] td.num,body[data-ws="people"] th.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap;}
.ep-tablewrap{overflow-x:auto;}
.ep-pad{padding:16px 20px 18px;}
.ep-foot{margin:0;padding:0 20px 16px;font-size:11.5px;color:var(--mute);line-height:1.5;}
.ep-more{margin:0;padding:10px 18px 14px;font-size:12px;color:var(--mute);}
.ep-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:20px;}
.ep-grid-2 .panel{margin-bottom:0;}
.ep-grid-2 + .panel,.ep-grid-2 + .ep-grid-2{margin-top:20px;}
.ep-grid-2.ep-grid-wide{grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);}
table.ep-compact thead th,table.ep-compact tbody td{padding-left:10px;padding-right:10px;}
table.ep-compact td:first-child,table.ep-compact th:first-child{padding-left:20px;white-space:nowrap;}
@media (max-width:1100px){.ep-grid-2,.ep-grid-2.ep-grid-wide{grid-template-columns:1fr;}}

/* ---- Sign in ---- */
.ep-brand-sub{font-weight:500;color:var(--mute);}
.ep-login-note{font-size:12px !important;color:var(--mute) !important;margin:12px 0 0 !important;line-height:1.5 !important;text-align:left;}
.ep-roles{display:flex;flex-direction:column;gap:8px;}
.ep-role{display:flex;flex-direction:column;gap:2px;text-align:left;width:100%;padding:11px 14px;border:1px solid var(--line-2);border-radius:var(--radius-control);background:var(--card);font-family:inherit;cursor:pointer;transition:border-color .15s,background .15s;}
.ep-role:hover{border-color:var(--accent);background:var(--accent-soft);}
.ep-role b{font-size:13px;font-weight:600;color:var(--ink);}
.ep-role span{font-size:11.5px;color:var(--mute);line-height:1.45;}

/* ---- Toolbars and controls ---- */
.ep-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px;}
.ep-toolbar-end{margin-left:auto;}
/* the Dashboard's toolbar is Business's (.comm-controls); People shows three or four tabs, by role */
@media (max-width:700px){ #dash-tabs{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);} }
.ep-toggle{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;color:var(--sub);cursor:pointer;}
.ep-toggle input{accent-color:var(--accent);width:15px;height:15px;}
.ep-textarea{width:100%;font-family:inherit;font-size:13px;padding:10px 12px;border:1px solid var(--line);border-radius:var(--radius-control);background:var(--card);color:var(--ink);}
.lib-btn.ep-primary{background:var(--accent);border-color:var(--accent);color:#fff;}
.lib-btn.ep-primary:hover{filter:brightness(1.07);background:var(--accent);}
:root[data-theme="dark"] .lib-btn.ep-primary{color:#0B1733;}
.ep-acts{display:inline-flex;gap:6px;justify-content:flex-end;}

.ep-seg{display:flex;flex-wrap:wrap;gap:4px;}
.ep-seg button{height:28px;padding:0 10px;border:none;border-radius:var(--radius-chip);background:transparent;font-family:inherit;font-size:12px;font-weight:500;color:var(--mute);cursor:pointer;}
.ep-seg button span{font-variant-numeric:tabular-nums;color:var(--fainter-ink);margin-left:3px;}
.ep-seg button:hover{background:var(--gray-soft);color:var(--ink);}
.ep-seg button.on{background:var(--accent-soft);color:var(--accent);}
.ep-seg button.on span{color:var(--accent);opacity:.8;}

.ep-sample{display:flex;align-items:center;gap:8px;padding:8px 12px;margin:0 0 16px;border:1px solid var(--line-2);border-radius:var(--radius-control);background:var(--wash);font-size:12px;color:var(--sub);}
.ep-sample svg{color:var(--amber);flex-shrink:0;}

/* ---- People ---- */
.ep-av{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;font-weight:600;flex-shrink:0;}
.ep-name{display:inline-flex;align-items:center;gap:9px;min-width:0;}
.ep-name b{font-weight:600;}
.ep-name-t{display:flex;flex-direction:column;min-width:0;}
.ep-name-t b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}

/* ---- Ethan ---- */
.ep-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;width:100%;margin:2px 0 6px;text-align:left;}
.ep-tiles .eth-tile{font-family:inherit;text-align:left;cursor:pointer;transition:border-color .15s,box-shadow .15s;}
.ep-tiles .eth-tile:hover{border-color:var(--line);box-shadow:var(--shadow-card);}
@media (max-width:900px){.ep-tiles{grid-template-columns:1fr 1fr;}}
body[data-ws="people"] .eth-hero{max-width:760px;}
.ep-scope{font-size:11.5px;color:var(--mute);padding-left:6px;}
.ep-sources{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:12px;padding-top:10px;border-top:1px solid var(--line-2);font-size:11.5px;color:var(--mute);}
.ep-src{display:inline-flex;align-items:center;font-size:11px;font-weight:500;color:var(--sub);background:var(--gray-soft);border-radius:5px;padding:2px 7px;}
body[data-ws="people"] .eth-page-log .ai-suggestions{margin-top:12px;}

/* ---- Charts: single-hue bars (magnitude); state colours only for status ---- */
.ep-bars{display:flex;flex-direction:column;gap:9px;}
.ep-bar{display:grid;grid-template-columns:minmax(120px,38%) 1fr 48px;align-items:center;gap:12px;font-size:12.5px;}
.ep-bar-l{color:var(--sub);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.ep-bar-t{height:10px;border-radius:4px;background:var(--gray-soft);overflow:hidden;}
.ep-bar-t i{display:block;height:100%;border-radius:4px;}
.ep-bar-v{text-align:right;font-variant-numeric:tabular-nums;font-weight:600;color:var(--ink);}
.ep-bar:hover .ep-bar-l{color:var(--ink);}
.ep-meter{display:inline-block;width:44px;height:6px;border-radius:3px;background:var(--gray-soft);margin-right:8px;vertical-align:1px;overflow:hidden;}
.ep-meter i{display:block;height:100%;background:var(--accent);border-radius:3px;}

.ep-hm{font-size:12.5px;}
.ep-hm th.ep-hm-h{text-align:center;white-space:nowrap;}
.ep-hm td{padding:4px 10px;}
.ep-hm-name{white-space:nowrap;padding-left:20px !important;}
.ep-hm-cat td{padding:12px 20px 4px !important;font-size:11.5px;font-weight:600;color:var(--mute);border-bottom:none !important;}
.ep-hm-cell{text-align:center;}
.ep-hm-cell span{display:flex;align-items:center;justify-content:center;height:28px;min-width:44px;border-radius:6px;font-variant-numeric:tabular-nums;font-weight:600;color:var(--ink);background:color-mix(in srgb,var(--accent) calc(var(--a) * 100%),transparent);}
.ep-hm-cell span.hi{color:#fff;}
:root[data-theme="dark"] .ep-hm-cell span.hi{color:#0B1733;}
.ep-prio{font-size:10.5px;font-weight:600;color:var(--accent);background:var(--accent-soft);border-radius:5px;padding:1px 6px;margin-left:6px;}
.ep-bad{color:var(--red);}
.ep-legend{display:inline-flex;align-items:center;gap:8px;font-size:11.5px;color:var(--mute);flex-wrap:wrap;}
.ep-ramp{display:inline-flex;gap:2px;}
.ep-ramp i{width:16px;height:10px;border-radius:3px;background:color-mix(in srgb,var(--accent) calc(var(--a) * 100%),transparent);}

/* ---- Library: Business's Library (index.html) covers #ep-view-library too ---- */
/* the reader: Business's document card, centred over the page */
#ep-lib-drawer{display:flex;align-items:center;justify-content:center;padding:20px;}
#ep-lib-drawer .drawer-head{margin-bottom:14px;}
#ep-lib-drawer .section-label{margin:0 auto 0 0;align-self:center;}
#ep-lib-drawer .lib-md table{margin:6px 0 4px;}
#ep-lib-drawer .lib-md :is(thead th,tbody td){padding-left:8px;padding-right:8px;}
#ep-lib-drawer .ld-preview .np .lib-tile{margin-bottom:4px;}
/* People uses Business's Source/Markdown reader and full-screen Ethan panes. */
body[data-ws="people"] #ep-lib-drawer.lib-reader{padding:0;align-items:stretch;justify-content:initial;}
body[data-ws="people"] #ep-lib-drawer .ep-document-panes{grid-template-columns:minmax(0,1fr) 380px;}
body[data-ws="people"] #ep-lib-drawer .ep-source-preview iframe{width:100%;height:56vh;border:0;display:block;}
body[data-ws="people"] #ep-lib-drawer .ep-source-preview img{display:block;max-width:100%;margin:auto;}
body[data-ws="people"] #ep-lib-drawer.lib-reader .ep-source-preview{display:flex;flex:1;min-height:0;overflow:hidden;}
body[data-ws="people"] #ep-lib-drawer.lib-reader .ep-source-preview iframe{height:100%;min-height:0;flex:1;border:1px solid var(--line-2);border-radius:12px;}
body[data-ws="people"] #ep-lib-drawer.lib-reader .ep-source-preview img{max-height:100%;object-fit:contain;min-width:0;}
body[data-ws="people"] #ep-lib-drawer .lr-side .ask-panel{display:flex;flex-direction:column;height:100%;min-height:0;}
body[data-ws="people"] #ep-lib-drawer .ask-log{flex:1;min-height:0;overflow:auto;}
body[data-ws="people"] #ep-lib-drawer .eth-chip{margin:4px 6px 0 0;}
body[data-ws="people"] #ep-lib-drawer .ld-edit textarea{width:100%;min-height:50vh;}
@media(max-width:900px){
  body[data-ws="people"] #ep-lib-drawer .ep-document-panes{display:flex;flex-direction:column;overflow:auto;}
  body[data-ws="people"] #ep-lib-drawer .lr-main{flex:none;min-height:65vh;overflow:visible;}
  body[data-ws="people"] #ep-lib-drawer .lr-side{display:flex;flex:none;min-height:55vh;border-left:0;border-top:1px solid var(--line-2);}
  body[data-ws="people"] #ep-lib-drawer .lr-side .ask-panel{min-height:55vh;width:100%;}
  body[data-ws="people"] #ep-lib-drawer.lib-reader .ep-source-preview iframe{height:55vh;min-height:55vh;}
}
/* a phone: the tree hides behind the Browse bar, as in Business */
@media (max-width:700px){ #ep-view-library .lib-tree{display:none;} }
.ep-l1{display:flex;gap:9px;align-items:flex-start;padding:10px 12px;margin-bottom:14px;border-radius:var(--radius-control);background:var(--amber-soft);color:var(--amber);font-size:12.5px;line-height:1.5;}
.ep-l1 svg{flex-shrink:0;margin-top:2px;}
.ep-l1 span{color:var(--ink);}
.ep-l1.ep-info{background:var(--wash);color:var(--mute);border:1px solid var(--line-2);}
.ep-ins{padding:10px 0;border-bottom:1px solid var(--line-2);}
.ep-ins:last-child{border-bottom:none;}
.ep-ins ul{margin:6px 0 0;padding-left:18px;display:flex;flex-direction:column;gap:4px;}

/* ---- Workspace ---- */
.ep-ws-head{display:flex;align-items:center;gap:10px;}
.ep-back{width:34px;height:34px;}
.ep-soon-ico{align-items:center;justify-content:center;border-radius:10px;background:var(--gray-soft);color:var(--mute);}
.ep-soon-ico svg{width:22px;height:22px;}   /* a glyph in a tile, like Business's planned links */
.ep-pair{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:18px;font-size:13px;}
.ep-pair-note{margin-left:auto;}
.ep-slots{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;max-height:52vh;overflow-y:auto;padding:2px;}
.ep-slot-day{display:flex;flex-direction:column;gap:5px;padding:10px;border:1px solid var(--line-2);border-radius:var(--radius-control);}
.ep-slot-day b{font-size:12px;font-weight:600;color:var(--ink);margin-bottom:2px;}
.ep-slot{height:30px;border:1px solid var(--line-2);border-radius:var(--radius-chip);background:var(--card);font-family:inherit;font-size:12.5px;font-variant-numeric:tabular-nums;color:var(--ink);cursor:pointer;}
.ep-slot:hover:not(:disabled){border-color:var(--accent);color:var(--accent);}
.ep-slot.on{background:var(--accent);border-color:var(--accent);color:#fff;}
.ep-slot:disabled{background:var(--wash);color:var(--fainter-ink);cursor:not-allowed;text-decoration:line-through;}
.ep-checks{display:flex;flex-direction:column;gap:8px;margin-bottom:14px;}
.ep-check{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line-2);border-radius:var(--radius-control);font-size:13px;color:var(--ink);cursor:pointer;}
.ep-check.done{cursor:default;background:var(--wash);}
.ep-check.done svg{color:var(--teal);}
.ep-check input{accent-color:var(--accent);width:15px;height:15px;}

.ep-board{display:grid;grid-template-columns:repeat(6,minmax(210px,1fr));gap:12px;overflow-x:auto;padding-bottom:8px;}
.ep-col{background:var(--wash);border:1px solid var(--line-2);border-radius:var(--radius-card);display:flex;flex-direction:column;min-height:240px;}
.ep-col header{display:flex;align-items:center;justify-content:space-between;padding:12px 12px 8px;}
.ep-col header b{font-size:13px;font-weight:600;color:var(--ink);}
.ep-col-body{display:flex;flex-direction:column;gap:8px;padding:0 8px 10px;max-height:68vh;overflow-y:auto;}
.ep-col-empty{margin:6px 4px;font-size:12px;color:var(--fainter-ink);}
.ep-card{background:var(--card);border:1px solid var(--line-2);border-radius:10px;padding:10px 11px;box-shadow:var(--shadow-card);display:flex;flex-direction:column;gap:3px;}
.ep-card .ep-mute{font-size:11.5px;}
.ep-card-top{display:flex;align-items:center;justify-content:space-between;gap:6px;}
.ep-card-top b{font-size:13px;font-weight:600;color:var(--ink);}
.ep-card-top .status-chip{font-size:10.5px;padding:2px 7px;}
.ep-card-fit{font-size:11.5px;color:var(--sub);margin-top:2px;}
.ep-card-acts{display:flex;justify-content:flex-end;gap:2px;margin-top:2px;}
.ep-card-acts .icon-btn:disabled{opacity:.3;cursor:default;}
.ep-soon{font-size:10.5px;font-weight:600;color:var(--blue);background:var(--blue-soft);border-radius:5px;padding:0 5px;}

/* ---- Report ---- */
.ep-pick{display:flex;flex-direction:column;gap:8px;}
.ep-pick-row{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:12px 14px;border:1px solid var(--line-2);border-radius:var(--radius-control);background:var(--card);font-family:inherit;text-align:left;cursor:pointer;}
.ep-pick-row:hover{border-color:var(--accent);background:var(--accent-soft);}
.ep-pick-row > span:first-child{display:flex;flex-direction:column;gap:2px;}
.ep-pick-row b{font-size:13px;font-weight:600;color:var(--ink);}
.modal.ep-modal-wide{max-width:860px;}
/* the report reader is Business's (.rv-modal); the foot's buttons sit on the right */
.rv-foot .ep-acts{margin-left:auto;flex-wrap:wrap;gap:8px;}
.ep-doc .md-tbl{width:100%;}
.ep-doc .md-tblwrap{border:1px solid var(--line-2);border-radius:10px;overflow-x:auto;margin:8px 0 16px;}
.ep-doc .md-tbl th{background:var(--wash);font-size:11.5px;font-weight:600;color:var(--sub);padding:8px 12px;}
.ep-doc .md-tbl td{padding:7px 12px;font-variant-numeric:tabular-nums;}
.ep-doc blockquote{background:var(--accent-soft);border-left-color:var(--accent);}
.ep-doc blockquote p{font-weight:500;}

/* ---- Toast ---- */
.ep-toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);z-index:200;padding:10px 16px;border-radius:var(--radius-control);background:var(--ink);color:var(--card);font-size:13px;font-weight:500;box-shadow:var(--shadow-lg);transition:opacity .3s;}
.ep-toast.out{opacity:0;}

/* ---- Print: only the open report ---- */
@media print{
  body.ep-printing > *:not(.modal-overlay){display:none !important;}
  body.ep-printing .modal-overlay{position:static;background:none;backdrop-filter:none;padding:0;display:block;}
  body.ep-printing .modal{max-width:none;max-height:none;overflow:visible;border:none;box-shadow:none;}
  body.ep-printing :is(.rv-top,.rv-foot,.rv-scroll > .ld-head,.rv-scroll > .lr-meta){display:none;}
  body.ep-printing .rv-scroll{overflow:visible;padding:0;}
}

/* Report cards: two across in both workspaces (index.html .rep-new) */
/* Entity hides its report cards on phones (it has a "+ New" menu instead).
   People keeps them, as a compact list, so a report can be started anywhere. */
@media (max-width:700px){
  #rep-new{display:grid;grid-template-columns:1fr;gap:8px;}
  #rep-new .rep-card{padding:12px 14px;}
  #rep-new .rep-card-main > span,#rep-new .rep-tag{display:none;}
}

/* ---- People inside Entity's shell (people/js/app.js) ---- */
/* Try People on sample data: the page before a role is picked */
.ep-try{max-width:560px;margin:7vh auto 0;}
.ep-try .ep-login-note{margin:0 0 14px !important;}
/* the sample role you are trying, under People's sidebar list; a press picks another */
.ep-demo-chip{display:flex;align-items:center;gap:8px;width:100%;margin-top:10px;padding:8px 10px;border:1px dashed var(--line-2);border-radius:var(--radius-control);background:none;font-family:inherit;font-size:11.5px;line-height:1.4;color:var(--mute);text-align:left;cursor:pointer;transition:border-color .15s,color .15s;}
.ep-demo-chip:hover{border-color:var(--accent);color:var(--ink);}
.ep-demo-chip b{font-weight:600;color:var(--ink);}
.ep-demo-chip svg{flex-shrink:0;}
.sidebar.slim .ep-demo-chip,.sidebar.peek:not(:hover) .ep-demo-chip{justify-content:center;padding:8px 0;}
.sidebar.slim .ep-demo-chip span,.sidebar.peek:not(:hover) .ep-demo-chip span{display:none;}
@media (max-width:900px){ #ep-nav .ep-demo-chip{display:none;} }
/* a phone's tab bar: the same order as Business, Ethan standing up in the middle */
@media (max-width:700px){
  #app-shell #ep-nav [data-epview="dashboard"]{order:1;}
  #app-shell #ep-nav [data-epview="workspace"]{order:2;}
  #app-shell #ep-nav [data-epview="ethan"]{order:3;}
  #app-shell #ep-nav [data-epview="library"]{order:4;}
  #app-shell #ep-nav [data-epview="report"]{order:5;}
  #app-shell #ep-nav .tab-btn[data-epview="ethan"]{justify-content:flex-end;padding-bottom:7px;}
  #app-shell #ep-nav .tab-btn[data-epview="ethan"] svg,#app-shell #ep-nav .tab-btn[data-epview="ethan"].active svg{width:24px;height:24px;padding:16px;margin-top:-30px;border-radius:50%;background:var(--gradient-brand);color:#fff;box-shadow:0 8px 22px rgba(43,108,246,.45);filter:none;}
  #app-shell #ep-nav [data-ep-settings]{display:none;}   /* Settings is in the account sheet */
  .ep-try{margin-top:16px;}
}

/* ---- People's colour on the sidebar ----
   The rose of the People workspace card (app.js WORKSPACES: #F472B6 to #BE185D), kept faint: a flat rose tint over
   Entity's sidebar and a rose selected page in place of Business's blue (the same pill Business uses, with its glass
   style's highlight; on a phone, the same coloured tab and dark-mode glow). The tint is a layer under the sidebar's
   content that fades in when People opens. Borders stay Entity's hairlines, every rule is scoped to People, and the
   selected label keeps 4.5:1 against its background in light and dark (#90 reviews: flat colour, hairlines, scoping,
   contrast). */
:root{
  --ep-rose:#C2307A; --ep-rose-2:#A3205F; --ep-rose-ink:#B0246C;
  --ep-rose-top:#D1347E; --ep-rose-glow:rgba(194,48,122,.30); --ep-glass-hi:rgba(255,255,255,.45);
  --ep-rose-wash:rgba(244,114,182,.07); --ep-rose-hover:rgba(236,72,153,.08); --ep-rose-shadow:rgba(163,32,95,.22);
}
:root[data-theme="dark"]{
  --ep-rose:#B83A78; --ep-rose-2:#8E1F55; --ep-rose-ink:#F28DBF;
  --ep-rose-top:#C4407F; --ep-rose-glow:rgba(184,58,120,.32);
  --ep-rose-wash:rgba(236,72,153,.07); --ep-rose-hover:rgba(244,114,182,.09); --ep-rose-shadow:rgba(0,0,0,.45);
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --ep-rose:#B83A78; --ep-rose-2:#8E1F55; --ep-rose-ink:#F28DBF;
    --ep-rose-top:#C4407F; --ep-rose-glow:rgba(184,58,120,.32);
    --ep-rose-wash:rgba(236,72,153,.07); --ep-rose-hover:rgba(244,114,182,.09); --ep-rose-shadow:rgba(0,0,0,.45);
  }
}
@keyframes ep-rose-in{from{opacity:0;}to{opacity:1;}}
body[data-ws="people"] #left-sidebar::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;
  background:var(--ep-rose-wash);animation:ep-rose-in .45s ease;}
body[data-ws="people"] #ep-nav .tab-btn:focus-visible{outline-color:var(--ep-rose);}
body[data-ws="people"] #ep-nav .ep-demo-chip:hover{border-color:var(--ep-rose);}
@media (prefers-reduced-motion: reduce){ body[data-ws="people"] #left-sidebar::before{animation:none;} }
/* The rose pill is the sidebar's (desktop): on a phone the tab bar marks the page with its text colour, as Business
   does with blue, so the label stays readable (#90 review: rose behind blue text). */
@media (min-width:701px){
  body[data-ws="people"] #ep-nav .tab-btn:hover{background:var(--ep-rose-hover);}
  body[data-ws="people"] #ep-nav .tab-btn.active{background-image:linear-gradient(120deg,var(--ep-rose),var(--ep-rose-2));box-shadow:0 4px 12px var(--ep-rose-shadow);}
  /* Business's glass style (index.html :root[data-style="glass"] .tab-btn.active) in rose: a lighter top, its
     highlight and glow; the top stays dark enough for the white label */
  :root[data-style="glass"] body[data-ws="people"] #ep-nav .tab-btn.active{background-image:linear-gradient(180deg,var(--ep-rose-top),var(--ep-rose-2));box-shadow:inset 0 1px 0 var(--ep-glass-hi),0 8px 20px var(--ep-rose-glow);}
}
@media (max-width:700px){
  body[data-ws="people"] #app-shell #ep-nav{background-image:linear-gradient(var(--ep-rose-wash),var(--ep-rose-wash)),var(--g-sheen,none);}
  body[data-ws="people"] #app-shell #ep-nav .tab-btn.active{color:var(--ep-rose-ink);}
  /* in dark the tab you are on glows, as Business's does (index.html .sb-nav), in rose instead of blue */
  :root[data-theme="dark"] body[data-ws="people"] #app-shell #ep-nav .tab-btn.active span{text-shadow:0 0 10px color-mix(in srgb,var(--ep-rose-ink) 75%,transparent),0 0 2px color-mix(in srgb,var(--ep-rose-ink) 45%,transparent);}
  :root[data-theme="dark"] body[data-ws="people"] #app-shell #ep-nav .tab-btn.active:not([data-epview="ethan"]) svg{filter:drop-shadow(0 0 6px color-mix(in srgb,var(--ep-rose-ink) 65%,transparent));}
  body[data-ws="people"] #app-shell #ep-nav .tab-btn:focus-visible{outline:2px solid var(--ep-rose-ink);outline-offset:-2px;}
}

/* The People "Today" rail (js/rail.js): Business's .right-rail, shown only beside People's Ethan.
   Entity hides every .right-rail inside People, so this rule has to outrank that one. */
body:not([data-ws="people"]) #ep-rail{display:none !important;}   /* never beside Business's own rail */
body[data-ws="people"]:has(#ep-view-ethan.view.active) #ep-rail.ep-rail{display:flex !important;}
body[data-ws="people"]:has(#ep-view-ethan.view.active) #ep-rail.ep-rail.ep-rail-empty{display:none !important;}
@media (max-width:1180px){ body[data-ws="people"]:has(#ep-view-ethan.view.active) #ep-rail.ep-rail{display:none !important;} }
body[data-ws="people"] #ep-rail .rail-item:focus-visible{outline:2px solid var(--accent);outline-offset:-2px;}

/* ---- Dashboard: one screen per tab (dashboard.js, dash-insight.js, dash-read.js) ----
   KPIs in one row, then panels that share the rest of the screen. dashboard.js
   sets .ep-dgrid's height to what is left of the window, and long lists scroll
   inside their panel, so the page itself does not scroll on a desktop. */
.ep-dash{display:flex;flex-direction:column;gap:14px;}
@media (min-width:1101px){ body[data-ws="people"]:has(#ep-view-dashboard.view.active) #app-shell .main{padding-bottom:20px;} }
.ep-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;}
.ep-kpi{display:flex;flex-direction:column;gap:3px;min-width:0;padding:12px 14px;border:1px solid var(--line-2);border-radius:var(--radius-card);background:var(--card);font-family:inherit;text-align:left;color:var(--ink);box-shadow:var(--shadow-sm);}
button.ep-kpi{cursor:pointer;transition:border-color .15s;}
button.ep-kpi:hover{border-color:var(--accent);}
.ep-kpi-l{font-size:11.5px;font-weight:500;color:var(--sub);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.ep-kpi-v{font-size:24px;font-weight:700;letter-spacing:-.01em;font-variant-numeric:tabular-nums;line-height:1.15;}
.ep-kpi-v small{font-size:13px;font-weight:500;color:var(--mute);}
.ep-kpi-s{font-size:11px;color:var(--mute);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.ep-kpi.t-teal .ep-kpi-v{color:var(--teal);}
.ep-kpi.t-blue .ep-kpi-v{color:var(--blue);}
.ep-kpi.t-amber .ep-kpi-v{color:var(--amber);}
.ep-kpi.t-red .ep-kpi-v{color:var(--red);}

.ep-dgrid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:14px;min-height:0;}
.ep-dgrid.three{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) 300px;}
body[data-ws="people"] .ep-dgrid > .panel{margin-bottom:0;}
.ep-dpanel{display:flex;flex-direction:column;min-height:0;overflow:hidden;}
.ep-dscroll{flex:1 1 auto;min-height:0;overflow:auto;padding:4px 20px 10px;}
.ep-dside{display:flex;flex-direction:column;gap:14px;min-height:0;overflow:auto;}
body[data-ws="people"] .ep-dside > .panel{margin-bottom:0;flex:none;}
.ep-subhead{border-top:1px solid var(--line-2);}
.ep-note{margin:0;padding:6px 20px 14px;font-size:12px;color:var(--mute);line-height:1.5;}
.ep-dash-sample{display:inline-flex;align-items:center;gap:5px;font-size:11px;color:var(--mute);}
.ep-dash-sample svg{color:var(--amber);}
.ep-mlist{display:flex;flex-direction:column;padding:2px 16px 12px;}
/* Stage moves (stage-log.js): the Talent box, its "See all" list, and the profile's Stage history. */
.ep-mv-list{list-style:none;margin:0;padding:2px 16px 10px;display:flex;flex-direction:column;}
.ep-mv{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:10px;row-gap:1px;padding:7px 0;border-bottom:1px solid var(--line-2);font-size:12.5px;}
.ep-mv:last-child{border-bottom:0;}
.ep-mv-who{all:unset;cursor:pointer;font-weight:600;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:4px;}
.ep-mv-who:hover{color:var(--accent);text-decoration:underline;}
.ep-mv-who:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}
.ep-mv-st{display:inline-flex;align-items:center;gap:3px;color:var(--sub);white-space:nowrap;}
.ep-mv-st b{color:var(--ink);font-weight:600;}
.ep-mv-arrow{display:inline-flex;color:var(--mute);}
.ep-mv-by{grid-column:1 / -1;font-size:11.5px;color:var(--mute);}
.ep-mv-all{max-height:min(60vh,520px);overflow:auto;padding:0 2px;}
.ep-mv-sub{margin:-4px 0 10px;font-size:12.5px;}
.cd-mv-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;}
.cd-mv-head h3{margin:0;}
.cd-mv-head .lib-btn{height:28px;font-size:12px;gap:6px;}
.cd-mv-list{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:6px;font-size:12.5px;}
.cd-mv-list li{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap;}
.cd-mv-list li:first-child .ep-mv-st b{color:var(--accent);}
.ep-mrow{display:grid;grid-template-columns:minmax(0,1fr) auto 34px;align-items:center;gap:10px;padding:6px 0;border-bottom:1px solid var(--line-2);font-size:12.5px;}
.ep-mrow:last-child{border-bottom:none;}
.ep-mrow > span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink);}
.ep-mrow b{text-align:right;font-variant-numeric:tabular-nums;}
.ep-pchips{display:flex;flex-wrap:wrap;gap:6px;padding:0 16px 14px;}
.ep-pchips .ins-chip{cursor:pointer;font-family:inherit;}

/* Ethan's read */
.ep-read{padding:14px 16px 12px;display:flex;flex-direction:column;gap:6px;border-color:color-mix(in srgb,var(--accent) 28%,var(--line-2));background:linear-gradient(180deg,color-mix(in srgb,var(--accent) 6%,var(--card)),var(--card));}
.ep-read:empty{min-height:120px;}
.ep-read-top{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--sub);}
.ep-read-top b{font-weight:600;color:var(--ink);}
.ep-read-badge{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--accent-soft);color:var(--accent);}
.ep-read-again{margin-left:auto;}
.ep-read-again + .ep-read-ask{margin-left:0;}
.ep-read-ask{margin-left:auto;height:28px;gap:6px;font-size:12px;}
.ep-read-head{font-size:15px;font-weight:600;line-height:1.35;color:var(--ink);text-wrap:balance;}
.ep-read-sum{margin:0;font-size:12.5px;line-height:1.55;color:var(--sub);}
.ep-read-acts{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px;}
.ep-read-acts .eth-chip{font-size:12px;}
.ep-read-src{font-size:11px;color:var(--mute);margin-top:2px;}
.ep-read.is-reading .ep-read-src::before{content:"";display:inline-block;width:7px;height:7px;margin-right:6px;border-radius:50%;background:var(--accent);animation:ep-pulse 1s ease-in-out infinite;vertical-align:1px;}
@keyframes ep-pulse{50%{opacity:.25;}}

/* Overview: what needs you, then the charts (dashboard.js overview()). One hue for every bar
   (the accent), thin bars with a 4px rounded end, hairline solid gridlines, values in text colours. */
.ep-kpis.four{grid-template-columns:repeat(4,minmax(0,1fr));}
.ep-kpis.three{grid-template-columns:repeat(3,minmax(0,1fr));}
.ep-otitle{margin:0 0 8px;font-size:12px;font-weight:600;color:var(--sub);letter-spacing:.01em;}
.ep-todo-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;}
.ep-todo{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto auto;column-gap:12px;row-gap:2px;align-items:center;min-width:0;padding:12px 14px 12px 16px;border:1px solid var(--line-2);border-radius:var(--radius-card);background:var(--card);color:var(--ink);font-family:inherit;text-align:left;box-shadow:var(--shadow-sm);overflow:hidden;}
.ep-todo::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--tone,var(--accent));}
button.ep-todo{cursor:pointer;transition:border-color .15s,transform .15s;}
button.ep-todo:hover,button.ep-todo:focus-visible{border-color:var(--tone,var(--accent));}
button.ep-todo:hover{transform:translateY(-1px);}
.ep-todo.t-amber{--tone:var(--amber);}
.ep-todo.t-blue{--tone:var(--blue);}
.ep-todo.t-teal{--tone:var(--teal);}
.ep-todo.t-gray{--tone:var(--track);}
.ep-todo-n{grid-row:1 / span 3;font-size:30px;font-weight:700;line-height:1;letter-spacing:-.02em;min-width:28px;text-align:center;}
.ep-todo-l{font-size:13px;font-weight:600;}
.ep-todo-s{font-size:11.5px;color:var(--mute);line-height:1.4;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}
.ep-todo-go{display:inline-flex;align-items:center;gap:3px;font-size:12px;font-weight:600;color:var(--accent);}
.ep-todo.done{background:var(--wash);box-shadow:none;}
.ep-todo.done::before{background:var(--teal);opacity:.5;}
.ep-todo.done .ep-todo-n{color:var(--teal);display:grid;place-items:center;}
.ep-todo.done .ep-todo-l{color:var(--sub);}

.ep-ogrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 320px;gap:14px;align-items:start;}
body[data-ws="people"] .ep-ogrid > .panel{margin-bottom:0;}
.ep-chart-wide{grid-column:1 / span 2;}
.ep-oside{grid-row:1 / span 2;grid-column:3;display:flex;flex-direction:column;gap:14px;}
/* Roles without dated rows (Team Lead): the stage funnel and Ethan's read only */
.ep-ogrid.undated{grid-template-columns:minmax(0,1fr) 320px;}
.ep-ogrid.undated > .ep-oside{grid-column:2;grid-row:1;}
body[data-ws="people"] .ep-oside > .panel{margin-bottom:0;}
.ep-chart .panel-head{flex-wrap:wrap;row-gap:2px;}
.ep-chart .panel-head .ep-mute{font-size:11.5px;margin-right:auto;}
.ep-chart .ep-foot{padding-top:6px;}

/* Columns: new resumes per week */
.ep-cols-wrap{padding:14px 20px 0 52px;}
.ep-cols-plot{position:relative;height:190px;border-bottom:1px solid var(--line);}
.ep-grid-l{position:absolute;left:0;right:0;height:0;border-top:1px solid var(--line-2);}
.ep-grid-l i{position:absolute;right:calc(100% + 8px);top:-7px;font-style:normal;font-size:10.5px;line-height:14px;color:var(--mute);font-variant-numeric:tabular-nums;white-space:nowrap;}
.ep-cols{position:absolute;inset:0;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-template-rows:minmax(0,1fr);gap:2px;}
.ep-col{position:relative;display:block;height:100%;min-height:0;margin:0;padding:0;border:0;background:none;font:inherit;color:inherit;}
button.ep-col{cursor:pointer;}
.ep-col-bar{position:absolute;bottom:0;left:50%;transform:translateX(-50%);display:block;width:min(24px,70%);border-radius:4px 4px 0 0;background:color-mix(in srgb,var(--accent) 55%,var(--card));transition:background .15s;}
.ep-col.now .ep-col-bar{background:var(--accent);}
button.ep-col:hover .ep-col-bar,button.ep-col:focus-visible .ep-col-bar{background:var(--accent);filter:brightness(1.08);}
button.ep-col:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:6px;}
.ep-col-v{position:absolute;left:50%;bottom:calc(100% + 3px);transform:translateX(-50%);font-size:11px;font-weight:600;color:var(--ink);white-space:nowrap;}
.ep-cols-x{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:2px;padding:6px 0 2px;}
.ep-cols-x span{font-size:10.5px;color:var(--mute);text-align:center;white-space:nowrap;}
.ep-tip{position:fixed;z-index:400;display:none;padding:5px 9px;border-radius:8px;background:var(--ink);color:var(--card);font-size:12px;font-weight:600;line-height:1.3;pointer-events:none;box-shadow:var(--shadow-md);white-space:nowrap;}

/* Horizontal bars: the stage funnel and the year of study */
.ep-hbars{display:flex;flex-direction:column;padding:8px 12px 4px;}
.ep-hbar{display:grid;grid-template-columns:104px minmax(0,1fr) 40px 38px;align-items:center;gap:10px;width:100%;padding:6px 8px;border:0;border-radius:8px;background:none;color:var(--ink);font:inherit;font-size:12.5px;text-align:left;}
button.ep-hbar{cursor:pointer;}
button.ep-hbar:hover,button.ep-hbar:focus-visible{background:var(--wash);}
button.ep-hbar:focus-visible{outline:2px solid var(--accent);outline-offset:-2px;}
.ep-hbar-l{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--sub);}
.ep-hbar-t{display:block;height:14px;}
.ep-hbar-t i{display:block;height:100%;border-radius:0 4px 4px 0;background:var(--accent);}
.ep-hbar b{text-align:right;font-variant-numeric:tabular-nums;font-weight:600;}
.ep-hbar-p{text-align:right;font-size:11px;color:var(--mute);font-variant-numeric:tabular-nums;}
.ep-hbar.mute .ep-hbar-t i{background:var(--track);}
.ep-hbar.mute .ep-hbar-l,.ep-hbar.mute b{color:var(--mute);}
.ep-hbar-sep{height:1px;margin:4px 8px;background:var(--line-2);}

/* Workforce: the staff loop strip (dashboard.js staffLoop()) */
.ep-loop{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr) 18px minmax(0,1fr) 18px minmax(0,1fr) 18px minmax(0,1fr);gap:4px;padding-bottom:24px;}
.ep-step{display:flex;flex-direction:column;gap:2px;min-width:0;padding:12px 14px;border:1px solid var(--line-2);border-radius:var(--radius-card);background:var(--card);font-family:inherit;text-align:left;color:var(--ink);cursor:pointer;box-shadow:var(--shadow-sm);transition:border-color .15s;}
.ep-step:hover{border-color:var(--accent);}
.ep-step.still{cursor:default;}
.ep-step.still:hover{border-color:var(--line-2);}
.ep-step-n{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--accent-soft);color:var(--accent);font-size:10.5px;font-weight:700;}
.ep-step-name{font-size:12px;font-weight:600;color:var(--sub);}
.ep-step-v{font-size:24px;font-weight:700;font-variant-numeric:tabular-nums;line-height:1.15;}
.ep-step-v small{font-size:12px;font-weight:500;color:var(--mute);}
.ep-step-s{font-size:11px;color:var(--mute);line-height:1.4;}
.ep-step.warn .ep-step-v{color:var(--amber);}
.ep-step.bad .ep-step-v{color:var(--red);}
.ep-step-arrow{display:grid;place-items:center;color:var(--mute);}
/* the way back: from Skills to Recruit, under the strip */
.ep-loop-back{position:absolute;left:10%;right:10%;bottom:6px;height:12px;border:1.5px dashed var(--line);border-top:none;border-radius:0 0 10px 10px;}
.ep-loop-back span{position:absolute;left:50%;bottom:-8px;transform:translateX(-50%);display:inline-flex;align-items:center;gap:5px;padding:0 8px;background:var(--bg);font-size:11px;color:var(--mute);white-space:nowrap;}
/* Talent: the stage board */
.ep-board{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;padding:4px 16px 16px;overflow:auto;}
.ep-sc{display:flex;flex-direction:column;min-width:0;min-height:0;border:1px solid var(--line-2);border-radius:var(--radius-control);background:var(--wash);}
.ep-sc.dim{opacity:.75;}
.ep-sc-head{display:flex;align-items:center;gap:7px;padding:9px 10px;border:none;border-bottom:1px solid var(--line-2);background:none;font-family:inherit;font-size:12px;font-weight:600;color:var(--ink);cursor:pointer;text-align:left;}
.ep-sc-head:disabled{cursor:default;color:var(--ink);}
.ep-sc-head b{margin-left:auto;font-size:16px;font-variant-numeric:tabular-nums;}
.ep-board.counts .ep-sc-head{border-bottom:none;padding:14px 12px;}
.ep-sc-dot{width:8px;height:8px;border-radius:50%;background:var(--track);flex:none;}
.ep-sc-dot.t-blue{background:var(--blue);}
.ep-sc-dot.t-purple{background:var(--accent);}
.ep-sc-dot.t-amber{background:var(--amber);}
.ep-sc-dot.t-teal{background:var(--teal);}
.ep-sc-list{display:flex;flex-direction:column;gap:2px;padding:6px;overflow:auto;min-height:0;}
.ep-board.counts .ep-sc-list{display:none;}
.ep-sc-who{display:grid;grid-template-columns:24px minmax(0,1fr);column-gap:7px;row-gap:2px;align-items:center;padding:5px 6px;border:none;border-radius:6px;background:none;font-family:inherit;text-align:left;cursor:pointer;color:var(--ink);}
.ep-sc-who:hover{background:var(--card);}
body[data-ws="people"] .ep-sc-who .ins-ini{width:24px;height:24px;font-size:10px;grid-row:1/3;}
/* Up to two lines, so a full name shows in the narrow stage columns instead of "Mock Pe…". */
.ep-sc-nm{font-size:12px;font-weight:500;line-height:1.25;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere;}
.ep-sc-fit{line-height:1;}
.ep-sc-fit .status-chip{font-size:10px;padding:1px 6px;}
.ep-sc-who > .ep-mute{font-size:11px;}
.ep-sc-more{border:none;background:none;font-family:inherit;font-size:11.5px;color:var(--accent);cursor:pointer;padding:6px;text-align:left;}
.ep-sc-empty{padding:6px;}
/* Talent board: drag a name to another stage (dashboard.js, wireDrag) */
.ep-drag-hint{display:inline-flex;align-items:center;gap:5px;margin-left:auto;margin-right:8px;font-size:11.5px;color:var(--mute);}
.ep-board.can-drag .ep-sc-who{cursor:grab;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;}
.ep-board.can-drag .ep-sc-who img{-webkit-user-drag:none;}
.ep-sc{transition:border-color .15s ease,background-color .15s ease,box-shadow .15s ease;}
.ep-board.drag-on .ep-sc:not(.drop-over){border-style:dashed;}
.ep-sc.drop-over{border-color:var(--accent);border-style:solid;background:color-mix(in srgb,var(--accent) 9%,var(--wash));box-shadow:inset 0 0 0 1px var(--accent);opacity:1;}
.ep-sc.drop-over .ep-sc-head{color:var(--accent);}
.ep-sc-who.dragging{opacity:.3;}
.ep-sc-ghost{position:fixed;z-index:1000;margin:0;pointer-events:none;background:var(--card);border:1px solid var(--accent);border-radius:8px;box-shadow:var(--shadow-lg);will-change:transform;transform-origin:20% 50%;}
.ep-sc-ghost.landing{box-shadow:var(--shadow-raised);}
/* Liquid glass: a layer over text is frosted, not see-through (progress-ui.md, "layers over text") */
:root[data-style="glass"] .ep-sc-ghost{background-color:var(--g-float);-webkit-backdrop-filter:blur(var(--g-blur));backdrop-filter:blur(var(--g-blur));}
body.ep-dragging,body.ep-dragging *{cursor:grabbing !important;-webkit-user-select:none;user-select:none;}
.ep-sc-who.moved{animation:ep-sc-moved 1.4s ease-out;}
@keyframes ep-sc-moved{0%,25%{background:color-mix(in srgb,var(--accent) 22%,transparent);}100%{background:transparent;}}
@media (prefers-reduced-motion:reduce){.ep-sc-who.moved{animation:none;background:color-mix(in srgb,var(--accent) 12%,transparent);}}
/* Workforce: coverage bars, onboarding meters, the interview round */
.ep-legend{display:inline-flex;align-items:center;gap:6px;font-size:11px;color:var(--mute);}
.ep-legend i{display:inline-block;width:10px;height:8px;border-radius:2px;}
.ep-legend i.o,.ep-cov-bar i.o{background:var(--accent);}
.ep-legend i.d,.ep-cov-bar i.d{background:color-mix(in srgb,var(--accent) 30%,var(--track));}
.ep-cov{display:grid;grid-template-columns:minmax(0,150px) minmax(0,1fr) 26px;align-items:center;gap:10px;padding:5px 0;font-size:12.5px;}
.ep-cov-n{display:flex;align-items:center;gap:6px;min-width:0;}
.ep-cov-n > span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.ep-cov-p{flex:none;font-style:normal;font-size:9.5px;font-weight:600;padding:1px 5px;border-radius:var(--radius-pill);background:var(--accent-soft);color:var(--accent);}
.ep-cov{grid-template-columns:minmax(0,190px) minmax(0,1fr) 26px;}
.ep-cov-bar{display:flex;height:8px;border-radius:4px;background:var(--gray-soft);overflow:hidden;}
.ep-cov-bar i{display:block;height:100%;}
.ep-cov-bar i.o.bad{background:var(--red);}
.ep-cov b{text-align:right;font-variant-numeric:tabular-nums;}
.ep-om{display:grid;grid-template-columns:minmax(0,1fr) 90px 58px;align-items:center;gap:10px;padding:5px 0;font-size:12.5px;}
.ep-om .ep-meter{width:100%;margin:0;}
.ep-om b{text-align:right;font-variant-numeric:tabular-nums;}
.ep-om b small{font-weight:400;color:var(--mute);}
.ep-stack{display:flex;height:12px;border-radius:6px;overflow:hidden;gap:2px;}
.ep-stack i{display:block;min-width:4px;}
.ep-stack-key{display:flex;flex-wrap:wrap;gap:6px 12px;margin-top:10px;font-size:11.5px;color:var(--sub);}
.ep-stack-key i{display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:5px;}
.ep-dpanel .ep-pad{padding:10px 20px 12px;}

/* Insight on the dashboard */
.ins-dshape-in{display:flex;flex-direction:column;gap:8px;padding:0 20px 14px;overflow:auto;min-height:0;}
body[data-ws="people"] .ins-dshape #ins-hradar{max-width:280px;margin:0 auto;}
body[data-ws="people"] .ins-dshape .ins-rank{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
body[data-ws="people"] .ins-dshape .ins-rank h3{font-size:11.5px;margin:0 0 4px;color:var(--sub);}
body[data-ws="people"] .ins-dshape .ins-lr{grid-template-columns:minmax(0,1fr) 22px;gap:6px;font-size:12px;padding:2px 0;}
body[data-ws="people"] .ins-dshape .ins-lr span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
body[data-ws="people"] .ins-dshape .ins-lr .ins-track{display:none;}
body[data-ws="people"] .ins-dshape .ins-lr b{font-size:13px;}
.ep-dpanel .ins-key{padding:6px 20px 14px;}

@media (max-width:1280px){
  .ep-dgrid.three{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 280px;}
  .ep-kpi-v,.ep-step-v{font-size:21px;}
}
@media (max-width:1100px){
  .ep-kpis{grid-template-columns:repeat(3,minmax(0,1fr));}
  .ep-kpis.four{grid-template-columns:repeat(2,minmax(0,1fr));}
  .ep-ogrid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);}
  .ep-chart-wide,.ep-oside,.ep-ogrid.undated > .ep-oside{grid-column:1 / -1;grid-row:auto;}
  .ep-ogrid.undated{grid-template-columns:minmax(0,1fr);}
  .ep-dgrid,.ep-dgrid.three{grid-template-columns:minmax(0,1fr);height:auto !important;}
  .ep-dpanel{max-height:none;}
  .ep-board{grid-template-columns:repeat(3,minmax(0,1fr));}
  .ep-loop{grid-template-columns:repeat(5,minmax(150px,1fr));overflow-x:auto;padding-bottom:6px;}
  .ep-step-arrow,.ep-loop-back{display:none;}
}
/* ---- The Ethan panel beside every People page (panel.js) ----
   Business's .ai-fab and .ai-panel.mini. People's page hides Business's own
   (index.html, "One workspace in view at a time"), so these rules name the
   shell and People's ids to win over it, and only while People is open. */
body:not([data-ws="people"]) :is(#ep-ai,#ep-fab){display:none !important;}
html body[data-ws="people"] #app-shell #ep-fab.ai-fab{display:flex !important;}
html body[data-ws="people"] #app-shell #ep-fab.ai-fab.ep-off{display:none !important;}
html body[data-ws="people"] #app-shell #ep-ai.ai-panel:not(.collapsed){display:flex !important;}
html body[data-ws="people"]:is(:has(#ep-ai:not(.collapsed)),:has(#ep-view-ethan.view.active),:has(#ep-view-try.view.active)) #app-shell #ep-fab.ai-fab{display:none !important;}
body[data-ws="people"] #ep-ai .ai-head{gap:6px;}
body[data-ws="people"] #ep-ai .ai-hide-btn{margin-left:0;}
body[data-ws="people"] #ep-ai .ai-title{margin-right:auto;min-width:0;}
body[data-ws="people"] #ep-ai .ai-title span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;}
body[data-ws="people"] #ep-ai .ai-body{flex:1 1 auto;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:10px;padding:12px 14px;}
body[data-ws="people"] #ep-ai .ep-read{box-shadow:none;margin:4px 0 6px;}
body[data-ws="people"] #ep-ai .panel-composer{padding:8px 12px 4px;}
body[data-ws="people"] #ep-ai .ai-note{padding:2px 14px 10px;font-size:10.5px;color:var(--mute);}
@media (max-width:700px){ html body[data-ws="people"] #app-shell #ep-fab.ai-fab{display:none !important;} }   /* the Ethan tab is one tap away */
body[data-ws="people"] #ep-ai .ai-note{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;}
body[data-ws="people"] #ep-ai .ep-ai-keep{border:0;background:none;padding:0;font:inherit;font-weight:600;color:var(--accent);cursor:pointer;}
body[data-ws="people"] #ep-ai .ep-ai-keep:hover{text-decoration:underline;}
body[data-ws="people"] #ep-ai .ep-ai-keep[hidden]{display:none;}
/* The corner pop-up is a chat already: its copy of Ethan's read has no "Ask Ethan". */
body[data-ws="people"] #ep-ai .ep-read [data-read-ask]{display:none;}
body[data-ws="people"] #ep-ai .ep-read .ep-read-again{margin-left:auto;}

/* ---- "Ask Ethan": a small chat about one tab or applicant (askbox.js), beside the button that opened it ----
   Business's .ai-panel.mini parts, apart from the corner pop-up. askbox.js place() sets where (--ask-*); a phone
   gets a sheet above the tab bar. */
body:not([data-ws="people"]) #ep-ask{display:none !important;}
html body[data-ws="people"] #app-shell #ep-ask.ai-panel:not([hidden]){display:flex !important;}
html body[data-ws="people"] #app-shell #ep-ask.ai-panel.mini{left:var(--ask-left,auto);top:var(--ask-top,auto);right:auto;bottom:auto;width:var(--ask-w,380px) !important;height:var(--ask-h,470px);max-height:none;z-index:72;}
html body[data-ws="people"] #app-shell #ep-ask.ai-panel.mini.sheet{left:12px;right:12px;top:auto;bottom:calc(84px + env(safe-area-inset-bottom));width:auto !important;height:min(68vh,560px);}
body[data-ws="people"] #ep-ask .ai-head{gap:6px;padding:12px 12px 10px;}
body[data-ws="people"] #ep-ask .ai-avatar{width:30px;height:30px;}
body[data-ws="people"] #ep-ask .ai-hide-btn{margin-left:0;}
body[data-ws="people"] #ep-ask .ai-title{margin-right:auto;min-width:0;}
body[data-ws="people"] #ep-ask .ai-title span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;}
body[data-ws="people"] #ep-ask .ai-body{flex:1 1 auto;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:10px;padding:12px 14px;}
body[data-ws="people"] #ep-ask .panel-composer{padding:8px 12px 4px;}
body[data-ws="people"] #ep-ask .ai-note{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:center;gap:2px 8px;padding:2px 14px 10px;font-size:10.5px;color:var(--mute);}
body[data-ws="people"] #ep-ask .ep-ai-keep{border:0;background:none;padding:0;font:inherit;font-weight:600;color:var(--accent);cursor:pointer;}
body[data-ws="people"] #ep-ask .ep-ai-keep:hover{text-decoration:underline;}
body[data-ws="people"] #ep-ask .ep-ai-keep[hidden]{display:none;}
/* Bigger: docked on the right, full height (panel.js dock() sets --ep-ai-w). The page makes room,
   except in the Interview room (ep-ai-cover), where Ethan covers the scorecard column only. */
@media (min-width:901px){
  html body[data-ws="people"] #app-shell #ep-ai.ai-panel.mini.wide:not(.collapsed){top:12px;bottom:12px;right:12px;height:auto;max-height:none;width:var(--ep-ai-w,480px) !important;}
  body[data-ws="people"].ep-ai-docked:not(.ep-ai-cover) #app-shell > .main{margin-right:calc(var(--ep-ai-w,480px) + 12px);}
  /* Covering the scorecard column, Ethan also passes over what sits above the room: those make room for it. */
  body[data-ws="people"].ep-ai-cover #ep-view-workspace .ep-ws-head,
  body[data-ws="people"].ep-ai-cover #apl-stats,
  body[data-ws="people"].ep-ai-cover #apl-host .apl-bar{margin-right:calc(var(--ep-ai-w,480px) + 12px);}
}
/* Docked, the page is narrower than the window: up to 1600px wide the Dashboard takes its narrow layout, so
   no chart is squeezed (dashboard.js fit() leaves the heights alone then). */
@media (min-width:901px) and (max-width:1600px){
  body[data-ws="people"].ep-ai-docked:not(.ep-ai-cover) .ep-ogrid,
  body[data-ws="people"].ep-ai-docked:not(.ep-ai-cover) .ep-dgrid,
  body[data-ws="people"].ep-ai-docked:not(.ep-ai-cover) .ep-dgrid.three{grid-template-columns:minmax(0,1fr);height:auto !important;}
  body[data-ws="people"].ep-ai-docked:not(.ep-ai-cover) .ep-chart-wide,
  body[data-ws="people"].ep-ai-docked:not(.ep-ai-cover) .ep-oside{grid-column:1 / -1;grid-row:auto;}
  body[data-ws="people"].ep-ai-docked:not(.ep-ai-cover) .ep-kpis.four{grid-template-columns:repeat(2,minmax(0,1fr));}
}
/* Below 901px Ethan is not docked, so "Make bigger" would do nothing: not offered. */
@media (max-width:900px){ body[data-ws="people"] #ep-ai #ep-ai-full{display:none;} }
/* A reply landed while the person was reading further up: one tap takes them to its start. */
.ep-new-reply{position:sticky;bottom:6px;align-self:center;display:inline-flex;align-items:center;gap:5px;flex:none;margin-top:-4px;padding:5px 12px 5px 9px;border:1px solid var(--line);border-radius:999px;background:var(--card);color:var(--ink);font-family:inherit;font-size:12px;font-weight:600;line-height:1.2;box-shadow:var(--shadow-md,0 4px 14px rgba(0,0,0,.12));cursor:pointer;z-index:2;}
.ep-new-reply:hover{border-color:var(--accent);color:var(--accent);}

@media (max-width:700px){
  .ep-kpis,.ep-kpis.three{grid-template-columns:repeat(2,minmax(0,1fr));}
  .ep-ogrid,.ep-ogrid.undated{grid-template-columns:minmax(0,1fr);}
  .ep-cols-wrap{padding-left:40px;padding-right:12px;}
  .ep-cols-x span:not(:last-child):nth-child(4n+3){visibility:hidden;}
  .ep-hbar{grid-template-columns:92px minmax(0,1fr) 34px 34px;gap:8px;}
  .ep-board{grid-template-columns:repeat(2,minmax(0,1fr));}
  .ep-loop{grid-template-columns:repeat(5,minmax(140px,1fr));}
}
/* Applicant scheduling uses the same panels and controls as the other People pages. */
.ep-bookings { margin-bottom: 16px; }
.ep-bookings .panel-head { flex-wrap: wrap; gap: 12px; }
.ep-bookings .panel-head > div, .ep-booking-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ep-booking-list { max-height: 340px; overflow: auto; }
.ep-booking { padding: 16px; border-top: 1px solid var(--line-2); display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.ep-booking p { margin: 6px 0; }
.ep-booking .status-chip { margin-left: 8px; }
.ep-booking-actions { max-width: 350px; justify-content: flex-end; }
#ep-book-form { display: grid; gap: 12px; }
#ep-book-form label { display: grid; gap: 6px; }
#ep-book-form input, #ep-book-form select { width: 100%; }
#ep-book-error { color: var(--red); }
@media (max-width: 720px) {
  .ep-booking { flex-direction: column; }
  .ep-booking-actions { justify-content: flex-start; max-width: none; }
}

/* Date-and-time boxes (interview slots) look like the other inputs; the app's shared input style does not list this type */
body[data-ws="people"] input[type="datetime-local"]{font-family:inherit;font-size:12.5px;font-variant-numeric:tabular-nums;height:36px;border:1px solid var(--line-2);border-radius:var(--radius-control);padding:9px 12px;background:var(--card);color:var(--ink);transition:border-color .15s,box-shadow .15s;}
