:root {
  --wejob-red: #e31837;
  --ink: #101828;
  --muted: #667085;
  --soft: #f6f7fb;
  --line: #e6e8ef;
  --card: #ffffff;
  --navy: #14213d;
  --shadow: 0 20px 60px rgba(16, 24, 40, 0.12);
  --page-gradient:
    radial-gradient(circle at top left, rgba(227, 24, 55, 0.12), transparent 28rem),
    linear-gradient(135deg, #ffffff 0%, #f5f7fb 48%, #eef2f8 100%);
  --header-bg: rgba(255, 255, 255, 0.86);
  --panel-bg: rgba(255, 255, 255, 0.96);
  --panel-soft-bg: #f6f7fb;
  --control-bg: #ffffff;
  --control-text: #24324a;
  --safe-top: var(--discord-safe-area-inset-top, env(safe-area-inset-top, 0px));
  --safe-right: var(--discord-safe-area-inset-right, env(safe-area-inset-right, 0px));
  --safe-bottom: var(--discord-safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
  --safe-left: var(--discord-safe-area-inset-left, env(safe-area-inset-left, 0px));
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f8fafc;
  --muted: #a7b3c8;
  --soft: #121a2a;
  --line: #263247;
  --card: #111827;
  --navy: #e31837;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  --page-gradient:
    radial-gradient(circle at top left, rgba(227, 24, 55, 0.18), transparent 27rem),
    linear-gradient(135deg, #070a12 0%, #0d1422 52%, #111827 100%);
  --header-bg: rgba(9, 13, 23, 0.86);
  --panel-bg: rgba(17, 24, 39, 0.94);
  --panel-soft-bg: #0f172a;
  --control-bg: #111827;
  --control-text: #eef2ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding:
    var(--safe-top)
    var(--safe-right)
    var(--safe-bottom)
    var(--safe-left);
  color: var(--ink);
  background: var(--page-gradient);
  font-family: "Fira Sans", "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 10px clamp(16px, 4vw, 42px);
  border-bottom: 1px solid rgba(214, 219, 229, 0.78);
  background: var(--header-bg);
  backdrop-filter: blur(18px);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.header-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--control-bg);
  color: var(--control-text);
  box-shadow: 0 10px 26px rgba(16, 24, 40, 0.06);
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: rgba(227, 24, 55, 0.28);
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.theme-toggle-icon {
  width: 20px;
  height: 20px;
  background: var(--wejob-red);
  -webkit-mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 17a5 5 0 1 0 0-10 5 5 0 0 0 0 10Zm0-12.8a1.1 1.1 0 0 0 1.1-1.1v-1a1.1 1.1 0 1 0-2.2 0v1A1.1 1.1 0 0 0 12 4.2Zm0 15.6a1.1 1.1 0 0 0-1.1 1.1v1a1.1 1.1 0 1 0 2.2 0v-1A1.1 1.1 0 0 0 12 19.8ZM4.2 12a1.1 1.1 0 0 0-1.1-1.1h-1a1.1 1.1 0 1 0 0 2.2h1A1.1 1.1 0 0 0 4.2 12Zm15.6 0a1.1 1.1 0 0 0 1.1 1.1h1a1.1 1.1 0 1 0 0-2.2h-1a1.1 1.1 0 0 0-1.1 1.1ZM5.7 7.25a1.1 1.1 0 0 0 1.55-1.55l-.7-.71A1.1 1.1 0 1 0 5 6.55l.7.7Zm11.05 11.05.7.71A1.1 1.1 0 1 0 19 17.45l-.7-.7a1.1 1.1 0 1 0-1.55 1.55ZM18.3 7.25l.7-.7A1.1 1.1 0 1 0 17.45 5l-.7.7a1.1 1.1 0 1 0 1.55 1.55ZM7.25 18.3a1.1 1.1 0 0 0-1.55-1.55l-.71.7A1.1 1.1 0 1 0 6.55 19l.7-.7Z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 17a5 5 0 1 0 0-10 5 5 0 0 0 0 10Zm0-12.8a1.1 1.1 0 0 0 1.1-1.1v-1a1.1 1.1 0 1 0-2.2 0v1A1.1 1.1 0 0 0 12 4.2Zm0 15.6a1.1 1.1 0 0 0-1.1 1.1v1a1.1 1.1 0 1 0 2.2 0v-1A1.1 1.1 0 0 0 12 19.8ZM4.2 12a1.1 1.1 0 0 0-1.1-1.1h-1a1.1 1.1 0 1 0 0 2.2h1A1.1 1.1 0 0 0 4.2 12Zm15.6 0a1.1 1.1 0 0 0 1.1 1.1h1a1.1 1.1 0 1 0 0-2.2h-1a1.1 1.1 0 0 0-1.1 1.1ZM5.7 7.25a1.1 1.1 0 0 0 1.55-1.55l-.7-.71A1.1 1.1 0 1 0 5 6.55l.7.7Zm11.05 11.05.7.71A1.1 1.1 0 1 0 19 17.45l-.7-.7a1.1 1.1 0 1 0-1.55 1.55ZM18.3 7.25l.7-.7A1.1 1.1 0 1 0 17.45 5l-.7.7a1.1 1.1 0 1 0 1.55 1.55ZM7.25 18.3a1.1 1.1 0 0 0-1.55-1.55l-.71.7A1.1 1.1 0 1 0 6.55 19l.7-.7Z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

:root[data-theme="dark"] .theme-toggle-icon {
  -webkit-mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M20.1 14.2a8.2 8.2 0 0 1-10.3-10.3 1 1 0 0 0-1.2-1.2 10.2 10.2 0 1 0 12.7 12.7 1 1 0 0 0-1.2-1.2Z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M20.1 14.2a8.2 8.2 0 0 1-10.3-10.3 1 1 0 0 0-1.2-1.2 10.2 10.2 0 1 0 12.7 12.7 1 1 0 0 0-1.2-1.2Z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  letter-spacing: -0.035em;
  text-decoration: none;
  cursor: pointer;
}

.app-logo {
  width: 118px;
  height: 36px;
  border-radius: 0;
  object-fit: contain;
}

.app-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.language-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--control-bg);
  color: var(--control-text);
  font-weight: 900;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.language-select-wrap:hover,
.language-select-wrap:focus-within {
  border-color: rgba(227, 24, 55, 0.24);
  box-shadow: 0 10px 26px rgba(16, 24, 40, 0.08);
}

.language-select {
  min-width: 54px;
  padding: 0 24px 0 0;
  border: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2343516a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    right 2px center / 14px 14px no-repeat;
  color: inherit;
  font: inherit;
  font-size: 0.82rem;
  outline: none;
  cursor: pointer;
}

:root[data-theme="dark"] .language-select,
:root[data-theme="dark"] .home-select .custom-select-button,
:root[data-theme="dark"] .select-wrap .custom-select-button {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23eef2ff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

.custom-select {
  position: relative;
}

.custom-select-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  border: 0;
  background-color: transparent;
  color: inherit;
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 60;
  display: grid;
  width: max(100%, 190px);
  padding: 6px;
  border: 1px solid rgba(225, 232, 240, 0.95);
  border-radius: 16px;
  background: var(--panel-bg);
  box-shadow: 0 22px 50px rgba(16, 24, 40, 0.18);
}

.custom-select-menu[hidden] {
  display: none;
}

.custom-select-menu.compact {
  right: 0;
  left: auto;
  width: 92px;
  min-width: 92px;
}

.custom-select-menu button {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--control-text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.custom-select-menu button:hover,
.custom-select-menu button:focus-visible {
  outline: none;
  background: rgba(227, 24, 55, 0.08);
  color: var(--wejob-red);
}

.custom-select-menu button[aria-selected="true"] {
  background: var(--wejob-red);
  color: #fff;
}

.app-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.app-nav-link:hover {
  background: rgba(227, 24, 55, 0.07);
  color: var(--wejob-red);
}

.app-nav-link.active {
  border: 1px solid rgba(227, 24, 55, 0.16);
  background: rgba(227, 24, 55, 0.10);
  color: var(--wejob-red);
  box-shadow: none;
}

.shell {
  width: min(1120px, calc(100vw - clamp(24px, 6vw, 84px)));
  margin: 0 auto;
  padding: clamp(18px, 3vw, 30px) 0 44px;
}

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--wejob-red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  max-width: 980px;
  font-size: clamp(1.35rem, 3.2vw, 2.05rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.status {
  max-width: 310px;
  margin-bottom: 4px;
  color: var(--muted);
  text-align: right;
}

.status:empty {
  display: none;
}

.empty {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--panel-bg);
  box-shadow: var(--shadow);
}

.card {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.activity-summary {
  margin-top: 18px;
  max-width: 760px;
}

.home-panel {
  display: grid;
  gap: 20px;
  margin-top: 22px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(135deg, var(--panel-bg), var(--panel-soft-bg));
  box-shadow: var(--shadow);
}

.home-hero {
  display: grid;
  gap: 8px;
  max-width: 720px;
}

.home-kicker {
  margin: 0;
  color: var(--wejob-red);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-hero h2 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(1.24rem, 3vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.home-form {
  display: grid;
  gap: 12px;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(145px, 0.42fr) minmax(0, 1fr) minmax(160px, 0.52fr) auto;
  gap: 10px;
  align-items: end;
}

.home-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.home-field input,
.home-field select,
.home-select .custom-select-button {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--control-bg);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  outline: none;
}

.home-select .custom-select-button {
  padding-right: 42px;
  background:
    var(--control-bg)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2314213d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    right 14px center / 16px 16px no-repeat;
}

.home-field select {
  appearance: none;
  padding-right: 42px;
  background:
    var(--control-bg)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2314213d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    right 14px center / 16px 16px no-repeat;
  cursor: pointer;
}

.home-field select option {
  background: var(--control-bg);
  color: var(--ink);
}

.home-field input:focus,
.home-field select:focus,
.home-select.open .custom-select-button,
.home-select .custom-select-button:focus-visible {
  border-color: rgba(227, 24, 55, 0.42);
  box-shadow: 0 0 0 4px rgba(227, 24, 55, 0.09);
}

.home-submit {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--navy);
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.home-submit:hover {
  transform: translateY(-1px);
}

.summary-copy {
  min-width: 0;
}

.type-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(227, 24, 55, 0.10);
  color: var(--wejob-red);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.company-line {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.45;
}

.company-line a,
.inline-company-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}

.company-line a:hover,
.inline-company-link:hover {
  text-decoration: underline;
}

.company-identity {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.company-logo {
  width: 58px;
  height: 58px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--navy);
  color: white;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(20, 33, 61, 0.18);
}

.button.secondary {
  background: var(--control-bg);
  color: var(--navy);
  border: 1px solid var(--line);
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 3vw, 28px);
  align-items: start;
  margin-top: 26px;
  padding-bottom: clamp(28px, 5vw, 48px);
}

.main-column {
  min-width: 0;
}

.info-panel {
  margin-top: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel-soft-bg);
}

.panel-title {
  margin-bottom: 16px;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.fact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.fact {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--ink);
  line-height: 1.35;
}

.fact-icon {
  width: 22px;
  height: 22px;
  margin-top: -1px;
  padding: 3px;
  border-radius: 8px;
  background: rgba(227, 24, 55, 0.08);
  color: var(--wejob-red);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fact-bullet {
  width: 7px;
  height: 7px;
  margin-top: 0.45em;
  border-radius: 999px;
  background: var(--wejob-red);
  box-shadow: 0 0 0 5px rgba(227, 24, 55, 0.09);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.detail-section {
  padding: clamp(24px, 4vw, 34px) 0;
  border-bottom: 1px solid var(--line);
}

.detail-section:last-child {
  border-bottom: none;
}

.section-kicker {
  margin-bottom: 14px;
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  font-weight: 900;
  letter-spacing: -0.035em;
}

.prose {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.78;
  white-space: pre-wrap;
}

.bullets {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.bullets li {
  margin: 8px 0;
  line-height: 1.65;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--control-bg);
  color: var(--control-text);
  font-weight: 900;
}

.chip.required {
  border-color: rgba(29, 137, 255, 0.28);
  background: rgba(29, 137, 255, 0.08);
}

.chip.soft {
  border-color: rgba(117, 76, 255, 0.28);
  background: rgba(117, 76, 255, 0.08);
}

.chip.optional {
  border-color: rgba(22, 163, 74, 0.25);
  background: rgba(22, 163, 74, 0.08);
}

.opportunity-grid {
  display: grid;
  gap: 12px;
}

.opportunity {
  display: grid;
  gap: 4px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-soft-bg);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.opportunity:hover {
  transform: translateY(-1px);
  background: var(--panel-bg);
}

.opportunity-kind {
  color: var(--wejob-red);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.opportunity small {
  color: var(--muted);
}

.list-intro {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.filter-intro {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.results-shell {
  position: relative;
  margin-top: 22px;
}

.results-panel {
  display: grid;
  gap: 14px;
}

.results-topbar {
  position: sticky;
  top: 76px;
  z-index: 10;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel-bg);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 34px rgba(16, 24, 40, 0.08);
}

.results-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.results-summary-title {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.results-summary-meta {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.results-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.select-wrap,
.control-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--control-bg);
  color: var(--control-text);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 850;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
}

.select-wrap.custom-select {
  padding: 0;
}

.select-wrap .custom-select-button {
  min-height: 38px;
  padding: 0 38px 0 10px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%2314213d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    right 12px center / 15px 15px no-repeat;
}

.select-wrap:hover,
.select-wrap:focus-within {
  border-color: rgba(227, 24, 55, 0.24);
  box-shadow: 0 10px 26px rgba(16, 24, 40, 0.08);
}

.select-wrap .custom-select-prefix {
  color: var(--muted);
  font-size: 0.78rem;
}

.select-wrap select {
  appearance: none;
  min-width: 160px;
  padding: 0 28px 0 0;
  border: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%2314213d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    right 2px center / 15px 15px no-repeat;
  color: inherit;
  font: inherit;
  outline: none;
  cursor: pointer;
}

.select-wrap select option {
  background: var(--control-bg);
  color: #14213d;
}

.control-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  cursor: pointer;
}

.control-button.primary {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.active-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.active-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  max-width: 100%;
  padding: 0 8px 0 10px;
  border: 0;
  border-radius: 10px;
  background: #eef2f7;
  color: #344054;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
}

.active-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.active-chip b {
  color: var(--wejob-red);
  font-size: 0.9rem;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 6px 0 2px;
}

.pagination-pages {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.page-button {
  min-width: 38px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--control-bg);
  color: var(--control-text);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
}

.page-button.active {
  border-color: var(--wejob-red);
  background: var(--wejob-red);
  color: #fff;
}

.pagination .control-button:disabled,
.page-button:disabled {
  cursor: default;
  opacity: 0.68;
}

.pagination-gap {
  color: var(--muted);
  font-weight: 900;
}

.filter-backdrop {
  position: fixed;
  inset: 0;
  z-index: 39;
  background: rgba(20, 33, 61, 0.20);
}

.filter-panel {
  position: fixed;
  top: var(--safe-top);
  right: var(--safe-right);
  bottom: var(--safe-bottom);
  z-index: 40;
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--safe-top) - var(--safe-bottom));
  max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom));
  width: min(100%, 390px);
  border-left: 1px solid var(--line);
  background: var(--panel-bg);
  box-shadow: -22px 0 48px rgba(16, 24, 40, 0.18);
}

.filter-head,
.filter-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.filter-foot {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.filter-title,
.filter-subtitle {
  margin: 0;
}

.filter-title {
  font-weight: 900;
}

.filter-subtitle {
  color: var(--muted);
  font-size: 0.86rem;
}

.icon-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--control-bg);
  color: var(--muted);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.filter-body {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
  background: var(--panel-soft-bg);
}

.filter-section {
  display: block;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-bg);
  overflow: visible;
}

.filter-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 56px;
  padding: 12px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  border-radius: 16px;
}

.filter-section-title:focus-visible {
  outline: 2px solid rgba(227, 24, 55, 0.34);
  outline-offset: -4px;
}

.filter-section.open .filter-section-title {
  border-bottom: 1px solid var(--line);
  border-radius: 16px 16px 0 0;
}

.filter-section-title small {
  color: var(--muted);
  font-size: 0.75rem;
}

.filter-section-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.filter-chevron {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #f7f8fb;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.15s ease;
}

.filter-section.open .filter-chevron {
  transform: rotate(180deg);
}

.filter-section-body {
  display: block;
  min-height: 1px;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
}

.filter-field {
  display: grid;
  gap: 6px;
  padding: 12px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.filter-field input {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--control-bg);
  color: var(--ink);
  font: inherit;
  outline: none;
}

.filter-autocomplete {
  display: grid;
  gap: 4px;
  margin-top: -2px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--control-bg);
  box-shadow: 0 14px 30px rgba(16, 24, 40, 0.08);
}

.filter-autocomplete button {
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--control-text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.filter-autocomplete button:hover,
.filter-autocomplete button:focus-visible {
  outline: none;
  background: rgba(227, 24, 55, 0.08);
  color: var(--wejob-red);
}

.filter-field small {
  color: var(--muted);
  font-weight: 600;
}

.filter-options {
  display: grid;
  gap: 4px;
  padding: 10px 12px 12px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 32px;
  color: #344054;
  font-size: 0.88rem;
  cursor: pointer;
}

.check-row input {
  accent-color: var(--wejob-red);
}

.results-grid {
  display: grid;
  gap: 14px;
  padding-bottom: clamp(28px, 5vw, 48px);
}

.result-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel-bg);
  box-shadow: 0 14px 36px rgba(16, 24, 40, 0.07);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.result-card:hover {
  transform: translateY(-1px);
  border-color: rgba(227, 24, 55, 0.28);
  box-shadow: 0 18px 44px rgba(16, 24, 40, 0.10);
}

.result-logo-wrap {
  align-self: start;
}

.result-copy {
  min-width: 0;
}

.result-kind {
  display: inline-flex;
  margin-bottom: 6px;
  color: var(--wejob-red);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.result-copy strong {
  display: block;
  color: var(--ink);
  font-size: clamp(1rem, 2vw, 1.24rem);
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.result-copy small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.35;
}

.result-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.result-skills span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(29, 137, 255, 0.22);
  border-radius: 8px;
  background: rgba(29, 137, 255, 0.07);
  color: var(--control-text);
  font-size: 0.78rem;
  font-weight: 800;
}

.inline-empty {
  margin-top: 22px;
}

.empty {
  padding: 28px;
}

.hidden {
  display: none;
}

:root[data-theme="dark"] .app-header {
  border-bottom-color: rgba(38, 50, 71, 0.86);
}

:root[data-theme="dark"] .button.secondary {
  color: var(--ink);
}

:root[data-theme="dark"] .active-chip,
:root[data-theme="dark"] .filter-chevron,
:root[data-theme="dark"] .result-skills span {
  background: #1f2937;
  color: #dbe4f0;
}

:root[data-theme="dark"] .check-row {
  color: #dbe4f0;
}

:root[data-theme="dark"] .custom-select-menu {
  border-color: var(--line);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.42);
}

pre {
  overflow: auto;
  padding: 16px;
  border-radius: 16px;
  background: var(--panel-soft-bg);
}

@media (max-width: 820px) {
  .app-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 12px;
  }

  .header-actions {
    display: contents;
  }

  .header-controls {
    justify-self: end;
  }

  .language-select-wrap {
    min-height: 38px;
  }

  .app-nav {
    grid-column: 1 / -1;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .hero,
  .activity-summary {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .status {
    text-align: left;
  }

  .results-topbar {
    top: 116px;
  }

  .results-summary-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .results-controls {
    width: 100%;
  }

  .company-logo {
    width: 52px;
    height: 52px;
  }

  .detail-layout {
    padding-top: 0;
  }
}

@media (max-width: 1180px) {
  .shell {
    width: min(940px, calc(100vw - 48px));
  }

  .hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .status {
    text-align: left;
  }

  .fact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 28px, 560px);
  }

  .app-logo {
    width: 104px;
    height: 32px;
  }

  .app-nav {
    gap: 8px;
  }

  .app-nav-link {
    padding: 0 10px;
    font-size: 0.86rem;
  }

  h1 {
    font-size: clamp(1.25rem, 8vw, 1.75rem);
  }

  .company-identity {
    align-items: flex-start;
  }

  .actions {
    width: 100%;
  }

  .button {
    flex: 1 1 100%;
  }

  .select-wrap,
  .control-button {
    width: 100%;
  }

  .filter-panel {
    width: 100%;
  }

  .home-grid {
    grid-template-columns: 1fr;
  }

  .home-grid {
    display: grid;
  }

  .fact-list {
    grid-template-columns: 1fr;
  }

  .result-card {
    grid-template-columns: 52px minmax(0, 1fr);
    padding: 14px;
  }
}

.activity-debug-panel {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 1000;
  width: min(560px, calc(100vw - 24px));
  max-height: min(280px, 45vh);
  overflow: auto;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(225, 29, 72, 0.35);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.28);
  color: #f8fafc;
  font-family: "Courier New", monospace;
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-wrap;
}
