/* ============================================================
   The Bureau — Volunteer Portal. Volunteer-facing, warm brand.
   Builds on ../app/styles.css tokens + .btn.
   ============================================================ */

.portal { min-height: 100vh; background: var(--cream); }

/* ---------- LOGIN ---------- */
.login { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 24px; position: relative; overflow: hidden; }
.login__blob { position: absolute; border-radius: 50%; opacity: .5; filter: blur(2px); }
.login__card { position: relative; z-index: 2; background: var(--card); border-radius: 24px; box-shadow: var(--shadow-card); padding: 40px 38px; width: 100%; max-width: 440px; }
.login__logo { width: 56px; height: 56px; border-radius: 15px; background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; margin-bottom: 18px; }
.login__brand { width: 240px; max-width: 70%; max-height: 96px; height: auto; object-fit: contain; display: block; margin: 0 auto 22px; }
.login__logobox { display: inline-flex; align-items: center; justify-content: center; margin: 0 auto 22px; }
.login__logobox img { width: 220px; max-width: 60vw; max-height: 88px; height: auto; object-fit: contain; display: block; }
.login__card { text-align: center; }
.login__card form, .login__card .login__demo { text-align: left; }
.login__title { font-size: 1.9rem; font-weight: 800; text-align: center; }
.login__sub { color: var(--muted); margin: 6px 0 22px; text-align: center; }
.login__label { font-family: var(--font-display); font-weight: 700; color: var(--teal-ink); font-size: .92rem; display: block; margin-bottom: 6px; }
.login__input { width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 1rem; font-family: var(--font-body); background: #fff; }
.login__input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(26,140,156,.18); }
.login__err { color: var(--coral); font-weight: 700; font-size: .88rem; margin-top: 8px; }
.login__pwrow { display: flex; align-items: baseline; justify-content: space-between; margin: 14px 0 6px; }
.login__forgot { background: none; border: none; color: var(--teal-deep); font-family: var(--font-body); font-weight: 700; font-size: .82rem; cursor: pointer; padding: 0; }
.login__forgot:hover { color: var(--orange); text-decoration: underline; }
.login__textlink { display: block; margin: 16px auto 0; background: none; border: none; color: var(--teal-deep); font-family: var(--font-display); font-weight: 700; cursor: pointer; }
.login__textlink:hover { color: var(--orange); }
.login__reset-tick { width: 64px; height: 64px; border-radius: 50%; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; margin: 0 auto 16px; }
.login__demo { margin-top: 22px; padding-top: 18px; border-top: 1.5px dashed var(--line); }
.login__demo-label { font-size: .8rem; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.login__chips { display: flex; flex-direction: column; gap: 8px; }
.login__chip { text-align: left; background: var(--cream); border: 1.5px solid var(--line); border-radius: 11px; padding: 10px 13px; cursor: pointer; transition: border-color .12s ease; display: flex; align-items: center; gap: 10px; }
.login__chip:hover { border-color: var(--teal); }
.login__chip-av { width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: .85rem; flex: none; }
.login__chip b { display: block; color: var(--teal-ink); font-size: .9rem; }
.login__chip span { font-size: .78rem; color: var(--muted); }

/* ---------- TOP BAR ---------- */
.ptop { background: var(--teal); color: #fff; }
.ptop__in { max-width: 1000px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; gap: 14px; }
.ptop__logo { width: 40px; height: 40px; border-radius: 11px; background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; flex: none; }
.ptop__logobox { display: flex; align-items: center; flex: none; }
.ptop__logobox img { height: 34px; width: auto; display: block; filter: brightness(0) invert(1); }
.ptop__brand b { font-family: var(--font-display); font-weight: 800; display: block; line-height: 1.1; }
.ptop__brand span { font-size: .76rem; color: rgba(255,255,255,.7); }
.ptop__spacer { flex: 1; }
.ptop__hi { font-weight: 700; }
.ptop__logout { background: rgba(255,255,255,.16); border: none; color: #fff; font-family: var(--font-display); font-weight: 700; padding: 9px 16px; border-radius: 10px; }
.ptop__logout:hover { background: rgba(255,255,255,.26); }
a.ptop__logobox { cursor: pointer; transition: opacity .15s ease; text-decoration: none; }
a.ptop__logobox:hover { opacity: .82; }
.ptop__back { color: #fff; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: .92rem; padding: 8px 14px; border-radius: 9px; background: rgba(255,255,255,.12); margin-right: 12px; white-space: nowrap; transition: background .15s ease; }
.ptop__back:hover { background: rgba(255,255,255,.24); }
.login__home { display: block; text-align: center; margin: 18px auto 0; color: var(--teal-deep); font-family: var(--font-display); font-weight: 700; text-decoration: none; font-size: .92rem; }
.login__home:hover { color: var(--orange); text-decoration: underline; }

/* ---------- TABS ---------- */
.ptabs { background: var(--teal); }
.ptabs__in { max-width: 1000px; margin: 0 auto; padding: 0 24px; display: flex; gap: 4px; }
.ptab { background: none; border: none; color: rgba(255,255,255,.8); font-family: var(--font-display); font-weight: 700; font-size: .98rem; padding: 13px 18px; border-radius: 12px 12px 0 0; position: relative; display: inline-flex; align-items: center; gap: 8px; }
.ptab:hover { color: #fff; }
.ptab.on { background: var(--cream); color: var(--teal-ink); }
.ptab__badge { background: var(--coral); color: #fff; font-size: .72rem; font-weight: 800; padding: 1px 7px; border-radius: 20px; }

/* ---------- mobile top bar + tabs ---------- */
@media (max-width: 620px) {
  .ptop__in { padding: 12px 16px; gap: 10px; flex-wrap: wrap; }
  .ptop__logobox img { height: 30px; }
  .ptop__brand { display: none; }
  .ptop__hi { display: none; }
  .ptop__back { font-size: 0; padding: 8px 11px; margin-right: 8px; background: rgba(255,255,255,.16); }
  .ptop__back::before { content: "←"; font-size: 1.1rem; }
  .ptop__logout { padding: 8px 13px; font-size: .9rem; }
  .ptabs__in { padding: 0 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .ptabs__in::-webkit-scrollbar { display: none; }
  .ptab { padding: 12px 14px; font-size: .92rem; white-space: nowrap; flex: none; }
  .pwrap { padding: 22px 16px 50px; }
  .pcard { padding: 18px; }
}

/* ---------- CONTENT ---------- */
.pwrap { max-width: 1000px; margin: 0 auto; padding: 30px 24px 60px; }
.psec { opacity: 1; }
.pcard { background: var(--card); border-radius: 18px; box-shadow: var(--shadow-card); padding: 24px; margin-bottom: 20px; }
.pcard__title { font-size: 1.3rem; font-weight: 800; margin-bottom: 4px; }
.pcard__sub { color: var(--muted); margin-bottom: 18px; }

/* overview hero */
.phero { background: linear-gradient(135deg, var(--teal), var(--teal-deep)); color: #fff; border-radius: 20px; padding: 28px 30px; margin-bottom: 22px; position: relative; overflow: hidden; }
.phero h1 { color: #fff; font-size: 2rem; }
.phero p { color: rgba(255,255,255,.92); margin: 8px 0 0; max-width: 560px; }
.phero__blob { position: absolute; border-radius: 50%; background: rgba(255,255,255,.1); }

/* mini stats */
.pstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
@media (max-width: 620px) { .pstats { grid-template-columns: 1fr; } }
.pstat { background: var(--card); border-radius: 16px; box-shadow: var(--shadow-soft); padding: 20px; display: flex; align-items: center; gap: 15px; }
.pstat__ic { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; flex: none; }
.pstat__n { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; line-height: 1; color: var(--teal-ink); }
.pstat__l { font-size: .85rem; color: var(--muted); font-weight: 700; }

/* clickable stat cards */
.pstat--btn { border: 1.5px solid transparent; cursor: pointer; text-align: left; font-family: inherit; width: 100%; position: relative; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.pstat--btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); border-color: var(--teal); }
.pstat__go { position: absolute; right: 16px; bottom: 14px; font-family: var(--font-display); font-weight: 700; font-size: .82rem; color: var(--teal-deep); opacity: 0; transition: opacity .12s ease; }
.pstat--btn:hover .pstat__go { opacity: 1; }

/* applicants status filter */
.pfilter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.pfilter__chip { display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid var(--line); background: #fff; color: var(--teal-ink); font-family: var(--font-body); font-weight: 700; font-size: .88rem; padding: 7px 13px; border-radius: 30px; cursor: pointer; transition: all .12s ease; }
.pfilter__chip span { font-size: .78rem; background: var(--cream-2); color: var(--muted); border-radius: 20px; padding: 1px 7px; }
.pfilter__chip:hover { border-color: var(--teal); }
.pfilter__chip.on { background: var(--teal); color: #fff; border-color: transparent; }
.pfilter__chip.on span { background: rgba(255,255,255,.25); color: #fff; }
.pfilter__chip--placed.on { background: var(--green-dk); }
.pfilter__chip--new.on { background: var(--orange); }
.pfilter__chip--contacted.on { background: var(--gold-dk); }
.pfilter__chip--closed.on { background: #8a7f6e; }

/* placement / role cards */
.proles { display: grid; gap: 16px; }
.prole { display: flex; gap: 16px; background: var(--card); border-radius: 16px; box-shadow: var(--shadow-soft); padding: 16px; align-items: center; }
.prole__img { width: 84px; height: 84px; border-radius: 13px; object-fit: cover; flex: none; }
.prole__body { flex: 1; min-width: 0; }
.prole__role { font-family: var(--font-display); font-weight: 800; font-size: 1.18rem; color: var(--teal-ink); }
.prole__org { color: var(--muted); font-weight: 700; font-size: .9rem; }
.prole__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: .85rem; color: var(--ink); font-weight: 600; }
.pstatus { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700; font-size: .82rem; padding: 5px 12px; border-radius: 20px; white-space: nowrap; }
.pstatus--new { background: #fdeede; color: var(--orange-dk); }
.pstatus--contacted { background: #fcefd6; color: var(--gold-dk); }
.pstatus--placed { background: #e3f3e6; color: var(--green-dk); }
.pstatus--closed { background: #efe9da; color: #8a7f6e; }
.pstatus__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* progress steps */
.psteps { display: flex; gap: 6px; margin-top: 12px; }
.pstep { flex: 1; height: 6px; border-radius: 4px; background: #e7dcc4; }
.pstep.on { background: var(--green); }

/* messages */
.thread { display: flex; flex-direction: column; gap: 12px; max-height: 440px; overflow-y: auto; padding: 6px 4px 14px; }
.bubble { max-width: 76%; padding: 12px 16px; border-radius: 16px; font-size: .95rem; line-height: 1.45; }
.bubble__meta { font-size: .72rem; margin-top: 5px; opacity: .7; }
.bubble--staff { align-self: flex-start; background: #fff; border: 1.5px solid var(--line); border-bottom-left-radius: 5px; color: var(--ink); }
.bubble--volunteer { align-self: flex-end; background: var(--teal); color: #fff; border-bottom-right-radius: 5px; }
.bubble--staff .bubble__who { font-weight: 800; color: var(--teal-ink); font-size: .78rem; margin-bottom: 3px; }
.bubble--partner { background: #fff7ea; border: 1.5px solid #f0d9a8; }
.bubble--partner .bubble__who { font-weight: 800; color: var(--gold-dk); font-size: .78rem; margin-bottom: 3px; }
.composer { display: flex; gap: 10px; margin-top: 16px; }
.composer textarea { flex: 1; padding: 12px 15px; border: 1.5px solid var(--line); border-radius: 12px; font-family: var(--font-body); font-size: .95rem; resize: none; background: #fff; }
.composer textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(26,140,156,.16); }

/* profile */
.pfield { display: grid; grid-template-columns: 180px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1.5px dashed var(--line); align-items: center; }
.pfield:last-child { border-bottom: none; }
.pfield__k { font-family: var(--font-display); font-weight: 700; color: var(--teal-ink); }
.pfield__v { color: var(--ink); }
.pfield__v input { width: 100%; max-width: 320px; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px; font-family: var(--font-body); }
@media (max-width: 560px) { .pfield { grid-template-columns: 1fr; gap: 4px; } }

.pguard { background: #eef6ee; border: 1.5px solid #cfe6cf; border-radius: 14px; padding: 16px 18px; margin-top: 16px; }
.pguard b { color: var(--green-dk); font-family: var(--font-display); }

/* hours log */
.hourlog { display: flex; flex-direction: column; gap: 10px; }
.hourrow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--cream); border-radius: 12px; }
.hourrow__h { font-family: var(--font-display); font-weight: 800; color: var(--teal-ink); font-size: 1.1rem; flex: none; min-width: 64px; }
.hourrow__role { flex: 1; font-weight: 600; }
.hourrow__date { color: var(--muted); font-size: .85rem; }

.empty-portal { text-align: center; padding: 40px 20px; color: var(--muted); }

/* tasks / todos (portal) */
.todos { max-width: 100%; }
.todos__add { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.todos__text { flex: 1; min-width: 150px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; font-family: var(--font-body); }
.todos__due, .todos__to { padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; font-family: var(--font-body); }
.todos__text:focus, .todos__due:focus, .todos__to:focus { outline: none; border-color: var(--teal); }
.todos__addbtn { background: var(--teal); color: #fff; border: none; border-radius: 10px; padding: 0 20px; font-family: var(--font-display); font-weight: 700; cursor: pointer; }
.todos__addbtn:hover { background: var(--teal-deep); }
.todos__empty { color: var(--muted); padding: 24px; text-align: center; background: var(--cream); border-radius: 12px; }
.todos__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.todo { display: flex; align-items: center; gap: 12px; background: var(--cream); border-radius: 12px; padding: 13px 15px; }
.todo.done { opacity: .6; }
.todo.done .todo__text { text-decoration: line-through; }
.todo__check { flex: none; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--line); background: #fff; cursor: pointer; color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.todo.done .todo__check { background: var(--green); border-color: var(--green); }
.todo__body { flex: 1; }
.todo__text { font-family: var(--font-display); font-weight: 700; color: var(--teal-ink); }
.todo__meta { display: flex; gap: 12px; margin-top: 2px; font-size: .8rem; }
.todo__from { color: var(--teal-deep); font-weight: 700; }
.todo__detail { font-size: .85rem; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.todo__lead { background: #fdeede; color: var(--orange-dk); font-weight: 700; border-radius: 6px; padding: 1px 7px; }
.todos__add--row2 { margin-top: -8px; }
.todo__due { color: var(--muted); font-weight: 700; }
.todo__due.over { color: var(--coral-dk); }
.todo__del { flex: none; background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1.1rem; }
.todo__del:hover { color: var(--coral); }
.todo__body--btn { background: none; border: none; text-align: left; cursor: pointer; font-family: inherit; padding: 0; flex: 1; }
.todo__how { font-size: .72rem; font-weight: 700; color: var(--teal-deep); background: #e2eff1; border-radius: 20px; padding: 1px 8px; margin-left: 4px; }
.todo__body--btn:hover .todo__how { background: var(--teal); color: #fff; }
.todomodal { position: fixed; inset: 0; z-index: 200; background: rgba(27,75,84,.5); display: flex; align-items: center; justify-content: center; padding: 20px; }
.todomodal__card { background: var(--card); border-radius: 18px; box-shadow: var(--shadow-card); padding: 26px; width: 100%; max-width: 460px; }
.todomodal__card h3 { font-family: var(--font-display); font-weight: 800; color: var(--teal-ink); font-size: 1.3rem; margin: 0 0 8px; }
.todomodal__tag { display: inline-block; background: #fdeede; color: var(--orange-dk); font-weight: 700; border-radius: 8px; padding: 3px 10px; font-size: .82rem; margin: 0 0 10px; }
.todomodal__body { color: var(--ink); line-height: 1.6; margin: 0 0 12px; }
.todomodal__metaline { font-size: .85rem; color: var(--muted); }
.todomodal__ro { background: #fdf6e7; border: 1.5px solid #f0d9a8; border-radius: 10px; padding: 10px 13px; font-size: .85rem; color: var(--teal-ink); margin: 12px 0 0; }
.todomodal__lbl { display: block; font-family: var(--font-display); font-weight: 700; color: var(--teal-ink); font-size: .85rem; margin: 12px 0 4px; }
.todomodal__inp { width: 100%; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 9px; font-family: var(--font-body); }
.todomodal__foot { display: flex; gap: 10px; margin-top: 18px; }
.todomodal__cancel { background: none; border: 1.5px solid var(--line); border-radius: 9px; padding: 9px 16px; font-family: var(--font-display); font-weight: 700; color: var(--teal-deep); cursor: pointer; }

/* shared user drawer (partner portal lacks admin.css, so define essentials here) */
.drawer-bg { position: fixed; inset: 0; z-index: 120; background: rgba(27,75,84,.5); backdrop-filter: blur(3px); display: flex; justify-content: flex-end; }
.drawer { background: var(--cream); width: 100%; max-width: 520px; height: 100%; display: flex; flex-direction: column; box-shadow: -20px 0 60px -20px rgba(0,0,0,.5); animation: drawerIn .22s ease; }
@keyframes drawerIn { from { transform: translateX(30px); opacity: .6; } to { transform: none; opacity: 1; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); background: var(--card); }
.drawer__head h2 { font-size: 1.3rem; font-weight: 800; }
.drawer__body { padding: 22px 24px; overflow-y: auto; flex: 1; }
.drawer__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--line); background: var(--card); }
.drawer .iconbtn { background: rgba(27,75,84,.08); border: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; color: var(--teal-ink); display: flex; align-items: center; justify-content: center; }
.drawer .iconbtn:hover { background: rgba(27,75,84,.16); }
.drawer .formrow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .drawer .formrow { grid-template-columns: 1fr; } }
.drawer .fld { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.drawer .fld label { font-family: var(--font-display); font-weight: 700; color: var(--teal-ink); font-size: .92rem; }
.drawer .fld input, .drawer .fld select { padding: 10px 13px; border: 1.5px solid var(--line); border-radius: 9px; background: #fff; font-family: var(--font-body); font-size: .95rem; }
.drawer .fld input:focus, .drawer .fld select:focus { outline: none; border-color: var(--teal); }
.drawer .fld__err { color: var(--coral); font-weight: 700; font-size: .82rem; }
.drawer .abtn { display: inline-flex; align-items: center; gap: 7px; background: var(--teal); color: #fff; border: none; border-radius: 10px; padding: 11px 18px; font-family: var(--font-display); font-weight: 700; cursor: pointer; text-decoration: none; }
.drawer .abtn:hover { background: var(--teal-deep); }
.drawer .abtn--ghost { background: transparent; color: var(--teal-deep); box-shadow: inset 0 0 0 1.5px var(--line); }
.drawer .abtn--ghost:hover { background: rgba(27,75,84,.06); }
.drawer .abtn--sm { padding: 8px 13px; font-size: .9rem; }
.drawer .abtn--danger { color: var(--coral-dk); box-shadow: inset 0 0 0 1.5px #f0c8c0; background: transparent; }
.drawer .abtn--danger:hover { background: #fdecea; }
.drawer .rolehint { background: #eef4f5; border-radius: 10px; padding: 11px 14px; font-size: .86rem; color: var(--ink); margin-top: 4px; }
.drawer .resetbox { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #fdf6e7; border: 1.5px solid #f0d9a8; border-radius: 12px; padding: 14px 16px; }
.drawer .resetbox strong { display: block; font-family: var(--font-display); color: var(--teal-ink); }
.drawer .resetbox span { font-size: .85rem; color: var(--ink); }
.drawer .pill { font-family: var(--font-display); font-weight: 700; font-size: .76rem; padding: 3px 10px; border-radius: 20px; }
.drawer .pill--pub { background: #e3f3e6; color: var(--green-dk); }
.drawer .pill--sched { background: #e7eafb; color: #4a57b0; }
.drawer .pill--closed { background: #ece8e2; color: #8a7f6e; }
.drawer .panel { border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.drawer .panel__head { display: flex; justify-content: space-between; padding: 12px 14px; background: var(--card); border-bottom: 1px solid var(--line); }
.drawer .panel__head h2 { font-size: 1rem; }
.drawer .panel__body { padding: 14px; }
.drawer .tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.drawer .minitag { background: #efe6d0; color: var(--teal-ink); border-radius: 7px; padding: 3px 9px; font-size: .8rem; font-weight: 700; }

/* partner team rows (portal) */
.pteamrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--cream); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.pteamrow b { color: var(--teal-ink); font-family: var(--font-display); }
.pteamrow span { display: block; font-size: .82rem; color: var(--muted); }
.pteamrow__right { display: flex; align-items: center; gap: 8px; flex: none; }
.empty-portal b { display: block; font-family: var(--font-display); color: var(--teal-ink); font-size: 1.15rem; margin-bottom: 6px; }

/* withdraw */
.prole__actions { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin-top: 10px; }
.prole__view { background: none; border: none; color: var(--teal-deep); font-family: var(--font-display); font-weight: 700; font-size: .85rem; cursor: pointer; padding: 0; }
.prole__view:hover { color: var(--orange); text-decoration: underline; }
.prole__withdraw { background: none; border: none; color: var(--coral); font-weight: 700; font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; padding: 0; cursor: pointer; }
.prole__withdraw:hover { color: var(--coral-dk); }

/* onboarding checklist */
.onb__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.onb__ring { --pct: 0; flex: none; width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: conic-gradient(var(--green) calc(var(--pct) * 1%), #e7dcc4 0); }
.onb__ring span { width: 44px; height: 44px; border-radius: 50%; background: var(--card); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: .92rem; color: var(--teal-ink); }
.onb__list { display: flex; flex-direction: column; gap: 4px; }
.onb__item { display: flex; gap: 13px; align-items: flex-start; padding: 12px; border-radius: 12px; transition: background .12s ease; }
.onb__item:hover { background: var(--cream); }
.onb__item.done .onb__label { color: var(--muted); }
.onb__check { flex: none; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; margin-top: 1px; transition: all .14s ease; }
.onb__check:disabled { cursor: default; }
.onb__item.done .onb__check { background: var(--green); border-color: var(--green); }
.onb__check:not(:disabled):hover { border-color: var(--green); }
.onb__text { flex: 1; }
.onb__text--btn { background: none; border: none; text-align: left; cursor: pointer; font-family: inherit; padding: 0; width: 100%; }
.onb__more { font-family: var(--font-body); font-size: .76rem; font-weight: 700; color: var(--teal-deep); background: #e2eff1; border-radius: 20px; padding: 1px 8px; margin-left: 4px; }
.onb__text--btn:hover .onb__more { background: var(--teal); color: #fff; }
.onb__who-tag { font-family: var(--font-display); font-weight: 700; font-size: .82rem; color: var(--orange-dk); background: #fdeede; border-radius: 8px; padding: 5px 11px; display: inline-block; margin: 4px 0 12px; }
.onb__label { font-family: var(--font-display); font-weight: 700; color: var(--teal-ink); }
.onb__note { font-size: .82rem; color: var(--muted); margin-top: 2px; }
.onb__note em { font-style: normal; opacity: .85; }

/* log-hours modal */
.pmodal { position: fixed; inset: 0; z-index: 100; background: rgba(27,75,84,.55); backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; padding: 40px 18px; overflow-y: auto; }
.pmodal__card { background: var(--card); border-radius: 20px; box-shadow: var(--shadow-card); padding: 30px; width: 100%; max-width: 460px; }
.hourpick { display: flex; gap: 8px; }
.hourpick__btn { width: 48px; height: 46px; border: 1.5px solid var(--line); background: #fff; border-radius: 11px; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--teal-ink); }
.hourpick__btn:hover { border-color: var(--teal); }
.hourpick__btn.on { background: var(--teal); color: #fff; border-color: transparent; }
.hourpick__input { flex: 1; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 11px; font-size: 1rem; font-family: var(--font-body); }
.hourpick__input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(26,140,156,.16); }

/* ---------- shared opportunity detail modal ---------- */
.oppm { position: fixed; inset: 0; z-index: 110; background: rgba(27,75,84,.55); backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; padding: 38px 16px; overflow-y: auto; }
.oppm__card { background: var(--card); border-radius: 22px; box-shadow: 0 30px 70px -25px rgba(0,0,0,.55); width: 100%; max-width: 620px; overflow: hidden; }
.oppm__hero { position: relative; min-height: 150px; background: var(--teal); display: flex; align-items: flex-end; }
.oppm__hero--orange { background: var(--orange); } .oppm__hero--coral { background: var(--coral); }
.oppm__hero--green { background: var(--green); } .oppm__hero--gold { background: var(--gold); } .oppm__hero--teal { background: var(--teal); }
.oppm__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.oppm__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,0) 70%); z-index: 1; }
.oppm__herotext { position: relative; z-index: 2; padding: 22px 24px; color: #fff; width: 100%; }
.oppm__herotext h2 { color: #fff; font-size: 1.6rem; font-weight: 800; line-height: 1.12; margin: 0; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.oppm__org { color: rgba(255,255,255,.95); font-weight: 700; font-size: .95rem; margin-top: 4px; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.oppm__status { display: inline-block; background: rgba(255,255,255,.9); color: var(--teal-ink); font-family: var(--font-display); font-weight: 800; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; padding: 3px 10px; border-radius: 20px; margin-bottom: 8px; }
.oppm__close { position: absolute; top: 14px; right: 14px; z-index: 3; background: rgba(0,0,0,.28); border: none; color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 1.05rem; cursor: pointer; }
.oppm__close:hover { background: rgba(0,0,0,.42); }
.oppm__body { padding: 22px 24px 26px; }
.oppm__meta { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 16px; }
.oppm__metaitem { background: var(--cream); border-radius: 11px; padding: 9px 13px; font-weight: 700; color: var(--teal-ink); font-size: .92rem; }
.oppm__k { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 800; margin-bottom: 1px; }
.oppm__lede { font-size: 1.08rem; font-weight: 700; color: var(--teal-ink); line-height: 1.45; margin: 0 0 10px; }
.oppm__full { color: var(--ink); line-height: 1.6; margin: 0 0 8px; }
.oppm__sec { margin-top: 18px; padding-top: 16px; border-top: 1.5px dashed var(--line); }
.oppm__sec h3 { font-family: var(--font-display); font-weight: 800; color: var(--teal-ink); font-size: 1.08rem; margin: 0 0 10px; }
.oppm__tasks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.oppm__tasks li { display: flex; gap: 9px; align-items: flex-start; color: var(--ink); line-height: 1.45; }
.oppm__tick { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: #fff; font-size: .72rem; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.oppm__tags { display: flex; flex-wrap: wrap; gap: 7px; }
.oppm__tag { font-family: var(--font-display); font-weight: 700; font-size: .8rem; padding: 4px 11px; border-radius: 8px; color: #fff; background: var(--teal); }
.oppm__tag--soft { background: #efe6d0; color: var(--teal-ink); }
.oppm__fig { margin: 0 0 8px; } .oppm__fig img { width: 100%; max-height: 240px; object-fit: cover; border-radius: 12px; } .oppm__fig figcaption { font-size: .84rem; color: var(--muted); margin-top: 5px; }
.oppm__files { display: flex; flex-wrap: wrap; gap: 9px; }
.oppm__file { display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 13px; font-weight: 700; color: var(--teal-ink); text-decoration: none; }
.oppm__file:hover { border-color: var(--teal); }
.oppm__qs { margin: 0; padding-left: 18px; color: var(--ink); line-height: 1.6; }
.oppm__req { color: var(--coral); font-weight: 800; }
.oppm__foot { margin-top: 22px; }
.oppm__actions { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.oppm__share { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1.5px solid var(--line); color: var(--teal-deep); font-family: var(--font-display); font-weight: 700; padding: 13px 20px; border-radius: 12px; cursor: pointer; }
.oppm__share:hover { border-color: var(--teal); color: var(--orange); }
.oppm__share svg { width: 17px; height: 17px; }
@media (max-width: 560px) { .oppm { padding: 0; } .oppm__card { border-radius: 0; min-height: 100vh; max-width: none; } }

/* Portal tab bar: scroll horizontally instead of clipping tabs on narrow
   screens (desktop is unaffected — the tabs fit, so no scrollbar appears). */
.ptabs__in { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ptabs__in::-webkit-scrollbar { display: none; }
.ptab { flex: 0 0 auto; white-space: nowrap; }
