:root {
  --navy: #101d35; --navy-2: #1b2b4b; --blue: #2563eb; --blue-dark: #1d4ed8; --teal: #0f766e; --teal-dark: #115e59; --teal-light: #5eead4;
  --red: #b91c1c; --amber: #b45309; --ink: #1e293b; --muted: #526079; --line: #dbe3ee; --bg: #f4f7fb; --white: #fff;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
h1 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 0.35rem; color: var(--navy); }
h2 { font-size: 1.15rem; margin: 0 0 0.75rem; color: var(--navy); }
code { background: #e8eef7; padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.88em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); font-weight: 400; }
.mt { margin-top: 1.75rem; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--white); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 2.5rem; padding: 0.5rem 1rem; border: 1px solid var(--teal); border-radius: 8px; background: var(--teal); color: var(--white); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn--ghost { background: var(--white); color: var(--teal); border-color: #9fd8cf; }
.btn--ghost:hover { background: #effaf8; border-color: var(--teal); }
.btn--danger { background: var(--white); border-color: #e5a3a3; color: var(--red); }
.btn--danger:hover { background: #fdeaea; }
.btn--sm { min-height: 2rem; padding: 0.25rem 0.7rem; font-size: 0.875rem; }

/* Top bar */
.bar { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; padding: 0.6rem 1.25rem; background: var(--navy); color: var(--white); }
.bar__brand { display: flex; align-items: center; gap: 0.6rem; color: var(--white); font-weight: 700; text-decoration: none; }
.bar__brand img { border-radius: 6px; background: var(--white); }
.bar__toggle { display: none; margin-left: auto; background: transparent; color: var(--white); border: 1px solid #4b5c80; border-radius: 8px; padding: 0.35rem 0.8rem; font: inherit; }
.bar__nav { display: flex; flex-wrap: wrap; gap: 0.25rem; flex: 1; }
.bar__nav a { color: #cbd5e1; text-decoration: none; font-weight: 600; padding: 0.4rem 0.7rem; border-radius: 8px; }
.bar__nav a:hover { color: var(--white); background: var(--navy-2); }
.bar__nav a[aria-current="page"] { color: var(--white); background: var(--navy-2); box-shadow: inset 0 -2px 0 var(--teal-light); }
.bar__user { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; }
.bar__user .muted { color: #9fb0cc; }
.bar__user form { margin: 0; }

/* Layout */
.wrap { max-width: 1240px; margin: 0 auto; padding: 1.5rem 1rem 4rem; }
.page-head { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: flex-end; justify-content: space-between; margin-bottom: 1rem; }
.page-head h2 { margin: 0; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 1.5rem; }
.card__head { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: space-between; }
.grid-2 { display: grid; gap: 1rem 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-4 { display: grid; gap: 1rem 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.span-2 { grid-column: 1 / -1; }
.stack { display: grid; gap: 0.6rem; }
.narrow { max-width: 560px; }
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.actions form { margin: 0; }

/* Alerts */
.alert { padding: 0.75rem 1rem; border-radius: 8px; margin: 0 0 1rem; }
.alert ul { margin: 0.35rem 0 0; padding-left: 1.25rem; }
.alert--error { background: #fdeaea; color: var(--red); border: 1px solid #f3c2c2; }
.alert--ok { background: #e6f6f3; color: var(--teal); border: 1px solid #b6e4dc; }
.alert--info { background: #eaf1ff; color: var(--blue-dark); border: 1px solid #c8d8fb; }

/* Forms */
label { font-weight: 600; font-size: 0.9rem; }
input:not([type="checkbox"]), select, textarea { font: inherit; padding: 0.5rem 0.65rem; border: 1px solid #94a3b8; border-radius: 8px; background: var(--white); color: var(--ink); width: 100%; }
textarea { resize: vertical; line-height: 1.5; }
input[type="checkbox"] { width: 1.1rem; height: 1.1rem; vertical-align: -0.15em; margin-right: 0.4rem; accent-color: var(--blue); }
.form-grid { display: grid; gap: 1.5rem; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 800; color: var(--navy); font-size: 1.05rem; padding: 0; margin-bottom: 0.75rem; }
.form-grid fieldset + fieldset { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.field { display: grid; gap: 0.3rem; align-content: start; }
.field + .field, .field + .grid-2 { margin-top: 0.25rem; }
.field--check { align-content: end; padding-bottom: 0.6rem; }
.hint { margin: 0; font-size: 0.8125rem; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; margin: 0 0 1rem; }
.filters label { display: grid; gap: 0.25rem; }
.filters input { min-width: 240px; }

/* Auth pages */
.auth { min-height: 80vh; display: grid; place-items: center; }
.auth__card { width: min(100%, 420px); }
.auth__card h1 { margin-bottom: 0.5rem; }
.auth__card .btn { margin-top: 0.5rem; }

/* Dashboard */
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat { display: grid; gap: 0.15rem; padding: 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); }
.stat:hover { border-color: var(--blue); }
.stat--alert { border-color: #f5c46b; background: #fffaf0; }
.stat__value { font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.stat__label { color: var(--muted); font-size: 0.9rem; }
.list { list-style: none; margin: 0 0 0.75rem; padding: 0; }
.list li { padding: 0.55rem 0; border-bottom: 1px solid var(--line); }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); background: #f8fafd; }
tbody tr:last-child td { border-bottom: 0; }
tr.is-new td:first-child { box-shadow: inset 3px 0 0 var(--blue); }
.row-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: flex-end; align-items: flex-start; }
.row-actions form { margin: 0; }

/* Status pills */
.status, .pill { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.status--new, .status--draft { background: #e0e9ff; color: var(--blue-dark); }
.status--handled, .status--published { background: #e1f5ef; color: var(--teal); }
.status--closed { background: #eceff3; color: #475569; }
.pill { background: #e8eef7; color: var(--navy); }
.pill--star { background: #fff3d6; color: var(--amber); }

/* "More" dropdown */
.menu { position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu__list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 5; min-width: 250px; padding: 0.35rem; background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgb(16 29 53 / 0.15); }
.menu__list form { margin: 0; }
.menu__list button { display: block; width: 100%; padding: 0.5rem 0.7rem; border: 0; border-radius: 6px; background: none; font: inherit; text-align: left; color: var(--ink); cursor: pointer; }
.menu__list button:hover, .menu__list button:focus-visible { background: #eef3ff; }
.menu__list button.danger { color: var(--red); }
.menu__form { display: grid; gap: 0.3rem; padding: 0.5rem 0.7rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0.25rem 0; }
.menu__form label { font-size: 0.8rem; }
.menu__form textarea { font-size: 0.85rem; }
.menu__form button { padding: 0.4rem 0; }
.status--pending { background: #fff3d6; color: var(--amber); }
.status--rejected { background: #fdeaea; color: var(--red); }
.status--suspended { background: #fdeaea; color: var(--red); }
.status--active { background: #e1f5ef; color: var(--teal); }

/* Submission detail */
.details { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 0.5rem 1rem; margin: 1.25rem 0; }
.details dt { font-weight: 700; color: var(--navy); }
.details dd { margin: 0; overflow-wrap: anywhere; }
.pager { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 1rem; }
.pager a, .pager span { padding: 0.3rem 0.7rem; border: 1px solid var(--line); border-radius: 6px; background: var(--white); text-decoration: none; }
.pager span { background: var(--navy); color: var(--white); }

@media (max-width: 860px) {
  .bar__toggle { display: inline-block; }
  .bar__nav { display: none; flex-basis: 100%; flex-direction: column; }
  .bar__nav.is-open { display: flex; }
  .bar__user { flex-basis: 100%; justify-content: space-between; }
  .details { grid-template-columns: 1fr; }
  .details dd { margin-bottom: 0.5rem; }
  .filters input { min-width: 0; }
  .row-actions { justify-content: flex-start; }
}

/* ---------- Employer panel extras ---------- */
.bar__tag { font-weight: 500; color: var(--teal-light); }
.bar__nav--public { justify-content: flex-end; }
.lead { font-size: 1.1rem; color: var(--muted); }
.small { font-size: 0.875rem; margin: 0; }
.register { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1000px) { .register { grid-template-columns: 340px minmax(0, 1fr); } .register__intro { position: sticky; top: 1.5rem; } }
.ticks { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: 0.6rem; }
.ticks li { padding-left: 1.75rem; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: #e1f5ef; color: var(--teal); font-weight: 800; font-size: 0.8rem; display: grid; place-items: center; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; font-size: 0.92rem; }
.check input { margin-top: 0.2rem; flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.note { margin: 0.4rem 0 0; padding: 0.4rem 0.6rem; border-radius: 6px; background: #fdeaea; color: var(--red); font-size: 0.875rem; }
.empty { text-align: center; padding: 2.5rem 1.5rem; }
.empty h3 { margin: 0 0 0.5rem; color: var(--navy); }
.empty .btn { margin-top: 1rem; }
.notice-box { padding: 0.85rem 1rem; border-radius: 8px; background: #fffaf0; border: 1px solid #f5d79a; font-size: 0.92rem; }
.foot { max-width: 1240px; margin: 0 auto; padding: 0 1rem 2rem; color: var(--muted); font-size: 0.875rem; }
.btn--lg { min-height: 3rem; padding: 0.75rem 1.5rem; font-size: 1rem; }
