/* NexWork Global — design system for the five portals. One file, token driven. */
:root {
  --ink: #0B1530; --ink-2: #13224B; --ink-line: #24386E;
  --accent: #E8590C; --accent-strong: #C2410C; --accent-soft: #FFF0E6; --accent-bright: #FF7A2F;
  --bg: #F3F5F9; --surface: #FFFFFF; --surface-2: #F7F8FB; --line: #E3E7EF; --line-2: #D3D9E4;
  --text: #0B1530; --text-2: #3B4459; --muted: #5B6478;
  --green: #0E7A55; --green-soft: #E2F4EC; --red: #B42318; --red-soft: #FDECEA; --gold: #7A5200; --gold-soft: #FBF1DC; --blue: #2D5BD7; --blue-soft: #E9EEFC; --violet: #6D28D9; --violet-soft: #F0E8FF;
  --radius: 14px; --shadow: 0 1px 2px rgba(11,21,48,.05), 0 8px 24px -12px rgba(11,21,48,.18);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; --display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  color-scheme: light;
}
[data-portal="employer"] { --accent: #2563EB; --accent-strong: #1D4ED8; --accent-soft: #E6EEFF; --accent-bright: #60A5FA; --ink: #0A1E46; --ink-2: #102B60; --ink-line: #1F3F80; }
[data-portal="institution"] { --accent: #059669; --accent-strong: #047857; --accent-soft: #DFF6EC; --accent-bright: #34D399; --ink: #062A21; --ink-2: #0A3B2F; --ink-line: #165846; }
[data-portal="operations"] { --accent: #0891B2; --accent-strong: #0E7490; --accent-soft: #E0F5FA; --accent-bright: #22D3EE; --ink: #062530; --ink-2: #0A3644; --ink-line: #145466; }
[data-portal="admin"] { --accent: #7C3AED; --accent-strong: #6D28D9; --accent-soft: #F0E8FF; --accent-bright: #A78BFA; --ink: #1B1036; --ink-2: #28194E; --ink-line: #3D2B70; }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.5 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent-strong); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.01em; margin: 0; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }

/* ---------- App shell ---------- */
.shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--ink); color: #FFFFFF; display: flex; flex-direction: column; scrollbar-width: thin; scrollbar-color: var(--ink-line) transparent; }
.side-head { padding: 18px 18px 14px; display: flex; gap: 10px; align-items: center; border-bottom: 1px solid var(--ink-line); }
.logo { width: 36px; height: 36px; border-radius: 10px; background: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand b { font-family: var(--display); font-size: 16px; display: block; line-height: 1.1; }
.brand span { font-size: 11px; color: rgba(255,255,255,.6); }
.portal-chip { margin: 14px 14px 6px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid var(--ink-line); }
.portal-chip small { display: block; font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent-bright); font-weight: 700; }
.portal-chip b { font-size: 13px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav { padding: 6px 10px 18px; display: flex; flex-direction: column; gap: 1px; }
.nav-sec { font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255,255,255,.45); font-weight: 700; padding: 14px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: rgba(255,255,255,.78); text-decoration: none; font-size: 13px; }
.nav a:hover { background: rgba(255,255,255,.06); color: #FFFFFF; }
.nav a[aria-current="page"] { background: var(--accent); color: #FFFFFF; font-weight: 600; }
.nav a .n { width: 20px; font-size: 10px; font-weight: 700; opacity: .55; font-variant-numeric: tabular-nums; }
.nav a .badge { margin-left: auto; background: rgba(255,255,255,.18); border-radius: 999px; padding: 0 7px; font-size: 11px; font-weight: 700; }
.side-foot { margin-top: auto; padding: 12px 14px 16px; border-top: 1px solid var(--ink-line); display: flex; gap: 10px; align-items: center; }
.side-foot .who { min-width: 0; flex: 1; }
.side-foot .who b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot .who span { font-size: 11px; color: rgba(255,255,255,.6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; background: rgba(243,245,249,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: 10px max(16px, 2.2vw); display: flex; align-items: center; gap: 12px; }
.top .crumb { font-size: 12px; color: var(--muted); flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.page { padding: 22px max(16px, 2.2vw) 96px; display: flex; flex-direction: column; gap: 18px; max-width: 1360px; width: 100%; }
.page-head { display: flex; gap: 14px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; }
.page-head p { margin: 4px 0 0; color: var(--muted); max-width: 70ch; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.menu-btn { display: none; }
.mobile-bar { display: none; }

/* ---------- Components ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-weight: 600; font-size: 13px; white-space: nowrap; text-decoration: none; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.btn.primary:hover { background: var(--accent-strong); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.btn.danger { color: var(--red); border-color: #F3C7C2; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; position: relative; }
.icon-btn .dot { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 16px; }
.card h2 { font-size: 15px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.grid { display: grid; gap: 14px; }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.kpi { padding: 14px 16px; }
.kpi .v { font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .l { font-size: 12px; color: var(--muted); }
.kpi .s { font-size: 11px; color: var(--accent-strong); font-weight: 600; }
.two { display: grid; gap: 14px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.halves { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pill { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); text-transform: capitalize; }
.pill.green { background: var(--green-soft); color: var(--green); border-color: transparent; }
.pill.red { background: var(--red-soft); color: var(--red); border-color: transparent; }
.pill.gold { background: var(--gold-soft); color: var(--gold); border-color: transparent; }
.pill.blue { background: var(--blue-soft); color: var(--blue); border-color: transparent; }
.pill.violet { background: var(--violet-soft); color: var(--violet); border-color: transparent; }
.pill.accent { background: var(--accent-soft); color: var(--accent-strong); border-color: transparent; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.row { display: flex; gap: 10px; align-items: center; }
.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.list { display: flex; flex-direction: column; }
.list > * { padding: 12px 16px; border-top: 1px solid var(--line); }
.list > *:first-child { border-top: 0; }
.notice { padding: 12px 14px; border-radius: 12px; background: var(--gold-soft); color: #5C3D00; font-size: 13px; display: flex; gap: 10px; }
.notice.info { background: var(--blue-soft); color: #1E3A8A; }
.notice.ok { background: var(--green-soft); color: #0B4F38; }
.notice.err { background: var(--red-soft); color: #7F1D1D; }
.bar { height: 8px; border-radius: 8px; background: #E7EAF1; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); border-radius: 8px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 160px) minmax(0, 1fr) 56px; gap: 10px; align-items: center; font-size: 12px; padding: 5px 0; }
.hbar b { text-align: right; font-variant-numeric: tabular-nums; }

/* Tables */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.toolbar .search { flex: 1 1 220px; min-width: 180px; }
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); background: var(--surface-2); padding: 9px 12px; white-space: nowrap; border-bottom: 1px solid var(--line); position: sticky; top: 0; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid #EDF0F5; vertical-align: middle; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: #FAFBFD; }
.tbl td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl td .cell-actions { display: flex; gap: 6px; justify-content: flex-end; }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-size: 12px; color: var(--muted); }

/* Forms */
.input, select.input, textarea.input { width: 100%; min-width: 0; height: 38px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); padding: 0 12px; }
textarea.input { height: auto; padding: 10px 12px; resize: vertical; }
.input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.form { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form .full { grid-column: 1 / -1; }
.rows-ed { display: flex; flex-direction: column; gap: 10px; }
.rows-list { display: flex; flex-direction: column; gap: 10px; }
.rows-row { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.rows-cell { display: flex; flex-direction: column; gap: 5px; min-width: 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.rows-ed > [data-rows-add] { align-self: flex-start; }
@media (max-width: 760px) { .rows-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .rows-row .rows-name { grid-column: 1 / -1; } .rows-row .rows-rm { grid-column: 1 / -1; justify-self: start; } }
.form-sec { padding-top: 10px; margin-top: 2px; border-top: 1px solid var(--line); }
.form-sec:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.form-sec h3 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.form-sec p { margin: 4px 0 0; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 12px; font-weight: 600; color: var(--text-2); }
.field .help { font-size: 11px; color: var(--muted); }
.field .req { color: var(--red); }
.checks { display: flex; flex-wrap: wrap; gap: 6px; }
.checks label { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 500; background: var(--surface); cursor: pointer; }
.checks input { accent-color: var(--accent); }
.form-err { color: var(--red); font-size: 13px; font-weight: 600; min-height: 1em; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.switch-row input { width: 40px; height: 22px; accent-color: var(--accent); }

/* Overlays */
.overlay { position: fixed; inset: 0; background: rgba(11,21,48,.45); z-index: 60; display: flex; justify-content: flex-end; animation: fade .15s; }
.drawer { width: min(640px, 100%); height: 100%; background: var(--bg); display: flex; flex-direction: column; box-shadow: -20px 0 50px -20px rgba(0,0,0,.4); animation: slide .2s cubic-bezier(.2,.7,.2,1); }
.drawer-head { padding: 16px 18px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: flex-start; }
.drawer-head h2 { font-size: 18px; flex: 1; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.drawer-foot { padding: 12px 18px; background: var(--surface); border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.kv > div { background: var(--surface); padding: 10px 12px; min-width: 0; }
.kv span { display: block; font-size: 11px; color: var(--muted); }
.kv b { font-size: 13px; overflow-wrap: anywhere; }
.timeline { display: flex; flex-direction: column; gap: 10px; }
.timeline div { display: flex; gap: 10px; font-size: 12px; }
.timeline i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 6px; flex-shrink: 0; }
.toast-host { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: #FFFFFF; padding: 11px 16px; border-radius: 12px; font-size: 13px; font-weight: 600; box-shadow: 0 14px 30px -10px rgba(0,0,0,.5); max-width: min(560px, 92vw); animation: up .2s; }
.toast.err { background: #7F1D1D; }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; font-family: var(--display); }
.skeleton { background: linear-gradient(90deg, #EEF1F6 25%, #F7F8FB 37%, #EEF1F6 63%); background-size: 400% 100%; animation: sk 1.2s infinite; border-radius: 8px; height: 14px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(30px); opacity: .6; } }
@keyframes up { from { transform: translateY(8px); opacity: 0; } }

/* ---------- Home page (signed out): one screen, five portals ---------- */
body[data-portal="home"], body:has(.lg-page) { background: #070F24; }
.home1, .lg-page { min-height: 100vh; min-height: 100dvh; color: #FFFFFF; position: relative; overflow: hidden; display: flex; flex-direction: column;
  padding: calc(18px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px), 3.5vw) calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px), 3.5vw);
  background:
    radial-gradient(800px 480px at 88% -12%, rgba(232,89,12,.34), transparent 60%),
    radial-gradient(640px 460px at 108% 92%, rgba(37,99,235,.28), transparent 60%),
    radial-gradient(560px 420px at -12% 100%, rgba(5,150,105,.2), transparent 60%),
    linear-gradient(180deg, #070F24 0%, #0B1735 100%); }
.home1::before, .lg-page::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 25%, transparent 75%); mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 25%, transparent 75%); pointer-events: none; }
.home1 > *, .lg-page > * { position: relative; }
.h1-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: min(1200px, 100%); margin: 0 auto; }
.h-brand { display: inline-flex; align-items: center; gap: 10px; color: #FFFFFF; }
.h-brand .brand b { font-family: var(--display); font-size: 16px; display: block; line-height: 1.1; }
.h-brand .brand span { font-size: 11px; opacity: .62; }
.h1-trust { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: rgba(255,255,255,.7); }
.h1-main { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: clamp(22px, 4.5vh, 44px); width: min(1200px, 100%); margin: 0 auto; padding-block: 20px; }
.h1-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 12px; font-weight: 700; color: #FFD9BF; background: rgba(255,122,47,.12); border: 1px solid rgba(255,122,47,.32); padding: 7px 13px; border-radius: 999px; }
.h1-head h1 { font-size: clamp(30px, 4.6vw, 58px); line-height: 1.04; letter-spacing: -.045em; font-weight: 800; margin: 0; }
.h1-head h1 em { font-style: normal; background: linear-gradient(92deg, #FFB37D 0%, #FF7A2F 45%, #F5B6FF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h1-head p { margin: 0; color: rgba(255,255,255,.72); font-size: clamp(14.5px, 1.4vw, 17px); }
.h1-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.ptile { --pc: #E8590C; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; text-align: left; font: inherit; color: #FFFFFF; cursor: pointer;
  padding: 22px 20px 20px; min-height: clamp(190px, 30vh, 250px); border-radius: 22px; background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 60px -36px rgba(0,0,0,.8); transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease; animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
.ptile:nth-child(2) { animation-delay: .05s; } .ptile:nth-child(3) { animation-delay: .1s; } .ptile:nth-child(4) { animation-delay: .15s; } .ptile:nth-child(5) { animation-delay: .2s; }
.ptile::before { content: ""; position: absolute; width: 220px; height: 220px; right: -90px; top: -100px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--pc) 55%, transparent), transparent 70%); opacity: .55; transition: opacity .2s; pointer-events: none; }
.ptile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--pc); transform: scaleX(.18); transform-origin: left; transition: transform .25s ease; }
.ptile:hover, .ptile:focus-visible { transform: translateY(-6px); border-color: color-mix(in srgb, var(--pc) 70%, rgba(255,255,255,.2)); background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.05)); box-shadow: 0 40px 70px -34px color-mix(in srgb, var(--pc) 70%, #000); }
.ptile:hover::before { opacity: .9; } .ptile:hover::after { transform: scaleX(1); }
.pt-ic { width: 50px; height: 50px; border-radius: 16px; background: var(--pc); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 14px 28px -12px var(--pc), inset 0 1px 0 rgba(255,255,255,.3); }
.pt-txt { display: flex; flex-direction: column; gap: 6px; }
.pt-txt b { font-family: var(--display); font-size: 19px; letter-spacing: -.02em; line-height: 1.15; }
.pt-txt span { font-size: 13px; color: rgba(255,255,255,.7); line-height: 1.4; }
.ptile em { position: absolute; top: 20px; right: 18px; font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 3px 8px; }
.pt-go { margin-top: auto; width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); transition: background .2s, transform .2s; }
.ptile:hover .pt-go { background: var(--pc); border-color: var(--pc); transform: translateX(4px); }
.h1-more { align-self: center; background: none; border: 1px solid rgba(255,255,255,.25); color: #FFFFFF; border-radius: 999px; padding: 9px 16px; font: inherit; font-size: 13px; font-weight: 600; }
.h1-foot { width: min(1200px, 100%); margin: 0 auto; display: flex; gap: 8px 20px; flex-wrap: wrap; justify-content: center; font-size: 12px; color: rgba(255,255,255,.55); }
.h1-foot span { display: inline-flex; align-items: center; gap: 6px; }
.h1-foot a { color: rgba(255,255,255,.7); text-decoration: none; }

/* ---------- Portal login page: back link + login box only ---------- */
.lg-page { align-items: center; justify-content: center; gap: 18px; }
.lg-back { position: absolute; top: calc(18px + env(safe-area-inset-top, 0px)); left: max(16px, env(safe-area-inset-left, 0px), 3.5vw); display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 12px; border-radius: 12px; color: #FFFFFF; text-decoration: none; font-weight: 600; font-size: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: 2; }
.lg-back:hover { background: rgba(255,255,255,.14); }
.login { width: min(980px, 100%); display: grid; grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); border-radius: 28px; overflow: hidden; background: #FFFFFF; color: var(--text); box-shadow: 0 50px 100px -40px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.08); animation: pop .45s cubic-bezier(.2,.7,.2,1) both; }
.lg-side { position: relative; overflow: hidden; color: #FFFFFF; padding: clamp(26px, 3.4vw, 40px); display: flex; flex-direction: column; gap: 14px; background:
  radial-gradient(420px 320px at 110% -10%, color-mix(in srgb, var(--accent) 75%, transparent), transparent 62%),
  radial-gradient(360px 300px at -20% 110%, color-mix(in srgb, var(--accent-bright) 40%, transparent), transparent 60%),
  linear-gradient(160deg, var(--ink-2) 0%, var(--ink) 75%); }
.lg-badge { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; font-size: 13px; font-weight: 700; padding: 5px 14px 5px 5px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); }
.lg-badge i { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.lg-side h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.08; letter-spacing: -.035em; font-weight: 800; margin-top: 10px; }
.lg-side p { margin: 0; color: rgba(255,255,255,.74); font-size: 14.5px; line-height: 1.6; }
.lg-side ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 10px; }
.lg-side li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: rgba(255,255,255,.88); }
.lg-side li span { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--accent-bright) 22%, transparent); color: var(--accent-bright); border: 1px solid color-mix(in srgb, var(--accent-bright) 45%, transparent); }
.lg-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); display: flex; gap: 8px; align-items: center; font-size: 12px; color: rgba(255,255,255,.6); }
.lg-main { position: relative; display: flex; flex-direction: column; justify-content: center; padding: clamp(26px, 3.6vw, 44px); }
.login .auth-card { display: flex; flex-direction: column; gap: 16px; position: relative; }
.auth-card h2 { font-size: clamp(24px, 2.4vw, 28px); letter-spacing: -.03em; font-weight: 800; }
.ac-step { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .03em; color: var(--accent-strong); background: var(--accent-soft); padding: 6px 11px; border-radius: 999px; }
.ac-input { position: relative; }
.ac-input svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.ac-input .input { height: 52px; padding-left: 44px; font-size: 15px; border-radius: 14px; background: #FBFCFE; }
.ac-input .input:focus { background: #FFFFFF; outline: 2px solid var(--accent); outline-offset: 0; }
.ac-btn { height: 52px; border-radius: 14px; font-size: 15px; font-weight: 700; gap: 8px; background: linear-gradient(135deg, var(--accent-bright), var(--accent) 55%, var(--accent-strong)); border: 0; box-shadow: 0 14px 30px -14px var(--accent), inset 0 1px 0 rgba(255,255,255,.25); }
.ac-btn:hover { filter: brightness(1.05); }
.ac-btn:disabled { opacity: .6; cursor: progress; }
.auth-card .form { gap: 12px; }
.auth-card .form-err { margin: 0; min-height: 0; }
.auth-card .form-err:empty { display: none; }
.auth-card .field { gap: 7px; }
.otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; }
.otp input { height: 58px; text-align: center; font-family: var(--display); font-size: 26px; font-weight: 800; border: 1px solid var(--line-2); border-radius: 14px; width: 100%; background: #FBFCFE; caret-color: var(--accent); }
.otp input:focus { outline: 2px solid var(--accent); border-color: transparent; background: #FFFFFF; }
.auth-foot { font-size: 12px; color: var(--muted); text-align: center; margin: 2px 0 0; line-height: 1.5; }
.login .auth-card.swap > * { animation: fadein .28s ease both; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 70; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: 30px 0 60px -20px rgba(0,0,0,.5); }
  .menu-btn { display: inline-flex; }
  .h1-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h1-cards .ptile:last-child:nth-child(odd) { grid-column: span 2; }
  .login { grid-template-columns: minmax(0, 1fr); }
  .lg-side ul, .lg-side .lg-foot { display: none; }
  .lg-page { justify-content: flex-start; padding-top: calc(74px + env(safe-area-inset-top, 0px)); }
  .two, .halves { grid-template-columns: minmax(0, 1fr); }
  .mobile-bar { display: flex; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 40; background: var(--ink); border-radius: 18px; padding: 6px; justify-content: space-around; box-shadow: 0 14px 34px -12px rgba(0,0,0,.5); }
  .mobile-bar a, .mobile-bar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; color: rgba(255,255,255,.7); font-size: 10px; font-weight: 600; text-decoration: none; background: none; border: 0; border-radius: 12px; }
  .mobile-bar [aria-current="page"] { background: var(--accent); color: #FFFFFF; }
}
@media (max-width: 640px) {
  .h1-trust { display: none; }
  .h1-main { justify-content: flex-start; gap: 18px; padding-block: 16px 8px; }
  .h1-head { gap: 10px; }
  .h1-head h1 { font-size: 30px; }
  .h1-cards { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .h1-cards .ptile:last-child:nth-child(odd) { grid-column: auto; }
  .ptile { flex-direction: row; align-items: center; min-height: 0; padding: 14px; gap: 14px; border-radius: 18px; }
  .pt-ic { width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0; }
  .pt-txt { flex: 1; min-width: 0; gap: 2px; }
  .pt-txt b { font-size: 16px; }
  .pt-txt span { font-size: 12.5px; }
  .ptile em { position: static; order: 3; }
  .pt-go { margin-top: 0; width: 32px; height: 32px; flex-shrink: 0; order: 4; }
  .lg-side { padding: 22px; gap: 8px; }
  .lg-side h2 { font-size: 23px; margin-top: 6px; }
  .lg-side p { font-size: 13.5px; }
  .lg-main { padding: 22px; }
  .login { border-radius: 22px; }
  .otp { gap: 6px; }
  .otp input { height: 50px; font-size: 22px; }
  .otp { gap: 6px; }
  .otp input { height: 52px; font-size: 22px; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .kv { grid-template-columns: minmax(0, 1fr); }
  .page-head h1 { font-size: 21px; }
  .hbar { grid-template-columns: 90px minmax(0, 1fr) 44px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Candidate dashboard: spotlight, category tiles, eligible rail ---------- */
.spot { position: relative; overflow: hidden; border-radius: 22px; padding: 22px 22px 20px; color: #FFFFFF; display: flex; flex-direction: column; gap: 10px;
  background: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.2px) 0 0 / 14px 14px, linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%); box-shadow: 0 18px 40px -22px rgba(11,21,48,.6); }
.spot h2 { margin: 0; font: 700 22px/1.25 var(--display); text-wrap: balance; max-width: 34ch; }
.spot-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.spot-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--accent-bright); }
.spot-org { margin: 0; color: rgba(255,255,255,.78); display: flex; align-items: center; gap: 6px; }
.spot-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.spot-chips span { padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); font-size: 12.5px; font-weight: 600; }
.spot-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.spot-foot > span { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.75); }
.spot-btn { background: var(--accent-strong); border-color: transparent; color: #FFFFFF; font-weight: 700; padding: 11px 20px; border-radius: 14px; gap: 8px; }
.spot-btn:hover { background: var(--accent); }
.spot .dchip { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #FFFFFF; }
.spot .dchip span { color: var(--accent-bright); }

.ctiles { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ctile { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; border: 0; text-align: left; cursor: pointer; background: var(--t-bg); color: var(--t-fg); transition: transform .12s, box-shadow .12s; }
.ctile:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.ctile b { font: 700 16px/1.25 var(--display); }
.ctile span span { font-size: 13px; opacity: .85; }
.ctile-ic { width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.75); }
.tone-blue { --t-bg: #E6ECFD; --t-fg: #1E3FA8; }
.tone-accent { --t-bg: #FFE6D9; --t-fg: #9A3412; }
.tone-green { --t-bg: #DDF3E7; --t-fg: #0B5E41; }
.tone-gold { --t-bg: #FBEDCB; --t-fg: #6B4700; }
.tone-violet { --t-bg: #EEE5FF; --t-fg: #5B21B6; }
.tone-teal { --t-bg: #DCF3F7; --t-fg: #0E6377; }

.rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; margin-inline: -2px; }
.ecard { flex: 0 0 min(340px, 86%); scroll-snap-align: start; padding: 18px; display: flex; flex-direction: column; gap: 12px; border-radius: 20px; }
.ecard-head { display: flex; gap: 12px; align-items: flex-start; }
.ecard-title { font: 700 16px/1.3 var(--display); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.av { width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: #FFFFFF; font: 700 16px var(--display); }
.ecard-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.ecard-pay { font: 700 18px/1.25 var(--display); }
.ecard.more { flex-basis: 170px; align-items: center; justify-content: center; text-align: center; cursor: pointer; border: 1px dashed var(--line-2); background: var(--surface-2); }
.ecard .pill { display: inline-flex; align-items: center; gap: 5px; }
.dchip { display: inline-flex; flex-direction: column; align-items: center; min-width: 52px; padding: 6px 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); line-height: 1.1; flex-shrink: 0; }
.dchip span { font-size: 10.5px; font-weight: 800; letter-spacing: .8px; color: var(--accent-strong); }
.dchip b { font: 700 20px var(--display); }
.btn.icon-only { padding-inline: 9px; }
.btn.link { background: none; border-color: transparent; color: var(--accent-strong); font-weight: 700; }

@media (max-width: 900px) { .ctiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .ctile { padding: 13px; gap: 10px; } .ctile-ic { width: 40px; height: 40px; } .ctile b { font-size: 14.5px; } .spot h2 { font-size: 19px; } }
.ctile > .stack { min-width: 0; }
@media (max-width: 480px) { .ctiles { gap: 10px; } .ctile { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 14px; } .ctile-ic { width: 36px; height: 36px; border-radius: 11px; } .ctile b { font-size: 14.5px; } }

/* ---------- Candidate dashboard v2: sections ---------- */
#mod:has(.welcome) { display: flex; flex-direction: column; gap: 26px; }
.welcome { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 20px 22px; border-radius: 22px; border: 1px solid var(--line);
  background: radial-gradient(420px 220px at 100% 0%, var(--accent-soft), transparent 70%), var(--surface); }
.welcome h2 { margin: 0; font: 700 26px/1.2 var(--display); text-wrap: balance; }
.welcome p { margin: 0; color: var(--text-2); }
.welcome-k { font-size: 11px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; color: var(--accent-strong); }
.ring-wrap { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); text-decoration: none; max-width: 100%; }
.ring-wrap:hover { border-color: var(--line-2); }
.ring-wrap .small { color: var(--muted); }
.ring { --p: 0; width: 58px; height: 58px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--line) 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--surface-2); }
.ring b { position: relative; font: 700 14px var(--display); }

.dsec { display: flex; flex-direction: column; gap: 12px; }
.dsec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.dsec-h h2 { margin: 0; font: 700 19px/1.25 var(--display); }
.dsec-h p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }

.pipe { display: flex; align-items: flex-start; flex-wrap: wrap; padding: 18px 18px 14px; border-radius: 20px; row-gap: 14px; }
.pipe-step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; flex: 0 0 auto; min-width: 84px; }
.pipe-n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 700 17px var(--display); background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); margin-bottom: 4px; }
.pipe-step.on .pipe-n { background: var(--accent); border-color: var(--accent); color: #FFFFFF; box-shadow: 0 6px 16px -8px var(--accent); }
.pipe-step b { font-size: 13px; }
.pipe-step > span:last-child { font-size: 11.5px; color: var(--muted); }
.pipe-line { flex: 1 1 16px; height: 2px; background: var(--line); margin-top: 22px; min-width: 12px; }
.pipe-foot { flex: 1 0 100%; display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 12px; border-top: 1px dashed var(--line-2); font-size: 13px; color: var(--muted); }
.pipe-foot b { color: var(--text); }

.pcards { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pcard { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: box-shadow .12s, transform .12s; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.pcard-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--t-bg); color: var(--t-fg); margin-bottom: 8px; }
.pcard-n { font: 700 26px/1.1 var(--display); }
.pcard-l { font-weight: 600; font-size: 13.5px; }
.pcard-d { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.pcard-go { position: absolute; top: 16px; right: 16px; color: var(--muted); }
.warn { color: var(--red); font-weight: 600; }

.ccards { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ccard { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 20px; background: var(--t-bg); color: var(--t-fg); cursor: pointer; transition: transform .12s, box-shadow .12s; }
.ccard:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.ccard-head { display: flex; gap: 12px; align-items: flex-start; }
.ccard-head b { font: 700 17px/1.25 var(--display); }
.ccard-desc { font-size: 12.5px; opacity: .8; line-height: 1.4; }
.ccard-count { display: flex; flex-direction: column; align-items: flex-end; line-height: 1; }
.ccard-count b { font: 800 28px var(--display); }
.ccard-count span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; opacity: .75; margin-top: 3px; }
.ccard-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ccard-stats span { background: rgba(255,255,255,.7); border-radius: 12px; padding: 8px; font-size: 11.5px; line-height: 1.3; color: var(--text-2); }
.ccard-stats b { display: block; font: 700 17px var(--display); color: var(--t-fg); }
.ccard-stats .warn b { color: var(--red); }
.ccard-dl { margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.ccard-dl div { display: flex; gap: 10px; }
.ccard-dl dt { flex: 0 0 104px; opacity: .75; }
.ccard-dl dd { margin: 0; min-width: 0; color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.ccard-empty { margin: 0; font-size: 13px; color: var(--text-2); }
.ccard-go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px; }

@media (max-width: 1100px) { .ccards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  #mod:has(.welcome) { gap: 22px; }
  .welcome { padding: 16px; } .welcome h2 { font-size: 22px; } .ring-wrap { flex: 1 1 100%; }
  .ccards { grid-template-columns: minmax(0, 1fr); }
  .pipe { padding: 14px 10px 12px; } .pipe-step { min-width: 0; flex: 1 1 0; } .pipe-step > span:last-child { display: none; } .pipe-n { width: 38px; height: 38px; font-size: 15px; } .pipe-step b { font-size: 11.5px; }
  .pipe-line { flex: 0 1 8px; min-width: 4px; margin-top: 19px; }
  .pcard { padding: 14px; } .pcard-n { font-size: 22px; }
  .dsec-h h2 { font-size: 17px; }
}

/* ---------- Candidate header + category sections ---------- */
.top-cand { gap: 12px; padding-block: 12px; }
.hello-av { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--ink); color: #FFFFFF; font: 700 15px var(--display); box-shadow: 0 0 0 3px var(--accent-soft); }
.hello { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.hello b { font: 700 18px/1.25 var(--display); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hello b span { font-weight: 500; color: var(--text-2); }
@media (max-width: 400px) { .hello b { font-size: 16px; } }
.welcome-main { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.welcome-n { font: 800 40px/1 var(--display); color: var(--accent-strong); }
.csec-t { display: flex; align-items: center; gap: 12px; min-width: 0; }
.csec-ic { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; background: var(--t-bg); color: var(--t-fg); }
.csec-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.csec-facts span { padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); }
.csec-facts b { color: var(--text); }

/* ---------- Dashboard cards: same width as the spotlight, whole card opens details ---------- */
.rail { gap: 14px; padding-bottom: 4px; }
.rail .ecard { flex: 0 0 100%; cursor: pointer; scroll-snap-align: start; scroll-snap-stop: always; }
.rail .ecard.more { flex: 0 0 100%; min-height: 120px; }
.rail .ecard:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.rail .ecard:focus-visible, .spot:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 2px; }
.spot { cursor: pointer; }
.ecard-title { -webkit-line-clamp: 3; }
.rail-dots { display: flex; justify-content: center; gap: 6px; margin-top: -2px; }
.rail-dots span { width: 7px; height: 7px; border-radius: 999px; background: var(--line-2); cursor: pointer; transition: width .2s, background .2s; }
.rail-dots span.on { width: 20px; background: var(--accent); }

/* ---------- Posting detail page ---------- */
.sheet-ov { justify-content: flex-end; }
.jsheet { width: min(760px, 100%); height: 100%; background: var(--bg); display: flex; flex-direction: column; box-shadow: -20px 0 50px -20px rgba(0,0,0,.45); animation: slide .2s cubic-bezier(.2,.7,.2,1); overflow: hidden; }
.jd-hero { position: relative; flex-shrink: 0; color: #FFFFFF; padding: calc(18px + env(safe-area-inset-top, 0px)) 20px 20px; display: flex; flex-direction: column; gap: 12px; border-radius: 0 0 28px 28px;
  background: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.2px) 0 0 / 14px 14px, linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%); }
.jd-x { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; width: 38px; height: 38px; border-radius: 12px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #FFFFFF; display: grid; place-items: center; cursor: pointer; }
.jd-id { display: flex; gap: 14px; align-items: center; padding-right: 44px; }
.av.lg { width: 58px; height: 58px; border-radius: 16px; font-size: 20px; box-shadow: 0 0 0 2px rgba(255,255,255,.15); }
.jd-meta { display: block; font-size: 13px; color: rgba(255,255,255,.7); }
.jd-hero h2 { margin: 2px 0 0; font: 700 24px/1.2 var(--display); text-wrap: balance; }
.jd-loc { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.8); font-size: 14px; }
.jd-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.jd-stats div { padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); min-width: 0; }
.jd-stats span { display: block; font-size: 12px; color: rgba(255,255,255,.65); }
.jd-stats b { display: block; font: 700 15px/1.3 var(--display); overflow-wrap: break-word; }
.jd-stats small { display: block; font-size: 11.5px; color: rgba(255,255,255,.65); }
.jd-tabs { display: flex; gap: 4px; overflow-x: auto; flex-shrink: 0; border-bottom: 1px solid var(--line); padding: 0 12px; background: var(--bg); scrollbar-width: none; }
.jd-tabs button { position: relative; flex-shrink: 0; padding: 14px 12px; border: 0; background: none; font-weight: 600; font-size: 14.5px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.jd-tabs button[aria-selected="true"] { color: var(--text); }
.jd-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px; background: var(--accent); }
.jd-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); vertical-align: middle; margin-left: 4px; }
.jd-body { flex: 1; overflow-y: auto; padding: 18px 20px 24px; }
.jd-body [data-panel] { display: flex; flex-direction: column; gap: 22px; }
.jd-body [data-panel][hidden] { display: none; }
.jd-body h3 { margin: 0 0 10px; font: 700 18px/1.3 var(--display); }
.jd-p { margin: 0; color: var(--text-2); line-height: 1.6; white-space: pre-line; }
.jd-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.jd-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.jd-tile-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); margin-bottom: 8px; }
.jd-tile > span:not(.jd-tile-ic) { font-size: 12.5px; color: var(--muted); }
.jd-tile b { font-size: 14px; overflow-wrap: anywhere; }
.jd-rows { border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); padding: 4px 16px; }
.jd-rows div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--line-2); }
.jd-rows div:last-child { border-bottom: 0; }
.jd-rows span { color: var(--text-2); }
.jd-rows b { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.jd-elig { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; }
.jd-elig.ok { background: var(--green-soft); color: var(--green); } .jd-elig.no { background: var(--red-soft); color: var(--red); }
.jd-elig b { display: block; font-size: 15px; } .jd-elig span { font-size: 13px; color: var(--text-2); }
.jd-checks { display: flex; flex-direction: column; gap: 8px; }
.jd-checks > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--green); }
.jd-checks > div.no { border-left-color: var(--red); }
.jd-checks span { font-weight: 600; } .jd-checks em { grid-column: 1; font-style: normal; font-size: 12.5px; color: var(--muted); }
.jd-checks b { grid-column: 2; grid-row: 1 / span 2; align-self: center; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--green); text-align: right; }
.jd-checks .no b { color: var(--red); }
.jd-pipe { display: flex; gap: 6px; flex-wrap: wrap; }
.jd-pipe span { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.jd-pipe span.on { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.jd-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; counter-reset: st; }
.jd-steps li { position: relative; padding: 0 0 18px 44px; display: flex; flex-direction: column; counter-increment: st; }
.jd-steps li::before { content: counter(st); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #FFFFFF; font: 700 13px var(--display); }
.jd-steps li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 30px; bottom: 2px; width: 2px; background: var(--line-2); }
.jd-steps span { font-size: 13px; color: var(--muted); }
.jd-venue { display: flex; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.jd-venue div { display: flex; flex-direction: column; gap: 2px; } .jd-venue span { font-size: 13px; color: var(--muted); }
.jd-docs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.jd-docs li { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.jd-bar { flex-shrink: 0; display: flex; gap: 12px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line); }
.jd-save { width: 56px; height: 52px; flex-shrink: 0; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); display: grid; place-items: center; cursor: pointer; }
.jd-save.on { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.jd-main { flex: 1; height: 52px; border-radius: 16px; font-size: 15.5px; font-weight: 700; gap: 8px; white-space: normal; text-align: center; line-height: 1.2; }
.jd-main.jd-block { background: var(--blue-soft); border-color: transparent; color: var(--ink); opacity: 1; cursor: not-allowed; }
.jd-main.jd-ghost { background: var(--surface-2); }
.jd-main.danger { color: var(--red); }
@media (max-width: 640px) {
  .jsheet { width: 100%; box-shadow: none; }
  .jd-hero { padding-inline: 16px; } .jd-hero h2 { font-size: 22px; }
  .jd-body { padding-inline: 16px; } .jd-bar { padding-inline: 16px; }
  .jd-stats { gap: 8px; } .jd-stats div { padding: 9px 10px; } .jd-stats b { font-size: 14px; }
  .jd-tiles { gap: 8px; } .jd-tile { padding: 12px; }
}

/* ---------- Posting form: selection process editor ---------- */
.rounds-ed { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.rounds-h { display: flex; flex-direction: column; gap: 2px; } .rounds-h span { font-size: 12.5px; color: var(--muted); }
.rounds-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rounds-list li { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.rounds-top { display: flex; align-items: center; gap: 6px; } .rounds-top .input { flex: 1; min-width: 0; font-weight: 600; }
.rounds-top .icon-btn { width: 34px; height: 34px; flex-shrink: 0; font-size: 14px; }
.rounds-top .icon-btn:disabled { opacity: .35; cursor: default; }
.rounds-n { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--ink); color: #FFFFFF; font: 700 12.5px var(--display); }
.rounds-more { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rounds-empty { margin: 0; font-size: 13px; color: var(--muted); }
.rounds-add { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip-btn { padding: 6px 12px; border-radius: 999px; border: 1px dashed var(--line-2); background: var(--surface); font-size: 12.5px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.chip-btn:hover { border-style: solid; color: var(--text); } .chip-btn:disabled { opacity: .4; cursor: default; }
@media (max-width: 480px) { .rounds-more { grid-template-columns: minmax(0, 1fr); } }
.benefits-ed { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.benefits-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.benefit-row { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.benefit-row.on { border-color: var(--accent); }
@media (max-width: 560px) { .benefits-list { grid-template-columns: minmax(0, 1fr); } }
.jd-body h4 { margin: 16px 0 8px; font: 700 14.5px/1.3 var(--display); color: var(--text); }
.jd-body section > .jd-rows + h4, .jd-body section > h3 + h4 { margin-top: 12px; }
.jd-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--text-2); line-height: 1.5; }
.jd-list li::marker { color: var(--accent); }
.jd-chips { display: flex; flex-wrap: wrap; gap: 6px; } .jd-chips span { padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.jd-co { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.jd-co > div { display: flex; flex-direction: column; } .jd-co span:not(.av) { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--green); }
.jd-body section .jd-p + .jd-rows { margin-top: 12px; }

/* ---------- Lists as cards on phones and in the Android app (core table() switches at 760px) ---------- */
.rcards { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
.rcard { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(11,21,48,.04); }
.rcard.click { cursor: pointer; padding-right: 38px; }
.rcard.click:active { background: var(--surface-2); }
.rcard:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 2px; }
.rcard-head { display: flex; align-items: flex-start; gap: 10px; }
.rcard-title { flex: 1; min-width: 0; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.rcard-title b, .rcard-title strong { font-size: 15px; }
.rcard-status { flex-shrink: 0; }
.rcard-dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 14px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.rcard-dl div { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.rcard-dl dt { font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); }
.rcard-dl dd { margin: 0; font-size: 13.5px; overflow-wrap: anywhere; }
.rcard-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rcard-actions .btn { flex: 1 1 auto; min-height: 40px; }
.rcard-go { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
@media (max-width: 760px) {
  .toolbar { flex-wrap: wrap; gap: 8px; }
  .toolbar .input.search { flex: 1 1 100%; width: 100%; }
  .toolbar select.input { flex: 1 1 calc(50% - 4px); min-width: 0; width: auto !important; }
  .toolbar > span[style*="flex:1"] { display: none; }
  .toolbar .btn { flex: 1 1 auto; }
  .pager { flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 380px) { .rcard-dl { grid-template-columns: minmax(0, 1fr); } }
.rcard.total { background: var(--surface-2); border-style: dashed; }
.rcard-note { margin: 0; padding: 4px 4px 0; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) {
  .card:has(.rcards) { background: none; border: 0; box-shadow: none; }
  .card:has(.rcards) .rcards { padding: 0; }
  .card:has(.rcards) > .card-head { padding-inline: 2px; border-bottom: 0; }
  .card:has(.rcards) > .toolbar { padding: 0 0 12px; border-bottom: 0; }
  .card:has(.rcards) > .pager { padding-inline: 2px; }
}
.rcard-dl dd::first-letter, .rcard-title > span:first-child::first-letter { text-transform: uppercase; }
/* Sidebar: the module list scrolls on its own so the account and Log out stay pinned at the bottom (header has no Log out) */
.side { overflow: hidden; }
.side .nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--ink-line) transparent; }
.side-foot { flex-shrink: 0; }

/* ---------- Spotlight card v2: compact, aligned like the other cards ---------- */
.spot { gap: 14px; padding: 18px; border-radius: 22px; }
.spot-tag { font-size: 11px; letter-spacing: .9px; }
.spot-head { display: flex; align-items: center; gap: 12px; }
.spot-av { width: 48px; height: 48px; border-radius: 14px; font-size: 16px; box-shadow: 0 0 0 2px rgba(255,255,255,.14); }
.spot-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.spot-name h2 { margin: 0; font: 700 19px/1.25 var(--display); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.spot-name span { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; color: rgba(255,255,255,.72); }
.spot .dchip { min-width: 52px; }
.spot-loc { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: rgba(255,255,255,.78); min-width: 0; }
.spot-loc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spot-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 0; padding-top: 14px; border-top: 1px dashed rgba(255,255,255,.18); flex-wrap: nowrap; }
.spot-pay { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.spot-pay b { font: 700 18px/1.2 var(--display); color: #FFFFFF; }
.spot-pay span { font-size: 12.5px; color: rgba(255,255,255,.65); }
.spot-btn { flex-shrink: 0; padding: 10px 16px; border-radius: 12px; font-size: 14px; }
.spot-chips, .spot-top, .spot-org { display: none; }

/* Employer: campus placement request cards */
.creq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.creq { display: flex; flex-direction: column; gap: 12px; padding: 16px; text-align: left; cursor: pointer; font: inherit; color: inherit; width: 100%; transition: border-color .15s, box-shadow .15s; }
.creq:hover, .creq:focus-visible { border-color: var(--accent); box-shadow: 0 8px 24px -16px var(--accent); }
.creq-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.creq-inst { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.creq-inst b { font: 700 16px/1.3 var(--display); }
.creq-tick { color: var(--green); font-size: 13px; }
.creq-progs { list-style: none; margin: 0; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; background: var(--surface-2); border-radius: 12px; }
.creq-progs li { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; min-width: 0; }
.creq-progs li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.creq-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--text-2); }
.creq-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.creq-foot span { display: inline-flex; align-items: center; gap: 4px; }
.chip-btn.on { border-style: solid; border-color: var(--accent); color: var(--accent-strong); background: var(--accent-soft); }
