:root{
  --bg:#07111b;
  --bg-2:#0b1524;
  --panel:rgba(10,18,32,.78);
  --line:rgba(255,255,255,.10);
  --line-2:rgba(255,255,255,.16);
  --text:#eef5ff;
  --muted:#9cb2c8;
  --soft:#7d95af;
  --teal:#22d3ee;
  --blue:#60a5fa;
  --violet:#a78bfa;
  --green:#34d399;
  --shadow:0 25px 60px rgba(0,0,0,.35);
  --max:1520px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body.careers-body{
  color:var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(34,211,238,.09), transparent 24%),
    radial-gradient(circle at 90% 8%, rgba(167,139,250,.10), transparent 28%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  overflow-x:hidden;
}

.careers-bg{
  position:fixed;
  inset:0;
  z-index:-1;
  overflow:hidden;
  pointer-events:none;
}
.grid-mask{
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size:34px 34px;
  opacity:.12;
}
.glow{
  position:absolute;
  border-radius:999px;
  filter:blur(90px);
  opacity:.25;
}
.glow-a{width:380px;height:380px;left:-80px;top:-60px;background:var(--teal)}
.glow-b{width:430px;height:430px;right:-120px;top:8%;background:var(--violet)}
.glow-c{width:340px;height:340px;left:18%;bottom:-120px;background:var(--blue)}

.careers-topbar{
  width:min(calc(100% - 32px), var(--max));
  margin:18px auto 0;
  padding:14px 18px;
  border-radius:26px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  border:1px solid var(--line);
  background:rgba(10,18,32,.82);
  box-shadow:var(--shadow);
}
.topbar-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.brand{
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
  color:inherit;
}
.brand-mark{
  width:46px;
  height:46px;
  border-radius:16px;
  background:linear-gradient(135deg, rgba(34,211,238,.95), rgba(96,165,250,.86) 48%, rgba(167,139,250,.88));
  box-shadow:0 8px 30px rgba(34,211,238,.20);
}
.brand-copy{
  display:flex;
  flex-direction:column;
}
.brand-copy strong{font-size:17px}
.brand-copy span{font-size:12px;color:var(--muted)}

.btn{
  appearance:none;
  border:none;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:42px;
  padding:0 16px;
  border-radius:14px;
  font:inherit;
  font-weight:800;
  transition:transform .16s ease;
}
.btn:hover{transform:translateY(-1px)}
.btn-primary{
  color:white;
  background:linear-gradient(135deg, rgba(34,211,238,.24), rgba(167,139,250,.22));
  border:1px solid rgba(34,211,238,.22);
}
.btn-secondary{
  color:var(--text);
  background:rgba(255,255,255,.05);
  border:1px solid var(--line);
}

.careers-shell{
  width:min(calc(100% - 32px), var(--max));
  margin:20px auto 30px;
  display:grid;
  gap:18px;
}

.glass{
  border:1px solid var(--line);
  background:var(--panel);
  box-shadow:var(--shadow);
  backdrop-filter:blur(18px);
}
.hero-card,.section-card{
  border-radius:30px;
  padding:24px;
}
.hero-badge{
  display:inline-flex;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  margin-bottom:18px;
}
.hero-card h1{
  margin:0 0 14px;
  font-size:clamp(36px,5vw,58px);
  line-height:1.02;
  letter-spacing:-.04em;
}
.hero-card p{
  margin:0;
  color:var(--muted);
  line-height:1.7;
  max-width:860px;
}
.hero-stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-top:20px;
}
.hero-stat{
  padding:16px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
}
.hero-stat span{
  display:block;
  font-size:12px;
  color:var(--soft);
  font-weight:900;
  text-transform:uppercase;
  margin-bottom:6px;
}
.hero-stat strong{font-size:18px}

.section-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:20px;
}
.section-head h2{
  margin:0 0 8px;
  font-size:clamp(30px,4vw,44px);
  line-height:1.04;
  letter-spacing:-.03em;
}
.section-head p{
  margin:0;
  color:var(--muted);
  line-height:1.65;
}
.eyebrow{
  margin-bottom:8px;
  font-size:11px;
  color:var(--soft);
  text-transform:uppercase;
  font-weight:900;
  letter-spacing:.08em;
}
.section-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.workspace-grid{
  display:grid;
  grid-template-columns:420px minmax(0,1fr);
  gap:16px;
}
.workspace-list,.workspace-preview{
  border-radius:24px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  overflow:hidden;
}
.list-head,.preview-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px 18px;
  border-bottom:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.02);
}
.list-head span{color:var(--soft);font-size:12px;font-weight:700}
.list-body{
  padding:14px;
  display:grid;
  gap:10px;
  max-height:760px;
  overflow:auto;
}
.preview-body{padding:18px}
.workspace-item{
  width:100%;
  padding:14px;
  border:none;
  border-radius:18px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.07);
  color:var(--text);
  text-align:left;
  cursor:pointer;
  transition:transform .16s ease, border-color .16s ease, background .16s ease;
}
.workspace-item:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.05);
  border-color:var(--line-2);
}
.workspace-item.selected{
  background:linear-gradient(135deg, rgba(34,211,238,.10), rgba(167,139,250,.12));
  border-color:rgba(34,211,238,.16);
}
.workspace-item-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.workspace-meta{
  margin-top:7px;
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}

.preview-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.preview-stack{
  display:grid;
  gap:14px;
  margin-top:14px;
}
.preview-section{
  padding:14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.07);
  background:rgba(255,255,255,.03);
}
.preview-label{
  margin-bottom:8px;
  font-size:12px;
  color:var(--soft);
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.preview-value{
  line-height:1.65;
  white-space:pre-wrap;
  word-break:break-word;
}

.form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.field{
  display:grid;
  gap:8px;
}
.field label{
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  color:var(--soft);
  letter-spacing:.06em;
}
.span-2{grid-column:1 / -1}
.input{
  width:100%;
  min-height:44px;
  padding:12px 13px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.045);
  color:var(--text);
  font:inherit;
  outline:none;
}
.input:focus{
  border-color:rgba(34,211,238,.32);
  box-shadow:0 0 0 3px rgba(34,211,238,.10);
}
.textarea{
  resize:vertical;
  min-height:120px;
}
.selected-job-banner{
  margin-bottom:18px;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid rgba(34,211,238,.20);
  background:linear-gradient(135deg, rgba(34,211,238,.10), rgba(167,139,250,.10));
  font-weight:800;
}
.apply-form{
  display:grid;
  gap:14px;
}
.consent-row{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  line-height:1.6;
}
.action-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.success-box{
  margin-top:18px;
  padding:18px;
  border-radius:18px;
  border:1px solid rgba(52,211,153,.24);
  background:rgba(52,211,153,.08);
}
.success-box h3{margin:0 0 8px}
.status-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:30px;
  padding:0 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
  text-transform:capitalize;
}
.status-pill::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:999px;
  background:rgba(255,255,255,.5);
}
.status-pill.published::before{background:var(--blue)}
.status-pill.future::before{background:var(--violet)}
.status-pill.draft::before{background:var(--soft)}

.empty-state{
  padding:20px;
  border-radius:16px;
  border:1px dashed rgba(255,255,255,.10);
  background:rgba(255,255,255,.02);
  color:var(--muted);
  text-align:center;
}
.toast{
  position:fixed;
  left:50%;
  bottom:18px;
  transform:translateX(-50%) translateY(18px);
  opacity:0;
  pointer-events:none;
  z-index:1500;
  padding:12px 16px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(10,18,32,.92);
  color:var(--text);
  box-shadow:var(--shadow);
  font-weight:900;
  transition:opacity .18s ease, transform .18s ease;
}
.toast.show{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}

@media (max-width:1040px){
  .workspace-grid{
    grid-template-columns:1fr;
  }
}
@media (max-width:760px){
  .careers-topbar{
    flex-direction:column;
    align-items:flex-start;
  }
  .hero-stats,
  .preview-grid,
  .form-grid{
    grid-template-columns:1fr;
  }
  .section-head,
  .list-head,
  .preview-head{
    flex-direction:column;
    align-items:flex-start;
  }
}