/* Passage — BGCSC employee lifecycle. Brand palette only (BGCSC app development standards). */
:root {
  --pb: #004B87; --bb: #0081C6; --gr: #84BD00; --pu: #492F92; --or: #FF8200; --gy: #53565A; --ink: #333333;
  --stone: #DCD7D6; --cream: #F5F0EF; --white: #FFFFFF; --red: #C8102E;
  --mint: #c8f0d8; --peach: #ffe3c2; --rose: #f9c9cf; --blush: #fde2dd; --lav: #e3d7f5; --sky: #cfe5f7; --sea: #cdefec; --warm: #e6e2df;
  --r: 12px; --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 14px rgba(0,75,135,.08);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: "Open Sans", Arial, Helvetica, sans-serif; color: var(--ink); background: var(--cream); font-size: 15px; line-height: 1.45; }
a { color: var(--pb); }
button, input, select, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--gy); }
.small { font-size: 13px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 8px 16px; background: var(--pb); color: #fff; min-height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; min-width: 0; }
.brand .logo { height: 34px; width: auto; }
.brand .div { width: 1px; height: 30px; background: rgba(255,255,255,.35); }
.brand .mark { width: 34px; height: 34px; border-radius: 9px; }
.brand .name { font-weight: 800; font-size: 19px; letter-spacing: .2px; }
.mc-home { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.14); color: #fff; text-decoration: none; }
.mc-home svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.who { font-size: 13px; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.stripe { display: flex; height: 4px; } .stripe i { flex: 1; } .stripe i:nth-child(1) { background: var(--bb); } .stripe i:nth-child(2) { background: var(--gr); } .stripe i:nth-child(3) { background: var(--pu); } .stripe i:nth-child(4) { background: var(--or); }

/* Language switcher (shared segmented control) */
.lang-seg { display: inline-flex; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; overflow: hidden; flex-shrink: 0; }
.lang-seg button { border: 0; background: transparent; color: #fff; padding: 4px 9px; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.lang-seg button.on { background: #fff; color: var(--pb); }
.lang-seg sup { font-size: 9px; margin-left: 1px; }

/* Shell */
.shell { display: flex; min-height: calc(100vh - 62px); }
.sidenav { width: 220px; flex-shrink: 0; padding: 14px 10px; background: #fff; border-right: 1px solid var(--stone); }
.sidenav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; cursor: pointer; margin-bottom: 2px; }
.sidenav a:hover { background: var(--cream); }
.sidenav a.active { background: #e6f0f8; color: var(--pb); }
.ico { width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ico svg { width: 19px; height: 19px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.t-pb { background: var(--pb); } .t-bb { background: var(--bb); } .t-gr { background: var(--gr); } .t-pu { background: var(--pu); } .t-or { background: var(--or); }
.main { flex: 1; min-width: 0; padding: 20px 22px 90px; }
.loading { padding: 40px; color: var(--gy); }

/* Page parts */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; margin-bottom: 14px; }
.page-head h1 { margin: 0; color: var(--pb); font-size: 24px; }
.page-head .sub { color: var(--gy); font-size: 14px; }
.page-head .grow { flex: 1; }
.card { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; border-top: 4px solid var(--bb); }
.card.pb { border-top-color: var(--pb); } .card.gr { border-top-color: var(--gr); } .card.pu { border-top-color: var(--pu); } .card.or { border-top-color: var(--or); }
.card h2 { margin: 0 0 10px; font-size: 17px; color: var(--pb); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 14px; }
.stat { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 14px; border-left: 5px solid var(--bb); cursor: pointer; }
.stat b { display: block; font-size: 28px; color: var(--pb); line-height: 1.1; }
.stat span { color: var(--gy); font-size: 13px; font-weight: 600; }
.stat.or { border-left-color: var(--or); } .stat.gr { border-left-color: var(--gr); } .stat.pu { border-left-color: var(--pu); }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; background: #fff; padding: 4px; border-radius: 999px; box-shadow: var(--shadow); margin-bottom: 12px; }
.tabs button { border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; font-weight: 700; color: var(--gy); cursor: pointer; white-space: nowrap; }
.tabs button.on { background: var(--pb); color: #fff; }
.tabs .n { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 5px; border-radius: 9px; background: var(--stone); color: var(--ink); font-size: 11px; }
.tabs button.on .n { background: rgba(255,255,255,.25); color: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--bb); background: var(--bb); color: #fff; border-radius: 10px; padding: 8px 14px; font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--pb); border-color: var(--pb); }
.btn.ghost { background: #fff; color: var(--pb); border-color: var(--stone); }
.btn.ghost:hover { border-color: var(--pb); }
.btn.light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn.or { background: var(--or); border-color: var(--or); }
.btn.sm { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: .55; cursor: default; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #eee; }
.list li:last-child { border-bottom: 0; }
.empty { color: var(--gy); padding: 18px 4px; }
.chip { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--cream); color: var(--ink); white-space: nowrap; }
.chip.or { background: #ffe3c2; } .chip.bb { background: var(--sky); } .chip.gr { background: var(--mint); } .chip.red { background: var(--rose); }
.banner { padding: 10px 14px; border-radius: 10px; background: #fff4d6; border: 1px solid #e0c060; margin-bottom: 12px; font-size: 14px; }
.search { padding: 8px 12px; border: 1px solid var(--stone); border-radius: 10px; background: #fff; min-width: 220px; }

/* Forms */
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px 16px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 4px; color: var(--ink); }
.field .hint { font-size: 12px; color: var(--gy); margin-top: 3px; }
.field input[type=text], .field input[type=email], .field input[type=date], .field input[type=url], .field select, .field textarea {
  width: 100%; padding: 9px 11px; border: 1px solid #c9c4c3; border-radius: 9px; background: #fff; }
.field textarea { min-height: 70px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--pb); box-shadow: 0 0 0 3px rgba(0,75,135,.18); }
.field.err input, .field.err select { border-color: var(--or); }
.field .req { color: var(--or); }
.checks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.checks label { font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.seg { display: inline-flex; flex-wrap: nowrap; border: 1px solid var(--stone); border-radius: 10px; overflow: hidden; background: #fff; max-width: 100%; }
.seg button { border: 0; background: transparent; padding: 7px 12px; font-weight: 700; cursor: pointer; white-space: nowrap; border-right: 1px solid var(--stone); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--pb); color: #fff; }
.picker { position: relative; }
.picker .opts { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; background: #fff; border: 1px solid var(--stone); border-radius: 9px; box-shadow: var(--shadow); max-height: 260px; overflow: auto; }
.picker .opts div { padding: 8px 11px; cursor: pointer; }
.picker .opts div:hover, .picker .opts div.on { background: #e6f0f8; }

/* Tracker grid (Sarah: one row per person, name frozen, soft pastel cells) */
.grid-wrap { overflow: auto; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); max-height: 70vh; }
table.grid { border-collapse: separate; border-spacing: 0; font-size: 13px; min-width: 100%; }
.grid th, .grid td { border-right: 1px solid #e8e4e3; border-bottom: 1px solid #e8e4e3; padding: 6px 8px; white-space: nowrap; text-align: left; }
.grid thead th { position: sticky; top: 0; background: var(--pb); color: #fff; z-index: 2; font-weight: 700; }
.grid .sticky { position: sticky; left: 0; background: #fff; z-index: 1; box-shadow: 2px 0 0 #e8e4e3; }
.grid thead .sticky { z-index: 3; background: var(--pb); }
.grid td.name a { font-weight: 700; cursor: pointer; text-decoration: none; }
.grid td.cell { cursor: default; }
.grid td.cell.edit { cursor: pointer; }
.grid td.cell.edit:hover { outline: 2px solid var(--bb); outline-offset: -2px; }
.grid td.off { background: repeating-linear-gradient(45deg, #faf8f8, #faf8f8 4px, #f2efee 4px, #f2efee 8px); color: transparent; }
.grid select.inline { border: 1px solid var(--pb); border-radius: 6px; padding: 2px 4px; font-size: 13px; background: #fff; }
.c-done { background: var(--mint); } .c-progress { background: var(--peach); } .c-problem { background: var(--rose); } .c-employed { background: var(--blush); }
.c-action { background: var(--lav); } .c-sent { background: var(--sky); } .c-notstarted { background: var(--sea); } .c-na { background: var(--warm); }
.legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; font-size: 12px; }
.legend span { padding: 2px 8px; border-radius: 6px; }

/* Join progress */
.prog { display: flex; align-items: center; gap: 6px; min-width: 120px; }
.prog .bar { flex: 1; height: 8px; border-radius: 4px; background: #eee; overflow: hidden; min-width: 60px; }
.prog .bar i { display: block; height: 100%; background: var(--gr); }
.prog small { font-size: 11px; color: var(--gy); white-space: nowrap; }
.overdue { color: #fff; background: var(--or); border-radius: 999px; padding: 1px 8px; font-size: 11px; font-weight: 800; }
.stage-h { margin: 14px 0 6px; font-size: 14px; color: var(--pb); text-transform: uppercase; letter-spacing: .4px; }
.task { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; padding: 8px 10px; border-radius: 9px; margin-bottom: 6px; border: 1px solid #eee; }
.task .meta { font-size: 12px; color: var(--gy); }
.ea-form { display: flex; gap: 6px; align-items: center; }
.ea-form input { width: 220px; max-width: 52vw; padding: 5px 8px; border-radius: 7px; border: 1px solid #c9c4c3; font: inherit; font-size: 13px; }
.task select { padding: 4px 6px; border-radius: 7px; border: 1px solid #c9c4c3; }

/* Modal + toast */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 30px 12px; overflow: auto; }
.modal-card { background: #fff; border-radius: 14px; width: min(860px, 100%); box-shadow: 0 10px 40px rgba(0,0,0,.25); border-top: 5px solid var(--pb); }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid #eee; }
.modal-head h3 { margin: 0; color: var(--pb); font-size: 18px; flex: 1; }
.modal-head .x { border: 0; background: transparent; font-size: 26px; line-height: 1; cursor: pointer; color: var(--gy); }
.modal-body { padding: 16px 18px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding-top: 14px; }
.toast { position: fixed; left: 50%; bottom: 86px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 60; max-width: 90vw; }
.toast.err { background: var(--red); }

/* Sign-in (BGCSC standard: blue panel left, white panel right) */
.si { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.si-left { background: var(--pb); color: #fff; padding: 48px 44px; display: flex; flex-direction: column; gap: 18px; position: relative; overflow: hidden; }
.si-left .logo { height: 46px; width: auto; align-self: flex-start; }
.si-left .app { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.si-left .app img { width: 64px; height: 64px; border-radius: 16px; }
.si-left .app b { font-size: 34px; font-weight: 800; display: block; }
.si-left .app span { font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; opacity: .85; }
.si-left h1 { font-size: 32px; line-height: 1.2; margin: 24px 0 0; }
.si-left p { font-size: 16px; opacity: .9; max-width: 520px; }
.si-left svg.waves { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 140px; }
.si-right { background: #fff; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.si-box { width: min(420px, 100%); }
.si-box h2 { color: var(--pb); font-size: 26px; margin: 14px 0 6px; }
.si-box .stripe { border-radius: 2px; overflow: hidden; width: 140px; }
.si-embed iframe { width: 100%; min-height: 420px; border: 0; }
.si-btn { width: 100%; min-height: 56px; font-size: 18px; border-radius: 14px; margin-top: 12px; }

/* Phones */
@media (max-width: 860px) {
  .brand .logo, .brand .div, .who { display: none; }
  .sidenav { position: fixed; z-index: 40; bottom: 0; left: 0; right: 0; width: auto; display: flex; justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--stone); overflow-x: auto; }
  .sidenav a { flex-direction: column; gap: 3px; font-size: 11px; padding: 4px 6px; margin: 0; min-width: 60px; }
  .sidenav a.active { background: transparent; }
  .main { padding: 14px 12px 100px; }
  .si { grid-template-columns: 1fr; }
  .si-left { padding: 28px 22px 120px; }
  .si-left h1 { font-size: 24px; }
  .page-head h1 { font-size: 21px; }
  .seg { overflow-x: auto; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; border-radius: 14px; }
  .brand .name { font-size: 17px; }
  .page-head .search { flex: 1; min-width: 0; }
  .lang-seg button { padding: 4px 6px; }
}

/* ---------- Passage forms (exit interview page + in-app re-hire) ---------- */
.btn.lg { padding: 12px 22px; font-size: 16px; border-radius: 12px; }
.pf-page { background: var(--cream); }
.pf-page .topbar .brand { pointer-events: none; }
.pf-progress { position: sticky; top: 58px; z-index: 20; height: 4px; background: rgba(0,75,135,.08); }
.pf-progress i { display: block; height: 100%; width: 0; background: var(--gr); transition: width .3s ease; }
.pf-wrap { max-width: 760px; margin: 0 auto; padding: 22px 16px 90px; }
.pf-card { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 20px 22px; margin-bottom: 16px; border-top: 4px solid var(--pb); }
.pf-card h1 { margin: 0 0 8px; color: var(--pb); font-size: 26px; line-height: 1.2; }
.pf-hero { border-top-color: var(--bb); } .pf-hero p { margin: 8px 0; } .pf-hi { font-weight: 700; }
.pf-msg { text-align: center; padding: 40px 24px; } .pf-msg.gr { border-top-color: var(--gr); } .pf-msg.or { border-top-color: var(--or); }
.pf-send { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-top-color: var(--gr); }
.pf-send p { margin: 0; flex: 1 1 260px; }
.pf-sec + .pf-sec { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--stone); }
.pf-sec h2 { margin: 0 0 14px; font-size: 18px; color: var(--pb); }
.pf-q { margin-bottom: 20px; }
.pf-q.bad .pf-label { color: var(--red); } .pf-q.bad .pf-in, .pf-q.bad .pf-choices { box-shadow: 0 0 0 2px rgba(200,16,46,.25); border-radius: 10px; }
.pf-label { display: flex; gap: 10px; align-items: baseline; font-weight: 700; margin-bottom: 8px; line-height: 1.35; }
.pf-n { flex: 0 0 auto; min-width: 24px; height: 24px; border-radius: 999px; background: #e6f0f8; color: var(--pb); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.pf-opt { margin-left: auto; flex: 0 0 auto; font-size: 11px; font-weight: 700; color: var(--gy); background: var(--cream); padding: 1px 8px; border-radius: 999px; }
.pf-follow { margin: -8px 0 20px 34px; padding: 12px 14px; background: #f3f8fc; border-left: 3px solid var(--bb); border-radius: 0 10px 10px 0; }
.pf-follow .pf-label { font-weight: 600; }
.pf-choices { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 34px; }
.pf-follow .pf-choices, .pf-follow .pf-in { margin-left: 0; }
.pf-choices.stack { flex-direction: column; align-items: stretch; }
.pf-choice { border: 1.5px solid var(--stone); background: #fff; color: var(--ink); border-radius: 10px; padding: 9px 14px; font-weight: 600; cursor: pointer; text-align: left; min-height: 42px; transition: background .12s, border-color .12s; }
.pf-choice:hover { border-color: var(--bb); }
.pf-choice.on { background: var(--pb); border-color: var(--pb); color: #fff; }
.pf-choice:focus-visible, .pf-in:focus { outline: 3px solid rgba(0,129,198,.35); outline-offset: 1px; }
.pf-choices.scale .pf-choice { flex: 1 1 0; text-align: center; min-width: 92px; }
.pf-in { display: block; width: calc(100% - 34px); margin-left: 34px; border: 1.5px solid var(--stone); border-radius: 10px; padding: 10px 12px; background: #fff; resize: vertical; line-height: 1.45; }
.pf-follow .pf-in { width: 100%; }
.pf-err { color: var(--red); font-size: 13px; font-weight: 600; margin: 4px 0 0 34px; min-height: 0; }
.pf-a { padding: 10px 0; border-bottom: 1px solid var(--cream); } .pf-a.pf-follow { margin: 0 0 0 18px; padding: 8px 12px; }
.pf-a.flag { background: #fff1f3; border-left: 3px solid var(--red); padding-left: 10px; }
.pf-alabel { font-size: 13px; color: var(--gy); font-weight: 600; } .pf-aval { white-space: pre-wrap; margin-top: 2px; }
/* Insights */
.ins-q { padding: 10px 0; border-bottom: 1px solid var(--cream); } .ins-q b { display: block; margin-bottom: 6px; font-weight: 600; }
.ins-row { display: grid; grid-template-columns: minmax(110px, 200px) 1fr 44px; gap: 8px; align-items: center; font-size: 13px; margin: 3px 0; }
.ins-bar { height: 12px; border-radius: 999px; background: var(--cream); overflow: hidden; } .ins-bar i { display: block; height: 100%; background: var(--bb); border-radius: 999px; }
.ins-bar.org i { background: var(--stone); }
/* Forms editor */
.fe-q { border: 1px solid var(--stone); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; background: #fff; }
.fe-q .fe-top { display: flex; gap: 8px; align-items: flex-start; }
.fe-q textarea { width: 100%; min-height: 44px; border: 1px solid var(--stone); border-radius: 8px; padding: 6px 8px; }
.fe-q .fe-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; margin-top: 8px; }
.fe-q label { font-size: 12px; color: var(--gy); font-weight: 600; display: block; }
.fe-q input[type=text], .fe-q select { width: 100%; border: 1px solid var(--stone); border-radius: 8px; padding: 6px 8px; background: #fff; }
.fe-sec { margin-bottom: 18px; } .fe-sec > input { font-weight: 700; color: var(--pb); font-size: 16px; border: 1px dashed var(--stone); border-radius: 8px; padding: 6px 8px; width: 100%; margin-bottom: 8px; }
.fe-tools { display: flex; flex-direction: column; gap: 4px; }
.fe-tools button { width: 30px; height: 28px; border: 1px solid var(--stone); background: #fff; border-radius: 6px; cursor: pointer; }
@media (max-width: 600px) {
  .pf-card { padding: 16px; } .pf-card h1 { font-size: 22px; }
  .pf-choices, .pf-in, .pf-err { padding-left: 0; margin-left: 0; } .pf-in { width: 100%; }
  .pf-follow { margin-left: 0; } .pf-choices.scale { flex-direction: column; } .pf-choices.scale .pf-choice { text-align: left; }
  .pf-send .btn { width: 100%; }
}
.pf-nonum .pf-choices, .pf-nonum .pf-in, .pf-nonum .pf-err { padding-left: 0; margin-left: 0; } .pf-nonum .pf-in { width: 100%; } .pf-nonum .pf-follow { margin-left: 0; }
@media print { .topbar, .stripe, .sidenav, .page-head .btn, .banner { display: none !important; } .main { padding: 0; } .card { box-shadow: none; } }
.pf-md { display: flex; gap: 8px; padding-left: 34px; } .pf-md .pf-in { width: auto; margin-left: 0; min-width: 110px; }
.pf-nonum .pf-md { padding-left: 0; } @media (max-width: 600px) { .pf-md { padding-left: 0; } }
