/* "רופא אישי למנכ״לים" — one tile per executive.
   Section chrome (.section/.section-head/.meta) comes from src/app.css. */

.em-meta-alert{ color:var(--gold); }
.em-meta-alert b{ color:var(--gold); }

.em-toolbar{
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
  margin-bottom:16px;
}
.em-filters{ display:flex; gap:6px; flex-wrap:wrap; min-width:0; }
.em-filter{
  padding:5px 12px; border-radius:999px;
  border:1px solid var(--line); background:var(--bg-card);
  color:var(--ink-muted); font-size:12px; cursor:pointer;
  white-space:nowrap;
}
.em-filter:hover{ color:var(--ink); border-color:var(--ink-soft); }
.em-filter.on{ background:var(--ink); color:var(--bg-card); border-color:var(--ink); }
.em-filter.attention.on{ background:var(--gold); border-color:var(--gold); color:#fff; }

.em-add{
  margin-left:auto;
  padding:7px 16px; border-radius:999px;
  border:1px solid var(--line); background:var(--bg-card);
  color:var(--ink); font-size:13px; cursor:pointer; white-space:nowrap;
}
.em-add:hover{ border-color:var(--accent); color:var(--accent); }

.em-empty{
  display:flex; flex-direction:column; align-items:center; gap:8px;
  padding:44px 20px; text-align:center;
  border:1px dashed var(--line); border-radius:16px;
  color:var(--ink-muted); font-size:13px; line-height:1.6;
}
.em-empty b{ color:var(--ink); font-size:15px; }
.em-empty span{ max-width:46ch; }
.em-empty .em-add{ margin:6px 0 0 0; }

/* ===== Tiles ===== */
.em-grid{
  display:grid; gap:14px;
  grid-template-columns:repeat(auto-fill, minmax(280px, 1fr));
}

.em-card{
  display:flex; flex-direction:column; gap:10px;
  padding:16px; border-radius:16px;
  border:1px solid var(--line); background:var(--bg-card);
  transition:border-color .15s ease, transform .15s ease;
  min-width:0;
}
.em-card:hover{ border-color:var(--ink-soft); transform:translateY(-1px); }
.em-card.alert{ border-color:color-mix(in oklab, var(--red) 45%, var(--line)); }

.em-card-head{ display:flex; align-items:flex-start; gap:8px; }
.em-identity{ display:flex; flex-direction:column; gap:1px; min-width:0; }
.em-name{
  font-family:'Fraunces','Google Sans','Noto Sans Hebrew',serif;
  font-size:17px; font-weight:500; letter-spacing:-.01em; color:var(--ink);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.em-role{
  font-size:11.5px; color:var(--ink-muted);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.em-edit{
  margin-left:auto; flex-shrink:0;
  border:none; background:none; cursor:pointer;
  color:var(--ink-muted); font-size:14px; padding:2px 4px; border-radius:6px;
}
.em-edit:hover{ color:var(--accent); background:color-mix(in oklab, var(--accent) 10%, transparent); }

/* Journey rail — filled = passed, wide = current. */
.em-stages{ display:flex; gap:4px; align-items:center; }
.em-step{
  height:4px; border-radius:2px; flex:1;
  background:var(--line); transition:background .2s ease, flex .2s ease;
}
.em-step.done{ background:color-mix(in oklab, var(--teal) 60%, transparent); }
.em-step.current{ background:var(--accent); flex:1.6; }

.em-stage-label{ display:flex; align-items:baseline; gap:7px; }
.em-stage-label b{ font-size:13px; color:var(--ink); }
.em-stage-label span{ font-size:11.5px; color:var(--ink-muted); }

.em-touch{
  display:flex; align-items:center; gap:8px;
  padding:7px 10px; border-radius:10px;
  font-size:12px; font-weight:500;
  background:color-mix(in oklab, var(--ink) 4%, transparent);
  color:var(--ink-muted);
}
.em-touch.overdue{ background:color-mix(in oklab, var(--red) 11%, transparent); color:var(--red); }
.em-touch.due{ background:color-mix(in oklab, var(--gold) 14%, transparent); color:var(--gold); }
.em-touch.soon{ background:color-mix(in oklab, var(--gold) 8%, transparent); color:var(--gold); }
.em-touch.ok{ color:var(--ink-muted); }
.em-touch button{
  margin-left:auto; flex-shrink:0;
  border:1px solid var(--line); background:var(--bg-card);
  border-radius:999px; padding:2px 9px;
  font-size:11px; color:var(--ink); cursor:pointer;
}
.em-touch button:hover{ border-color:var(--accent); color:var(--accent); }

.em-tasks{ margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:5px; }
.em-tasks li{ display:flex; align-items:baseline; gap:7px; font-size:12.5px; line-height:1.45; min-width:0; }
.em-tasks li span{ min-width:0; overflow:hidden; text-overflow:ellipsis; }
.em-tasks input[type=checkbox]{ flex-shrink:0; cursor:pointer; accent-color:var(--teal); }
.em-task-due{ margin-left:auto; flex-shrink:0; font-size:10.5px; font-weight:600; color:var(--ink-muted); }
.em-task-due.overdue{ color:var(--red); }
.em-task-more{ font-size:11.5px; color:var(--ink-muted); padding-inline-start:20px; }

.em-prefs{ display:flex; flex-direction:column; gap:2px; }
.em-label{
  font-size:10px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  color:var(--ink-muted);
}
.em-prefs p{
  margin:0; font-size:12px; line-height:1.5; color:var(--ink);
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}

.em-contact{ display:flex; gap:8px; flex-wrap:wrap; margin-top:auto; padding-top:4px; }
.em-contact a{
  font-size:11.5px; padding:3px 10px; border-radius:999px;
  border:1px solid var(--line); color:var(--ink-muted); text-decoration:none;
  white-space:nowrap;
}
.em-contact a:hover{ border-color:var(--accent); color:var(--accent); }

/* ===== Modal ===== */
.em-modal{ max-width:600px; width:min(600px, 94vw); }
.em-modal-head{
  display:flex; align-items:flex-start; gap:12px;
  padding:16px 18px; border-bottom:1px solid var(--line);
}
.em-modal-head .bar-modal-close{ margin-left:auto; position:static; }
.em-modal-name{
  margin-top:3px; width:100%;
  border:none !important; background:none !important; padding:0 !important;
  font-family:'Fraunces','Google Sans','Noto Sans Hebrew',serif;
  font-size:21px; font-weight:500; letter-spacing:-.015em; color:var(--ink);
}
.em-modal-name:focus{ outline:none; }
.em-modal-name::placeholder{ color:var(--ink-muted); opacity:.6; }

.em-modal-body{
  padding:14px 18px; display:flex; flex-direction:column; gap:14px;
  max-height:66vh; overflow:auto;
}

.em-stage-pick{ display:flex; gap:6px; flex-wrap:wrap; }
.em-stage-chip{
  display:flex; flex-direction:column; gap:1px; align-items:flex-start;
  padding:6px 11px; border-radius:10px;
  border:1px solid var(--line); background:var(--bg-card);
  color:var(--ink-muted); cursor:pointer;
  font-size:12px; line-height:1.3;
}
.em-stage-chip span{ font-size:10px; opacity:.8; }
.em-stage-chip:hover{ border-color:var(--ink-soft); color:var(--ink); }
.em-stage-chip.on{ background:var(--accent); border-color:var(--accent); color:#fff; }

.em-task-add{ display:flex; gap:8px; flex-wrap:wrap; }
.em-task-add input[type=text], .em-task-add input:not([type=date]){ flex:1 1 180px; min-width:0; }
.em-task-add input[type=date]{ flex:0 0 auto; }
.em-task-add button{
  padding:8px 14px; border-radius:8px; border:none;
  background:var(--ink); color:var(--bg-card); font-size:13px; cursor:pointer;
}
.em-task-add button:disabled{ background:var(--line); color:var(--ink-muted); cursor:default; }

.em-modal-tasks{ margin:8px 0 0 0; padding:0; list-style:none; display:flex; flex-direction:column; gap:5px; }
.em-modal-tasks li{ display:flex; align-items:baseline; gap:8px; font-size:13px; }
.em-modal-tasks li span{ min-width:0; overflow:hidden; text-overflow:ellipsis; }
.em-modal-tasks li.done span{ text-decoration:line-through; color:var(--ink-muted); }
.em-modal-tasks input[type=checkbox]{ accent-color:var(--teal); cursor:pointer; }
.em-modal-tasks li > button{
  margin-left:auto; border:none; background:none; cursor:pointer;
  color:var(--ink-muted); font-size:16px; line-height:1; padding:0 4px;
}
.em-modal-tasks li > button:hover{ color:var(--red); }

@media (max-width: 720px){
  .em-grid{ grid-template-columns:1fr; }
  .em-add{ margin-left:0; width:100%; }
  .em-toolbar{ flex-direction:column; align-items:stretch; }
}
