:root {
  --navy: #082d71;
  --navy-deep: #051c4a;
  --accent: #334fb4;
  --ink: #12141a;
  --muted: #5b6475;
  --line: #e6e9f0;
  --paper: #f6f7fb;
  --white: #fff;
  --danger: #b42318;
  --ok: #067647;
  --shadow: 0 18px 50px rgba(8, 45, 113, 0.12);
  --radius: 18px;
  --head: "Raleway", "Segoe UI", sans-serif;
  --body: "Raleway", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
button, input { font-family: inherit; }

.logo {
  height: 36px;
  width: auto;
  max-width: min(240px, 52vw);
  display: block;
  object-fit: contain;
}
.logo--light {
  filter: brightness(0) invert(1);
  height: 42px;
  max-width: min(320px, 70vw);
}

/* ——— Login ——— */
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}
.login-hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  min-height: 42vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px 48px 48px;
}
.login-hero img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.04);
}
.login-hero .veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(5, 28, 74, 0.88) 0%, rgba(8, 45, 113, 0.55) 48%, rgba(5, 28, 74, 0.35) 100%);
}
.login-hero .inner { position: relative; z-index: 1; max-width: 520px; }
.eyebrow {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.8;
  margin: 28px 0 14px;
}
.login-hero h1 {
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.05;
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
}
.login-hero p.lede {
  font-size: 17px;
  line-height: 1.55;
  max-width: 42ch;
  opacity: 0.92;
  margin: 0 0 28px;
}
.bullets { list-style: none; margin: 0; padding: 0; }
.bullets li {
  position: relative;
  padding: 10px 0 10px 52px;
  font-size: 15px;
  line-height: 1.45;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.bullets li:last-child { border-bottom: 1px solid rgba(255,255,255,0.14); }
.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 36px;
  height: 1px;
  background: #fff;
}
.login-hero .meta {
  position: relative;
  z-index: 1;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(51, 79, 180, 0.08), transparent 50%),
    var(--white);
}
.card {
  width: min(100%, 420px);
}
.card h2 {
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.03em;
  color: var(--navy);
  font-weight: 700;
}
.card .sub {
  margin: 8px 0 28px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 8px;
}
.field { margin-bottom: 18px; }
input[type="email"],
input[type="password"],
input[type="search"] {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(51, 79, 180, 0.12);
}
.btn {
  width: 100%;
  margin-top: 6px;
  padding: 14px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--navy-deep); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn .arrow { font-size: 18px; line-height: 1; }
.links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}
.links a { color: var(--navy); text-decoration: none; font-weight: 600; }
.links a:hover { text-decoration: underline; }
.msg { margin-top: 14px; font-size: 14px; min-height: 1.2em; }
.msg.err { color: var(--danger); }
.msg.ok { color: var(--ok); }
.fineprint {
  margin-top: 36px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; }
  .login-hero { min-height: 280px; padding: 24px; }
  .login-hero h1 { font-size: 32px; }
  .bullets { display: none; }
  .login-panel { padding: 32px 20px 48px; }
}

/* ——— App shell ——— */
.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.app-header .brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.app-header .brand .word {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  border-left: 1px solid var(--line);
  padding-left: 14px;
}
.app-header .right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.who {
  font-size: 13px;
  color: var(--muted);
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.signout {
  color: var(--navy);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.signout:hover { color: var(--danger); }

.mast {
  height: 140px;
  overflow: hidden;
  position: relative;
  background: var(--navy-deep);
}
.mast img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(0.7);
  opacity: 0.85;
}
.mast::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 45, 113, 0.45), transparent 55%);
}
.app-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 64px;
}
.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.page-head h1 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.page-head p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.toolbar input[type="search"] { width: min(280px, 100%); }
.seg {
  display: flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.seg button {
  border: 0;
  background: transparent;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
}
.seg button.on {
  background: var(--navy);
  color: #fff;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
}
.stat b { display: block; font-size: 26px; color: var(--navy); letter-spacing: -0.03em; }
.stat span { font-size: 12px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }

.cards {
  display: grid;
  gap: 14px;
}
.job {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: 0 8px 24px rgba(8, 45, 113, 0.04);
}
.job-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.job h2 {
  margin: 0;
  font-size: 18px;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.pill {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef1fb;
  color: var(--accent);
}
.meta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px 18px;
}
.meta dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 2px;
}
.meta dd { margin: 0; font-size: 14px; color: var(--ink); word-break: break-word; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.thumbs img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.table-wrap {
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
table.data {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
table.data th,
table.data td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  vertical-align: top;
}
table.data th {
  background: #f8f9fd;
  color: var(--navy);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: sticky;
  top: 0;
}
table.data tr:last-child td { border-bottom: 0; }
table.data img.cell-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
}

.state {
  text-align: center;
  padding: 64px 20px;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.state h2 { color: var(--navy); margin: 0 0 8px; }

@media (max-width: 700px) {
  .app-header { padding: 12px 16px; }
  .app-header .brand .word, .who { display: none; }
  .app-main { width: calc(100% - 24px); padding-top: 20px; }
  .page-head h1 { font-size: 26px; }
}
