/* Base: the Project7825 homepage styles (../project-website/public/style.css), so the job board matches it. */
:root {
  --ink: #0B0D1A;
  --paper: #F5F3EE;
  --cobalt: #3D6BFF;
  --cobalt-hi: #5A82FF;
  --slate: #1A1E33;
  --mist: #9AA0B8;
  --yolk: #FFD23F;
  --line: rgba(11, 13, 26, .1);
  --card: #FFFFFF;
  --text: #2B2F45;
  --muted: #5F6680;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 16px/1.6 'Rubik', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
.disp { font-weight: 800; letter-spacing: -.03em; line-height: 1.02; }
.word { font-weight: 700; letter-spacing: -.035em; font-size: 22px; line-height: 1; white-space: nowrap; }
.word b { color: var(--cobalt); font-weight: 700; }
.lab { font-weight: 500; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 20px; border-radius: 6px;
  font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn-cobalt { background: var(--cobalt); color: #fff; box-shadow: 0 3px 0 #2447C4; }
.btn-cobalt:hover { background: var(--cobalt-hi); transform: translateY(-1px); box-shadow: 0 4px 0 #2447C4; }
.btn-cobalt:active { transform: translateY(2px); box-shadow: 0 1px 0 #2447C4; }
.btn-ghost { border: 2px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--cobalt); color: var(--cobalt); }
.btn-lg { height: 54px; padding: 0 30px; font-size: 17px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 13, 26, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  color: var(--paper);
}
.nav-in { display: flex; align-items: center; gap: 36px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; }
.nav-links { display: flex; gap: 4px; margin-right: auto; }
.nav-links a { padding: 8px 14px; border-radius: 6px; font-weight: 500; color: #C9CCDA; transition: background .15s, color .15s; }
.nav-links a:hover { background: var(--slate); color: #fff; }
.nav-cta { height: 40px; padding: 0 16px; font-size: 14px; }

/* Announcement strip: the page's one Yolk moment */
.strip { background: var(--yolk); color: var(--ink); font-weight: 700; font-size: 15px; }
.strip-in { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 40px; padding-block: 6px; text-align: center; }
.strip-btn { white-space: nowrap; background: var(--ink); color: var(--yolk); padding: 3px 12px; border-radius: 4px; font-size: 13px; }
.strip-btn:hover { background: var(--slate); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); text-align: center; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 50% 38%, rgba(61, 107, 255, .32), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 40px 40px;
  -webkit-mask-image: linear-gradient(#000 60%, transparent);
          mask-image: linear-gradient(#000 60%, transparent);
}
.hero-in { position: relative; display: flex; flex-direction: column; align-items: center; padding-top: 72px; padding-bottom: 190px; }
.hero-mark { width: 84px; height: auto; margin-bottom: 26px; filter: drop-shadow(0 10px 30px rgba(61, 107, 255, .45)); animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.hero h1 { font-size: clamp(40px, 7vw, 80px); margin: 16px 0 20px; }
.hero h1 .c { color: var(--cobalt); }
.hero-sub { font-size: clamp(17px, 2vw, 20px); color: var(--mist); max-width: 540px; }

.stats { display: flex; gap: 0; margin: 40px 0 36px; }
.stats div { display: flex; flex-direction: column; padding: 0 36px; }
.stats div + div { border-left: 1px solid rgba(255, 255, 255, .12); }
.stats strong { font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -.02em; color: #fff; }
.stats span { margin-top: 8px; font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }

.peek { position: absolute; bottom: 0; pointer-events: none; }
.peek svg { display: block; height: 100%; width: auto; }
.hero-peek { left: 50%; transform: translateX(-50%); height: 150px; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: #ECE9E1; }
.section-title { font-size: clamp(34px, 5vw, 56px); color: var(--ink); text-align: center; }
.section-sub { text-align: center; color: var(--muted); font-size: 18px; margin: 14px auto 52px; max-width: 520px; }

/* Server cards */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  display: flex; flex-direction: column;
  background: var(--card); border-radius: 10px; overflow: hidden;
  border-top: 4px solid var(--accent, var(--cobalt));
  box-shadow: 0 1px 2px rgba(11, 13, 26, .06), 0 10px 30px -12px rgba(11, 13, 26, .18);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(11, 13, 26, .06), 0 22px 40px -14px rgba(11, 13, 26, .28); }
.card-banner { position: relative; overflow: hidden; height: 200px; padding: 24px 28px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; }
.banner-icon {
  position: absolute; right: 18px; bottom: -26px; width: 170px; height: 170px;
  image-rendering: pixelated; transform: rotate(14deg); opacity: .95;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .35));
}
.banner-name { font-size: 54px; text-shadow: 0 4px 0 rgba(0, 0, 0, .25); }
.banner-name span { color: #AFC2FF; }
.est { margin-top: 6px; font-weight: 500; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.badge {
  position: absolute; top: 16px; right: 16px;
  background: rgba(11, 13, 26, .7); padding: 4px 10px; border-radius: 4px;
  font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
}
.card-body { flex: 1; padding: 24px 28px 8px; }
.card-tag { font-weight: 700; font-size: 19px; color: var(--accent, var(--cobalt)); margin-bottom: 10px; line-height: 1.3; }
.card-body p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.tags li { background: color-mix(in srgb, var(--accent) 10%, transparent); color: color-mix(in srgb, var(--accent) 80%, #000); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); padding: 2px 10px; border-radius: 4px; font-size: 13px; font-weight: 500; }
.card-foot { padding: 20px 28px 26px; margin-top: 16px; border-top: 1px solid var(--line); }


/* Tools */
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tool { background: var(--card); border-radius: 10px; padding: 24px; border: 1px solid var(--line); transition: border-color .15s; }
.tool:hover { border-color: var(--cobalt); }
.tool-type { font-weight: 500; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--cobalt); }
.tool h3 { font-weight: 700; font-size: 20px; color: var(--ink); margin: 8px 0 8px; letter-spacing: -.01em; }
.tool p { font-size: 15px; color: var(--muted); }

/* Footer */
.foot { background: var(--ink); color: var(--paper); padding: 56px 0 40px; }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 28px; flex-wrap: wrap; font-weight: 500; color: #C9CCDA; }
.foot-links a:hover { color: #fff; }
.foot-legal { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; color: var(--mist); }


@media (max-width: 960px) {
  .tools { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-in { justify-content: space-between; }
  .grid { grid-template-columns: 1fr; }
  .stats div { padding: 0 18px; }
  .stats strong { font-size: 34px; }
  .stats span { font-size: 10px; }
  .section { padding: 64px 0; }
  .hero-in { padding-top: 52px; padding-bottom: 130px; }
  .hero-peek { height: 100px; }
}
@media (max-width: 480px) {
  .wrap { padding-inline: 16px; }
  .nav-cta { padding: 0 12px; font-size: 0; gap: 0; }
  .nav-cta svg { width: 20px; height: 20px; }
  .tools { grid-template-columns: 1fr; }
  .strip-in { font-size: 14px; gap: 10px; }
  .banner-name { font-size: 42px; }
  .banner-icon { width: 130px; height: 130px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ======================================================================
   Job board
   ====================================================================== */

:root {
  --ok: #1F9D55;
  --ok-bg: #E3F5EA;
  --warn: #B4500E;
  --warn-bg: #FDEBDD;
  --bad: #C2283B;
  --bad-bg: #FBE4E7;
  --surface: #FFFFFF;
  --surface-2: #F9F8F4;
  --radius: 10px;
}

[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.warn { color: var(--warn); }
.ok { color: var(--ok); }
code { font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: rgba(11, 13, 26, .06); padding: 1px 5px; border-radius: 4px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap-wide { max-width: 1320px; }
.narrow { max-width: 760px; }
a.inline, .prose a, .message-body a, .notice a, .empty a, p a { color: var(--cobalt); }
p a:hover { text-decoration: underline; }
.lab-cobalt { color: var(--cobalt); }

/* Buttons */
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; gap: 8px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 13px; border-width: 1px; }
.btn-ghost { background: transparent; cursor: pointer; }
.btn-danger { background: var(--bad); color: #fff; box-shadow: 0 3px 0 #8E1A29; }
.btn-danger:hover { background: #D63347; }
.btn.disabled { opacity: .45; pointer-events: none; }
button.btn { border: 0; font-family: inherit; cursor: pointer; }
button.btn-ghost { border: 2px solid var(--line); }
button.btn-xs.btn-ghost { border-width: 1px; }
button:disabled { opacity: .6; cursor: progress; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--cobalt); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.icon-btn { width: 30px; height: 30px; display: inline-grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; font-size: 15px; }
.icon-btn:hover { background: rgba(11, 13, 26, .07); color: var(--ink); }
.inline-form { display: inline; }

/* Nav additions */
.brand-tag { font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); border-left: 1px solid rgba(255, 255, 255, .15); padding-left: 10px; margin-left: 2px; }
.nav-links a.on { background: var(--slate); color: #fff; }
.nav-right { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-aside { padding: 8px 12px; border-radius: 6px; font-weight: 500; font-size: 14px; color: #C9CCDA; }
.nav-aside:hover { background: var(--slate); color: #fff; }
.staff .nav-in { gap: 20px; height: 64px; }
.staff .nav-links { margin-right: 0; }

.account { position: relative; }
.account summary { list-style: none; cursor: pointer; display: flex; position: relative; border-radius: 50%; }
.account summary::-webkit-details-marker { display: none; }
.account summary:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.account .dot { position: absolute; top: 0; right: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--yolk); border: 2px solid var(--ink); }
.account-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px; background: var(--slate); border: 1px solid rgba(255, 255, 255, .08); border-radius: 10px; padding: 6px; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .5); z-index: 30; }
.account-menu a, .account-menu button { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 9px 12px; border-radius: 6px; color: #DCDFEA; font: 500 14px/1.3 inherit; font-family: inherit; background: none; border: 0; text-align: left; cursor: pointer; }
.account-menu a:hover, .account-menu button:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.account-name { padding: 8px 12px 10px; font-weight: 700; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .08); margin-bottom: 4px; }
.count { background: var(--cobalt); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 1px 7px; margin-left: 6px; }
.avatar { border-radius: 50%; flex: none; background: var(--slate); }
.avatar.big { width: 64px; height: 64px; }
.mc-head { border-radius: 4px; image-rendering: pixelated; flex: none; }

.switcher, .switcher-static { position: relative; }
.switcher summary, .switcher-static { list-style: none; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 6px; background: var(--slate); font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; }
.switcher-static { cursor: default; }
.switcher summary::-webkit-details-marker { display: none; }
.switcher summary::after { content: "▾"; color: var(--mist); font-size: 12px; }
.switcher-menu { position: absolute; left: 0; top: calc(100% + 8px); min-width: 220px; background: var(--slate); border-radius: 10px; padding: 6px; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .5); z-index: 30; }
.switcher-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 6px; color: #DCDFEA; font-weight: 500; font-size: 14px; }
.switcher-menu a:hover, .switcher-menu a.on { background: rgba(255, 255, 255, .07); color: #fff; }
.switcher-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--accent, var(--cobalt)); flex: none; }
.switcher-dot.big { width: 32px; height: 32px; border-radius: 8px; }

/* Flash */
.flash { max-width: 1120px; margin: 16px auto 0; padding: 12px 18px; border-radius: 8px; font-weight: 500; }
.staff .flash { max-width: 1272px; }
.flash-ok { background: var(--ok-bg); color: #145C33; }
.flash-err { background: var(--bad-bg); color: #8E1A29; }
@media (max-width: 1150px) { .flash { margin-inline: 16px; } }

/* Page heads */
.page-head { background: var(--ink); color: var(--paper); padding: 56px 0 48px; position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 80% at 85% 0%, color-mix(in srgb, var(--accent, var(--cobalt)) 35%, transparent), transparent 70%); }
.page-head > .wrap { position: relative; }
.page-head h1 { font-size: clamp(34px, 5vw, 56px); margin: 10px 0 12px; }
.page-sub { color: var(--mist); font-size: 18px; max-width: 640px; }
.back { display: inline-block; color: var(--mist); font-weight: 500; font-size: 14px; margin-bottom: 14px; }
.back:hover { color: var(--cobalt); }
.page-head .back { display: block; }
.staff-main .back { color: var(--muted); }
.page-head .server-badge { margin-bottom: 4px; }

.server-badge { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--accent) 75%, #000); background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); padding: 3px 9px; border-radius: 4px; }
.server-badge::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.page-head .server-badge { color: #fff; background: color-mix(in srgb, var(--accent) 30%, transparent); border-color: color-mix(in srgb, var(--accent) 60%, transparent); }

/* Marketing */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.split .section-title.left { text-align: left; margin-top: 10px; }
.split-body p { font-size: 18px; color: var(--text); margin-bottom: 16px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value { background: var(--card); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.value-n { font-weight: 800; font-size: 14px; color: var(--cobalt); letter-spacing: .05em; }
.value h3 { font-weight: 700; font-size: 20px; color: var(--ink); margin: 8px 0; letter-spacing: -.01em; }
.value p { color: var(--muted); font-size: 15px; }
a.tool { display: block; }
.tools { grid-template-columns: repeat(3, 1fr); }
.server-banner { background: linear-gradient(180deg, rgba(11, 13, 26, 0) 30%, rgba(11, 13, 26, .65)), repeating-linear-gradient(45deg, rgba(255, 255, 255, .05) 0 12px, transparent 12px 24px), linear-gradient(135deg, color-mix(in srgb, var(--accent) 60%, #000), var(--accent) 55%, var(--slate)); background-size: cover; background-position: center; }
.server-banner .banner-icon { image-rendering: auto; border-radius: 24px; width: 130px; height: 130px; bottom: 30px; right: 24px; transform: rotate(8deg); }
.card-foot { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 26px 22px; background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); }
.step-n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 800; margin-bottom: 14px; }
.step:nth-child(3) .step-n { background: var(--cobalt); }
.step h3 { font-weight: 700; font-size: 19px; color: var(--ink); margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }
.faq { display: grid; gap: 10px; }
.faq-item { background: var(--card); border-radius: 8px; border: 1px solid var(--line); }
.faq-item summary { cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--cobalt); font-size: 22px; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 22px 20px; color: var(--muted); }
.cta { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); text-align: center; padding: 88px 0 150px; }
.cta h2 { font-size: clamp(34px, 5vw, 56px); }
.cta p { color: var(--mist); margin: 12px auto 28px; max-width: 480px; font-size: 18px; }
.cta-in { display: flex; flex-direction: column; align-items: center; position: relative; }
.cta-peek { left: 50%; transform: translateX(-50%); height: 110px; }

/* Job list */
.jobs-page { padding-block: 32px 80px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 18px; }
.filter { display: flex; flex-direction: column; gap: 4px; min-width: 140px; flex: 1; }
.filter-search { flex: 2.2; min-width: 220px; }
.filter-label { font-weight: 500; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.filter-actions { display: flex; gap: 8px; }
.filter-check { align-self: center; padding-top: 18px; }
input, select, textarea { font: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1.5px solid #D9D6CE; border-radius: 6px; padding: 9px 11px; width: 100%; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(61, 107, 255, .18); }
input[type="checkbox"], input[type="radio"] { width: 17px; height: 17px; padding: 0; accent-color: var(--cobalt); flex: none; margin: 0; }
input[type="color"] { padding: 3px; height: 42px; }
textarea { resize: vertical; line-height: 1.5; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
.result-count { color: var(--muted); font-weight: 500; margin-bottom: 14px; }
.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.job-card { display: flex; flex-direction: column; gap: 10px; background: var(--card); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); border-top: 4px solid var(--accent); transition: transform .2s, box-shadow .2s; }
.job-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -16px rgba(11, 13, 26, .28); }
.job-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.job-card h2 { font-weight: 800; font-size: 22px; color: var(--ink); letter-spacing: -.02em; line-height: 1.2; }
.job-card p { color: var(--muted); font-size: 15px; flex: 1; }
.job-card-foot { font-size: 13px; color: var(--mist); }
.job-meta { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.job-meta li { font-size: 12.5px; font-weight: 500; padding: 2px 9px; border-radius: 4px; background: rgba(11, 13, 26, .05); color: var(--text); }
.page-head .job-meta li { background: rgba(255, 255, 255, .08); color: #DCDFEA; }

.empty { text-align: center; padding: 64px 20px; color: var(--muted); }
.empty img { margin: 0 auto 14px; opacity: .5; }
.empty h3 { color: var(--ink); font-size: 20px; margin-bottom: 6px; }

/* Job page */
.job-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; padding-block: 40px 80px; align-items: start; }
.prose { font-size: 17px; line-height: 1.7; color: var(--text); background: var(--card); padding: 32px 36px; border-radius: var(--radius); border: 1px solid var(--line); }
.prose h1, .prose h2, .prose h3 { color: var(--ink); letter-spacing: -.02em; line-height: 1.25; margin: 1.4em 0 .5em; }
.prose h2 { font-size: 24px; font-weight: 800; }
.prose h3 { font-size: 19px; font-weight: 700; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose img { max-width: 100%; border-radius: 8px; }
.prose blockquote { margin: 0 0 1em; padding-left: 16px; border-left: 3px solid var(--cobalt); color: var(--muted); }
.job-aside { position: sticky; top: 90px; display: grid; gap: 16px; }
.aside-card { background: var(--card); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.aside-card > .btn { width: 100%; justify-content: center; }
.aside-server { border-top: 4px solid var(--accent); }
.aside-server h3 { font-weight: 800; color: var(--ink); font-size: 20px; }
.aside-server .card-tag { font-size: 15px; margin: 4px 0 8px; }
.aside-server a { display: inline-block; margin-top: 10px; color: var(--cobalt); font-weight: 500; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 20px 0 0; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; color: var(--ink); }
.applied-box { display: grid; gap: 12px; }
.applied-box .btn { justify-content: center; }
.notice { background: #FFF7D6; border: 1px solid #F1DB8A; color: #5C4A00; padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; }
.notice.small { font-size: 14px; }

/* Status badges */
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-open { background: #E6ECFF; color: #2447C4; }
.status-needs_interview { background: #FFF3C4; color: #7A5B00; }
.status-hired { background: var(--ok-bg); color: #146C3B; }
.status-rejected { background: var(--bad-bg); color: #A31F31; }
.status-withdrawn, .status-draft { background: #ECEBE6; color: #5F6680; }
.pill { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 500; background: rgba(11, 13, 26, .06); color: var(--text); white-space: nowrap; margin-left: 6px; }
.pill-unread { background: var(--cobalt); color: #fff; }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-action { background: #FFF3C4; color: #7A5B00; }
.pill-staff { background: #E6ECFF; color: #2447C4; }
.pill-on { background: var(--ok-bg); color: #146C3B; }
.join-joined, .dm-sent { background: var(--ok-bg); color: #146C3B; }
.join-failed, .dm-failed { background: var(--bad-bg); color: #A31F31; }
.job-status { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.job-status-draft { background: #ECEBE6; color: #5F6680; }
.job-status-published { background: var(--ok-bg); color: #146C3B; }
.job-status-closed { background: var(--warn-bg); color: var(--warn); }
.job-status-archived { background: #ECEBE6; color: #8A8FA3; }

/* Forms (shared by apply and dashboards) */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-weight: 700; font-size: 14px; color: var(--ink); }
.field-hint { font-size: 13px; color: var(--muted); }
.field-wide { grid-column: 1 / -1; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 8px; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; line-height: 1.4; }
.check input { margin-top: 2px; }
.check-row, .check-grid { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px 20px; }
.form-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fold summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 6px 0; }
.fold[open] summary { margin-bottom: 12px; }

/* Apply */
.apply-page { padding-block: 32px 80px; }
.applying-as { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; color: var(--mist); font-size: 14px; }
.applying-as .user-chip { background: rgba(255, 255, 255, .08); color: #fff; padding: 4px 10px 4px 4px; border-radius: 999px; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.app-form { display: grid; gap: 20px; }
.form-section { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 26px; }
.form-section-title { font-weight: 800; font-size: 22px; color: var(--ink); letter-spacing: -.02em; margin-bottom: -10px; float: left; width: 100%; }
.form-section-desc { color: var(--muted); margin-top: -12px; }
.q { display: grid; gap: 8px; }
.q-label { font-weight: 700; color: var(--ink); font-size: 16px; }
.req { color: var(--bad); }
.q-help { color: var(--muted); font-size: 14px; margin-top: -4px; white-space: pre-line; }
.q-error { color: var(--bad); font-size: 14px; font-weight: 500; }
.q.has-error input:not([type="checkbox"]):not([type="radio"]), .q.has-error textarea, .q.has-error select, .q.has-error .dropzone { border-color: var(--bad); }
.q-long { display: grid; gap: 4px; }
.q-count { justify-self: end; }
.q-options { display: grid; gap: 10px; }
.check-other { align-items: center; }
.check-other .other-text { max-width: 320px; padding: 6px 10px; }
.q-scale { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.scale-steps { display: flex; gap: 6px; flex-wrap: wrap; }
.scale-step { position: relative; }
.scale-step input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.scale-step span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 8px; border: 1.5px solid #D9D6CE; font-weight: 700; color: var(--ink); background: #fff; transition: all .12s; }
.scale-step input:checked + span { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.scale-step input:focus-visible + span { box-shadow: 0 0 0 3px rgba(61, 107, 255, .3); }
.scale-label { color: var(--muted); font-size: 14px; }
.dropzone { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; padding: 20px; border: 2px dashed #D9D6CE; border-radius: 8px; cursor: pointer; color: var(--ink); background: var(--surface-2); }
.dropzone strong { color: var(--cobalt); }
.dropzone:hover, .dropzone.drag { border-color: var(--cobalt); background: #F1F4FF; }
.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.file-list li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--surface-2); border-radius: 6px; }
.file-list .file-name { font-weight: 500; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list progress { width: 120px; }
.file-link { color: var(--cobalt); font-weight: 500; }
.submit-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; display: grid; gap: 16px; }
.submit-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-error { color: var(--bad); font-weight: 500; }

/* Link account */
.link-page { padding-block: 64px 96px; }
.link-page h1 { font-size: clamp(34px, 5vw, 52px); color: var(--ink); margin: 8px 0 14px; }
.link-page .page-sub { color: var(--muted); margin-bottom: 28px; }
.link-steps { counter-reset: l; list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; }
.link-steps li { counter-increment: l; display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; font-size: 16px; }
.link-steps li::before { content: counter(l); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 800; flex: none; }
.link-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Message page */
.message-page { padding-block: 96px; text-align: center; max-width: 620px; }
.message-page img { margin: 0 auto 20px; }
.message-page h1 { font-size: 44px; color: var(--ink); margin-bottom: 14px; }
.message-body { color: var(--muted); font-size: 17px; display: grid; gap: 18px; justify-items: center; }

/* Portal */
.portal { padding-block: 32px 80px; display: grid; gap: 24px; }
.h-sm { font-weight: 800; font-size: 18px; color: var(--ink); letter-spacing: -.01em; margin-bottom: 14px; }
.h-page { font-weight: 800; font-size: 30px; color: var(--ink); letter-spacing: -.025em; line-height: 1.15; }
.draft-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.draft-list li { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px dashed #CFCBC0; border-radius: 8px; padding: 12px 16px; flex-wrap: wrap; }
.draft-title { font-weight: 700; color: var(--ink); flex: 1; }
.portal-list { display: grid; gap: 12px; }
.portal-item { display: flex; justify-content: space-between; gap: 20px; align-items: center; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 20px 22px; transition: box-shadow .15s, transform .15s; flex-wrap: wrap; }
.portal-item:hover { box-shadow: 0 14px 30px -16px rgba(11, 13, 26, .3); transform: translateY(-2px); }
.portal-item-main { display: grid; gap: 6px; }
.portal-item h2 { font-weight: 800; font-size: 20px; color: var(--ink); letter-spacing: -.01em; }
.portal-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.status-hero { display: flex; align-items: center; gap: 12px; color: #DCDFEA; flex-wrap: wrap; }
.status-hero .status { font-size: 14px; padding: 5px 14px; }
.portal-detail { display: grid; grid-template-columns: 1fr 340px; gap: 24px; padding-block: 32px 80px; align-items: start; }
.portal-main, .portal-aside { display: grid; gap: 20px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.panel-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.slot-picker { display: grid; gap: 14px; margin-top: 12px; }
.slot-days { display: flex; flex-wrap: wrap; gap: 8px; max-height: 360px; overflow-y: auto; }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; inset: 0; cursor: pointer; width: 100%; height: 100%; }
.slot span { display: block; padding: 9px 14px; border-radius: 8px; border: 1.5px solid #D9D6CE; font-weight: 500; font-size: 14px; background: #fff; }
.slot input:checked + span { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.slot input:focus-visible + span { box-shadow: 0 0 0 3px rgba(61, 107, 255, .3); }
.booked { display: grid; gap: 6px; }

.thread { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 12px; overflow: hidden; }
.thread summary { cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--surface-2); list-style: none; }
.thread summary::-webkit-details-marker { display: none; }
.thread-subject { font-weight: 700; color: var(--ink); flex: 1; }
.messages { list-style: none; margin: 0; padding: 16px; display: grid; gap: 14px; }
.msg { display: flex; gap: 10px; max-width: 88%; }
.msg.mine { margin-left: auto; flex-direction: row-reverse; }
.msg-body { background: var(--surface-2); border-radius: 10px; padding: 10px 14px; min-width: 0; }
.msg.mine .msg-body { background: #E6ECFF; }
.msg-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 2px; font-size: 14px; }
.msg-head .pill { margin-left: 0; }
.prose-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.reply-form { display: grid; gap: 8px; padding: 0 16px 16px; }
.panel > .reply-form { padding: 0; margin-top: 10px; }
.reply-actions { display: flex; justify-content: flex-end; gap: 8px; }
.thread-closed { padding: 0 16px 14px; }
.reopen-list { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.timeline li { display: flex; gap: 12px; position: relative; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 5px; top: 18px; bottom: -14px; width: 2px; background: var(--line); }
.tl-dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 6px; flex: none; padding: 0; }
.tl-dot::before { display: none; }
.tl-dot.status-open { background: var(--cobalt); }
.tl-dot.status-needs_interview { background: #E0A800; }
.tl-dot.status-hired { background: var(--ok); }
.tl-dot.status-rejected { background: var(--bad); }
.tl-dot.status-withdrawn { background: var(--mist); }
.tl-message { margin-top: 6px; padding: 8px 12px; background: var(--surface-2); border-radius: 6px; font-size: 14px; white-space: pre-wrap; }

.answers { display: grid; gap: 22px; }
.answers-title { font-weight: 800; font-size: 16px; color: var(--cobalt); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.answers-section { display: grid; gap: 18px; }
.answer-q { font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.answer-a { color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.chips li { padding: 3px 10px; border-radius: 4px; background: #E6ECFF; color: #2447C4; font-size: 14px; font-weight: 500; }
.scale-view { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.scale-dot { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; background: var(--surface-2); color: var(--mist); font-weight: 700; font-size: 14px; }
.scale-dot.on { background: var(--cobalt); color: #fff; }

/* ---------- staff dashboards ---------- */
.staff { background: #F2F0EA; }
.staff-main { padding-block: 28px 80px; display: grid; gap: 20px; align-content: start; }
.staff-main > * { min-width: 0; }
.page-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-create { display: flex; gap: 8px; }
.inline-create input { min-width: 260px; height: 36px; padding: 6px 10px; }
.job-bar-meta { display: flex; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.job-bar-meta a { color: var(--cobalt); }
.subtabs, .status-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.subtabs a, .status-tabs a { padding: 10px 14px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; display: flex; align-items: center; }
.subtabs a:hover, .status-tabs a:hover { color: var(--ink); }
.subtabs a.on, .status-tabs a.on { color: var(--ink); border-color: var(--accent, var(--cobalt)); font-weight: 700; }
.status-tabs .count { background: rgba(11, 13, 26, .08); color: var(--text); }
.status-tabs a.on .count { background: var(--accent, var(--cobalt)); color: #fff; }
.filters-staff { margin-bottom: 0; }

.table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 15px; }
.table th { text-align: left; font-weight: 500; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .num a { color: var(--cobalt); font-weight: 700; }
.table.compact td, .table.compact th { padding: 8px 12px; }
.panel .table { border: 0; border-radius: 0; }
.click-row { cursor: pointer; }
.click-row:hover td { background: #FAFAF7; }
.row-link { font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.row-link:hover { color: var(--cobalt); }
.apps-table .pill { margin-left: 8px; }
.pager { display: flex; justify-content: center; gap: 10px; }
.server-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.server-pick-item { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); padding: 18px; border-radius: var(--radius); font-size: 17px; }
.server-pick-item img { border-radius: 8px; }
.server-pick-item:hover { box-shadow: 0 12px 26px -14px rgba(11, 13, 26, .3); }

.builder { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.builder-edit { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.builder-preview { min-width: 0; position: sticky; top: 84px; max-height: calc(100vh - 110px); overflow-y: auto; background: #E9E6DE; border-radius: var(--radius); padding: 16px; }
.builder-preview-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.preview-form .form-section { padding: 20px; }
.builder-bar { position: sticky; bottom: 0; display: flex; justify-content: flex-end; align-items: center; gap: 16px; padding: 14px 0; background: linear-gradient(transparent, #F2F0EA 30%); z-index: 5; }
.be-section { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; }
.be-section-head { display: flex; gap: 8px; }
.be-section-head input { font-weight: 700; font-size: 17px; }
.qe-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-height: 12px; }
.qe { border: 1.5px solid #E2DFD7; border-radius: 8px; background: #fff; }
.qe.open { border-color: color-mix(in srgb, var(--accent, var(--cobalt)) 45%, #E2DFD7); }
.qe.dragging { opacity: .4; }
.qe.drop-before { box-shadow: 0 -3px 0 var(--cobalt); }
.qe.drop-after { box-shadow: 0 3px 0 var(--cobalt); }
.qe-head { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; cursor: grab; }
.qe-grip { color: var(--mist); }
.qe-type { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cobalt); background: #EEF2FF; padding: 2px 7px; border-radius: 4px; white-space: nowrap; }
.qe-title { flex: 1; min-width: 0; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qe-actions { display: flex; gap: 2px; }
.qe-body { padding: 4px 16px 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.qe-body .form-grid, .qe-body.form-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px 14px; }
.qe-body .check { align-self: end; padding-bottom: 10px; }
.add-menu { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-top: 4px; }

.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 3px; margin-bottom: 16px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 6px 14px; border-radius: 6px; font-weight: 500; font-size: 14px; cursor: pointer; }
.seg input:checked + span { background: var(--card); box-shadow: 0 1px 3px rgba(11, 13, 26, .12); color: var(--ink); }
.slot-form { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.slot-form .form-grid { margin-bottom: 14px; }
.toggle-row { padding: 14px 16px; background: var(--surface-2); border-radius: 8px; }

.detail-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.detail-nav .back { margin: 0; }
.detail-pager { display: flex; gap: 8px; }
.applicant-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.applicant-id { flex: 1; display: grid; gap: 4px; min-width: 240px; }
.applicant-mc { display: flex; align-items: center; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.applicant-side { display: grid; grid-template-columns: repeat(3, auto); gap: 6px 28px; font-size: 14px; }
.applicant-side > div { display: grid; gap: 2px; }
.applicant-side .lab { font-size: 11px; }
.applicant-side a { color: var(--cobalt); font-weight: 500; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.detail-main, .detail-side { display: grid; gap: 20px; min-width: 0; }
.status-panel { border-top: 4px solid var(--accent, var(--cobalt)); }
.status-now { margin-bottom: 14px; }
.status-form { display: grid; gap: 14px; }
.status-options { display: grid; gap: 6px; }
.status-option { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; border: 1.5px solid var(--line); cursor: pointer; font-weight: 500; background: #fff; color: var(--ink); }
.status-option::before { display: none; }
.status-option:has(input:checked) { border-color: currentColor; }
.status-option.status-open:has(input:checked) { background: #E6ECFF; color: #2447C4; }
.status-option.status-needs_interview:has(input:checked) { background: #FFF3C4; color: #7A5B00; }
.status-option.status-hired:has(input:checked) { background: var(--ok-bg); color: #146C3B; }
.status-option.status-rejected:has(input:checked) { background: var(--bad-bg); color: #A31F31; }
.notes { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 12px; }
.notes li { padding: 10px 12px; background: #FFFBEA; border-radius: 8px; border: 1px solid #F3E7B3; font-size: 14px; }
.joins, .dm-log, .others, .people, .guilds { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.joins li, .dm-log li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.joins .pill, .dm-log .pill { margin-left: 0; }
.join-error { flex-basis: 100%; }
.others li { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 14px; }
.others a { color: var(--cobalt); font-weight: 500; }
.scorecard { display: grid; gap: 14px; }
.score-cell { white-space: nowrap; text-align: right; }
.score { position: relative; display: inline-block; }
.score input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.score span { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; border: 1.5px solid #D9D6CE; font-weight: 700; font-size: 13px; margin-left: 2px; }
.score input:checked + span { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.people li { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.people li .user-chip { flex: 1; }
.panel > .inline-create { margin-top: 14px; }
.guilds { margin-bottom: 18px; }
.guilds li { display: flex; gap: 12px; align-items: center; padding: 12px; background: var(--surface-2); border-radius: 8px; flex-wrap: wrap; }
.guild-id { flex: 1; display: grid; gap: 2px; min-width: 200px; }
.guild-actions { display: flex; gap: 6px; }
.tax-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tax-row input { width: auto; flex: 1; min-width: 120px; padding: 6px 10px; }
.tax-row .num-input { flex: 0 0 80px; min-width: 0; }
.tax-new { margin-top: 14px; }
.taxonomy tr.archived input { color: var(--mist); text-decoration: line-through; }
.audit-change { max-width: 420px; overflow-wrap: anywhere; font-family: ui-monospace, monospace; font-size: 12px; }

@media (max-width: 1100px) {
  .detail-grid, .portal-detail, .job-layout { grid-template-columns: 1fr; }
  .job-aside { position: static; }
  .builder { grid-template-columns: minmax(0, 1fr); }
  .builder-preview { position: static; max-height: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .split, .two-col { grid-template-columns: 1fr; gap: 24px; }
  .values, .tools { grid-template-columns: repeat(2, 1fr); }
  .applicant-side { grid-template-columns: 1fr 1fr; }
  .table { display: block; overflow-x: auto; }
}
@media (max-width: 760px) {
  .staff .nav-in { height: auto; flex-wrap: wrap; padding-block: 10px; row-gap: 8px; }
  .staff .nav-links { display: flex; overflow-x: auto; order: 3; width: 100%; }
}
@media (max-width: 640px) {
  .values, .tools, .steps { grid-template-columns: 1fr; }
  .brand-tag { display: none; }
  .nav-aside { display: none; }
  .prose { padding: 22px; }
  .form-section { padding: 20px; }
  .inline-create { flex-wrap: wrap; width: 100%; }
  .inline-create input { min-width: 0; flex: 1; }
  .page-head { padding: 40px 0 32px; }
  .msg { max-width: 100%; }
}

/* Write with AI */
.ai-panel { background: linear-gradient(135deg, #F1F4FF, #FFFFFF 60%); border: 1px solid #D5DEFF; border-radius: var(--radius); }
.ai-panel summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 18px; font-weight: 700; color: var(--ink); }
.ai-panel summary::-webkit-details-marker { display: none; }
.ai-panel summary::after { content: "▾"; color: var(--mist); margin-left: 4px; }
.ai-panel[open] summary::after { content: "▴"; }
.ai-spark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--cobalt); color: #fff; font-size: 14px; }
.ai-left { margin-left: auto; font-weight: 500; }
.ai-body { display: grid; gap: 12px; padding: 0 18px 18px; }
.ai-body .seg { margin-bottom: 0; justify-self: start; }
.ai-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ai-notes { background: #FFF7D6; border: 1px solid #F1DB8A; color: #5C4A00; padding: 10px 14px; border-radius: 8px; font-size: 14px; }
.ai-fine { margin-top: -2px; }
.ai-panel.busy [data-ai-state]::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; border: 2px solid var(--cobalt); border-right-color: transparent; animation: spin .8s linear infinite; vertical-align: -1px; }
@keyframes spin { to { transform: rotate(360deg); } }
.ai-filled { animation: ai-flash 2.5s ease-out; }
@keyframes ai-flash { from { box-shadow: 0 0 0 3px rgba(61, 107, 255, .45); border-color: var(--cobalt); } }

/* Job alerts */
.alert-card, .alert-cta { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; transition: border-color .15s, box-shadow .15s; }
.alert-card:hover, .alert-cta:hover { border-color: var(--cobalt); }
.alert-card.on { border-left: 4px solid var(--cobalt); }
.alert-card-text { flex: 1; display: grid; gap: 2px; color: var(--ink); }
.alert-bell { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #E6ECFF; color: var(--cobalt); flex: none; }
.alert-cta { margin-bottom: 18px; color: var(--text); flex-wrap: wrap; }
.alert-cta strong { color: var(--ink); }
.alert-cta-go { margin-left: auto; color: var(--cobalt); font-weight: 700; white-space: nowrap; }
.alerts-page { padding-block: 32px 80px; }
.alerts-form { display: grid; gap: 28px; }
.alert-all { padding: 12px 14px; background: var(--surface-2); border-radius: 8px; margin-bottom: 12px; }
.alert-teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.alert-team { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px; cursor: pointer; background: #fff; }
.alert-team:has(input:checked) { border-color: var(--cobalt); background: #F4F6FF; }
.alert-team input { margin-top: 3px; }
.alert-team span { display: grid; gap: 2px; }
.alert-teams.all .alert-team { opacity: .55; pointer-events: none; }
