/* Profile photo flow — src/components/photo-picker.js. Always light (D-31), ProMed palette, Manrope. */
.pp { --pp-navy: #073b4c; --pp-blue: #0077b6; --pp-sky: #00a6fb; --pp-ice: #e6f6ff; --pp-bg: #f5f9ff; --pp-muted: #5b7783;
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: rgba(7, 59, 76, .32);
  color: var(--pp-navy); color-scheme: light; font-family: Inter, system-ui, sans-serif; -webkit-tap-highlight-color: transparent; }
body.pp-lock { overflow: hidden; }
.pp * { box-sizing: border-box; }
.pp button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
.pp svg { width: 22px; height: 22px; flex: none; }
.pp .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.pp-sheet { width: min(440px, 100%); height: min(860px, 100%); background: var(--pp-bg); border-radius: 28px; overflow: hidden;
  display: flex; flex-direction: column; padding: max(14px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
  box-shadow: 0 24px 60px rgba(7, 59, 76, .25); }
@media (max-width: 560px) { .pp { background: var(--pp-bg); } .pp-sheet { border-radius: 0; height: 100%; box-shadow: none; } }

.pp-top { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; min-height: 48px; }
.pp-round { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 1px 3px rgba(7, 59, 76, .12); }
.pp-round:hover { background: var(--pp-ice); }
.pp-ghost { visibility: hidden; }
.pp-logo { justify-self: center; font-weight: 800; font-size: 22px; letter-spacing: -.02em; color: var(--pp-navy); }
.pp-hint { justify-self: center; text-align: center; font-size: 14px; line-height: 1.3; color: var(--pp-muted); }

.pp-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 8px 4px; }
.pp-body h2 { margin: 0 0 8px; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.pp-sub { margin: 0 0 28px; max-width: 320px; font-size: 15px; line-height: 1.45; color: var(--pp-muted); }

/* The card: white "student ID" with a soft inset circle */
.pp-card { width: min(300px, 82vw); padding: 16px 16px 14px; border-radius: 24px; background: #fff;
  box-shadow: 0 14px 34px rgba(0, 119, 182, .14), 0 1px 2px rgba(7, 59, 76, .08); }
.pp-hole { width: 100%; aspect-ratio: 1; padding: 0; border-radius: 50%; display: grid; place-items: center; overflow: hidden; position: relative;
  background: radial-gradient(circle at 50% 35%, #fff 0%, var(--pp-ice) 75%); box-shadow: inset 0 3px 10px rgba(0, 119, 182, .16), inset 0 -2px 4px rgba(255, 255, 255, .9);
  transition: transform .15s ease; }
.pp-hole:active { transform: scale(.98); }
.pp-hole:focus-visible, .pp button:focus-visible, .pp-stage:focus-visible { outline: 3px solid var(--pp-sky); outline-offset: 3px; }
.pp-hole img { width: 100%; height: 100%; object-fit: cover; }
.pp-plus { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--pp-blue); box-shadow: 0 4px 12px rgba(0, 119, 182, .18); }
.pp-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-weight: 600; font-size: 15px; color: var(--pp-muted); text-align: left; }
.pp-mark { width: 22px; height: 22px; transform: rotate(45deg); border-radius: 5px; background: linear-gradient(135deg, var(--pp-sky), var(--pp-blue)); opacity: .85; flex: none; }

.pp-msg { min-height: 22px; margin: 16px 0 0; font-size: 14px; font-weight: 600; }
.pp-msg.bad { color: #b42318; } .pp-msg.ok { color: #1f8f5a; }

.pp-foot { display: flex; justify-content: space-between; align-items: center; min-height: 64px; }
.pp-link { padding: 12px 4px; font-weight: 700; font-size: 16px; color: var(--pp-blue) !important; }
.pp-next { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--pp-navy) !important; color: #fff !important;
  box-shadow: 0 8px 20px rgba(7, 59, 76, .3); transition: transform .15s ease, background .15s; }
.pp-next svg { width: 26px; height: 26px; }
.pp-next:disabled { background: #c9d9e0 !important; box-shadow: none; cursor: default; }
.pp-next.busy { background: var(--pp-blue) !important; }
.pp-next:not(:disabled):active { transform: scale(.94); }
.pp-spin { width: 24px; height: 24px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: pp-spin .8s linear infinite; }
@keyframes pp-spin { to { transform: rotate(360deg); } }

/* Crop step: light stage, the photo shows through a circle, outside is veiled */
.pp-stage { flex: 1; position: relative; overflow: hidden; touch-action: none; cursor: grab; margin: 12px -20px 0; background: #dfeaf0; }
.pp-stage:active { cursor: grabbing; }
.pp-img { position: absolute; left: 50%; top: 50%; max-width: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.pp-mask { position: absolute; left: 50%; top: 50%; width: min(320px, calc(100% - 40px)); aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; box-shadow: 0 0 0 2000px rgba(245, 249, 255, .7); outline: 2px solid #fff; pointer-events: none; }
.pp-zoom { display: block; padding: 18px 8px 4px; }
.pp-zoom input { width: 100%; accent-color: var(--pp-blue); height: 28px; }
.pp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 12px; }
.pp-btn { height: 56px; border-radius: 28px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700 !important; font-size: 17px !important; }
.pp-btn.soft { background: #fff !important; color: var(--pp-navy) !important; box-shadow: inset 0 0 0 1.5px #cfe3ee; }
.pp-btn.main { background: var(--pp-blue) !important; color: #fff !important; box-shadow: 0 8px 20px rgba(0, 119, 182, .3); }
.pp-btn:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) { .pp * { transition: none !important; animation-duration: 2s !important; } }
/* Keep the approved card usable on short screens and during keyboard navigation. */
.pp-sheet { min-height: 0; max-height: 100dvh; }
.pp-body { min-height: 0; overflow-y: auto; justify-content: safe center; }
.pp-top, .pp-foot, .pp-actions, .pp-zoom { flex-shrink: 0; }
.pp-stage { min-height: 0; }
.pp-img { height: auto !important; max-height: none !important; }
.pp-card { flex-shrink: 0; }
.pp-card-foot > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.pp-card-foot { gap: 12px; }
.pp button:disabled { cursor: default; }
.pp-zoom input:focus-visible { outline: 3px solid var(--pp-sky); outline-offset: 3px; }
@media (max-height: 600px) {
  .pp-body h2 { font-size: 22px; }
  .pp-sub { margin-bottom: 12px; }
  .pp-card { width: min(220px, 65vw); }
  .pp-msg { margin-top: 8px; }
}

.profile-photo-control{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:20px}.profile-photo-control .profile-photo,.profile-photo-initials{width:80px;height:80px;border-radius:50%;object-fit:cover}.profile-photo-initials{display:grid;place-items:center;background:#e6f6ff;color:#073b4c;font-size:24px;font-weight:700}
