/* FaceLuma Pro: the clinician dashboard. Same tokens as the patient app,
   laid out for a laptop or tablet at the clinic desk. */
body.pro { background: #EEF1F6; min-height: 100vh; }
.pbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 10px;
  padding: calc(10px + var(--top)) 20px 10px;
  background: var(--ink); color: #fff;
}
.pbrand { display: flex; align-items: center; gap: 10px; font: 500 22px/1 var(--display); margin-right: auto; }
.pbrand i { font-style: italic; color: #D9CCFF; }
.pdemo { font-size: 13px; font-weight: 700; background: #FFE3CF; color: #6B3A12; padding: 4px 10px; border-radius: 999px; }
.pbar .btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); }

.plogin { max-width: 420px; margin: 10vh auto; padding: 0 20px; display: grid; gap: 16px; }
.puser { font-size: 14px; color: #D9D2E6; margin-right: 4px; }
.pbar { flex-wrap: wrap; }
.team { display: grid; gap: 8px; }
.member { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; padding: 12px 14px; background: var(--surface); border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); }
.member.off { opacity: .55; }
.member .who b { display: block; }
.member .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.member .actions button { border: 0; border-radius: var(--r-sm); padding: 7px 10px; font-weight: 600; font-size: 13px; background: #EEF1F6; cursor: pointer; }
.addform { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; align-items: end; padding: 16px; background: var(--surface); border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); }
.addform select, .field select { font: 16px var(--body); padding: 13px 14px; border: 0; border-radius: var(--r-sm); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.log { list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--muted); display: grid; gap: 4px; max-height: 320px; overflow: auto; }
.log li span { color: var(--ink); font-weight: 600; }

.pgrid { display: grid; grid-template-columns: 340px 1fr; min-height: calc(100vh - 62px); }
.inbox { border-right: 1px solid var(--line); background: var(--pearl); padding: 16px; display: grid; align-content: start; gap: 12px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.fchip { border: 0; border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 14px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; }
.fchip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.cases { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.case {
  display: grid; gap: 4px;
  width: 100%; text-align: left;
  padding: 12px 14px;
  border: 0; border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
}
.case[aria-current="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.case-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.case-title { font-weight: 700; }
.case-sub { font-size: 14px; color: var(--muted); }
.lvl { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.lvl.emergency, .lvl.urgent { background: var(--red); color: #fff; }
.lvl.today, .lvl.review { background: var(--amber-bg); color: var(--amber); }
.lvl.booking { background: #E6E1FF; color: #3D2EA8; }
.lvl.normal, .lvl.none { background: var(--green-bg); color: var(--green); }
.case.closed { opacity: .55; }

.detail { padding: 24px 28px 48px; display: grid; align-content: start; gap: 18px; max-width: 1100px; }
.placeholder { display: grid; place-items: center; min-height: 50vh; }
.dhead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.dhead h2 { margin: 0; }
.status { display: flex; gap: 6px; flex-wrap: wrap; }
.status button { border: 0; border-radius: var(--r-sm); padding: 8px 12px; font-weight: 600; font-size: 14px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; }
.status button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin: 0; }
.facts div { background: var(--surface); border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line); padding: 12px 14px; }
.facts dt { font-size: 13px; color: var(--muted); font-weight: 600; }
.facts dd { margin: 2px 0 0; font-weight: 700; }
.facts a { color: var(--ink); }
.cols { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: 24px; align-items: start; }
.mapcard { display: grid; gap: 10px; position: sticky; top: 80px; }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.modes button { border: 0; border-radius: var(--r-sm); padding: 10px; font-weight: 700; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; }
.modes button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.pmap { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #E5E9F0; aspect-ratio: 3 / 4; user-select: none; }
.pmap img, .pmap svg.face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pmap.plan { cursor: crosshair; }
.pt {
  position: absolute; transform: translate(-50%, -50%);
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--glow-a); color: var(--ink);
  border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
  display: grid; place-items: center;
  font: 700 12px/1 var(--body);
}
.pmap .mark { cursor: default; }
.plan-list { display: grid; gap: 8px; }
.plan-row { display: grid; grid-template-columns: 28px 1fr 110px 36px; gap: 8px; align-items: center; }
.plan-row .n { width: 26px; height: 26px; border-radius: 50%; background: var(--glow-a); display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.plan-row input, .notes {
  font: 15px var(--body);
  padding: 10px 12px;
  border: 0; border-radius: var(--r-sm);
  background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line);
  width: 100%;
}
.notes { min-height: 110px; resize: vertical; }
.plan-row button { border: 0; background: transparent; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; }
.saved { font-size: 14px; color: var(--green); font-weight: 600; }
.section-t { font-size: 15px; font-weight: 700; color: var(--muted); margin: 6px 0 0; }
.ai { display: grid; gap: 10px; }
.ai .summary { font-size: 17px; }
.symptoms { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.guide { padding: 16px; border-radius: var(--r-md); }
.guide.red { background: var(--red-bg); color: var(--red); }
.guide.amber { background: var(--amber-bg); color: #5A3B00; }
.guide.green { background: var(--green-bg); color: var(--green); }

.cmp-start { display: grid; gap: 12px; max-width: 560px; }
.cmp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.cmp-cols section { display: grid; gap: 12px; background: var(--pearl); padding: 16px; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line); }
.cmp-h { font: 500 26px/1 var(--display); }
.cmp-vote { display: grid; gap: 12px; padding: 16px; border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.alert.ok { background: var(--green-bg); color: var(--green); }

@media (max-width: 860px) {
  .cmp-cols { grid-template-columns: 1fr; }
  .pgrid { grid-template-columns: 1fr; }
  .inbox { border-right: 0; border-bottom: 1px solid var(--line); }
  .cols { grid-template-columns: 1fr; }
  .mapcard { position: static; }
  .detail { padding: 20px 16px 40px; }
}

/* Clinic details and the platform console */
.form.wide { max-width: 880px; }
.cgrid { align-items: start; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 16px; }
.cgrid .field small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.35; }
.check { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.hours { display: grid; gap: 6px; max-width: 560px; }
.hrow { display: grid; grid-template-columns: 110px 90px 1fr 1fr; gap: 10px; align-items: center; }
.hrow input[type=time] { font: 15px var(--body); padding: 9px 10px; border: 0; border-radius: var(--r-sm); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.hrow input[type=time]:disabled { opacity: .4; }
.linkbox { display: grid; grid-template-columns: 1fr auto auto; gap: 8px 14px; align-items: center; padding: 16px; margin-bottom: 18px; border-radius: var(--r-md); background: linear-gradient(120deg, rgba(255,185,143,.18), rgba(185,166,255,.2)); box-shadow: inset 0 0 0 1px var(--line); }
.linkbox b { display: block; }
.linkbox code { font-size: 14px; background: var(--surface); padding: 8px 10px; border-radius: var(--r-sm); word-break: break-all; }
.member .who span.small:not(.muted) { display: block; margin-top: 6px; }
.member .actions select { font: 13px var(--body); font-weight: 600; padding: 7px 8px; border: 0; border-radius: var(--r-sm); background: #EEF1F6; }
@media (max-width: 700px) { .linkbox { grid-template-columns: 1fr; } .hrow { grid-template-columns: 1fr 80px; } .hrow input[type=time] { grid-column: span 1; } }
