/* ==========================================================================
   MBGSWR — Milne Bay Graduate & Skilled Workforce Registry
   Design system: deep ocean navy + lagoon teal + warm gold. Maritime,
   institutional, trustworthy. Forms sit on clean white; page is soft mist.
   ========================================================================== */

:root {
  --ink:        #0B2540;   /* deep ocean navy — primary text / headers */
  --ink-soft:   #35506b;
  --lagoon:     #0E7C86;   /* Milne Bay lagoon teal — primary accent */
  --lagoon-deep:#0a5d65;
  --lagoon-tint:#e5f2f3;
  --gold:       #E0A33E;   /* warm PNG gold — highlights */
  --gold-deep:  #b9812a;
  --paper:      #F4F7F9;   /* soft mist — page background */
  --white:      #FFFFFF;   /* forms & cards */
  --line:       #dce4ea;
  --muted:      #6b7d8d;

  --ok:   #1f9d6b;
  --ok-bg:#e6f5ee;
  --warn: #c9791f;
  --warn-bg:#fbf0e0;
  --bad:  #cf4444;
  --bad-bg:#fbe8e8;
  --info-bg:#e5f2f3;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(11,37,64,.06), 0 8px 24px rgba(11,37,64,.06);
  --shadow-lg: 0 20px 60px rgba(11,37,64,.16);

  --display: "Fraunces", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.15; color: var(--ink); margin: 0 0 .4em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -.01em; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
a { color: var(--lagoon-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1rem; }

.mono { font-family: var(--mono); letter-spacing: -.02em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }

/* ---- Reference number: the official "credential" signature ---------------- */
.refno {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--lagoon-deep);
  background: var(--lagoon-tint);
  border: 1px solid #cfe6e8;
  padding: .12em .5em;
  border-radius: 6px;
  font-size: .82em;
  white-space: nowrap;
}

/* ==========================================================================
   Splash screen
   ========================================================================== */
#splash {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(120% 90% at 50% 0%, #0e3a5c 0%, #0B2540 60%, #071a2e 100%);
  color: #fff;
  transition: opacity .6s ease, visibility .6s ease;
}
#splash.hidden { opacity: 0; visibility: hidden; }
.splash-seal {
  width: 128px; height: 128px; margin-bottom: 26px;
  animation: seal-in .9s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes seal-in {
  0% { transform: scale(.6) rotate(-8deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.splash-title {
  font-family: var(--display); font-size: 1.7rem; letter-spacing: .01em;
  margin: 0; opacity: 0; animation: rise .7s ease .35s both;
}
.splash-sub {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .28em;
  text-transform: uppercase; color: var(--gold); margin-top: 10px;
  opacity: 0; animation: rise .7s ease .55s both;
}
@keyframes rise { from { transform: translateY(14px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.splash-bar {
  width: 190px; height: 3px; border-radius: 3px; margin-top: 34px;
  background: rgba(255,255,255,.15); overflow: hidden;
  opacity: 0; animation: rise .7s ease .75s both;
}
.splash-bar span {
  display: block; height: 100%; width: 40%;
  background: linear-gradient(90deg, var(--lagoon), var(--gold));
  border-radius: 3px; animation: load 1.6s ease-in-out infinite;
}
@keyframes load {
  0% { transform: translateX(-120%); }
  60% { transform: translateX(280%); }
  100% { transform: translateX(280%); }
}
@media (prefers-reduced-motion: reduce) {
  .splash-seal, .splash-title, .splash-sub, .splash-bar { animation: none; opacity: 1; }
  .splash-bar span { animation: none; width: 100%; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font: inherit; font-weight: 600; font-size: .92rem;
  padding: .62rem 1.15rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .08s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--lagoon); color: #fff; box-shadow: 0 6px 16px rgba(14,124,134,.28); }
.btn-primary:hover { background: var(--lagoon-deep); color: #fff; }
.btn-gold { background: var(--gold); color: #2a1c05; box-shadow: 0 6px 16px rgba(224,163,62,.32); }
.btn-gold:hover { background: var(--gold-deep); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--lagoon); color: var(--lagoon-deep); }
.btn-danger { background: var(--bad-bg); color: var(--bad); border-color: #f2c9c9; }
.btn-danger:hover { background: var(--bad); color: #fff; }
.btn-sm { padding: .4rem .75rem; font-size: .82rem; }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ==========================================================================
   Landing page
   ========================================================================== */
.top-public {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1rem, 5vw, 4rem);
  position: sticky; top: 0; z-index: 40;
  background: rgba(244,247,249,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.brand svg { flex: none; }
.brand small { display: block; font-family: var(--mono); font-size: .58rem; letter-spacing: .2em; color: var(--lagoon-deep); text-transform: uppercase; }

.hero {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 5vw, 4rem) clamp(4rem, 9vw, 7rem);
  background: linear-gradient(180deg, #0B2540 0%, #0e3a5c 100%);
  color: #eaf1f6;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; max-width: 1180px; margin: 0 auto; }
.hero h1 { color: #fff; }
.hero .eyebrow { font-family: var(--mono); font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.hero p.lead { font-size: 1.1rem; color: #c3d3df; max-width: 46ch; }
.hero-cta { display: flex; gap: .8rem; margin-top: 1.8rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.2rem; margin-top: 2.6rem; }
.hero-stats .n { font-family: var(--display); font-size: 2rem; color: #fff; }
.hero-stats .l { font-size: .8rem; color: #9fb4c4; letter-spacing: .02em; }

/* decorative horizon in hero */
.horizon { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; opacity: .5; }
.horizon svg { width: 100%; height: 100%; display: block; }

.section { max-width: 1180px; margin: 0 auto; padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 5vw, 4rem); }
.section-eyebrow { font-family: var(--mono); font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--lagoon-deep); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.feature .ic { width: 44px; height: 44px; border-radius: 11px; background: var(--lagoon-tint); display: grid; place-items: center; margin-bottom: 1rem; color: var(--lagoon-deep); }
.feature h3 { margin-bottom: .3rem; }
.feature p { color: var(--muted); font-size: .92rem; margin: 0; }

.role-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.role-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); border-top: 3px solid var(--lagoon); }
.role-card:nth-child(2) { border-top-color: var(--gold); }
.role-card:nth-child(3) { border-top-color: var(--ink); }
.role-card ul { margin: .8rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: .9rem; }
.role-card li { margin-bottom: .3rem; }

.footer { background: var(--ink); color: #9fb4c4; padding: 2.4rem clamp(1rem, 5vw, 4rem); text-align: center; font-size: .85rem; }
.footer strong { color: #fff; }

/* ==========================================================================
   Auth pages (login / register) — white card on misted split background
   ========================================================================== */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside {
  background: linear-gradient(160deg, #0B2540, #0e3a5c 70%, #0a5d65);
  color: #eaf1f6; padding: clamp(2rem, 5vw, 4rem); position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
}
.auth-aside h2 { color: #fff; font-size: 2rem; }
.auth-aside p { color: #b9cbd9; max-width: 40ch; }
.auth-aside .aside-list { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.auth-aside .aside-list li { padding: .5rem 0; display: flex; gap: .7rem; align-items: center; color: #d5e2ec; }
.auth-aside .aside-list li svg { flex: none; color: var(--gold); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 2rem; background: var(--paper); }
.auth-card {
  background: #fff; width: 100%; max-width: 460px; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: clamp(1.6rem, 4vw, 2.4rem);
}
.auth-card h1 { font-size: 1.7rem; margin-bottom: .2rem; }
.auth-card .sub { color: var(--muted); margin-bottom: 1.6rem; }
.auth-switch { text-align: center; margin-top: 1.2rem; font-size: .9rem; color: var(--muted); }

/* Role toggle on register */
.role-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: 1.3rem; }
.role-toggle label {
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .8rem;
  text-align: center; cursor: pointer; font-weight: 600; font-size: .9rem; transition: all .15s;
}
.role-toggle input { display: none; }
.role-toggle input:checked + span { color: var(--lagoon-deep); }
.role-toggle label:has(input:checked) { border-color: var(--lagoon); background: var(--lagoon-tint); }
.role-toggle small { display: block; font-weight: 400; color: var(--muted); margin-top: .2rem; }

/* ==========================================================================
   Forms
   ========================================================================== */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; color: var(--ink); }
.field label .req { color: var(--bad); }
.field .hint { font-size: .78rem; color: var(--muted); margin-top: .3rem; }
.input, .select, textarea.input {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: .68rem .8rem; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, textarea.input:focus {
  outline: none; border-color: var(--lagoon);
  box-shadow: 0 0 0 3px rgba(14,124,134,.14);
}
.input.invalid { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(207,68,68,.12); }
.field-error { color: var(--bad); font-size: .78rem; margin-top: .3rem; display: none; }
.field-error.show { display: block; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 1rem; }

/* password strength meter */
.pw-meter { height: 5px; border-radius: 4px; background: var(--line); margin-top: .5rem; overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; transition: width .25s, background .25s; border-radius: 4px; }

.checkbox-row { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--ink-soft); }
.checkbox-row input { width: 16px; height: 16px; accent-color: var(--lagoon); }

/* ==========================================================================
   App shell (authenticated area)
   ========================================================================== */
.shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--ink); color: #b9cbd9; padding: 1.4rem 1rem;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.sidebar .brand { color: #fff; margin-bottom: 1.8rem; padding: 0 .4rem; }
.sidebar .brand small { color: var(--gold); }
.nav-group-title { font-family: var(--mono); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: #5f7488; margin: 1.2rem .6rem .4rem; }
.nav-link {
  display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem;
  border-radius: 9px; color: #c3d3df; font-size: .9rem; font-weight: 500;
  margin-bottom: .15rem; transition: background .15s, color .15s;
}
.nav-link:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.nav-link.active { background: var(--lagoon); color: #fff; }
.nav-link svg { flex: none; opacity: .9; }
.nav-badge { margin-left: auto; background: var(--gold); color: #2a1c05; font-size: .68rem; font-weight: 700; border-radius: 10px; padding: 0 .45rem; min-width: 18px; text-align: center; }
.sidebar-foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.08); }

.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1.6rem; background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
}
.topbar .page-title { font-family: var(--display); font-size: 1.25rem; }
.topbar-right { display: flex; align-items: center; gap: 1rem; }
.icon-btn { position: relative; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--lagoon); color: var(--lagoon-deep); }
.icon-btn .dot { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); border: 2px solid #fff; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--lagoon); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.usermeta { font-size: .82rem; line-height: 1.2; }
.usermeta strong { display: block; }
.usermeta span { color: var(--muted); text-transform: capitalize; }

.content { padding: 1.8rem; max-width: 1180px; width: 100%; margin: 0 auto; }

/* ==========================================================================
   Cards, tables, stats
   ========================================================================== */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem; margin-bottom: 1.4rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; gap: 1rem; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; right: -18px; top: -18px; width: 60px; height: 60px; border-radius: 50%; background: var(--lagoon-tint); }
.stat .v { font-family: var(--display); font-size: 2rem; color: var(--ink); position: relative; }
.stat .k { font-size: .82rem; color: var(--muted); position: relative; }
.stat.gold::after { background: #f8ecd4; }
.stat.gold .v { color: var(--gold-deep); }

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th { text-align: left; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: .7rem .8rem; border-bottom: 2px solid var(--line); white-space: nowrap; }
table.data td { padding: .8rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:hover td { background: #fafcfd; }
table.data tr:last-child td { border-bottom: none; }

/* pills / badges */
.pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 600; padding: .22rem .6rem; border-radius: 20px; text-transform: capitalize; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.verified { background: var(--ok-bg); color: var(--ok); }
.pill.review { background: var(--warn-bg); color: var(--warn); }
.pill.pending { background: #eef1f4; color: var(--muted); }
.pill.rejected { background: var(--bad-bg); color: var(--bad); }
.pill.available { background: var(--ok-bg); color: var(--ok); }
.pill.employed { background: var(--info-bg); color: var(--lagoon-deep); }

/* progress */
.progress { height: 10px; border-radius: 6px; background: var(--line); overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--lagoon), var(--gold)); border-radius: 6px; transition: width .5s; }

/* checklist */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.checklist li:last-child { border-bottom: none; }
.check-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: .7rem; }
.check-dot.done { background: var(--ok-bg); color: var(--ok); }
.check-dot.todo { background: #eef1f4; color: var(--muted); }

/* candidate grid */
.cand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; }
.cand { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); transition: transform .12s, box-shadow .18s; }
.cand:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.cand .head { display: flex; gap: .8rem; align-items: center; margin-bottom: .8rem; }
.cand .ava { width: 46px; height: 46px; border-radius: 12px; background: var(--lagoon); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.cand .tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: .7rem 0; }
.tag { font-size: .74rem; background: var(--lagoon-tint); color: var(--lagoon-deep); padding: .2rem .55rem; border-radius: 6px; }

/* filter bar */
.filters { display: grid; grid-template-columns: 2fr repeat(4, 1fr) auto; gap: .7rem; align-items: end; }
.filters .field { margin-bottom: 0; }

/* flash messages */
.flashes { position: fixed; top: 1rem; right: 1rem; z-index: 9998; display: flex; flex-direction: column; gap: .6rem; max-width: 360px; }
.flash { background: #fff; border-radius: 10px; padding: .8rem 1rem; box-shadow: var(--shadow-lg); border-left: 4px solid var(--lagoon); font-size: .9rem; display: flex; align-items: flex-start; gap: .6rem; animation: slide-in .3s ease; }
.flash.success { border-left-color: var(--ok); }
.flash.danger { border-left-color: var(--bad); }
.flash.warning { border-left-color: var(--warn); }
.flash.info { border-left-color: var(--lagoon); }
.flash button { margin-left: auto; background: none; border: none; cursor: pointer; color: var(--muted); font-size: 1.1rem; line-height: 1; }
@keyframes slide-in { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* empty state */
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty svg { color: var(--line); margin-bottom: 1rem; }
.empty h3 { color: var(--ink-soft); }

/* mini bar chart (admin) */
.barchart { display: flex; flex-direction: column; gap: .6rem; }
.barrow { display: grid; grid-template-columns: 130px 1fr 40px; align-items: center; gap: .8rem; font-size: .85rem; }
.barrow .bar { height: 22px; background: var(--lagoon-tint); border-radius: 6px; overflow: hidden; }
.barrow .bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--lagoon), var(--lagoon-deep)); border-radius: 6px; }

.section-title { display: flex; align-items: center; gap: .6rem; margin: 1.8rem 0 1rem; }
.section-title h2 { margin: 0; font-size: 1.3rem; }
.divider { height: 1px; background: var(--line); margin: 1.2rem 0; }

.inline-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.tab-row { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.tab { padding: .5rem .9rem; border-radius: 8px; font-size: .86rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line); background: #fff; }
.tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab:hover { text-decoration: none; }

.doc-row { display: flex; align-items: center; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.doc-ic { width: 38px; height: 38px; border-radius: 9px; background: var(--lagoon-tint); color: var(--lagoon-deep); display: grid; place-items: center; flex: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .hero-grid, .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; z-index: 60; width: 250px; transform: translateX(-100%); transition: transform .25s; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: translateX(0); }
  .menu-toggle { display: grid !important; }
  .filters { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (min-width: 901px) { .menu-toggle { display: none; } }
@media (max-width: 560px) {
  .grid-2 { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 1.4rem; }
  .content { padding: 1.2rem; }
  .scrim { display: block; }
}
.scrim { display: none; position: fixed; inset: 0; background: rgba(11,37,64,.45); z-index: 55; }
.scrim.show { display: block; }

/* focus visibility for keyboard users */
:focus-visible { outline: 3px solid rgba(14,124,134,.5); outline-offset: 2px; border-radius: 4px; }

/* ---- reference-data multi-select chips (profile workforce fields) ---- */
.check-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:.5rem;margin-top:.3rem}
.check-chip{display:flex;align-items:center;gap:.5rem;padding:.5rem .7rem;border:1px solid var(--line);
  border-radius:10px;background:#fff;font-size:.86rem;font-weight:500;cursor:pointer;transition:border-color .15s,background .15s}
.check-chip:hover{border-color:var(--lagoon)}
.check-chip input{accent-color:var(--lagoon);width:16px;height:16px}
.check-chip:has(input:checked){border-color:var(--lagoon);background:var(--lagoon-tint)}
.brand-logo {
width: 74px;
height: 74px;
display: block;
flex-shrink: 0;
object-fit: contain;
border-radius: 50%;
}
