:root {
  --nav-height: 88px;
  --background: #f1f7f9;
  --foreground: #07326a;
  --card: rgba(241, 247, 249, 0.9);
  --card-strong: #ffffff;
  --muted: #749dc8;
  --primary: #0a61c9;
  --primary-foreground: #f1f7f9;
  --border: rgba(6, 64, 137, 0.16);
  --soft-bg: rgba(10, 97, 201, 0.08);
  --text-on-accent: #ffffff;
  --input-text: #07326a;
  --placeholder: #749dc8;
  --universe-bg: #07326a;
  --universe-text: #f1f7f9;
  --universe-muted: #749dc8;
  --universe-card: rgba(241, 247, 249, 0.96);
  --universe-card-strong: #ffffff;
  --universe-icon-bg: rgba(10, 97, 201, 0.12);
  --universe-icon-text: #07326a;
  --accent-bg: linear-gradient(135deg, #0a61c9, #064089 58%, #07326a);
  --panel-shadow: 0 18px 44px rgba(7, 50, 106, 0.12);
  --glass-highlight: rgba(255, 255, 255, 0.9);
  --ring-glow: rgba(10, 97, 201, 0.28);
}

/* Azure reference palette: #F1F7F9 #749DC8 #0A61C9 #064089 #07326A */
.primary-action {
  background: linear-gradient(135deg, #0a61c9, #064089);
  color: #ffffff;
  border-color: rgba(6, 64, 137, 0.38);
  box-shadow: 0 18px 34px rgba(6, 64, 137, 0.22);
}

.primary-action:hover {
  box-shadow: 0 22px 44px rgba(7, 50, 106, 0.28);
}

.chip.active,
.ghost-action.saved,
.favorite.saved,
.live-badge {
  background: rgba(10, 97, 201, 0.1);
  color: #064089;
  border-color: rgba(10, 97, 201, 0.22);
}

body.dark .chip.active,
body.dark .ghost-action.saved,
body.dark .favorite.saved,
body.dark .live-badge {
  background: rgba(116, 157, 200, 0.16);
  color: #f1f7f9;
  border-color: rgba(116, 157, 200, 0.28);
}

.card,
.profile-card,
.messages-shell,
.modal-card,
.selected-company {
  border-color: rgba(6, 64, 137, 0.14);
  box-shadow:
    0 24px 56px rgba(7, 50, 106, 0.1),
    0 12px 28px rgba(6, 64, 137, 0.06);
}

.cv-completion div i {
  background: linear-gradient(90deg, #749dc8, #0a61c9, #064089);
}

.ai-trigger {
  background: linear-gradient(135deg, #0a61c9, #064089);
  color: #ffffff;
  box-shadow: 0 14px 45px rgba(6, 64, 137, 0.32);
}

.ai-panel {
  border-color: rgba(116, 157, 200, 0.35);
  background: linear-gradient(145deg, rgba(7, 50, 106, 0.98), rgba(6, 64, 137, 0.99));
}

.ai-panel header strong,
.ai-job span,
.ai-message span {
  color: #749dc8;
}

body.dark {
  --background: #182938;
  --foreground: #f6fbff;
  --card: rgba(35, 55, 72, 0.86);
  --card-strong: #263c50;
  --muted: #c7d7e4;
  --primary: #8fd0e8;
  --primary-foreground: #162635;
  --border: rgba(202, 225, 238, 0.22);
  --soft-bg: rgba(143, 208, 232, 0.13);
  --text-on-accent: #ffffff;
  --input-text: #e5efff;
  --placeholder: #afc3d2;
  --universe-bg: #182938;
  --universe-text: #f1f7f9;
  --universe-muted: #c7d7e4;
  --universe-card: rgba(35, 55, 72, 0.9);
  --universe-card-strong: #263c50;
  --universe-icon-bg: rgba(143, 208, 232, 0.15);
  --universe-icon-text: #f1f7f9;
  --accent-bg: linear-gradient(135deg, #8fd0e8, #3f8db6 52%, #2a5d7a);
  --panel-shadow: 0 24px 58px rgba(5, 16, 27, 0.34);
  --glass-highlight: rgba(255, 255, 255, 0.14);
  --ring-glow: rgba(143, 208, 232, 0.32);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, var(--background) 0%, #f1f7f9 44%, #dceaf3 100%);
  color: var(--foreground);
  font-family: "Nunito Sans", "Avenir Next", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

body.dark {
  background:
    radial-gradient(circle at 16% 12%, rgba(143, 208, 232, 0.16), transparent 30%),
    radial-gradient(circle at 84% 18%, rgba(79, 141, 182, 0.18), transparent 32%),
    linear-gradient(180deg, #243c50 0%, #1d3142 48%, #142331 100%);
}

body:not(.dark) {
  color-scheme: light;
}

body::selection {
  background: color-mix(in srgb, var(--primary), transparent 72%);
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: var(--foreground);
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.74;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient::before,
.ambient::after {
  content: "";
  position: absolute;
  inset: -25%;
  background:
    linear-gradient(115deg, transparent 0 36%, rgba(116, 157, 200, 0.12) 42%, transparent 50%),
    linear-gradient(62deg, transparent 0 44%, rgba(10, 97, 201, 0.14) 49%, transparent 58%);
  animation: ambient-drift 18s ease-in-out infinite alternate;
}

body.dark .ambient {
  background:
    radial-gradient(1px 1px at 8% 18%, rgba(255, 255, 255, 0.78), transparent),
    radial-gradient(1px 1px at 22% 76%, rgba(186, 230, 253, 0.58), transparent),
    radial-gradient(1.5px 1.5px at 38% 28%, rgba(255, 255, 255, 0.88), transparent),
    radial-gradient(1px 1px at 54% 64%, rgba(143, 208, 232, 0.46), transparent),
    radial-gradient(1.5px 1.5px at 72% 22%, rgba(255, 255, 255, 0.74), transparent),
    radial-gradient(1px 1px at 88% 70%, rgba(125, 211, 252, 0.66), transparent),
    linear-gradient(118deg, transparent 0 18%, rgba(64, 171, 204, 0.08) 28%, transparent 44%),
    linear-gradient(64deg, transparent 0 36%, rgba(143, 208, 232, 0.07) 48%, transparent 66%);
  background-size:
    180px 180px,
    240px 240px,
    220px 220px,
    260px 260px,
    210px 210px,
    280px 280px,
    100% 100%,
    100% 100%;
}

body.dark .ambient::before {
  opacity: 0.72;
  background:
    linear-gradient(105deg, transparent 0 24%, rgba(64, 171, 204, 0.1) 36%, transparent 52%),
    linear-gradient(74deg, transparent 0 42%, rgba(143, 208, 232, 0.07) 52%, transparent 66%),
    radial-gradient(ellipse at 50% 50%, rgba(125, 211, 252, 0.08), transparent 52%);
  filter: blur(0.3px);
}

body.dark .ambient::after {
  opacity: 0.65;
  background:
    radial-gradient(1px 1px at 16% 34%, rgba(255, 255, 255, 0.82), transparent),
    radial-gradient(1px 1px at 44% 14%, rgba(186, 230, 253, 0.72), transparent),
    radial-gradient(1px 1px at 64% 82%, rgba(221, 214, 254, 0.72), transparent),
    radial-gradient(1.5px 1.5px at 92% 42%, rgba(255, 255, 255, 0.76), transparent),
    linear-gradient(145deg, transparent 0 36%, rgba(34, 211, 238, 0.07) 48%, transparent 64%);
  background-size: 210px 210px, 260px 260px, 240px 240px, 300px 300px, 100% 100%;
}

.ambient {
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 35%), color-mix(in srgb, var(--primary), transparent 88%), transparent 26%),
    radial-gradient(circle at 12% 82%, rgba(116, 157, 200, 0.14), transparent 24%),
    radial-gradient(circle at 88% 72%, rgba(6, 64, 137, 0.12), transparent 24%);
}

.ambient::after {
  background:
    linear-gradient(145deg, transparent 0 40%, rgba(116, 157, 200, 0.1) 46%, transparent 55%),
    radial-gradient(circle at 72% 28%, rgba(10, 97, 201, 0.14), transparent 24%);
  animation-duration: 24s;
  animation-delay: -8s;
}

.top-nav {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid rgba(6, 64, 137, 0.12);
  background: rgba(241, 247, 249, 0.86);
  box-shadow: 0 10px 34px rgba(7, 50, 106, 0.08);
  backdrop-filter: blur(22px) saturate(1.25);
  transition:
    transform 0.25s ease,
    background-color 0.2s ease;
}

body.dark .top-nav {
  border-bottom-color: var(--border);
  background: color-mix(in srgb, var(--card-strong), transparent 6%);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.top-nav::after,
.card::after,
.modal-card::after,
.profile-card::after,
.messages-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, var(--glass-highlight), transparent 32%);
  opacity: 0.16;
}

.top-nav {
  overflow: visible;
}

.brand,
.nav-button,
.theme-toggle,
.chip,
.primary-action,
.ghost-action,
.composer button {
  border: 1px solid var(--border);
  color: var(--foreground);
  background: var(--card-strong);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  text-align: left;
}

.brand-mark,
.section-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #064089;
  background:
    linear-gradient(145deg, #ffffff, #f1f7f9),
    var(--card-strong);
  border: 1px solid var(--border);
  box-shadow: 0 14px 32px rgba(10, 97, 201, 0.14);
}

body.dark .brand-mark,
body.dark .section-icon {
  color: var(--primary);
  background: var(--card-strong);
  box-shadow: var(--panel-shadow);
}

.brand-mark {
  animation: mark-spark 3.8s ease-in-out infinite;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 10px;
}

.nav-tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body.dark .nav-tabs {
  background: var(--card-strong);
}

.app-icon {
  width: 1.12em;
  height: 1.12em;
  display: block;
  flex: 0 0 auto;
}

.nav-button,
.theme-toggle,
.modal-close,
.icon-action,
.composer button,
.ai-panel header button,
.favorite {
  display: grid;
  place-items: center;
}

.nav-button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 68px;
  width: auto;
  height: auto;
  min-height: 58px;
  padding: 8px 10px;
}

.nav-button-label {
  display: block;
  max-width: 76px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.nav-button.active .nav-button-label {
  color: rgba(255, 255, 255, 0.92);
}

.nav-button:hover .nav-button-label {
  color: var(--foreground);
}

.nav-button.active:hover .nav-button-label {
  color: #fff;
}

.nav-button .app-icon,
.theme-toggle .app-icon,
.brand-mark .app-icon,
.section-icon .app-icon {
  width: 20px;
  height: 20px;
}

.inline-icon-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.inline-icon-text .app-icon,
.profile-meta-line .app-icon,
.company-meta .app-icon,
.selected-company .meta .app-icon,
.chat-tools .app-icon,
.ghost-action .app-icon {
  width: 16px;
  height: 16px;
}

.nav-button,
.theme-toggle {
  border-radius: 12px;
  transition: 0.2s ease;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}

.nav-button:hover,
.theme-toggle:hover,
.brand:hover .brand-mark {
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary), transparent 88%);
}

.nav-button.active {
  background: var(--accent-bg);
  color: var(--text-on-accent);
  transform: translateY(-1px);
}

main {
  position: relative;
  z-index: 1;
}

.page {
  display: none;
  min-height: 100vh;
  padding: 96px clamp(16px, 4vw, 40px) 48px;
  animation: page-in 0.35s ease both;
}

.page.active {
  display: block;
}

.hero-page.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4vw, 44px);
  overflow-x: clip;
  overflow-y: visible;
  text-align: left;
}

.hero-page {
  position: relative;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.72), transparent 38%),
    radial-gradient(circle at 18% 30%, rgba(116, 157, 200, 0.18), transparent 28%),
    radial-gradient(circle at 82% 26%, rgba(10, 97, 201, 0.16), transparent 24%),
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--primary), transparent 88%), transparent 32%),
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--background), #749dc8 16%));
}

body.dark .hero-page {
  background:
    linear-gradient(115deg, rgba(143, 208, 232, 0.14), transparent 34%),
    linear-gradient(250deg, rgba(63, 141, 182, 0.15), transparent 40%),
    radial-gradient(ellipse at 50% 36%, rgba(246, 251, 255, 0.09), transparent 42%),
    linear-gradient(180deg, transparent, rgba(20, 35, 49, 0.58));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(280px, 0.78fr);
  align-items: center;
  gap: clamp(28px, 6vw, 76px);
  transform-style: preserve-3d;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    filter 0.35s ease;
}

.hero-content > * {
  animation: rise-soft 0.72s cubic-bezier(.2, .9, .2, 1) both;
}

.hero-content > :nth-child(2) { animation-delay: 0.12s; }

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -40px -28px;
  border-radius: 28px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--card-strong), transparent 54%), transparent 58%);
  mask-image: linear-gradient(90deg, #000, transparent 86%);
}

body.universe-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

body.universe-open .top-nav {
  transform: none;
}

body.universe-open .hero-content {
  pointer-events: none;
  opacity: 0;
  transform: scale(0.94);
  filter: blur(14px);
}

.universe-view {
  position: fixed;
  z-index: 8;
  top: var(--nav-height);
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-rows: 1fr;
  gap: clamp(14px, 2vw, 22px);
  height: calc(100dvh - var(--nav-height));
  padding: clamp(16px, 2vw, 24px);
  background:
    linear-gradient(110deg, rgba(116, 157, 200, 0.18), transparent 32%),
    linear-gradient(245deg, rgba(10, 97, 201, 0.16), transparent 42%),
    radial-gradient(ellipse at 50% 46%, rgba(255, 255, 255, 0.06), transparent 46%),
    linear-gradient(180deg, var(--universe-bg), var(--background));
  color: var(--universe-text);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96);
  transition:
    opacity 0.6s ease,
    transform 0.8s cubic-bezier(.2, .9, .2, 1);
}

.universe-view::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.14), transparent 28%, rgba(2, 6, 23, 0.12)),
    radial-gradient(circle at 50% 50%, transparent 0 42%, rgba(2, 6, 23, 0.16) 72%);
}

.universe-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(1.18) contrast(1.05);
  pointer-events: none;
  transition: opacity 0.7s ease 1.1s;
}

.universe-view.open {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.universe-view.ready .universe-video {
  opacity: 0.34;
}

.warp-intro {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
}

.universe-view.open .warp-intro {
  opacity: 1;
  animation: warp-hide 1.65s ease both;
}

.warp-tunnel {
  position: absolute;
  inset: -18%;
  background:
    repeating-radial-gradient(ellipse at 50% 50%, rgba(255,255,255,0.96) 0 1px, transparent 2px 20px),
    radial-gradient(circle at 50% 50%, rgba(96,165,250,0.85), rgba(37,99,235,0.25) 18%, rgba(2,6,23,0.95) 62%);
  filter: saturate(1.4);
  transform: scale(0.42);
}

.universe-view.open .warp-tunnel {
  animation: warp-tunnel 1.45s cubic-bezier(.12,.82,.18,1) both;
}

.warp-core {
  position: absolute;
  width: 18vmin;
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255,255,255,1) 0 14%, rgba(147,197,253,0.92) 18%, rgba(37,99,235,0.3) 48%, transparent 72%);
  box-shadow:
    0 0 70px rgba(147,197,253,0.75),
    0 0 160px rgba(37,99,235,0.45);
}

.universe-view.open .warp-core {
  animation: warp-core 1.35s cubic-bezier(.12,.82,.18,1) both;
}

.warp-flash {
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
}

.universe-view.open .warp-flash {
  animation: warp-flash 1.55s ease both;
}

.universe-view:not(.ready) .universe-header,
.universe-view:not(.ready) .universe-orbit,
.universe-view:not(.ready) .universe-controls {
  opacity: 0;
}

.universe-header {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.universe-view.open .universe-header {
  animation: universe-enter 0.72s cubic-bezier(.2, .9, .2, 1) both;
}

.universe-header h2 {
  margin-bottom: 12px;
  color: var(--universe-text);
  font-size: clamp(34px, 6vw, 72px);
  line-height: 0.98;
}

.universe-header p {
  margin: 0;
  color: var(--universe-muted);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.7;
}

.universe-header .live-badge {
  background: var(--universe-card-strong);
  color: var(--primary);
}

.universe-orbit {
  position: relative;
  z-index: 2;
  display: block;
  width: min(1120px, 100%);
  min-height: min(560px, calc(100dvh - 220px));
  margin: 0 auto;
  padding-top: 64px;
  padding-bottom: 24px;
  overflow: visible;
}

.universe-orbit::before,
.universe-orbit::after {
  display: none;
}

.universe-card {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  place-items: center;
  width: var(--size);
  height: var(--size);
  min-height: 0;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--item-color), transparent 44%);
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 28%, rgba(255,255,255,0.82), transparent 0 12%, color-mix(in srgb, var(--item-color), white 34%) 13%, color-mix(in srgb, var(--item-color), transparent 28%) 42%, rgba(2, 6, 23, 0.9) 100%);
  color: var(--universe-text);
  box-shadow:
    inset -12px -18px 28px rgba(2, 6, 23, 0.32),
    0 0 26px color-mix(in srgb, var(--item-color), transparent 58%),
    0 18px 48px rgba(2, 8, 23, 0.25);
  backdrop-filter: blur(18px);
  text-align: center;
  transform: translate(-50%, -50%);
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease;
  animation:
    orbit-pop 0.7s cubic-bezier(.2, .9, .2, 1) both,
    universe-float 5s ease-in-out infinite;
  animation-delay: var(--delay, 0ms), var(--float-delay, 0ms);
}

.universe-card:nth-child(even) {
  animation-delay: -2.4s;
}

.universe-card:hover {
  transform: translate(-50%, -50%) scale(1.12);
  border-color: color-mix(in srgb, var(--item-color), white 14%);
  box-shadow:
    inset -12px -18px 28px rgba(2, 6, 23, 0.24),
    0 0 34px color-mix(in srgb, var(--item-color), transparent 38%),
    0 24px 64px color-mix(in srgb, var(--item-color), transparent 76%);
}

.universe-card strong {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  min-width: max-content;
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, var(--item-color), transparent 58%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--universe-card-strong), transparent 12%);
  color: color-mix(in srgb, var(--item-color), white 18%);
  font-size: 12px;
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}

.universe-card span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  border: 0;
  font-size: clamp(22px, calc(var(--size) * 0.38), 38px);
  filter: drop-shadow(0 4px 12px rgba(2, 6, 23, 0.45));
}

.universe-card span .app-icon {
  width: clamp(28px, calc(var(--size) * 0.45), 44px);
  height: clamp(28px, calc(var(--size) * 0.45), 44px);
}

body.dark .universe-card span {
  color: var(--universe-icon-text);
}

.universe-card small {
  position: absolute;
  right: -8px;
  top: -8px;
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  color: #e5efff;
  border: 1px solid color-mix(in srgb, var(--item-color), transparent 52%);
  font-size: 10px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.universe-controls {
  position: fixed;
  z-index: 3;
  top: calc(var(--nav-height) + 10px);
  right: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0 clamp(16px, 2vw, 24px);
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--universe-text);
  box-shadow: none;
  backdrop-filter: none;
}

.universe-view.open .universe-controls {
  animation: dock-in 0.65s cubic-bezier(.2, .9, .2, 1) 0.18s both;
}

.universe-controls .ghost-action {
  background: var(--universe-card-strong);
  color: var(--universe-text);
}

.universe-stars span {
  position: absolute;
  z-index: 1;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--primary);
  animation: twinkle 4s ease-in-out infinite;
}

.universe-stars span:nth-child(3n) {
  animation-name: star-drift;
}

.live-badge,
.pill,
.tag-row span,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card-strong);
  color: var(--muted);
}

.live-badge {
  padding: 8px 14px;
  margin-bottom: 26px;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.12);
}

body.dark .live-badge {
  background: var(--card-strong);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--primary), transparent 88%);
}

.live-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary), transparent 82%);
}

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

h1,
h2,
h3,
strong,
.profile-copy h2,
.section-header h2,
.card h3,
.panel h3,
.chat-panel header,
.conversation strong {
  color: var(--foreground);
}

small,
.stats-grid small {
  color: var(--muted);
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.94;
}

h1 {
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 span {
  color: transparent;
  background: var(--accent-bg);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-content p {
  max-width: 600px;
  margin: 0 0 34px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.7;
}

.hero-actions,
.search-row,
.filter-row,
.tag-row,
.center {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.hero-actions,
.tag-row {
  justify-content: flex-start;
}

.primary-action,
.ghost-action,
.chip {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  transition: 0.2s ease;
}

.primary-action,
.ghost-action,
.chip,
.nav-button,
.theme-toggle {
  position: relative;
  overflow: hidden;
}

.primary-action::after,
.ghost-action::after,
.chip::after,
.nav-button::after,
.theme-toggle::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  transform: translateX(-130%);
  transition: transform 0.55s ease;
}

.primary-action:hover::after,
.ghost-action:hover::after,
.chip:hover::after,
.nav-button:hover::after,
.theme-toggle:hover::after {
  transform: translateX(130%);
}

.primary-action {
  background: var(--accent-bg);
  color: var(--text-on-accent);
  font-weight: 700;
  border: 0;
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.22);
}

.primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(37, 99, 235, 0.28);
}

.primary-action.small {
  min-height: 40px;
}

.ghost-action:hover,
.chip:hover,
.nav-button:hover {
  transform: translateY(-2px);
}

.chip.active {
  background: var(--accent-bg);
  color: var(--text-on-accent);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.14);
}

.tag-row {
  margin-top: 36px;
}

.tag-row span,
.pill {
  padding: 7px 12px;
  font-size: 13px;
}

.tag-row span {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

body.dark .tag-row span {
  background: color-mix(in srgb, var(--card-strong), transparent 12%);
}

.hero-showcase {
  position: relative;
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 430px;
  min-width: 0;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--border);
  border-radius: 26px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--card-strong), transparent 4%), color-mix(in srgb, var(--card), transparent 10%)),
    radial-gradient(circle at 18% 20%, rgba(20, 184, 166, 0.18), transparent 28%);
  box-shadow:
    0 30px 80px rgba(15, 23, 42, 0.14),
    var(--panel-shadow);
  backdrop-filter: blur(22px);
  overflow: hidden;
}

.hero-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.55), transparent 34%),
    radial-gradient(circle at 90% 8%, color-mix(in srgb, var(--primary), transparent 78%), transparent 28%);
  opacity: 0.7;
}

.hero-showcase > * {
  position: relative;
  z-index: 1;
}

.showcase-topline,
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.showcase-topline {
  color: var(--muted);
  font-size: 13px;
  min-width: 0;
}

.showcase-topline strong {
  color: var(--primary);
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1;
  flex: 0 0 auto;
}

@media (min-width: 861px) {
  .hero-showcase {
    justify-self: end;
  }
}

.featured-role {
  display: flex;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: color-mix(in srgb, var(--card-strong), transparent 8%);
  box-shadow: 0 18px 42px rgba(2, 8, 23, 0.08);
}

.featured-role[data-job-detail] {
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.featured-role[data-job-detail]:hover,
.featured-role[data-job-detail]:focus-visible {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--primary), transparent 42%);
  box-shadow: 0 22px 48px color-mix(in srgb, var(--primary), transparent 78%);
  outline: 0;
}

.featured-role h3 {
  margin: 9px 0 5px;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.18;
}

.featured-role p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.match-bars {
  display: grid;
  gap: 12px;
}

.match-bars span {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.match-bars i {
  position: relative;
  display: block;
  width: 100%;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary), transparent 88%);
}

.match-bars i::before {
  content: "";
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #749dc8, #0a61c9, #064089);
  box-shadow: 0 0 24px color-mix(in srgb, var(--primary), transparent 54%);
}

.hero-stats {
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.hero-stats span {
  display: grid;
  gap: 4px;
}

.hero-stats strong {
  font-size: 24px;
}

.hero-stats small {
  font-size: 12px;
}

.section-header {
  max-width: 1120px;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.section-header h2 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.01em;
}

.section-header p {
  color: var(--muted);
}

.browse-layout {
  width: min(1320px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(18px, 3vw, 34px);
}

.filter-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 18px);
  display: grid;
  gap: 18px;
  max-height: calc(100dvh - var(--nav-height) - 32px);
  padding: 18px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--card-strong), transparent 6%);
  box-shadow:
    0 24px 56px rgba(7, 50, 106, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.76) inset;
  backdrop-filter: blur(18px) saturate(1.12);
}

.filter-sidebar .section-header {
  max-width: none;
  margin: 0;
  align-items: flex-start;
}

.filter-sidebar .section-header h2 {
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.05;
}

.filter-sidebar .section-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
}

.filter-sidebar .toolbar {
  max-width: none;
  margin: 0;
}

.filter-sidebar .filter-row,
.filter-sidebar .search-row {
  display: grid;
  grid-template-columns: 1fr;
  justify-content: stretch;
  gap: 10px;
}

.filter-sidebar .chip,
.filter-sidebar .ghost-action,
.filter-sidebar .search-box,
.filter-sidebar .filter-select select {
  width: 100%;
}

.filter-sidebar .search-box {
  min-width: 0;
}

.filter-sidebar .advanced-filters {
  grid-template-columns: 1fr;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.browse-data {
  min-width: 0;
}

.browse-data > .grid,
.browse-data > .selected-company {
  max-width: none;
}

.browse-data > .grid.three {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.toolbar {
  max-width: 1120px;
  margin: 0 auto 24px;
  display: grid;
  gap: 14px;
}

.advanced-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
  align-items: end;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--card-strong), transparent 8%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.filter-select {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.filter-select span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.filter-select select {
  width: 100%;
  min-height: 42px;
  padding: 0 36px 0 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card-strong);
  color: var(--foreground);
  font: inherit;
  outline: 0;
}

.filter-select select:focus-visible {
  border-color: color-mix(in srgb, var(--primary), transparent 36%);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary), transparent 86%);
}

.search-box {
  flex: 1;
  min-width: min(100%, 300px);
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 14px 36px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(16px);
}

body.dark .search-box {
  background: var(--card-strong);
  box-shadow: var(--panel-shadow);
}

.search-box.compact {
  min-width: 0;
  box-shadow: none;
}

.search-box > span {
  color: var(--muted);
}

.search-box input,
.composer input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--input-text);
}

.search-box input::placeholder,
.composer input::placeholder {
  color: var(--placeholder);
  opacity: 1;
}

.grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.jobs-grid {
  max-width: none;
  width: 100%;
  margin: 0;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
}

.grid.jobs-grid .job-card {
  width: 100%;
}

.jobs-load-more {
  margin-top: clamp(26px, 4vw, 44px);
}

#loadMoreJobs {
  min-width: min(100%, 280px);
}

#loadMoreJobs:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.card,
.panel,
.selected-company,
.profile-card,
.stats-grid article,
.messages-shell {
  border: 1px solid rgba(15, 111, 255, 0.12);
  border-radius: 16px;
  background: var(--card);
  color: var(--foreground);
  box-shadow:
    0 18px 48px rgba(15, 23, 42, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.76) inset;
  backdrop-filter: blur(18px) saturate(1.12);
}

body.dark .card,
body.dark .panel,
body.dark .selected-company,
body.dark .profile-card,
body.dark .stats-grid article,
body.dark .messages-shell {
  border-color: var(--border);
  box-shadow: var(--panel-shadow);
}

.card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  animation: card-in 0.56s cubic-bezier(.2, .9, .2, 1) both;
  animation-delay: var(--delay, 0ms);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.job-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 18px 20px;
}

.job-card-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.job-card-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.job-card-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.job-card-copy h3 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.job-card-copy p {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.match-pill {
  flex: 0 0 auto;
  min-width: 48px;
  padding: 6px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary), transparent 90%);
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.job-card-code {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.job-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.job-card-tag {
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
}

.job-card-footnote {
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.35;
}

.job-card-summary {
  flex: 1 1 180px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.job-card .logo {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
}

.job-card:hover .logo {
  transform: none;
}

.job-card .apply-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 2px;
}

.job-card::after {
  opacity: 0.1;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 24px 56px rgba(37, 99, 235, 0.12),
    0 12px 28px rgba(15, 23, 42, 0.06);
  border-color: rgba(14, 165, 233, 0.28);
}

body.dark .card:hover {
  box-shadow:
    0 20px 48px color-mix(in srgb, var(--primary), transparent 86%),
    var(--panel-shadow);
  border-color: color-mix(in srgb, var(--primary), transparent 62%);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--card-x, 50%) var(--card-y, 0%), color-mix(in srgb, var(--primary), transparent 88%), transparent 36%);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.card:hover::before {
  opacity: 1;
}

.card-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-width: 0;
}

.logo {
  display: grid;
  place-items: center;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  font-weight: 800;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--item-color, var(--primary)), transparent 82%);
}

.card:hover .logo,
.universe-card:hover span {
  transform: rotate(-3deg) scale(1.06);
}

.logo,
.universe-card span {
  transition: transform 0.22s ease;
}

.card h3 {
  margin-bottom: 5px;
  color: var(--foreground);
  line-height: 1.25;
}

.job-heading {
  min-width: 0;
}

.job-heading h3 {
  display: -webkit-box;
  min-height: 0;
  margin-top: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.job-heading p {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meta,
.muted {
  color: var(--muted);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0;
  font-size: 14px;
}

.job-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--item-color), transparent 78%);
  border-radius: 14px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--item-color), transparent 94%), transparent),
    rgba(255, 255, 255, 0.64);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

body.dark .job-meta-grid {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--item-color), transparent 94%), transparent),
    color-mix(in srgb, var(--card-strong), transparent 10%);
  box-shadow: none;
}

.job-meta-grid span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.job-meta-grid small {
  font-size: 11px;
}

.job-meta-grid strong {
  overflow: hidden;
  color: var(--foreground);
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-match-meter {
  display: grid;
  gap: 7px;
}

.job-match-meter span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.job-match-meter strong {
  color: var(--primary);
  font-size: 18px;
}

.job-match-meter i {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--accent-bg);
  box-shadow: 0 0 22px color-mix(in srgb, var(--primary), transparent 70%);
}

.match-explain {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--card-strong), transparent 8%);
}

.match-explain > strong {
  color: var(--primary);
  font-size: 24px;
}

.match-explain p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
}

.badge {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(15, 111, 255, 0.08);
  color: var(--primary);
  font-size: 12px;
  border: 1px solid rgba(15, 111, 255, 0.08);
}

body.dark .badge {
  background: var(--soft-bg);
  border-color: transparent;
}

.tone-badge {
  background: color-mix(in srgb, var(--item-color), white 88%);
  color: color-mix(in srgb, var(--item-color), var(--foreground) 38%);
  border: 1px solid color-mix(in srgb, var(--item-color), transparent 62%);
}

body.dark .tone-badge {
  background: color-mix(in srgb, var(--item-color), transparent 86%);
  color: color-mix(in srgb, var(--item-color), white 34%);
}

.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.job-card .apply-button {
  flex: 0 0 auto;
}

.job-card .card-actions > .badge {
  max-width: 44%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-card.minimal {
  display: grid;
  min-height: 270px;
  grid-template-rows: auto auto 1fr auto;
  gap: 14px;
  padding: 22px;
}

.company-card.minimal .card-top {
  padding-right: 42px;
}

.company-description {
  display: -webkit-box;
  min-height: 44px;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.55;
}

.company-meta {
  display: grid;
  gap: 8px;
  align-self: start;
  color: var(--muted);
  font-size: 13px;
}

.company-meta span,
.selected-company .meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.company-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.company-detail-hero {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--item-color), transparent 70%);
  border-radius: 18px;
  background:
    radial-gradient(circle at 16% 20%, color-mix(in srgb, var(--item-color), transparent 78%), transparent 28%),
    color-mix(in srgb, var(--card-strong), transparent 8%);
}

.company-detail-logo {
  width: 78px;
  height: 78px;
  flex-basis: 78px;
  border-radius: 20px;
  font-size: 20px;
}

.company-detail-hero h2 {
  margin: 10px 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.05;
}

.company-detail-hero p {
  margin: 0;
  line-height: 1.65;
}

.company-perks {
  margin-bottom: 18px;
}

.company-job-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.company-job-row {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--item-color), transparent 74%);
  border-radius: 14px;
  background: color-mix(in srgb, var(--card-strong), transparent 8%);
  text-align: left;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease;
}

.company-job-row:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--item-color), transparent 46%);
  background: color-mix(in srgb, var(--item-color), var(--card-strong) 92%);
}

.company-job-row .logo {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
  border-radius: 12px;
  font-size: 13px;
}

.company-job-row strong,
.company-job-row small {
  display: block;
}

.company-job-row small {
  margin-top: 4px;
  color: var(--muted);
}

.small-button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 11px;
  font-size: 13px;
}

.favorite {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card-strong);
  color: var(--muted);
}

.favorite.saved {
  color: #ef4444;
}

.selected-company {
  max-width: 1120px;
  margin: 0 auto 22px;
  padding: 20px;
}

.hidden {
  display: none;
}

#messagesPage {
  position: relative;
  min-height: 100vh;
  padding: var(--nav-height) 0 0;
  overflow: hidden;
}

.messages-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 20%, rgba(14, 165, 233, 0.15), transparent 26%),
    radial-gradient(circle at 86% 18%, rgba(20, 184, 166, 0.1), transparent 24%),
    radial-gradient(circle at 74% 82%, rgba(245, 158, 11, 0.08), transparent 28%);
}

body.dark .messages-bg {
  background:
    linear-gradient(120deg, rgba(34, 211, 238, 0.11), transparent 34%),
    linear-gradient(250deg, rgba(124, 58, 237, 0.12), transparent 42%),
    radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 78% 22%, rgba(186, 230, 253, 0.68), transparent),
    radial-gradient(1px 1px at 68% 78%, rgba(221, 214, 254, 0.62), transparent);
  background-size: 100% 100%, 100% 100%, 190px 190px, 260px 260px, 220px 220px;
}

.messages-shell {
  position: relative;
  max-width: none;
  width: 100%;
  height: calc(100vh - var(--nav-height));
  margin: 0;
  display: grid;
  grid-template-columns: minmax(300px, 360px) 1fr;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: color-mix(in srgb, var(--card), transparent 4%);
}

.conversation-list {
  border-right: 1px solid var(--border);
  overflow: auto;
  background: rgba(255, 255, 255, 0.62);
}

body.dark .conversation-list {
  background: color-mix(in srgb, var(--card-strong), transparent 12%);
}

.conversation-list header,
.chat-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 76px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--card-strong), transparent 18%);
  backdrop-filter: blur(18px);
}

.conversation-list .search-box {
  width: calc(100% - 28px);
  margin: 14px;
}

.conversation {
  width: 100%;
  display: flex;
  position: relative;
  gap: 12px;
  padding: 14px 18px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--foreground);
  text-align: left;
  transition:
    background-color 0.18s ease,
    transform 0.18s ease;
}

.conversation.active {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--primary), transparent 86%), transparent),
    var(--soft-bg);
}

.conversation:hover {
  transform: translateX(4px);
  background: color-mix(in srgb, var(--primary), transparent 92%);
}

.conversation-dot {
  position: absolute;
  right: 16px;
  top: 20px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.12);
}

.chat-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.46), transparent),
    color-mix(in srgb, var(--background), var(--card) 18%);
}

.chat-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-tools {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card-strong);
}

.chat-messages {
  flex: 1;
  overflow: auto;
  display: grid;
  gap: 12px;
  align-content: end;
  padding: clamp(18px, 3vw, 34px);
  scroll-behavior: smooth;
}

.message {
  max-width: 72%;
  padding: 13px 15px;
  border-radius: 20px 20px 20px 6px;
  background: var(--card-strong);
  color: var(--foreground);
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(2, 8, 23, 0.08);
}

.message {
  animation: message-pop 0.36s cubic-bezier(.2, .9, .2, 1) both;
}

.message.user {
  justify-self: end;
  background: var(--accent-bg);
  color: var(--text-on-accent);
  border: 0;
  border-radius: 20px 20px 6px 20px;
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.22);
}

.message small {
  display: block;
  margin-top: 5px;
  opacity: 0.72;
}

.composer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 clamp(18px, 3vw, 34px) clamp(18px, 3vw, 30px);
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: color-mix(in srgb, var(--card-strong), transparent 6%);
  box-shadow: 0 18px 46px rgba(2, 8, 23, 0.1);
  backdrop-filter: blur(18px);
}

.composer button {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.profile-card,
.stats-grid,
.profile-grid {
  max-width: 1000px;
  margin: 0 auto 20px;
}

.profile-cover {
  height: 130px;
  border-radius: 18px 18px 0 0;
  background:
    linear-gradient(115deg, rgba(34, 211, 238, 0.24), transparent 36%),
    linear-gradient(245deg, rgba(124, 58, 237, 0.24), transparent 44%),
    radial-gradient(1px 1px at 16% 26%, rgba(255, 255, 255, 0.86), transparent),
    radial-gradient(1px 1px at 72% 34%, rgba(186, 230, 253, 0.78), transparent),
    linear-gradient(135deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.32));
  background-size: 100% 100%, 100% 100%, 160px 160px, 210px 210px, 100% 100%;
  animation: cover-pan 12s ease-in-out infinite alternate;
}

.profile-body {
  display: flex;
  align-items: end;
  gap: 18px;
  padding: 0 22px 22px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  margin-top: -48px;
  border: 4px solid var(--card);
  border-radius: 28px;
  background: var(--accent-bg);
  color: var(--text-on-accent);
  font-size: 28px;
  font-weight: 800;
}

.profile-copy {
  flex: 1;
}

.completion {
  margin: 0 22px 22px;
}

.completion small {
  display: block;
  margin-top: 8px;
}

.completion div,
.skill {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary), transparent 88%);
}

.completion i,
.skill i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent-bg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stats-grid article,
.panel {
  padding: 18px;
}

.stats-grid strong,
.stats-grid small {
  display: block;
}

.stats-grid article > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary), transparent 90%);
}

.stats-grid article > span .app-icon {
  width: 20px;
  height: 20px;
}

.verified-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-left: 6px;
  border-radius: 999px;
  color: #10b981;
  background: color-mix(in srgb, #10b981, transparent 88%);
  vertical-align: middle;
}

.verified-icon .app-icon {
  width: 16px;
  height: 16px;
}

.profile-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.stats-grid strong {
  margin-top: 10px;
  font-size: 28px;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}

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

.cv-info-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.cv-info-list span,
.cv-submit-summary > div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--card-strong), transparent 8%);
}

.cv-info-list strong,
.cv-submit-summary strong {
  color: var(--foreground);
  font-size: 13px;
}

.cv-info-list small,
.cv-submit-summary small {
  color: var(--muted);
  line-height: 1.45;
}

.cv-submit-summary {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.application-tracker-panel {
  margin-top: 18px;
}

.application-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.application-column {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 150px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--card-strong), transparent 10%);
}

.application-column header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
}

.application-column header span {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--soft-bg);
  color: var(--primary);
}

.application-list {
  display: grid;
  gap: 8px;
}

.application-list > p,
.empty-tracker {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.empty-tracker {
  grid-column: 1 / -1;
  padding: 14px;
  border: 1px dashed var(--border);
  border-radius: 14px;
}

.application-card {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--card);
  cursor: pointer;
}

.application-card strong {
  font-size: 13px;
  line-height: 1.25;
}

.application-card small {
  color: var(--muted);
  line-height: 1.35;
}

.application-card > span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.status-actions {
  display: flex;
  gap: 4px;
  padding-top: 4px;
}

.status-actions button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--card-strong);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.status-actions button.active {
  border-color: color-mix(in srgb, var(--primary), transparent 40%);
  background: var(--accent-bg);
  color: var(--text-on-accent);
}

.recommendation-list,
.service-request-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.recommendation-card,
.service-request-list article {
  display: grid;
  gap: 6px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--item-color, var(--primary)), transparent 92%), transparent),
    color-mix(in srgb, var(--card-strong), transparent 8%);
}

.recommendation-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  cursor: pointer;
}

.recommendation-card strong,
.service-request-list strong {
  color: var(--foreground);
  font-size: 14px;
}

.recommendation-card small,
.recommendation-card p,
.service-request-list small,
.service-request-list p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.recommendation-card > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-bg);
  color: var(--text-on-accent);
  font-weight: 900;
}

.service-request-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 14px;
  align-items: end;
}

.service-request-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.service-request-form select {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card-strong);
  color: var(--foreground);
  padding: 0 10px;
}

.cv-lock {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid rgba(251, 191, 36, 0.34);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(251, 191, 36, 0.16), transparent),
    color-mix(in srgb, var(--card-strong), transparent 8%);
}

.cv-lock strong {
  display: block;
  color: #fbbf24;
  margin-bottom: 6px;
}

.cv-lock p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.icon-action {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card-strong);
  color: var(--primary);
}

.modal {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(2, 6, 23, 0.68);
  backdrop-filter: blur(12px);
}

.modal.open {
  display: flex;
  animation: fade-in 0.18s ease both;
}

.modal-card {
  position: relative;
  width: min(560px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--card);
  color: var(--foreground);
  box-shadow: 0 28px 90px rgba(2, 8, 23, 0.34);
  animation: modal-pop 0.34s cubic-bezier(.2, .9, .2, 1) both;
}

.modal-card.wide {
  width: min(720px, 100%);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card-strong);
  color: var(--foreground);
}

.modal-card label {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.modal-card input,
.modal-card select,
.modal-card textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: 0;
  background: rgba(255, 255, 255, 0.86);
  color: var(--input-text);
  padding: 11px 12px;
}

body.dark .modal-card input,
body.dark .modal-card select,
body.dark .modal-card textarea {
  background: var(--card-strong);
}

.modal-card 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% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.form-section-title {
  margin: 22px 0 10px;
  color: var(--foreground);
  font-size: 14px;
}

.form-section-title:first-of-type {
  margin-top: 4px;
}

.modal-card textarea {
  resize: vertical;
}

.form-grid,
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-grid {
  margin: 18px 0;
}

.detail-grid article {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card-strong);
}

.detail-grid small,
.detail-grid strong {
  display: block;
}

.detail-grid strong {
  margin-top: 6px;
}

.detail-copy {
  line-height: 1.7;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.modal-actions.split {
  justify-content: stretch;
}

.modal-actions.split button {
  flex: 1;
}

.form-status {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--primary);
  font-size: 13px;
}

.ghost-action.saved {
  color: #ef4444;
}

.ai-assistant {
  position: fixed;
  z-index: 60;
  right: 24px;
  bottom: 24px;
}

.ai-trigger {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #0a61c9, #064089);
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 14px 45px rgba(6, 64, 137, 0.32);
  animation: ai-pulse 2.5s ease-in-out infinite;
}

.ai-trigger::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  border: 1px solid rgba(251, 191, 36, 0.35);
  animation: ai-ring 2.5s ease-in-out infinite;
}

.ai-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  display: none;
  width: min(390px, calc(100vw - 32px));
  max-height: 72vh;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(11, 28, 44, 0.98), rgba(5, 7, 10, 0.99));
  color: #e5efff;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.48);
}

.ai-assistant.open .ai-panel {
  animation: ai-rise 0.38s cubic-bezier(.2, .9, .2, 1) both;
}

.ai-assistant.open .ai-panel {
  display: block;
}

.ai-assistant.open .ai-trigger {
  display: none;
}

.ai-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-panel header strong,
.ai-panel header small {
  display: block;
}

.ai-panel header small {
  color: #fbbf24;
}

.ai-panel header button {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #e5efff;
}

.ai-content {
  max-height: calc(72vh - 64px);
  overflow: auto;
  padding: 14px;
}

.ai-message {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.ai-message {
  animation: message-pop 0.42s cubic-bezier(.2, .9, .2, 1) both;
}

.ai-message:nth-child(2) { animation-delay: 0.08s; }
.ai-message:nth-child(3) { animation-delay: 0.16s; }
.ai-message:nth-child(4) { animation-delay: 0.24s; }

.ai-message span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.16);
  color: #fbbf24;
}

.ai-message p {
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px 12px 12px 4px;
  background: rgba(15, 36, 56, 0.74);
  color: #e5efff;
  font-size: 13px;
}

.ai-suggestions {
  display: grid;
  gap: 10px;
}

.ai-suggestions > small {
  color: rgba(229, 239, 255, 0.7);
}

.ai-job {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--item-color), transparent 72%);
  border-radius: 15px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--item-color), transparent 92%), rgba(15, 36, 56, 0.72));
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ai-job:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--item-color), transparent 44%);
}

.ai-job strong,
.ai-job p {
  margin: 0;
  color: #e5efff;
}

.ai-job p {
  margin-top: 3px;
  color: rgba(229, 239, 255, 0.72);
  font-size: 12px;
}

.ai-job span {
  display: inline-flex;
  width: fit-content;
  margin-top: 7px;
  padding: 3px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--item-color), transparent 84%);
  color: var(--item-color);
  font-size: 11px;
  font-weight: 800;
}

.skill {
  position: relative;
  height: auto;
  margin-top: 14px;
  padding-top: 26px;
}

.skill span {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--muted);
  font-size: 14px;
}

.stars span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--primary);
  animation: twinkle 4s ease-in-out infinite;
}

.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

@keyframes ambient-drift {
  from { transform: translate3d(-6%, -3%, 0) rotate(-2deg); }
  to { transform: translate3d(5%, 4%, 0) rotate(2deg); }
}

@keyframes rise-soft {
  from { opacity: 0; transform: translateY(18px) scale(0.98); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes modal-pop {
  from { opacity: 0; transform: translateY(18px) scale(0.96); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.5); }
}

@keyframes star-drift {
  0% { opacity: 0.1; transform: translate3d(0, 0, 0) scale(0.8); }
  50% { opacity: 0.9; transform: translate3d(8px, -18px, 0) scale(1.35); }
  100% { opacity: 0.1; transform: translate3d(16px, -36px, 0) scale(0.8); }
}

@keyframes universe-enter {
  from { opacity: 0; transform: translateY(18px) scale(0.98); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes warp-tunnel {
  0% {
    opacity: 0;
    transform: scale(0.28) rotate(0deg);
    filter: brightness(0.8) blur(0px) saturate(1.2);
  }
  18% {
    opacity: 1;
  }
  76% {
    opacity: 1;
    transform: scale(1.55) rotate(8deg);
    filter: brightness(1.45) blur(1px) saturate(1.5);
  }
  100% {
    opacity: 0;
    transform: scale(2.4) rotate(12deg);
    filter: brightness(2.2) blur(5px) saturate(1.8);
  }
}

@keyframes warp-core {
  0% { opacity: 0; transform: scale(0.18); }
  24% { opacity: 1; transform: scale(0.7); }
  72% { opacity: 1; transform: scale(2.7); }
  100% { opacity: 0; transform: scale(7); }
}

@keyframes warp-flash {
  0%, 68% { opacity: 0; }
  76% { opacity: 0.94; }
  100% { opacity: 0; }
}

@keyframes warp-hide {
  0%, 86% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}

@keyframes orbit-pop {
  from { opacity: 0; transform: translateY(22px) scale(0.92); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes dock-in {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes universe-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

@keyframes ai-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes ai-ring {
  0%, 100% { opacity: 0.18; transform: scale(0.92); }
  50% { opacity: 0.7; transform: scale(1.08); }
}

@keyframes ai-rise {
  from { opacity: 0; transform: translateY(24px) scale(0.94); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes message-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes mark-spark {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(8deg) scale(1.06); }
}

@keyframes cover-pan {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

@media (max-width: 860px) {
  .hero-page.active {
    align-items: stretch;
    justify-content: flex-start;
    text-align: center;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 28px;
  }

  .hero-copy::before {
    inset: -22px -12px;
    mask-image: none;
  }

  .hero-content p {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-actions,
  .tag-row {
    justify-content: center;
  }

  .hero-showcase {
    width: min(100%, 430px);
    margin: 0 auto;
    text-align: left;
  }

  .job-card {
    min-height: 0;
  }

  .job-meta-grid {
    grid-template-columns: 1fr;
  }

  .job-meta-grid strong {
    white-space: normal;
  }

  .grid.two,
  .grid.three,
  .browse-layout,
  .browse-data > .grid.three,
  .advanced-filters,
  .messages-shell,
  .profile-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .filter-sidebar {
    position: static;
    max-height: none;
  }

  .universe-view {
    padding: 24px 16px;
  }

  .universe-orbit {
    min-height: 560px;
    overflow: visible;
    padding-top: 84px;
    padding-bottom: 24px;
  }

  .universe-card {
    width: calc(var(--size) * 0.78);
    height: calc(var(--size) * 0.78);
  }

  .universe-controls {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .universe-controls button {
    width: auto;
  }

  .form-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .company-detail-hero {
    grid-template-columns: 1fr;
  }

  .chat-panel {
    min-height: 520px;
  }

  #messagesPage {
    overflow: auto;
  }

  .messages-shell {
    height: auto;
    min-height: calc(100vh - var(--nav-height));
  }

  .conversation-list {
    max-height: 360px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

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

  .brand small {
    display: none;
  }

}

@media (max-width: 560px) {
  .top-nav {
    gap: 8px;
    padding-inline: 12px;
  }

  .brand strong {
    font-size: 14px;
  }

  .nav-tabs {
    gap: 4px;
    padding: 4px;
    overflow-x: auto;
    max-width: min(100%, calc(100vw - 180px));
    scrollbar-width: thin;
  }

  .nav-button {
    min-width: 58px;
    min-height: 52px;
    padding: 6px 8px;
  }

  .nav-button-label {
    font-size: 9px;
    max-width: 64px;
  }

  .theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  h1 {
    font-size: clamp(40px, 15vw, 58px);
  }

  .hero-actions button {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    display: grid;
  }

  .featured-role {
    align-items: flex-start;
  }

  .card-actions,
  .company-footer,
  .modal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .job-card .card-actions > .badge,
  .job-card .apply-button {
    max-width: none;
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Final brand-color pass based on /Users/tsooj/Desktop/job color.jpg */
.primary-action,
.nav-button.active,
.ai-trigger {
  background: linear-gradient(135deg, #0a61c9, #064089 58%, #07326a);
  color: #ffffff;
  border-color: rgba(6, 64, 137, 0.38);
}

.primary-action {
  box-shadow: 0 18px 34px rgba(6, 64, 137, 0.22);
}

.primary-action:hover,
.ai-trigger:hover {
  box-shadow: 0 22px 44px rgba(7, 50, 106, 0.28);
}

.ghost-action:hover,
.chip:hover,
.nav-button:hover,
.theme-toggle:hover,
.brand:hover .brand-mark {
  box-shadow: 0 0 0 6px rgba(10, 97, 201, 0.12);
}

.chip.active,
.ghost-action.saved,
.favorite.saved,
.live-badge,
.badge.tone-badge {
  background: rgba(10, 97, 201, 0.1);
  color: #064089;
  border-color: rgba(10, 97, 201, 0.22);
}

.tone-badge.logo,
.logo.tone-badge {
  background: linear-gradient(135deg, var(--item-color), #07326a);
  color: #ffffff;
}

.card,
.profile-card,
.messages-shell,
.modal-card,
.selected-company,
.search-box,
.advanced-filters {
  border-color: rgba(6, 64, 137, 0.14);
  box-shadow:
    0 24px 56px rgba(7, 50, 106, 0.1),
    0 12px 28px rgba(6, 64, 137, 0.06);
}

.cv-completion div i,
.profile-progress div i {
  background: linear-gradient(90deg, #749dc8, #0a61c9, #064089);
}

.ai-panel {
  border-color: rgba(116, 157, 200, 0.35);
  background: linear-gradient(145deg, rgba(7, 50, 106, 0.98), rgba(6, 64, 137, 0.99));
}

.ai-panel header strong,
.ai-job span,
.ai-message span {
  color: #749dc8;
}

body.dark .chip.active,
body.dark .ghost-action.saved,
body.dark .favorite.saved,
body.dark .live-badge,
body.dark .badge.tone-badge {
  background: rgba(116, 157, 200, 0.16);
  color: #f1f7f9;
  border-color: rgba(116, 157, 200, 0.28);
}

/* Premium layout polish. Keeps the same Azure palette, improves hierarchy and scan quality. */
#jobsPage,
#companiesPage {
  background:
    linear-gradient(180deg, rgba(241, 247, 249, 0.92), rgba(241, 247, 249, 0.74)),
    radial-gradient(circle at 18% 14%, rgba(116, 157, 200, 0.2), transparent 28%),
    radial-gradient(circle at 88% 24%, rgba(10, 97, 201, 0.16), transparent 26%);
}

body.dark #jobsPage,
body.dark #companiesPage {
  background:
    radial-gradient(circle at 18% 14%, rgba(143, 208, 232, 0.14), transparent 28%),
    radial-gradient(circle at 88% 24%, rgba(63, 141, 182, 0.15), transparent 26%),
    linear-gradient(180deg, rgba(36, 60, 80, 0.88), rgba(20, 35, 49, 0.92));
}

.browse-layout {
  grid-template-columns: minmax(270px, 330px) minmax(0, 1fr) !important;
  gap: clamp(22px, 3vw, 40px) !important;
}

.filter-sidebar {
  gap: 20px !important;
  padding: 20px !important;
  border-radius: 22px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 247, 249, 0.9)),
    radial-gradient(circle at 12% 0%, rgba(116, 157, 200, 0.2), transparent 34%) !important;
  box-shadow:
    0 28px 70px rgba(7, 50, 106, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.88) inset !important;
}

.jobs-filter-sidebar {
  position: relative;
  overflow: visible;
}

.jobs-filter-sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(10, 97, 201, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 34%);
}

.jobs-filter-sidebar > * {
  position: relative;
  z-index: 1;
}

body.dark .filter-sidebar {
  background:
    linear-gradient(180deg, rgba(43, 67, 86, 0.9), rgba(33, 52, 70, 0.86)),
    radial-gradient(circle at 12% 0%, rgba(143, 208, 232, 0.13), transparent 34%) !important;
  box-shadow:
    0 24px 64px rgba(5, 16, 27, 0.32),
    0 1px 0 rgba(241, 247, 249, 0.19) inset !important;
}

body.dark .jobs-filter-sidebar::before {
  background:
    linear-gradient(135deg, rgba(143, 208, 232, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(241, 247, 249, 0.08), transparent 34%);
}

.filter-sidebar .section-header {
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.filter-sidebar .section-header h2 {
  margin-bottom: 8px;
  font-size: clamp(25px, 2.3vw, 34px) !important;
  letter-spacing: 0;
}

.filter-sidebar .section-header p {
  max-width: 22ch;
  margin: 0;
  line-height: 1.45;
}

.filter-sidebar .section-header p span {
  color: var(--primary);
  font-weight: 900;
}

.filter-sidebar .section-icon {
  border-radius: 14px;
  background: linear-gradient(135deg, #0a61c9, #064089);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(6, 64, 137, 0.24);
}

.filter-sidebar .filter-row {
  padding-bottom: 2px;
}

.filter-sidebar .filter-row {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-sidebar .filter-row .chip {
  width: auto !important;
  min-height: 34px;
  flex: 1 1 auto;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.filter-sidebar .chip,
.filter-sidebar .ghost-action {
  justify-content: center;
  min-height: 42px;
  border-radius: 12px;
  font-weight: 800;
}

.filter-sidebar .chip:not(.active),
.filter-sidebar .ghost-action {
  background: rgba(255, 255, 255, 0.74);
}

.filter-sidebar .chip.active {
  box-shadow:
    0 14px 32px color-mix(in srgb, var(--primary), transparent 76%),
    0 1px 0 rgba(255, 255, 255, 0.34) inset;
}

body.dark .filter-sidebar .chip:not(.active),
body.dark .filter-sidebar .ghost-action {
  background: rgba(241, 247, 249, 0.09);
}

.filter-sidebar .search-box {
  min-height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
}

.occupation-code-filter {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--primary), transparent 72%);
  border-radius: 17px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary), transparent 90%), transparent),
    color-mix(in srgb, var(--card-strong), transparent 4%);
  box-shadow: 0 14px 34px rgba(7, 50, 106, 0.09);
}

.occupation-code-filter span,
.occupation-code-filter small {
  color: color-mix(in srgb, var(--foreground), var(--muted) 46%);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.occupation-code-filter input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 13px;
  outline: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--input-text);
  padding: 11px 12px;
  font-weight: 900;
}

.occupation-code-filter input:focus {
  border-color: color-mix(in srgb, var(--primary), transparent 35%);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary), transparent 84%);
}

.occupation-code-filter small {
  overflow: hidden;
  color: var(--primary);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.occupation-suggestions {
  display: none;
  max-height: 232px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--card-strong), white 10%);
  box-shadow: 0 18px 42px rgba(7, 50, 106, 0.14);
}

.occupation-suggestions.open {
  display: grid;
}

.occupation-suggestions button {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--foreground);
  text-align: left;
}

.occupation-suggestions button:last-child {
  border-bottom: 0;
}

.occupation-suggestions button:hover,
.occupation-suggestions button:focus-visible {
  background: var(--soft-bg);
  outline: 0;
}

.occupation-suggestions strong {
  display: inline-grid;
  place-items: center;
  min-height: 26px;
  border-radius: 8px;
  background: var(--accent-bg);
  color: var(--text-on-accent);
  font-size: 12px;
}

.occupation-suggestions span {
  overflow: hidden;
  color: var(--foreground);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.university-search-field {
  position: relative;
  display: grid;
  gap: 6px;
}

.university-search-field small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.university-suggestions {
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  right: 0;
  z-index: 12;
}

body.dark .occupation-code-filter {
  background:
    linear-gradient(135deg, rgba(143, 208, 232, 0.12), transparent),
    rgba(241, 247, 249, 0.08);
  box-shadow: 0 16px 36px rgba(5, 16, 27, 0.24);
}

body.dark .occupation-code-filter input {
  background: rgba(241, 247, 249, 0.14);
  color: var(--foreground);
}

body.dark .occupation-suggestions {
  background: #263c50;
  box-shadow: 0 20px 46px rgba(5, 16, 27, 0.28);
}

.filter-sidebar .advanced-filters {
  gap: 12px;
}

.filter-sidebar .filter-select {
  gap: 8px;
}

.filter-sidebar .filter-select span {
  color: color-mix(in srgb, var(--foreground), var(--muted) 46%);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.filter-sidebar .filter-select select {
  min-height: 46px;
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 247, 249, 0.88));
  font-weight: 700;
}

body.dark .filter-sidebar .filter-select select {
  background: rgba(241, 247, 249, 0.13);
}

.browse-data {
  display: grid;
  gap: 22px;
  align-content: start;
}

.browse-data > .grid {
  gap: 24px;
}

.browse-data > .grid.two {
  grid-template-columns: 1fr;
}

.browse-data > .grid.three {
  grid-template-columns: repeat(2, minmax(280px, 1fr)) !important;
}

.card {
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 247, 249, 0.84));
  box-shadow:
    0 22px 54px rgba(7, 50, 106, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.86) inset;
}

body.dark .card {
  background:
    linear-gradient(180deg, rgba(43, 67, 86, 0.9), rgba(33, 52, 70, 0.82));
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(10, 97, 201, 0.34);
  box-shadow:
    0 30px 72px rgba(7, 50, 106, 0.18),
    0 12px 28px rgba(6, 64, 137, 0.1);
}

.job-card,
.company-card.minimal {
  padding: 24px;
}

.card-top {
  align-items: flex-start;
}

.job-card .card-top {
  align-items: flex-start;
}

.logo {
  width: 58px;
  height: 58px;
  flex-basis: 58px;
  border-radius: 16px;
  box-shadow:
    0 16px 34px color-mix(in srgb, var(--item-color, var(--primary)), transparent 76%),
    0 1px 0 rgba(255, 255, 255, 0.34) inset;
}

.job-heading h3,
.company-card h3 {
  font-size: 19px;
  line-height: 1.22;
}

.job-meta-grid {
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--item-color), transparent 93%), transparent),
    rgba(255, 255, 255, 0.76);
}

body.dark .job-meta-grid {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--item-color), transparent 90%), transparent),
    rgba(241, 247, 249, 0.07);
}

.job-meta-grid small {
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.job-meta-grid strong {
  font-size: 13.5px;
}

.badge-row {
  gap: 7px;
}

.badge {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  font-weight: 800;
}

.card-actions,
.company-footer {
  padding-top: 16px;
}

.company-card.minimal {
  min-height: 292px;
}

.company-description {
  min-height: 48px;
}

.company-meta {
  gap: 10px;
  padding: 12px 0;
}

.company-meta span {
  min-width: 0;
}

.selected-company {
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(10, 97, 201, 0.08), transparent),
    rgba(255, 255, 255, 0.84);
}

body.dark .selected-company {
  background:
    linear-gradient(135deg, rgba(143, 208, 232, 0.12), transparent),
    rgba(33, 52, 70, 0.84);
}

@media (max-width: 1180px) {
  .browse-data > .grid.two,
  .browse-data > .grid.three {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 980px) {
  .browse-layout {
    grid-template-columns: 1fr !important;
  }

  .filter-sidebar {
    position: static !important;
    max-height: none !important;
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-nav-wrap {
  position: relative;
}

.auth-nav-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px 0 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  color: var(--foreground);
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.auth-nav-button:hover {
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary), transparent 88%);
}

.auth-nav-button.authenticated {
  background: rgba(255, 255, 255, 0.82);
  color: var(--foreground);
  border-color: var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.auth-nav-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--primary), transparent 90%);
  color: var(--primary);
}

.auth-nav-button.authenticated .auth-nav-icon {
  background: color-mix(in srgb, var(--primary), transparent 90%);
  color: var(--primary);
}

.auth-nav-label {
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  display: none;
  gap: 4px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card-strong), transparent 4%);
  box-shadow: var(--panel-shadow);
  backdrop-filter: blur(18px) saturate(1.12);
  z-index: 40;
}

.auth-nav-menu.open {
  display: grid;
}

.auth-menu-item {
  text-align: left;
  padding: 11px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--foreground);
  font-weight: 700;
  cursor: pointer;
}

.auth-menu-item:hover {
  background: color-mix(in srgb, var(--primary), transparent 92%);
}

.auth-menu-item.danger {
  color: #dc2626;
}

.auth-message {
  margin-bottom: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.auth-message-error {
  border: 1px solid rgba(220, 38, 38, 0.16);
  background: rgba(220, 38, 38, 0.08);
  color: #b42318;
}

.auth-message-ok {
  border: 1px solid rgba(16, 185, 129, 0.2);
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
}

.auth-field-hint {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.auth-duplicate-hint {
  margin: -4px 0 12px;
}

.auth-duplicate-hint .primary-action {
  width: 100%;
}

.ejob-toggle-cards {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.ejob-toggle-card {
  display: grid;
  gap: 12px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(10, 97, 201, 0.22);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 247, 255, 0.92));
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.dark .ejob-toggle-card {
  background: linear-gradient(180deg, rgba(43, 67, 86, 0.92), rgba(33, 52, 70, 0.9));
  border-color: rgba(143, 208, 232, 0.2);
}

.ejob-toggle-card.active {
  border-color: rgba(10, 97, 201, 0.55);
  box-shadow: 0 0 0 2px rgba(10, 97, 201, 0.12);
}

.ejob-toggle-text {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--foreground);
}

.ejob-toggle-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ejob-toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ejob-toggle-switch {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: rgba(116, 157, 200, 0.35);
  position: relative;
  flex: 0 0 auto;
}

.ejob-toggle-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(7, 50, 106, 0.2);
  transition: transform 0.2s ease;
}

.ejob-toggle-card.active .ejob-toggle-switch {
  background: rgba(10, 97, 201, 0.75);
}

.ejob-toggle-card.active .ejob-toggle-switch::after {
  transform: translateX(20px);
}

.ejob-toggle-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(10, 97, 201, 0.08);
  color: rgba(10, 97, 201, 0.55);
}

.ejob-toggle-icon .app-icon {
  width: 20px;
  height: 20px;
}

.job-card-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ejob-flag-badge {
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  background: rgba(10, 97, 201, 0.1);
  color: #064089;
  border: 1px solid rgba(10, 97, 201, 0.14);
}

.ejob-flag-badge.ejob-flag-access {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border-color: rgba(16, 185, 129, 0.2);
}

.employer-ejob-flags {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.employer-flag-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.employer-dashboard {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.employer-dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.employer-dashboard-head .form-section-title {
  margin: 0 0 4px;
}

.employer-jobs-list,
.employer-applicants-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.employer-job-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
}

.employer-job-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.employer-job-main small {
  color: var(--muted);
}

.employer-job-flags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.employer-job-side {
  display: flex;
  align-items: center;
  gap: 10px;
}

.employer-app-count {
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}

.employer-applicants-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.employer-applicant-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
}

.employer-applicant-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.employer-applicant-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.employer-applicant-main small {
  color: var(--muted);
}

.employer-applicant-note {
  margin: 6px 0 0;
  font-style: italic;
  color: var(--muted);
}

.employer-status-select {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  background: var(--card-strong);
  color: var(--foreground);
  font-weight: 700;
}

.auth-modal-card h3 {
  margin: 0;
}

.auth-modal-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.auth-modal-head .modal-copy {
  margin: 4px 0 0;
}

.modal-copy,
.muted-copy {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.error-copy {
  color: #b42318;
}

.silicon-anket-panel,
#siliconAnketPanel,
.application-tracker-panel {
  max-width: 1000px;
  margin: 0 auto 20px;
}

.anket-subtitle {
  margin: -4px 0 16px;
}

.anket-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#siliconAnketPanel .panel-title-row {
  align-items: center;
  gap: 12px;
}

#siliconAnketPanel .panel-title-row h3 {
  margin: 0;
}

.anket-tab-panel {
  animation: page-in 0.28s ease both;
}

.anket-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.anket-form input,
.anket-form select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: 0;
  background: rgba(255, 255, 255, 0.86);
  color: var(--input-text);
  padding: 11px 12px;
}

body.dark .anket-form input,
body.dark .anket-form select {
  background: var(--card-strong);
}

.anket-form .form-section-title {
  margin-top: 8px;
}

.anket-alert-error,
.anket-alert-ok {
  margin-bottom: 14px;
  padding: 11px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}

.anket-alert-error {
  border: 1px solid rgba(220, 38, 38, 0.16);
  background: rgba(220, 38, 38, 0.08);
  color: #b42318;
}

.anket-alert-ok {
  border: 1px solid rgba(33, 166, 122, 0.18);
  background: rgba(33, 166, 122, 0.1);
  color: #157a5b;
}

.word-doc-panel {
  margin-bottom: 20px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card-strong), transparent 8%);
}

.word-doc-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.word-doc-panel-head h4,
.word-doc-panel-head p {
  margin: 0;
}

.word-doc-panel-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.word-doc-preview {
  margin-top: 12px;
  padding: 16px;
  max-height: min(70vh, 520px);
  overflow: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card-strong);
  font-size: 14px;
  line-height: 1.65;
}

.word-doc-preview p {
  margin-bottom: 0.75rem;
}

body.dark .auth-nav-button {
  background: var(--card-strong);
}

body.dark .auth-nav-menu,
body.dark .word-doc-panel {
  background: color-mix(in srgb, var(--card-strong), transparent 2%);
}

@media (max-width: 980px) {
  .top-nav {
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-tabs {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .nav-actions {
    margin-left: auto;
  }

  #siliconAnketPanel .panel-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .anket-tabs {
    width: 100%;
  }
}

.filter-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.filter-hint:not(:empty) {
  padding: 8px 10px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary), transparent 94%);
}

.hero-inline-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  max-width: 520px;
  margin-top: 14px;
}

.hero-inline-search .search-box {
  width: 100%;
}

.hero-inline-search .primary-action {
  min-height: 46px;
  padding: 0 18px;
  white-space: nowrap;
}

.home-ejob-panel {
  margin-top: 18px;
  display: grid;
  gap: 10px;
  max-width: 520px;
}

.home-ejob-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-logout-row {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.home-quick-panel {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  flex: 0 0 auto;
}

.home-quick-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--card-strong), transparent 8%);
  box-shadow:
    0 20px 48px rgba(7, 50, 106, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.76) inset;
}

.home-quick-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sidebar-quick-links {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.sidebar-quick-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sidebar-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sidebar-quick-actions .chip {
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
}

.home-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-quick-links .chip {
  min-height: 38px;
  padding: 0 14px;
  font-size: 13px;
}

.ejob-empty-card {
  grid-column: 1 / -1;
  min-height: 220px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 10px;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--foreground);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.backend-status {
  position: fixed;
  bottom: 16px;
  left: 50%;
  z-index: 120;
  max-width: min(92vw, 520px);
  padding: 8px 14px;
  transform: translateX(-50%);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: color-mix(in srgb, var(--card-strong), transparent 6%);
  border: 1px solid var(--border);
  box-shadow: var(--panel-shadow);
}

body.dark .backend-status {
  background: var(--card-strong);
}

#employerJobStatus {
  min-height: 1.2em;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
}

/* In-app recruiter console */
#recruiterPage .recruiter-gate-inline {
  background: var(--card-strong);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 26px;
  color: var(--muted);
  font-weight: 600;
  box-shadow: var(--panel-shadow);
}

.recruiter-inapp {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.recruiter-inapp > * {
  min-width: 0;
}

#recruiterCardView {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  min-width: 0;
}

#recruiterCardView.hidden {
  display: none;
}

.recruiter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.recruiter-btn:hover {
  transform: translateY(-1px);
}

.recruiter-btn.small {
  padding: 8px 14px;
  font-size: 12px;
}

.recruiter-btn.primary {
  background: linear-gradient(135deg, #0a61c9, #064089);
  color: #fff;
  box-shadow: 0 14px 28px rgba(6, 64, 137, 0.24);
}

.recruiter-btn.secondary {
  background: var(--soft-bg);
  color: var(--primary);
  border-color: var(--border);
}

.recruiter-btn.ghost {
  background: var(--card-strong);
  color: var(--primary);
  border: 1px solid var(--border);
}

/* Stat cards */
.recruiter-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.recruiter-stat {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(10, 97, 201, 0.1), var(--card-strong) 60%);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: var(--panel-shadow);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.recruiter-stat.ok {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.12), var(--card-strong) 60%);
  border-left-color: #16a34a;
}

.recruiter-stat.warn {
  background: linear-gradient(135deg, rgba(234, 138, 0, 0.12), var(--card-strong) 60%);
  border-left-color: #ea8a00;
}

.recruiter-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(7, 50, 106, 0.16);
}

.recruiter-stat.ok strong {
  color: #15803d;
}

.recruiter-stat.warn strong {
  color: #b45309;
}

.recruiter-stat-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: rgba(10, 97, 201, 0.14);
  color: var(--primary);
  flex-shrink: 0;
}

.recruiter-stat-icon svg {
  width: 24px;
  height: 24px;
}

.recruiter-stat.ok .recruiter-stat-icon {
  background: rgba(22, 163, 74, 0.14);
  color: #15803d;
}

.recruiter-stat.warn .recruiter-stat-icon {
  background: rgba(234, 138, 0, 0.16);
  color: #b45309;
}

.recruiter-stat strong {
  display: block;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.05;
  color: var(--foreground);
}

.recruiter-stat span {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 700;
}

/* Toolbar */
.recruiter-toolbar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--card-strong);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--panel-shadow);
}

.recruiter-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 280px;
  min-width: 220px;
  background: var(--soft-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 16px;
  color: var(--muted);
}

.recruiter-search svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.recruiter-search input {
  border: 0;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 14px;
  color: var(--input-text);
}

.recruiter-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-left: auto;
}

/* Advanced filters */
.recruiter-advanced {
  background: var(--card-strong);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px 20px;
}

.recruiter-advanced summary {
  cursor: pointer;
  padding: 12px 0;
  font-weight: 700;
  font-size: 13px;
  color: var(--primary);
  list-style: none;
}

.recruiter-advanced summary::-webkit-details-marker {
  display: none;
}

.recruiter-advanced[open] summary {
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}

.recruiter-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  padding-bottom: 16px;
}

.recruiter-filters label {
  display: grid;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.recruiter-filters input,
.recruiter-filters select {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  background: var(--card-strong);
  color: var(--input-text);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.recruiter-filters input:focus,
.recruiter-filters select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 97, 201, 0.14);
}

.recruiter-search:focus-within,
.ejob-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 97, 201, 0.14);
}

/* Applicant card grid */
.recruiter-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 4px;
}

.applicant-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--card-strong);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--panel-shadow);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.applicant-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(7, 50, 106, 0.16);
}

.applicant-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.applicant-avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--accent-bg);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}

.applicant-id {
  flex: 1;
  min-width: 0;
}

.applicant-id strong {
  display: block;
  font-size: 15px;
  color: var(--foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.applicant-id small {
  color: var(--muted);
  font-size: 12px;
}

.applicant-status {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}

.applicant-status.on {
  background: rgba(22, 163, 74, 0.15);
  color: #15803d;
}

.applicant-status.off {
  background: rgba(116, 157, 200, 0.2);
  color: var(--muted);
}

.applicant-role {
  margin: 0;
  font-weight: 700;
  font-size: 13px;
  color: var(--primary);
}

.applicant-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.applicant-meta li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--foreground);
}

.applicant-meta .recruiter-mini-icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
  flex-shrink: 0;
}

.applicant-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.applicant-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--soft-bg);
  color: var(--primary);
}

.applicant-tag.warn {
  background: rgba(234, 138, 0, 0.16);
  color: #b45309;
}

.applicant-tag.code {
  background: rgba(7, 50, 106, 0.1);
  color: var(--foreground);
}

.applicant-actions {
  display: flex;
  gap: 14px;
  margin-top: auto;
  padding-top: 12px;
}

.applicant-actions .recruiter-btn {
  flex: 1;
  justify-content: center;
}

.recruiter-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
  background: var(--card-strong);
  border: 1px dashed var(--border);
  border-radius: 18px;
}

.recruiter-empty svg {
  width: 42px;
  height: 42px;
  opacity: 0.5;
}

/* Footer / pagination */
.recruiter-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: var(--card-strong);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  margin-top: 4px;
}

.recruiter-pagination {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.recruiter-pagination button {
  min-width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--soft-bg);
  cursor: pointer;
  font-weight: 700;
  color: var(--foreground);
  transition: background 0.12s ease, color 0.12s ease;
}

.recruiter-pagination button:hover {
  background: var(--card-strong);
  color: var(--primary);
}

.recruiter-pagination button.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Modal */
.recruiter-modal {
  position: fixed;
  inset: 0;
  background: rgba(7, 50, 106, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1200;
  backdrop-filter: blur(4px);
}

.recruiter-modal.open {
  display: flex;
}

.recruiter-modal-card {
  width: min(760px, 100%);
  max-height: 86dvh;
  overflow: auto;
  background: var(--card-strong);
  border-radius: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--panel-shadow);
}

.recruiter-modal-card .recruiter-topbar {
  position: sticky;
  top: -18px;
  background: var(--card-strong);
  padding-top: 4px;
  z-index: 2;
}

.recruiter-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 14px;
}

.recruiter-form-grid label {
  display: grid;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.recruiter-form-grid label:has(input[type="checkbox"]) {
  grid-auto-flow: column;
  align-items: center;
  justify-content: start;
  gap: 6px;
}

.recruiter-form-grid input,
.recruiter-form-grid select {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  background: var(--card-strong);
  color: var(--input-text);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.recruiter-form-grid input:focus,
.recruiter-form-grid select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 97, 201, 0.14);
}

.recruiter-form-grid input[type="checkbox"] {
  width: 16px;
  height: 16px;
  padding: 0;
}

.recruiter-form-section {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
}

.recruiter-other-input {
  margin-top: 6px;
}

.recruiter-other-input.hidden {
  display: none;
}

.recruiter-form-advanced {
  grid-column: 1 / -1;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--card-strong), transparent 4%);
}

.recruiter-form-advanced summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.recruiter-form-checks {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.recruiter-form-checks label {
  grid-auto-flow: column;
  align-items: center;
  justify-content: start;
  gap: 6px;
}

@media (max-width: 900px) {
  .recruiter-stats {
    grid-template-columns: 1fr;
  }
  .recruiter-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .recruiter-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .recruiter-toolbar-actions {
    width: 100%;
  }
  .recruiter-toolbar-actions .recruiter-btn {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .recruiter-form-grid {
    grid-template-columns: 1fr;
  }
}

.anket-form .anket-check {
  grid-auto-flow: column;
  align-items: center;
  justify-content: start;
  gap: 8px;
  font-weight: 600;
}

.anket-form .anket-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* eJob service list view */
.recruiter-view-switch {
  display: inline-flex;
  gap: 10px;
  padding: 6px;
  background: var(--soft-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: fit-content;
}

.recruiter-view-btn {
  border: 0;
  background: transparent;
  padding: 10px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

.recruiter-view-btn:hover {
  color: var(--primary);
}

.recruiter-view-btn.active {
  background: var(--card-strong);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(7, 50, 106, 0.14);
}

#recruiterEjobView {
  min-width: 0;
}

#recruiterEjobView.hidden {
  display: none;
}

.ejob-shell {
  display: grid;
  gap: 20px;
  background: var(--card-strong);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--panel-shadow);
}

.ejob-shell-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.ejob-tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(10, 97, 201, 0.12);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ejob-shell-head h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  color: var(--foreground);
  line-height: 1.3;
}

.ejob-shell-head p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.ejob-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.ejob-meta-item {
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--soft-bg);
  font-size: 13px;
  font-weight: 700;
  color: var(--foreground);
}

.ejob-meta-item.org {
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ejob-meta-select {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  background: var(--card-strong);
  color: var(--input-text);
}

.ejob-stats-inline,
.ejob-toolbar-inline {
  margin: 0;
}

.ejob-toolbar-inline {
  background: var(--soft-bg);
  border-color: color-mix(in srgb, var(--border) 80%, transparent);
}

.ejob-list-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--card-strong);
}

.ejob-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--soft-bg);
  border-bottom: 1px solid var(--border);
}

.ejob-list-head strong {
  font-size: 14px;
  color: var(--foreground);
}

.ejob-list-head span {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.ejob-table-wrap {
  overflow: auto;
  max-height: calc(100dvh - 480px);
}

.ejob-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ejob-table th,
.ejob-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}

.ejob-table thead th {
  position: sticky;
  top: 0;
  background: var(--card-strong);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 1;
}

.ejob-table tbody tr {
  cursor: pointer;
  transition: background 0.12s ease;
}

.ejob-table tbody tr:hover {
  background: var(--soft-bg);
}

.ejob-table tbody tr:last-child td {
  border-bottom: 0;
}

.ejob-table tbody td:first-child {
  width: 44px;
  color: var(--muted);
  font-weight: 700;
}

.ejob-table .ejob-pick {
  width: 40px;
  text-align: center;
}

.ejob-table .ejob-pick input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.ejob-table .ejob-person strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--foreground);
  margin-bottom: 3px;
}

.ejob-table .ejob-person small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.ejob-table .ejob-group {
  max-width: 200px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
}

.ejob-table .ejob-date {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.ejob-empty {
  text-align: center;
  color: var(--muted);
  padding: 56px 24px !important;
  font-weight: 600;
  font-size: 14px;
}

.ejob-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.ejob-badge.ok {
  background: rgba(22, 163, 74, 0.15);
  color: #15803d;
}

.ejob-badge.wait {
  background: rgba(234, 138, 0, 0.16);
  color: #b45309;
}

@media (max-width: 900px) {
  .ejob-shell {
    padding: 16px;
  }

  .ejob-shell-head {
    flex-direction: column;
  }

  .ejob-list-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

.auth-clerk-panel {
  margin: 0;
}

.auth-clerk-only {
  padding-top: 12px;
}

.auth-clerk-only .modal-close {
  top: 10px;
  right: 10px;
}

.auth-clerk-panel .clerk-widget-root,
.auth-clerk-panel .clerk-widget-card {
  width: 100%;
}

/* ===== Profile / Anket clean UI ===== */
#profilePage {
  max-width: 920px;
  margin: 0 auto;
  padding-bottom: 32px;
}

#profilePage .profile-card,
#profilePage .stats-grid,
#profilePage .profile-grid {
  max-width: 920px;
}

#profilePage .profile-cover {
  height: 112px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.12), transparent 42%),
    var(--accent-bg);
  animation: none;
}

.profile-hub-hint {
  max-width: 920px;
  margin: -8px auto 18px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(10, 97, 201, 0.05);
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.profile-hub-hint strong {
  color: var(--foreground);
}

.profile-hub {
  display: flex;
  gap: 0;
  max-width: 920px;
  margin: 0 auto 20px;
  padding: 4px;
  border-radius: 14px;
  background: var(--card-strong);
  border: 1px solid var(--border);
  box-shadow: var(--panel-shadow);
}

body.dark .profile-hub {
  background: var(--card);
}

.profile-hub-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.profile-hub-tab.active {
  background: var(--accent-bg);
  color: #fff;
  box-shadow: 0 8px 20px rgba(6, 64, 137, 0.22);
}

.profile-hub-tab.active .app-icon,
.profile-hub-tab.active [data-icon] {
  color: #fff;
}

.profile-hub-tab:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.anket-auth-gate {
  max-width: 920px;
  margin: 0 auto 16px;
}

.recruiter-grade-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 4px;
}

.recruiter-grade-badge,
.recruiter-grade-overall {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid var(--border);
  background: var(--card-strong);
}

.recruiter-grade-badge.grade-a,
.recruiter-grade-overall.grade-a {
  color: #157a5b;
  border-color: rgba(33, 166, 122, 0.25);
  background: rgba(33, 166, 122, 0.1);
}

.recruiter-grade-badge.grade-b,
.recruiter-grade-overall.grade-b {
  color: #0a61c9;
  border-color: rgba(10, 97, 201, 0.22);
  background: rgba(10, 97, 201, 0.08);
}

.recruiter-grade-badge.grade-c,
.recruiter-grade-overall.grade-c {
  color: #9a6b00;
  border-color: rgba(234, 179, 8, 0.28);
  background: rgba(234, 179, 8, 0.12);
}

.recruiter-grade-badge.grade-d,
.recruiter-grade-overall.grade-d {
  color: #b42318;
  border-color: rgba(220, 38, 38, 0.22);
  background: rgba(220, 38, 38, 0.08);
}

.profile-hub-panel {
  overflow: visible;
}

.profile-hub-panel.hidden {
  display: none;
}

.doc-panel-clean {
  max-width: 920px;
  margin: 0 auto 20px;
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--card-strong);
  border: 1px solid var(--border);
  box-shadow: var(--panel-shadow);
  backdrop-filter: none;
}

/* Албан ёсны маягт — select жагсаалт доошоо нээгдэнэ */
.doc-panel-clean.official-doc-mode,
.doc-panel-clean.profiling-panel {
  overflow: visible;
}

.doc-panel-clean.profiling-panel,
#siliconAnketPanel {
  animation: page-in 0.28s ease both;
}

body.dark .doc-panel-clean {
  background: var(--card);
}

.doc-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  background: var(--accent-bg);
  color: #fff;
}

.doc-hero-tag {
  display: inline-block;
  margin-bottom: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.doc-hero h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.doc-hero-desc {
  margin: 6px 0 0;
  font-size: 14px;
  opacity: 0.88;
}

.doc-hero-progress {
  min-width: 180px;
  flex: 1;
  max-width: 240px;
}

.doc-hero-progress .prof-progress-label {
  color: rgba(255, 255, 255, 0.9);
}

.doc-hero-progress .prof-progress-label strong {
  color: #fff;
}

.doc-hero-progress .prof-progress-bar {
  background: rgba(255, 255, 255, 0.22);
}

.doc-hero-progress .prof-progress-bar i {
  background: linear-gradient(90deg, #f1f7f9, #749dc8);
}

.prof-progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
}

.prof-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--soft-bg);
  overflow: hidden;
}

.prof-progress-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #749dc8, #0a61c9);
  transition: width 0.25s ease;
}

.form-stepper {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 97, 201, 0.04);
  scrollbar-width: thin;
}

body.dark .form-stepper {
  background: rgba(143, 208, 232, 0.06);
}

.form-stepper-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card-strong);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

body.dark .form-stepper-btn {
  background: var(--card-strong);
}

.form-stepper-btn.active {
  border-color: rgba(10, 97, 201, 0.35);
  background: rgba(10, 97, 201, 0.1);
  color: var(--foreground);
}

.form-stepper-index {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--soft-bg);
  font-size: 11px;
  font-weight: 900;
}

.form-stepper-btn.active .form-stepper-index {
  background: var(--accent-bg);
  color: #fff;
}

.form-step-group {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 132px;
}

.has-form-stepper .form-step-head-subtle {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(6, 64, 137, 0.14);
}

.has-form-stepper .form-step-head-subtle .form-step-copy h4 {
  font-size: 15px;
  font-weight: 800;
}

.has-form-stepper .form-step-head-subtle .form-step-copy p {
  margin-top: 2px;
  font-size: 12px;
}

.has-form-stepper .form-grid {
  gap: 14px;
}

.doc-anket-form .form-grid,
.profiling-panel .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 640px) {
  .doc-anket-form .form-grid,
  .profiling-panel .form-grid,
  .has-form-stepper .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-step-group:last-of-type {
  border-bottom: 0;
}

.form-step-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.form-step-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--accent-bg);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  flex-shrink: 0;
}

.form-step-copy h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--foreground);
}

.form-step-copy p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.form-step-consent {
  background: rgba(10, 97, 201, 0.05);
}

.doc-anket-form label,
.profiling-panel label,
.stack-label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.profiling-panel .stack-label textarea {
  min-height: 72px;
  resize: vertical;
}

.doc-anket-form input,
.doc-anket-form select,
.doc-anket-form textarea,
.profiling-panel input,
.profiling-panel textarea,
.table-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 12px;
  background: var(--card-strong);
  color: var(--input-text);
  font-size: 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

body.dark .doc-anket-form input,
body.dark .profiling-panel input,
body.dark .table-input {
  background: var(--card-strong);
}

.doc-anket-form input:focus-visible,
.profiling-panel input:focus-visible,
.profiling-panel textarea:focus-visible,
.table-input:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring-glow);
  outline: none;
}

.doc-anket-form .anket-check,
.profiling-panel .anket-check {
  grid-auto-flow: column;
  align-items: center;
  justify-content: start;
  gap: 8px;
  font-weight: 600;
}

.doc-anket-form .anket-check input[type="checkbox"],
.profiling-panel .anket-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--primary);
}

.form-grid .full-span {
  grid-column: 1 / -1;
}

.compact-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.table-remove {
  width: 32px;
  height: 32px;
  font-size: 18px;
  line-height: 1;
}

.table-add-btn {
  margin: 10px 0 14px;
}

.form-submit-bar {
  padding: 18px 24px 22px;
  border-top: 1px solid var(--border);
  background: rgba(241, 247, 249, 0.6);
}

body.dark .form-submit-bar {
  background: rgba(35, 55, 72, 0.5);
}

.form-submit-bar .primary-action {
  width: 100%;
  min-height: 48px;
  font-size: 15px;
}

.section-hint,
.consent-copy {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.dynamic-table-wrap {
  margin: 8px 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: visible;
  background: var(--card-strong);
}

.anket-data-table,
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.anket-data-table th,
.anket-data-table td,
.data-table th,
.data-table td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.anket-data-table thead th,
.data-table thead th {
  background: var(--soft-bg);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.lang-levels {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.lang-level {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
}

.likert-cards,
.skill-rating-cards {
  display: grid;
  gap: 10px;
}

.likert-scale-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--soft-bg);
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
}

.likert-scale-line {
  flex: 1;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(116, 157, 200, 0.35), var(--primary));
}

.likert-card,
.skill-card {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card-strong);
}

.likert-card legend,
.skill-card legend {
  padding: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--foreground);
}

.likert-num {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-right: 8px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--soft-bg);
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
}

.skill-group-label {
  display: inline-block;
  margin: 4px 0 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--soft-bg);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.likert-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
}

.likert-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(241, 247, 249, 0.8);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

body.dark .likert-option {
  background: rgba(35, 55, 72, 0.5);
}

.likert-option:has(input:checked) {
  border-color: rgba(10, 97, 201, 0.4);
  background: rgba(10, 97, 201, 0.1);
  color: var(--foreground);
}

.likert-option input {
  accent-color: var(--primary);
}

.likert-option.compact {
  min-height: 36px;
  padding: 6px 8px;
  font-size: 11px;
}

.skill-card .likert-options {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 768px) {
  .skill-card .likert-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.checklist-grid {
  display: grid;
  gap: 8px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card-strong);
  font-size: 14px;
  font-weight: 600;
}

.inline-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
}

.inline-choice-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.goal-card {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card-strong);
}

.goal-card h5 {
  margin: 0 0 10px;
  font-size: 15px;
}

.profile-cv-collapse {
  max-width: 920px;
  margin: 0 auto 20px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card-strong);
  box-shadow: var(--panel-shadow);
}

.profile-cv-collapse > summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 800;
  color: var(--foreground);
  background: rgba(10, 97, 201, 0.04);
  border-bottom: 1px solid transparent;
  transition: background 0.18s ease;
}

.profile-cv-collapse[open] > summary {
  border-bottom-color: var(--border);
  background: rgba(10, 97, 201, 0.07);
}

.profile-cv-collapse > summary::-webkit-details-marker {
  display: none;
}

.profile-cv-collapse > summary::after {
  content: "▼";
  float: right;
  font-size: 11px;
  color: var(--muted);
  transition: transform 0.18s ease;
}

.profile-cv-collapse[open] > summary::after {
  transform: rotate(180deg);
}

.profile-cv-collapse-body {
  padding: 16px;
}

.profile-cv-collapse-body .stats-grid {
  margin-bottom: 16px;
}

.profile-cv-collapse-body .panel {
  backdrop-filter: none;
}

.application-tracker-panel.panel {
  backdrop-filter: none;
  padding: 18px 20px;
}

.anket-evaluation-panel {
  max-width: 920px;
  margin: 0 auto 24px;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(10, 97, 201, 0.2);
  background: linear-gradient(180deg, rgba(10, 97, 201, 0.06), transparent);
}

.grade-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.grade-card {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card-strong);
  text-align: center;
}

.grade-card .grade-letter {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
  border-radius: 10px;
  font-size: 20px;
  font-weight: 900;
}

.grade-a .grade-letter,
.overall-grade.grade-a .grade-letter {
  background: rgba(10, 97, 201, 0.14);
  color: #064089;
}

.grade-b .grade-letter,
.overall-grade.grade-b .grade-letter {
  background: rgba(116, 157, 200, 0.2);
  color: #064089;
}

.grade-c .grade-letter,
.overall-grade.grade-c .grade-letter {
  background: rgba(234, 179, 8, 0.18);
  color: #a16207;
}

.grade-d .grade-letter,
.overall-grade.grade-d .grade-letter {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.evaluation-conclusion {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card-strong);
}

.overall-grade {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.overall-grade .grade-letter {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 26px;
  font-weight: 900;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.application-tracker-panel {
  max-width: 920px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  #profilePage {
    padding-inline: 8px;
  }

  .doc-hero {
    padding: 18px 16px;
  }

  .doc-hero-progress {
    width: 100%;
    max-width: none;
  }

  .form-step-group {
    padding: 16px;
  }

  .form-submit-bar {
    padding: 14px 16px 18px;
  }

  .goal-grid,
  .grade-grid {
    grid-template-columns: 1fr 1fr;
  }

  .likert-options {
    grid-template-columns: 1fr;
  }

  .form-stepper-label {
    max-width: 88px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .profile-wizard-card {
    width: 100%;
    max-height: calc(100vh - 24px);
    border-radius: 20px;
  }
}

/* ===== Profile wizard (Tinder-style) ===== */
.profile-wizard-modal {
  z-index: 80;
  padding: 12px;
}

.profile-wizard-card {
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  max-height: min(680px, calc(100vh - 24px));
  padding: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--card-strong);
  border: 1px solid var(--border);
  box-shadow: 0 32px 80px rgba(7, 50, 106, 0.28);
  animation: modal-pop 0.34s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.profile-wizard-head {
  position: relative;
  padding: 20px 20px 14px;
  background: var(--accent-bg);
  color: #fff;
}

.profile-wizard-head .modal-close {
  top: 12px;
  right: 12px;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.profile-wizard-phase {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.82;
}

.profile-wizard-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  padding-right: 36px;
}

.profile-wizard-progress {
  height: 6px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.profile-wizard-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f1f7f9, #749dc8);
  transition: width 0.25s ease;
}

.profile-wizard-count {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.88;
}

.profile-wizard-body {
  flex: 1;
  overflow: auto;
  padding: 18px 20px 12px;
}

.profile-wizard-foot {
  display: flex;
  gap: 10px;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--border);
  background: rgba(241, 247, 249, 0.72);
}

.profile-wizard-foot .primary-action,
.profile-wizard-foot .ghost-action {
  flex: 1;
  min-height: 46px;
}

.profile-wizard-foot .ghost-action.hidden,
.profile-wizard-foot .primary-action.hidden {
  display: none;
}

.profile-wizard-foot .ghost-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.wizard-step-subtitle {
  margin: 0 0 14px;
}

.wizard-step-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(220, 38, 38, 0.08);
  color: #b42318;
  font-size: 13px;
  font-weight: 700;
}

.wizard-slide-in {
  animation: wizard-slide-in 0.28s ease both;
}

.wizard-slide-back {
  animation: wizard-slide-back 0.28s ease both;
}

@keyframes wizard-slide-in {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes wizard-slide-back {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.wizard-question-card {
  display: grid;
  gap: 16px;
}

.wizard-question-text {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--foreground);
}

.wizard-likert-stack {
  display: grid;
  gap: 8px;
}

.wizard-likert-btn {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card-strong);
  color: var(--foreground);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.wizard-likert-btn:hover {
  border-color: rgba(10, 97, 201, 0.35);
  background: rgba(10, 97, 201, 0.06);
}

.wizard-likert-btn.selected {
  border-color: rgba(10, 97, 201, 0.45);
  background: rgba(10, 97, 201, 0.12);
  box-shadow: 0 0 0 3px var(--ring-glow);
}

.wizard-fields {
  display: grid;
  gap: 12px;
}

.wizard-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.wizard-field input,
.wizard-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 12px;
  background: var(--card-strong);
  color: var(--input-text);
  font-size: 14px;
}

.wizard-field-check {
  grid-auto-flow: column;
  justify-content: start;
  align-items: center;
  gap: 8px;
}

.wizard-intro-card,
.wizard-done-card {
  text-align: center;
  padding: 8px 4px 4px;
}

.wizard-intro-icon,
.wizard-done-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 18px;
  background: rgba(10, 97, 201, 0.12);
  color: var(--primary);
  font-size: 24px;
  font-weight: 900;
}

.wizard-done-icon {
  background: rgba(10, 97, 201, 0.16);
}

.wizard-intro-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.wizard-intro-list li {
  position: relative;
  padding: 8px 0 8px 22px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.wizard-intro-list li::before {
  content: "•";
  position: absolute;
  left: 6px;
  color: var(--primary);
  font-weight: 900;
}

.wizard-checklist {
  display: grid;
  gap: 8px;
}

.wizard-launch-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 97, 201, 0.04);
}

.wizard-launch-copy h4 {
  margin: 0 0 4px;
  font-size: 16px;
}

.wizard-launch-meta {
  display: block;
  margin-top: 6px;
  color: var(--primary);
  font-weight: 700;
}

.wizard-launch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.form-full-toggle {
  border-top: 1px solid var(--border);
}

.form-full-toggle > summary {
  cursor: pointer;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  list-style: none;
}

.form-full-toggle > summary::-webkit-details-marker {
  display: none;
}

.form-full-toggle > summary::after {
  content: "▼";
  float: right;
  font-size: 11px;
}

.form-full-toggle[open] > summary::after {
  transform: rotate(180deg);
}

.wizard-anket-question {
  display: grid;
  gap: 14px;
}

.wizard-q-badge {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-bg);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.wizard-q-text {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
  color: var(--foreground);
}

.wizard-q-hint {
  margin: -6px 0 0;
}

.wizard-table-host {
  max-height: 240px;
  overflow: auto;
}

.doc-anket-form .full-width-label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.doc-anket-form .full-width-label input,
.doc-anket-form .full-width-label select {
  width: 100%;
}

.form-full-toggle .doc-anket-form,
.form-full-toggle #profilingFormInner {
  padding-top: 0;
}

/* ===== Official labor-exchange anket sheet ===== */
.official-anket-wrap {
  margin: 0 16px 20px;
  border: 1px solid rgba(6, 64, 137, 0.18);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(7, 50, 106, 0.06);
  overflow: visible;
}

body.dark .official-anket-wrap {
  background: color-mix(in srgb, var(--card), #fff 4%);
  border-color: var(--border);
}

.official-anket-dochead {
  padding: 20px 22px 16px;
  text-align: center;
  border-bottom: 2px solid rgba(6, 64, 137, 0.14);
  background:
    linear-gradient(180deg, rgba(10, 97, 201, 0.05), transparent 72%),
    #fff;
}

body.dark .official-anket-dochead {
  background: color-mix(in srgb, var(--card-strong), transparent 4%);
}

.official-anket-org {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.official-anket-title {
  margin: 8px 0 0;
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--foreground);
}

.official-anket-sub {
  margin: 8px auto 0;
  max-width: 52ch;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.official-anket-form {
  padding: 0;
  overflow: visible;
}

.official-anket-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(6, 64, 137, 0.1);
  background: transparent;
}

.official-anket-row:last-of-type {
  border-bottom: 0;
}

.official-anket-row-head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 18px 0;
  background: rgba(10, 97, 201, 0.04);
  border-bottom: 1px dashed rgba(6, 64, 137, 0.12);
}

body.dark .official-anket-row-head {
  background: rgba(143, 208, 232, 0.06);
}

.official-anket-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 2px solid rgba(10, 97, 201, 0.28);
  background: #fff;
  color: var(--primary);
  font-size: 15px;
  font-weight: 900;
}

.official-anket-num-muted {
  border-style: dashed;
  color: var(--muted);
  font-size: 13px;
}

.official-anket-q {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--foreground);
}

.official-anket-qhint {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.official-anket-row-body {
  padding: 14px 18px 18px 68px;
  overflow: visible;
}

.official-field-grid {
  gap: 12px;
}

.official-anket-table {
  border: 1px solid rgba(6, 64, 137, 0.14);
  border-radius: 10px;
  overflow: visible;
}

.official-anket-table th {
  background: rgba(10, 97, 201, 0.06);
  font-size: 12px;
  font-weight: 800;
}

.official-anket-table .table-input {
  min-width: 0;
}

.official-anket-stepper-host {
  padding: 12px 16px 0;
  border-bottom: 1px solid rgba(6, 64, 137, 0.08);
  background: rgba(241, 247, 249, 0.72);
}

body.dark .official-anket-stepper-host {
  background: color-mix(in srgb, var(--card), transparent 8%);
}

.official-anket-stepper-host.form-stepper,
.official-anket-stepper-host .form-stepper {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

/* Profiling — албан ёсны маягт (анкетаас тусдаа) */
.official-profiling-wrap {
  --official-accent: #5b3ea6;
  --official-accent-soft: rgba(91, 62, 166, 0.1);
  margin-top: 4px;
}

.official-profiling-dochead {
  border-bottom-color: rgba(91, 62, 166, 0.14);
}

.official-profiling-wrap .official-anket-org {
  color: #5b3ea6;
}

.official-profiling-wrap .official-anket-num {
  background: var(--official-accent-soft);
  color: #5b3ea6;
}

.official-doc-progress {
  margin-top: 14px;
  max-width: 280px;
}

.profiling-wizard-launch {
  max-width: 920px;
  margin: 0 auto 14px;
}

.profiling-placeholder {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 24px;
  text-align: center;
}

.official-profiling-form {
  padding: 0;
  overflow: visible;
}

.official-likert-section {
  padding: 0;
}

.official-likert-list {
  display: grid;
  gap: 0;
}

.official-likert-scale-head {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(0, 2fr);
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 2px solid rgba(91, 62, 166, 0.16);
  background: rgba(91, 62, 166, 0.05);
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
}

.official-likert-scale-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  text-align: center;
}

.official-likert-scale-cell {
  line-height: 1.25;
}

.official-profiling-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(91, 62, 166, 0.14);
  background: rgba(91, 62, 166, 0.04);
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.official-likert-row {
  border-top: 1px solid rgba(6, 64, 137, 0.08);
}

.official-likert-row:first-child {
  border-top: 0;
}

.official-likert-head {
  grid-template-columns: 44px minmax(0, 1fr);
  padding: 12px 16px;
}

.official-likert-head .official-anket-q {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.official-likert-body {
  padding: 0 16px 14px 60px;
}

.official-likert-options {
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
}

.official-skill-group-label {
  margin: 0 0 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(91, 62, 166, 0.08);
  color: #5b3ea6;
  font-size: 13px;
  font-weight: 800;
}

.official-skill-list + .official-skill-list {
  margin-top: 16px;
}

.official-checklist {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.official-fieldset {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
}

.official-goal-grid {
  grid-template-columns: minmax(0, 1fr);
}

.official-cv-appendix {
  max-width: 920px;
  margin: 18px auto 24px;
  border: 2px dashed rgba(91, 62, 166, 0.22);
  border-radius: 14px;
  background: rgba(91, 62, 166, 0.03);
}

.official-cv-appendix > summary {
  background: rgba(91, 62, 166, 0.06);
}

.official-cv-appendix[open] > summary {
  background: rgba(91, 62, 166, 0.1);
}

.official-cv-body {
  background: var(--card-strong);
}

@media (max-width: 768px) {
  .official-likert-body {
    padding-inline: 16px;
  }

  .official-likert-options {
    grid-template-columns: 1fr 1fr;
  }
}


.official-anket-consent .official-anket-row-head {
  background: rgba(33, 166, 122, 0.06);
}

.official-anket-submit {
  margin: 0;
  padding: 16px 18px 20px;
  border-top: 2px solid rgba(6, 64, 137, 0.12);
  background: rgba(241, 247, 249, 0.65);
}

body.dark .official-anket-submit {
  background: color-mix(in srgb, var(--card), transparent 6%);
}

@media (max-width: 768px) {
  .official-anket-wrap {
    margin-inline: 8px;
  }

  .official-anket-row-head {
    grid-template-columns: 44px minmax(0, 1fr);
    padding-inline: 12px;
  }

  .official-anket-row-body {
    padding: 12px 12px 16px;
  }

  .official-anket-num {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
}

/* ===== Word document form sheets ===== */
.official-doc-mode .doc-hero-compact {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wizard-launch-collapse {
  max-width: 920px;
  margin: 0 auto 10px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: rgba(241, 247, 249, 0.5);
}

.wizard-launch-collapse > summary {
  cursor: pointer;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  list-style: none;
}

.wizard-launch-collapse > summary::-webkit-details-marker {
  display: none;
}

.wizard-launch-collapse[open] > summary {
  border-bottom: 1px solid var(--border);
}

.wizard-launch-collapse .wizard-launch-card {
  margin: 0;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

.official-word-sheet {
  max-width: 920px;
  margin-inline: auto;
  border-radius: 4px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.official-word-sheet .official-anket-title {
  letter-spacing: 0.06em;
}

.official-word-sheet .official-anket-row-head {
  background: rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.official-word-sheet .official-anket-num {
  border-radius: 4px;
  border-color: rgba(0, 0, 0, 0.2);
}

.official-name-photo-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.official-photo-slot {
  display: grid;
  place-items: center;
  min-height: 112px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  background: #fff;
  text-align: center;
}

.official-photo-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.official-dotted-fields input,
.official-dotted-label input,
.official-word-sheet .table-input,
.official-profiling-id-line input {
  border: 0;
  border-bottom: 1px dotted rgba(0, 0, 0, 0.45);
  border-radius: 0;
  background: transparent;
  padding-inline: 4px;
}

.official-dotted-fields input:focus-visible,
.official-dotted-label input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.official-inline-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.official-form-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.official-form-table th,
.official-form-table td {
  border: 1px solid rgba(0, 0, 0, 0.18);
  padding: 8px 10px;
  vertical-align: middle;
}

.official-form-table thead th {
  background: rgba(0, 0, 0, 0.04);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.official-form-table .official-q-cell {
  text-align: left;
  line-height: 1.45;
}

.official-form-table .official-num-cell {
  width: 44px;
  text-align: center;
  font-weight: 800;
}

.official-form-table .official-radio-cell,
.official-form-table .official-check-cell {
  text-align: center;
  width: 72px;
}

.official-form-table .official-group-row th {
  text-align: left;
  background: rgba(91, 62, 166, 0.08);
  color: #5b3ea6;
  font-size: 12px;
}

.official-likert-table .official-q-cell {
  min-width: 220px;
}

.official-profiling-id-line {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 16px;
  padding: 16px 18px;
}

.official-profiling-org {
  margin-top: 6px;
}

.official-section-label,
.official-table-label {
  margin: 12px 0 8px;
  font-size: 13px;
  font-weight: 800;
}

.official-inline-legend {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.official-word-label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.official-sanamj,
.official-profiling-note {
  font-size: 12px;
  line-height: 1.55;
}

.official-sign-row {
  margin-top: 12px;
}

.official-date-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.official-child-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.official-field-hint {
  margin: 4px 0 10px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.select-other-input {
  width: 100%;
  margin: 6px 0 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card-strong);
}

.select-other-input.hidden {
  display: none;
}

.table-select {
  width: 100%;
  min-width: 88px;
  padding: 8px 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-strong);
  font-size: 12px;
  position: relative;
  z-index: 1;
}

.official-word-sheet select:not(.table-select) {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.official-anket-row:has(select:focus),
.official-anket-row:has(.table-select:focus) {
  position: relative;
  z-index: 2;
}

.official-form-table td:has(select:focus) {
  position: relative;
  z-index: 3;
}

body.dark .official-word-sheet select {
  background: var(--card-strong);
}

.official-word-sheet select:focus-visible,
.table-select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  z-index: 30;
}

.official-goals-table textarea,
.official-goals-table .official-goals-input {
  width: 100%;
  min-height: 88px;
  border: 1px solid rgba(0, 0, 0, 0.28);
  border-radius: 4px;
  background: #fff;
  padding: 0.55rem 0.65rem;
}

.official-goals-table .official-goals-field-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e3a8a;
}

.official-goals-table td[data-label="Агуулга"] .official-goals-field-label {
  color: #b45309;
}

.official-goals-table td[data-label="Агуулга"] .official-goals-input {
  border-color: #d97706;
  background: #fffbeb;
}

.official-goals-table .official-goals-col-num {
  width: 5.5rem;
}

.official-goals-table .official-goals-col-content {
  width: 28%;
}

.official-goals-table .official-goals-dates-row td {
  background: rgba(0, 0, 0, 0.02);
}

.official-goals-date-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 1rem 1.5rem;
  padding: 0.35rem 0;
}

.official-goals-date-field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
}

.official-goals-date-field span {
  font-weight: 600;
}

.official-goals-date-field input[type="date"] {
  width: 100%;
  min-height: 2.5rem;
  border: 1px solid rgba(0, 0, 0, 0.28);
  border-radius: 4px;
  background: #fff;
  padding: 0.35rem 0.5rem;
}

.official-goals-table .plan-goal-remove {
  display: block;
  margin-top: 0.35rem;
  padding: 0.15rem 0.45rem;
  font-size: 1rem;
  line-height: 1;
  border: 1px solid var(--border, rgba(0, 0, 0, 0.2));
  border-radius: 6px;
  background: #fff;
  color: var(--muted, #64748b);
  cursor: pointer;
}

.official-goals-table .plan-goal-remove:hover {
  border-color: #c62828;
  color: #c62828;
}

#addPlanGoalRow.table-add-btn {
  margin-top: 0.75rem;
}

@media (max-width: 768px) {
  .official-goals-table tbody tr.official-goals-data-row {
    display: grid;
    gap: 0.75rem;
  }

  .official-goals-table tbody tr.official-goals-data-row td {
    display: block;
    width: 100%;
  }

  .official-goals-table tbody tr.official-goals-data-row td::before {
    content: attr(data-label);
    display: block;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: #1e3a8a;
  }

  .official-goals-table tbody tr.official-goals-data-row td.official-num-cell::before {
    content: "Зорилт 1";
  }
}

@media (max-width: 768px) {
  .official-name-photo-row,
  .official-profiling-id-line {
    grid-template-columns: 1fr;
  }

  .official-form-table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
  }
}
