@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --crimson: #f05252;
  --crimson-dark: #d63b3b;
  --ink: #141414;
  --muted: #6e6e6e;
  --bg: #f6f4f2;
  --card: #ffffff;
  --line: #ece7e4;
  --shadow: 0 10px 28px rgba(20, 20, 20, 0.06);
  --shadow-hover: 0 16px 32px rgba(20, 20, 20, 0.1);
  --radius: 28px;
  --wrap: 1120px;
  --header-bg: rgba(246, 244, 242, 0.86);
  --header-line: rgba(20, 20, 20, 0.05);
  --elevated: #141414;
  --elevated-hover: #000000;
  --on-elevated: #ffffff;
  --on-elevated-muted: #cfcfcf;
  --tint: #fde8e8;
  --warn-bg: #fff4e8;
  --warn: #d97706;
  --error-bg: #fde8e8;
  --error: #8a1f1f;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-line: rgba(255, 255, 255, 0.55);
  --badge-new-bg: #141414;
  --badge-new-fg: #ffffff;
  --sticky-bg: rgba(246, 244, 242, 0.94);
  --featured-end: #fff8f7;
  --nav-fill: rgba(255, 255, 255, 0.78);
  --nav-line: rgba(20, 20, 20, 0.08);
  --success-bg: #ecfdf5;
  --success: #15803d;
  --ok: #16a34a;
  --ok-strong: #22c55e;
  --danger: #dc2626;
  --info: #2563eb;
  --violet: #7c3aed;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e0e0e0;
  --muted: #9e9e9e;
  --bg: #121212;
  --card: #1e1e1e;
  --line: #2c2c2c;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 16px 32px rgba(0, 0, 0, 0.55);
  --header-bg: rgba(18, 18, 18, 0.88);
  --header-line: rgba(255, 255, 255, 0.06);
  --elevated: #2c2c2c;
  --elevated-hover: #3a3a3a;
  --on-elevated: #f5f5f5;
  --on-elevated-muted: #b0b0b0;
  --tint: rgba(240, 82, 82, 0.18);
  --warn-bg: rgba(217, 119, 6, 0.18);
  --warn: #fbbf24;
  --error-bg: rgba(240, 82, 82, 0.16);
  --error: #fca5a5;
  --glass: rgba(30, 30, 30, 0.84);
  --glass-line: rgba(255, 255, 255, 0.08);
  --badge-new-bg: #f2f2f2;
  --badge-new-fg: #121212;
  --sticky-bg: rgba(18, 18, 18, 0.94);
  --featured-end: rgba(240, 82, 82, 0.12);
  --crimson-dark: #f07070;
  --nav-fill: rgba(30, 30, 30, 0.88);
  --nav-line: rgba(255, 255, 255, 0.06);
  --success-bg: rgba(22, 163, 74, 0.16);
  --success: #4ade80;
  --ok: #4ade80;
  --ok-strong: #4ade80;
  --danger: #f87171;
  --info: #93c5fd;
  --violet: #c4b5fd;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: Roboto, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--crimson);
  text-decoration: none;
}

a:hover {
  color: var(--crimson-dark);
}

::placeholder {
  color: var(--muted);
  opacity: 1;
}

input,
select,
textarea {
  color: var(--ink);
}

input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  box-shadow: 0 0 0 1000px var(--bg) inset;
  transition: background-color 99999s ease-out;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

p {
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 42rem;
}

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

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}

.narrow {
  width: min(680px, calc(100% - 40px));
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--elevated);
  color: var(--on-elevated);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 100;
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--header-line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.mode-app .wrap.header-inner {
  width: 100%;
  padding-inline: 16px;
}

.brand img {
  height: 36px;
  width: auto;
}

.nav {
  display: flex;
  gap: 22px;
}

.nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a[aria-current="page"],
.nav a:hover {
  color: var(--crimson);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.lang {
  display: flex;
  background: var(--card);
  border-radius: 999px;
  padding: 3px;
  box-shadow: var(--shadow);
}

.lang-btn {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 8px;
  border-radius: 999px;
}

.lang-btn.is-active {
  background: var(--crimson);
  color: #fff;
}

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--elevated);
  color: var(--on-elevated);
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 600;
  font-size: 0.9rem;
}

.cart-btn:hover {
  color: var(--on-elevated);
  background: var(--elevated-hover);
}

.cart-badge {
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--crimson);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border: 0;
  background: var(--card);
  color: var(--ink);
  border-radius: 12px;
  box-shadow: var(--shadow);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex: none;
}

.theme-toggle:hover {
  color: var(--crimson);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--crimson);
  outline-offset: 2px;
}

.theme-toggle-sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle-moon {
  display: none;
}

html[data-theme="dark"] .theme-toggle-sun {
  display: block;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: var(--card);
  border-radius: 14px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  margin: 5px auto;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 8px 20px 16px;
}

.mobile-nav a {
  color: var(--ink);
  font-weight: 500;
  padding: 8px 0;
}

.hero {
  padding: 56px 0 28px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.kicker {
  color: var(--crimson);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 10px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0 18px;
}

.pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.pills li {
  background: var(--card);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.82rem;
  color: var(--muted);
  box-shadow: var(--shadow);
}

.hero-panel {
  position: relative;
  min-height: 340px;
}

.hero-mark {
  position: absolute;
  width: 280px;
  opacity: 0.08;
  left: -20px;
  bottom: -30px;
  pointer-events: none;
}

.hero-stack {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 24px 0;
}

.hero-mini {
  background: var(--card);
  border-radius: 22px;
  padding: 18px 22px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateX(calc(var(--i) * 18px));
  width: calc(100% - 36px);
  gap: 12px;
}

.hero-mini span {
  color: var(--muted);
  font-size: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 22px;
  font: inherit;
  font-weight: 600;
  text-align: center;
}

.btn-primary {
  background: var(--crimson);
  color: #fff;
}

.btn-primary:hover {
  background: var(--crimson-dark);
  color: #fff;
}

.btn-ghost {
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.btn-ghost:hover {
  color: var(--ink);
}

.btn-dark {
  background: var(--elevated);
  color: var(--on-elevated);
}

.btn-dark:hover {
  color: var(--on-elevated);
  background: var(--elevated-hover);
}

.btn-block {
  width: 100%;
}

.btn:disabled,
.btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--card);
}

.section-head {
  max-width: 640px;
  margin-bottom: 32px;
}

.section-head p,
.section-head .lead {
  color: var(--muted);
}

.card,
.info-card,
.step,
.plan-card,
.mission,
.success-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step,
.info-card,
.mission,
.plan-card {
  padding: 26px;
}

.step-num {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--tint);
  color: var(--crimson);
  font-weight: 700;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

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

.info-card ul,
.plan-points,
.bank-box ul {
  margin: 0;
  padding-left: 1.1rem;
}

.info-card li,
.plan-points li {
  margin: 0.45rem 0;
  color: var(--muted);
}

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

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid transparent;
}

.plan-card--popular {
  border-color: var(--crimson);
  box-shadow: 0 12px 32px rgba(240, 82, 82, 0.16);
}

.plan-card--best {
  border-color: var(--elevated);
}

.plan-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--crimson);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
}

.plan-card--best .plan-badge {
  background: var(--ink);
}

.plan-duration {
  color: var(--crimson);
  font-weight: 700;
  font-size: 0.82rem;
  margin: 0 0 8px;
}

.plan-tagline {
  color: var(--muted);
  font-size: 0.92rem;
  min-height: 2.6em;
}

.plan-price {
  margin: 8px 0 14px;
}

.plan-price span {
  display: block;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.plan-price small {
  color: var(--muted);
  font-weight: 400;
}

.plan-points {
  margin-bottom: 18px;
  flex: 1;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.mission-grid {
  display: grid;
  gap: 14px;
}

.cta-band {
  padding: 28px 0 72px;
}

.cta-inner {
  background: var(--elevated);
  color: var(--on-elevated);
  border-radius: 36px;
  padding: 36px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.cta-inner p {
  color: var(--on-elevated-muted);
  margin: 0;
  max-width: 36rem;
}

.cta-inner h2 {
  color: var(--on-elevated);
  margin-bottom: 8px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.cta-login {
  background: var(--on-elevated);
  color: var(--elevated);
}

.cta-login:hover {
  color: var(--elevated);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  padding: 26px;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.feature-card p {
  color: var(--muted);
  margin: 0;
}

.langs-block {
  max-width: 44rem;
}

.langs-block .pills {
  margin-top: 18px;
}

.about-app {
  width: 100%;
  max-width: none;
}

.about-app-card {
  padding: 24px 28px 22px;
  text-align: left;
}

.about-app-icon {
  display: inline-flex;
  color: var(--crimson);
  margin-bottom: 8px;
}

.about-app-card h1 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  color: var(--crimson);
}

.about-app-card .lead {
  margin: 0 0 12px;
  max-width: none;
}

.about-app-card h2 {
  margin: 18px 0 8px;
  font-size: 1rem;
  color: var(--crimson);
}

.about-app-card ul {
  margin: 0;
  padding-left: 1.15rem;
}

.about-app-card li {
  margin-bottom: 6px;
}

.about-app-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0 4px;
}

.about-app-split article {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--tint);
}

.about-app-split h2 {
  margin: 0 0 6px;
}

.about-app-split p {
  margin: 0;
}

.about-app-dev {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.about-app-audiences {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 32px;
  margin-top: 8px;
}

.about-app-audiences h2 {
  margin-top: 12px;
}

.about-app-dev p {
  text-align: center;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.about-app-bsoft {
  display: inline-block;
  margin: 4px 0 8px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--crimson);
}

@media (max-width: 900px) {
  .about-app-audiences,
  .about-app-split {
    grid-template-columns: 1fr;
  }

  .about-app-card {
    padding: 20px 16px;
  }
}

.about-extra {
  color: var(--muted);
  margin-top: 14px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 14px;
}

.contact-card {
  padding: 22px 24px;
}

.contact-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.dash-shop-link {
  margin-top: 22px;
}

.dash-main .plan-grid {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 1280px) {
  .dash-main .plan-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.site-footer {
  padding: 36px 0 24px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-logo {
  height: 32px;
  width: auto;
  margin-bottom: 10px;
}

.footer-heading {
  font-size: 0.95rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-hero {
  padding: 36px 0 0;
}

.cart-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 20px;
  align-items: start;
}

.cart-empty {
  text-align: center;
  padding: 48px 28px;
  margin-top: 8px;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 20px 22px;
  margin-bottom: 12px;
}

.cart-item h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.pay-actions {
  display: grid;
  gap: 8px;
}

.pay-hint {
  margin: 0 0 6px;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

.cart-summary,
.checkout-form,
.success-card {
  padding: 26px;
}

.totals {
  margin: 0 0 18px;
}

.totals > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  color: var(--muted);
}

.totals-grand {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  font-weight: 700;
  color: var(--ink) !important;
}

.checkout-form {
  display: grid;
  gap: 14px;
}

.checkout-form label {
  display: grid;
  gap: 6px;
  font-weight: 500;
  font-size: 0.92rem;
}

.checkout-form input,
.checkout-form textarea {
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  background: var(--bg);
}

.checkout-form input:focus,
.checkout-form textarea:focus {
  outline: 2px solid var(--crimson);
  border-color: transparent;
}

.form-error {
  background: var(--error-bg);
  color: var(--error);
  padding: 12px 14px;
  border-radius: 16px;
}

.bank-box {
  background: var(--bg);
  border-radius: 20px;
  padding: 16px 18px;
  margin: 16px 0;
}

.bank-box h2,
.bank-box h3 {
  font-size: 1rem;
}

.checkout-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: var(--elevated);
  color: var(--on-elevated);
  padding: 12px 16px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  z-index: 50;
}

.linkish {
  background: none;
  border: 0;
  color: var(--crimson);
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.legal-doc {
  padding: 32px 28px 28px;
}

.legal-doc h2 {
  font-size: 1.35rem;
  color: var(--crimson);
}

.legal-doc h3 {
  font-size: 1.05rem;
  margin-top: 1.4em;
}

.legal-doc p,
.legal-doc li {
  color: var(--muted);
}

.legal-doc ul,
.legal-doc ol {
  padding-left: 1.2rem;
}

.legal-links {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .hero-grid,
  .plan-grid,
  .about-grid,
  .cart-layout,
  .checkout-layout,
  .footer-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .steps,
  .split {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  .header-login,
  .header-register {
    display: none;
  }

  .mode-app .header-login {
    display: inline-flex;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-nav.is-open {
    display: flex;
  }

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

  .hero-mini {
    transform: none;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .header-inner {
    min-height: 64px;
  }

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

  .cart-btn-label {
    display: none;
  }

  .lang-btn {
    padding: 6px 6px;
  }

  .hero {
    padding-top: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.header-login,
.header-register {
  padding: 9px 16px;
  font-size: 0.9rem;
}

.site-header--app {
  background: var(--header-bg);
  border-bottom: 0;
  border-radius: 0 0 25px 25px;
  box-shadow: var(--shadow);
}

.mode-app .site-footer .footer-grid {
  display: none;
}

.mode-auth .header-inner {
  min-height: 64px;
}

.auth-screen {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 160px);
  padding: 48px 0 72px;
}

.auth-mark {
  position: absolute;
  left: -80px;
  bottom: -60px;
  width: min(460px, 70vw);
  opacity: 0.1;
  pointer-events: none;
}

.auth-wrap {
  position: relative;
  width: min(520px, calc(100% - 40px));
  margin-inline: auto;
}

.auth-logo {
  display: block;
  margin: 0 auto 20px;
  height: 48px;
  width: auto;
}

.auth-card {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  border-radius: 40px;
  padding: 28px;
}

.auth-card h1 {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.auth-sub,
.auth-note {
  text-align: center;
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-row {
  display: flex;
  justify-content: space-between;
}

.auth-hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 4px 0;
}

.field {
  display: grid;
  gap: 6px;
  font-weight: 500;
  font-size: 0.92rem;
}

.field-control {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0 12px;
}

.field-control input,
.field-control select,
.dash-form textarea,
.dash-form input[type="text"],
.dash-form input[type="email"],
.dash-form input[type="tel"],
.dash-form input[type="url"],
.dash-form input[type="file"],
.dash-form select {
  font: inherit;
  border: 0;
  background: transparent;
  width: 100%;
  padding: 12px 4px;
}

.dash-form textarea,
.dash-form input[type="text"],
.dash-form input[type="email"],
.dash-form input[type="tel"],
.dash-form input[type="url"],
.dash-form input[type="file"],
.dash-form select {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
}

.field-control input:focus,
.dash-form textarea:focus,
.dash-form input:focus,
.dash-form select:focus {
  outline: 2px solid var(--crimson);
}

.field-icon,
.field-toggle {
  color: var(--crimson);
  display: inline-flex;
}

.field-toggle {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}

.field-hint {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.8rem;
}

.icon {
  display: block;
}

.tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 12px 0 22px;
  border-bottom: 1px solid var(--line);
}

.tab {
  color: var(--muted);
  font-weight: 600;
  padding: 8px 14px;
  margin-bottom: -1px;
  border-bottom: 2.5px solid transparent;
}

.tab.is-active {
  color: var(--crimson);
  border-color: var(--crimson);
}

.register-card {
  padding-top: 22px;
}

.register-card-head {
  position: relative;
  min-height: 2.2rem;
  margin-bottom: 4px;
}

.register-card-head .back-link {
  position: absolute;
  left: 0;
  top: 0.4rem;
}

.register-card-head h1 {
  margin: 0;
  padding: 0 7.5rem;
}

.back-link {
  font-size: 0.9rem;
}

@media (max-width: 560px) {
  .register-card-head .back-link {
    position: static;
    display: inline-block;
    margin-bottom: 10px;
  }

  .register-card-head h1 {
    padding: 0;
  }
}

.dash {
  padding: 0;
}

.dash-layout {
  --dash-nav-width: 18rem;
  display: grid;
  grid-template-columns: var(--dash-nav-width) minmax(0, 1fr);
  align-items: start;
  min-height: calc(100vh - 72px);
}

.page-dashboard .dash-layout:has(.dash-nav) {
  background: linear-gradient(
    to right,
    var(--nav-fill) var(--dash-nav-width),
    transparent var(--dash-nav-width)
  );
}

.page-dashboard .dash-layout:has(.dash-main:only-child),
.page-dashboard .dash-layout:not(:has(.dash-nav)) {
  grid-template-columns: 1fr;
  background: none;
}

.page-dashboard .dash-layout:not(:has(.dash-nav)) .dash-main {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}

.dash-nav {
  position: sticky;
  top: 72px;
  align-self: start;
  max-height: calc(100vh - 72px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: transparent;
  border-right: 1px solid var(--nav-line);
}

.dash-nav-head {
  padding: 22px 20px 16px;
}

.dash-nav-head a {
  display: block;
  color: inherit;
  min-width: 0;
}

.dash-nav-head a:hover {
  color: inherit;
}

.dash-nav-head strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.3;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-nav-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.dash-nav nav {
  padding: 0 12px 24px;
}

.dash-nav-groups {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dash-nav-group p {
  margin: 0 0 6px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--muted) 82%, transparent);
}

.dash-nav-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-nav a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
}

.dash-nav a .icon {
  flex-shrink: 0;
  margin-top: 1px;
  opacity: 0.72;
}

.dash-nav a:hover {
  background: color-mix(in srgb, var(--crimson) 7%, transparent);
  color: var(--ink);
}

.dash-nav a.is-active {
  background: var(--crimson);
  color: #fff;
  box-shadow: 0 1px 2px rgba(240, 82, 82, 0.28);
}

.dash-nav a.is-active .icon,
.dash-nav a:hover .icon {
  opacity: 1;
}

.dash-nav a.is-active:hover {
  background: var(--crimson-dark);
  color: #fff;
}

.dash-main {
  min-width: 0;
  padding: 22px 24px 56px;
}

.dash-main--home {
  width: 100%;
  max-width: none;
  padding: 18px 24px 48px;
}

.dash-layout:has(.dash-nav) .dash-hero {
  text-align: left;
}

.dash-hero {
  text-align: center;
  margin-bottom: 22px;
}

.dash-hero h1 {
  font-size: 1.45rem;
}

.dash-hero p,
.dash-h2 {
  color: var(--muted);
}

.dash-h2 {
  color: var(--crimson);
  font-size: 1.15rem;
  margin: 24px 0 12px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.stat-card,
.chart-card,
.action-card,
.module-card,
.list-card {
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.stat-card {
  text-align: center;
  padding: 18px 10px;
}

.stat-card strong {
  display: block;
  font-size: 1.6rem;
  margin: 8px 0 4px;
}

.stat-card span {
  color: var(--muted);
}

.stat-icon {
  color: var(--crimson);
  display: inline-flex;
  justify-content: center;
}

.stat-card--green .stat-icon,
.stat-card--green strong {
  color: var(--ok-strong);
}

.stat-card--orange .stat-icon,
.stat-card--orange strong {
  color: var(--warn);
}

.chart-card {
  padding: 16px;
  margin-bottom: 24px;
  color: var(--crimson);
}

.chart-card h2 {
  text-align: center;
  font-size: 1.1rem;
  color: var(--ink);
}

.chart-range {
  text-align: center;
  font-size: 0.82rem;
}

.week-chart {
  width: 100%;
  height: auto;
}

.chart-grid {
  stroke: color-mix(in srgb, var(--muted) 22%, transparent);
  stroke-width: 1;
}

.chart-axis {
  fill: var(--muted);
  font-size: 11px;
}

.action-stack {
  display: grid;
  gap: 16px;
}

.list-stack {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.history-card .history-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
}

.history-card-stats {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.history-card-stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
}

.history-card-stats .icon {
  color: var(--crimson);
}

.status-pill.is-active {
  color: var(--ok);
}

.status-pill.is-expired {
  color: var(--warn);
}

.history-detail {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: none;
}

.history-detail-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(240px, 0.7fr);
  gap: 16px;
  align-items: stretch;
}

.history-detail-top .job-stat-row {
  grid-template-columns: 1fr;
  margin: 0;
}

.history-detail-head h1 {
  margin-bottom: 8px;
}

.history-detail-head .status-pill {
  margin-top: 0;
}

.history-info p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.history-info p:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.history-info span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.history-info .icon {
  color: var(--crimson);
}

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

.history-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.history-counts span {
  background: var(--bg);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  box-shadow: var(--shadow);
}

.history-desc {
  white-space: pre-wrap;
  color: var(--muted);
  line-height: 1.6;
}

.history-detail .card {
  padding: 18px 20px;
}

.avatar {
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: var(--tint);
  color: var(--crimson);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.92rem;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-fallback {
  line-height: 1;
}

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

.applicant-detail {
  display: grid;
  gap: 16px;
  width: 100%;
}

.applicant-detail-head {
  display: flex;
  align-items: center;
  gap: 18px;
}

.applicant-detail-head h1 {
  margin: 0 0 4px;
}

.applicant-detail-head .lead {
  margin: 0 0 8px;
  max-width: none;
}

.applicant-detail-head .status-pill {
  margin-top: 0;
}

.applicant-detail .card {
  padding: 18px 20px;
}

.finance-page {
  width: 100%;
}

.dash-tabs {
  justify-content: flex-start;
  margin: 4px 0 18px;
}

.finance-summary {
  margin: 8px 0 18px;
}

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

.finance-card-meta {
  display: grid;
  gap: 2px;
  margin-top: 4px;
}

.finance-fail {
  color: var(--danger);
}

.finance-card-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex: none;
  min-width: 7.5rem;
}

.finance-card-amount {
  font-weight: 700;
  color: var(--crimson);
  white-space: nowrap;
}

.finance-card-side .status-pill {
  margin-top: 0;
}

.finance-pay-hint {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--crimson);
}

.status-pill.is-paid {
  color: var(--ok);
}

.status-pill.is-pending-pay {
  color: var(--warn);
}

.status-pill.is-unpaid,
.status-pill.is-failed {
  color: var(--danger);
}

.status-pill.is-open {
  color: var(--crimson);
}

.status-pill.is-closed {
  color: var(--ok);
}

.ticket-page {
  width: 100%;
}

.ticket-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.ticket-toolbar h1 {
  margin-bottom: 6px;
}

.ticket-toolbar .lead {
  margin-bottom: 0;
}

.ticket-help {
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 16px 18px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 18px;
}

.ticket-thread {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 10px;
  width: 100%;
}

.page-dashboard:has(.ticket-thread) .site-footer {
  display: none;
}

.dash-layout:has(.ticket-thread) {
  align-items: stretch;
}

.dash-main:has(.ticket-thread) {
  --ticket-pad: 20px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 72px);
  padding: 16px var(--ticket-pad) 96px;
}

.ticket-thread-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}

.ticket-thread-head .dash-back {
  width: 100%;
  margin: 0;
}

.ticket-thread-head h1 {
  flex: 1;
  margin: 0;
  font-size: 1.12rem;
}

.ticket-thread-head .status-pill {
  margin-top: 0;
}

.ticket-log {
  display: grid;
  align-content: start;
  gap: 8px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 2px 8px;
}

.ticket-msg {
  max-width: min(380px, 78%);
  padding: 7px 11px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
  font-size: 0.88rem;
  line-height: 1.4;
}

.ticket-msg.is-mine {
  margin-left: auto;
  background: var(--crimson);
  color: #fff;
}

.ticket-msg-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.ticket-msg.is-mine .ticket-msg-meta {
  color: rgba(255, 255, 255, 0.86);
}

.ticket-msg p {
  margin: 0;
  white-space: pre-wrap;
}

.ticket-msg-media {
  position: relative;
  display: inline-block;
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: 10px;
  overflow: hidden;
  max-width: 100%;
}

.ticket-msg-img {
  max-width: min(160px, 100%);
  border-radius: 10px;
  display: block;
  pointer-events: none;
}

.ticket-msg-media video.ticket-msg-img {
  max-height: 140px;
  object-fit: cover;
  background: #111;
}

.ticket-media-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.ticket-media-play::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 11px;
  border: 7px solid transparent;
  border-left: 12px solid #fff;
}

.media-popup {
  width: min(96vw, 1080px);
  max-width: 96vw;
  height: fit-content;
  max-height: 92vh;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.media-popup::backdrop {
  background: rgba(12, 12, 16, 0.82);
}

.media-popup-close {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.media-popup-stage img,
.media-popup-stage video {
  display: block;
  max-width: 92vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  background: #000;
}

.ticket-composer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  flex: none;
  width: auto;
  margin: 0;
  background: var(--card);
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow-hover);
  padding: 10px var(--ticket-pad, 20px) max(12px, env(safe-area-inset-bottom));
}

.dash-layout:has(.dash-nav) .ticket-composer {
  left: var(--dash-nav-width);
}

.ticket-closed-note {
  background: var(--success-bg);
  color: var(--success);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.88rem;
  text-align: center;
  margin: 0;
}

.ticket-reply {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: end;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: none;
  box-shadow: none;
}

.ticket-reply textarea {
  width: 100%;
  min-height: 44px;
  max-height: 96px;
  resize: none;
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.4;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
}

.ticket-reply textarea:focus {
  outline: 2px solid var(--crimson);
}

.ticket-attach {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--crimson);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ticket-attach input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.ticket-reply .btn {
  margin: 0;
  min-width: 88px;
  padding: 10px 16px;
}

body:has(.not-found) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body:has(.not-found) main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.not-found {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 32px 0 64px;
}

.not-found-card {
  position: relative;
  width: min(560px, 100%);
  margin-inline: auto;
  padding: 40px 28px 32px;
  text-align: center;
  overflow: hidden;
}

.not-found-code {
  position: absolute;
  left: 50%;
  top: -6px;
  transform: translateX(-50%);
  margin: 0;
  font-size: clamp(6.4rem, 24vw, 9.5rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 1;
  color: rgba(240, 82, 82, 0.1);
  pointer-events: none;
  user-select: none;
}

.not-found-icon {
  position: relative;
  display: inline-flex;
  width: 72px;
  height: 72px;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: var(--tint);
  color: var(--crimson);
  margin-bottom: 14px;
}

.not-found-card h1 {
  position: relative;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  margin: 0 0 8px;
}

.not-found-card .lead {
  margin: 0 auto 22px;
}

.not-found-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin: 0 0 16px;
  text-align: left;
}

.not-found-search input {
  width: 100%;
  font: inherit;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px 12px 42px;
}

.not-found-search input:focus {
  outline: 2px solid var(--crimson);
  border-color: transparent;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.not-found-actions .btn {
  gap: 8px;
}

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

.stat-card--red .stat-icon,
.stat-card--red strong {
  color: var(--danger);
}

.status-pill.is-rejected {
  color: var(--danger);
}

.status-pill.is-shortlisted {
  color: var(--violet);
}

.status-pill.is-reviewed {
  color: var(--info);
}

.pay-page {
  display: grid;
  gap: 20px;
  width: 100%;
}

.pay-top {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.6fr);
  gap: 16px;
  align-items: stretch;
}

.pay-summary,
.pay-box,
.pay-form {
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 28px 32px;
}

.pay-pro {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.pay-summary h2 {
  font-size: 1.2rem;
  margin: 0 0 12px;
}

.pay-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.pay-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

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

.pay-form h2 {
  font-size: 1.05rem;
  margin: 8px 0 0;
}

.pay-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pay-plan {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
}

.pay-plan:has(:checked) {
  border-color: var(--crimson);
  box-shadow: 0 0 0 1px var(--crimson);
}

.pay-plan input {
  margin-top: 4px;
  accent-color: var(--crimson);
}

.pay-plan strong,
.pay-plan small {
  display: block;
}

.pay-plan small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 400;
  margin-top: 2px;
}

.pay-plan em {
  font-style: normal;
  font-weight: 700;
  color: var(--crimson);
  white-space: nowrap;
}

.pay-page .pay-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  margin-top: 8px;
  align-items: start;
}

.pay-action {
  display: grid;
  gap: 6px;
}

.pay-total {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--crimson);
}

.pay-proline {
  font-weight: 600;
}

.pay-done-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.action-card,
.list-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  color: var(--ink);
  border-radius: 28px;
}

.action-card:hover,
.list-card:hover,
.module-card:hover {
  color: var(--ink);
}

.action-icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--tint);
  color: var(--crimson);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.action-copy {
  flex: 1;
  min-width: 0;
}

.action-copy strong,
.module-card strong {
  display: block;
  font-size: 1.05rem;
}

.action-copy span,
.module-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.finance-card .finance-fail {
  color: var(--danger);
}

.action-go {
  color: var(--muted);
}

.status-pill {
  display: inline-block;
  margin-top: 6px;
  color: var(--crimson);
  font-style: normal;
  font-weight: 600;
  font-size: 0.82rem;
}

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

.module-card {
  text-align: center;
  padding: 22px 14px;
  color: var(--ink);
  border-radius: 18px;
}

.module-card .action-icon {
  margin: 0 auto 10px;
}

.dash-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  max-width: 680px;
}

.dash-form--wide {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding: 28px 32px;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}

.dash-form--wide input[type="hidden"] {
  display: none;
}

.dash-form--wide .field-span {
  grid-column: 1 / -1;
}

.dash-form--wide .btn {
  grid-column: 1 / -1;
  justify-self: center;
  width: auto;
  min-width: 160px;
  padding: 11px 28px;
}

.dash-form--wide .form-section {
  margin: 6px 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--crimson);
}

.dash-form--wide .form-section:first-of-type {
  margin-top: 0;
}

.dash-form--wide .req {
  color: var(--crimson);
}

.dash-form--wide .field-hint {
  display: block;
  margin-top: 4px;
  font-weight: 400;
}

.dash-form--wide .form-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 4px;
}

.dash-form--wide .form-actions .btn {
  grid-column: auto;
  justify-self: start;
}

.job-cover-drop {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  overflow: hidden;
  cursor: pointer;
  border: 1.5px dashed var(--line);
  border-radius: 16px;
  background: var(--tint);
}

.job-cover-drop:hover,
.job-cover-drop.is-drag {
  border-color: var(--crimson);
}

.job-cover-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px 16px;
  color: var(--muted);
  text-align: center;
  pointer-events: none;
}

.job-cover-placeholder .icon {
  color: var(--crimson);
}

.job-cover-placeholder strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.job-cover-drop img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.job-cover-drop img[hidden] {
  display: none;
}

.job-cover-drop.is-filled {
  border-style: solid;
}

.job-cover-drop.is-filled .job-cover-placeholder {
  display: none;
}

.job-cover-drop input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  border: 0;
  background: transparent;
  font-size: 0;
}

.dash-form--wide textarea {
  min-height: 160px;
  resize: vertical;
}

.dash-main:has(.dash-form--wide) > h1,
.dash-main:has(.dash-form--wide) > .lead,
.dash-main:has(.dash-form--wide) > .dash-back,
.dash-main:has(.dash-form--wide) > .form-error {
  width: 100%;
  margin-inline: 0;
}

.dash-main:has(.dash-form--wide) > h1,
.dash-main:has(.dash-form--wide) > .lead {
  text-align: left;
}

.dash-main:has(.profile-page) {
  width: 100%;
}

.profile-dl {
  padding: 22px;
  display: grid;
  gap: 10px;
}

.company-logo-field {
  display: flex;
  align-items: center;
  gap: 18px;
}

.company-logo-field .field {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.company-logo-preview,
.company-logo-field .avatar {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--tint);
  box-shadow: var(--shadow);
}

.company-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.company-form .field-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.profile-page {
  width: 100%;
}

.profile-hero .profile-complete {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.profile-meter {
  height: 8px;
  max-width: 240px;
  border-radius: 999px;
  background: var(--tint);
  overflow: hidden;
}

.profile-meter > span {
  display: block;
  height: 100%;
  background: var(--crimson);
  border-radius: inherit;
}

.profile-photo-wrap {
  position: relative;
  flex: none;
  width: 112px;
  height: 112px;
}

.profile-photo-wrap .avatar {
  width: 112px;
  height: 112px;
  box-shadow: var(--shadow);
}

.profile-photo-badge {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--crimson);
  color: #fff;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(20, 20, 20, 0.18);
}

.profile-skill-chips {
  margin-top: 8px;
}

.profile-cv-current {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-weight: 600;
}

.profile-cv-current .icon {
  color: var(--crimson);
}

.profile-form .dash-h2 {
  margin: 8px 0 0;
}

.dash-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 18px;
}

.dash-main--home .dash-hero {
  margin-bottom: 12px;
}

.dash-main--home .dash-hero h1 {
  font-size: 1.18rem;
  margin: 0;
}

.dash-main--home .dash-hero p {
  margin: 4px 0 0;
  font-size: 0.88rem;
}

.dash-main--home .stat-row {
  gap: 8px;
  margin-bottom: 12px;
}

.dash-main--home .stat-card {
  padding: 10px 8px;
  border-radius: 14px;
}

.dash-main--home .stat-card strong {
  font-size: 1.2rem;
  margin: 2px 0 0;
}

.dash-main--home .stat-card span {
  font-size: 0.75rem;
}

.dash-main--home .stat-icon .icon {
  width: 20px;
  height: 20px;
}

.dash-main--home .dash-cta-row {
  margin: 0 0 12px;
  gap: 8px;
}

.dash-main--home .dash-cta-row .btn {
  padding: 8px 14px;
  font-size: 0.84rem;
}

.dash-main--home .chart-card {
  padding: 12px 12px 8px;
  margin-bottom: 12px;
  border-radius: 14px;
}

.dash-main--home .chart-card h2 {
  font-size: 0.92rem;
  margin: 0 0 2px;
}

.dash-main--home .chart-range {
  font-size: 0.75rem;
  margin: 0 0 4px;
}

.dash-main--home .week-chart {
  display: block;
  width: 100%;
  height: 150px;
}

.dash-main--home .dash-h2 {
  font-size: 0.95rem;
  margin: 14px 0 8px;
}

.dash-main--home .list-stack {
  gap: 8px;
  margin-top: 0;
}

.dash-main--home .list-card,
.dash-main--home .action-card {
  padding: 10px 12px;
  border-radius: 14px;
  gap: 10px;
}

.dash-main--home .list-card .action-icon,
.dash-main--home .action-card .action-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.dash-main--home .action-copy strong,
.dash-main--home .module-card strong {
  font-size: 0.92rem;
}

.dash-main--home .action-copy span,
.dash-main--home .module-card span {
  font-size: 0.8rem;
}

.dash-main--home .module-grid {
  gap: 10px;
}

.dash-main--home .module-card {
  padding: 14px 10px;
  border-radius: 14px;
}

.dash-main--home .empty-note {
  padding: 16px;
  font-size: 0.88rem;
}

.jobs-hero h1 {
  margin: 0 0 6px;
}

.jobs-hero .lead {
  margin: 0 0 18px;
}

.jobs-filter {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin: 0 0 16px;
  padding: 16px;
  background: var(--card);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.jobs-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.jobs-filter .btn {
  height: 44px;
}

.jobs-search-input {
  position: relative;
  display: block;
}

.jobs-search-input .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--crimson);
  pointer-events: none;
}

.jobs-filter input,
.jobs-filter select {
  font: inherit;
  width: 100%;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
}

.jobs-filter option,
.field-control option {
  background: var(--card);
  color: var(--ink);
}

.jobs-search-input input {
  padding-left: 42px;
}

.jobs-filter input:focus,
.jobs-filter select:focus {
  outline: 2px solid var(--crimson);
}

.jobs-count {
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 500;
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.job-tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  padding: 20px;
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.job-tile:hover {
  color: inherit;
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.job-tile.is-featured {
  box-shadow: 0 0 0 1.5px var(--crimson), var(--shadow);
}

.job-tile-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--warn-bg);
  color: var(--warn);
  font-size: 0.75rem;
  font-weight: 700;
}

.job-tile-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.job-tile-titles {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.job-tile-titles strong {
  font-size: 1.05rem;
  line-height: 1.3;
}

.job-tile-company {
  color: var(--muted);
  font-size: 0.92rem;
}

.job-tile-facts {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.job-tile-facts span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.job-tile-facts .icon {
  color: var(--crimson);
  flex: none;
}

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

.job-tile-tags em {
  font-style: normal;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--crimson);
  font-size: 0.75rem;
  font-weight: 600;
}

.job-tile-excerpt {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-tile-cta {
  margin-top: auto;
  align-self: flex-end;
  gap: 8px;
  pointer-events: none;
}

.jobs-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--muted);
}

.jobs-empty[hidden] {
  display: none !important;
}

.jobs-empty-icon {
  display: inline-flex;
  color: color-mix(in srgb, var(--crimson) 45%, transparent);
  margin-bottom: 8px;
}

.jobs-empty h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 1.15rem;
}

.jobs-empty p {
  margin: 0 0 16px;
}

.job-tags,
.job-excerpt {
  margin-top: 8px !important;
}

.job-excerpt {
  white-space: pre-wrap;
}

.seeker-job-detail {
  margin-bottom: 16px;
  padding: 20px 22px;
}

.app-detail {
  width: 100%;
}

.app-detail-card {
  display: grid;
  gap: 20px;
  padding: 24px;
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.app-detail-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.app-detail-head h1 {
  margin: 0 0 4px;
  font-size: 1.35rem;
}

.app-detail-company {
  margin: 0 0 8px;
  color: var(--crimson);
  font-weight: 600;
}

.app-detail-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.app-detail-facts li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-detail-facts .icon {
  color: var(--crimson);
  flex: none;
}

.app-detail-reply {
  padding: 16px 18px 16px 20px;
  border-radius: 16px;
  background: var(--tint);
  border: 1.5px solid color-mix(in srgb, var(--crimson) 35%, transparent);
  border-left: 4px solid var(--crimson);
}

.app-detail-reply h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  font-size: 1rem;
  color: var(--crimson);
}

.app-detail-reply .muted {
  margin: 0 0 10px;
  font-size: 0.82rem;
}

.app-detail-reply p:last-child {
  margin: 0;
}

.app-detail-block h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.app-detail-block p {
  margin: 0;
  color: var(--muted);
}

.app-detail-hint {
  margin-bottom: 14px !important;
  font-size: 0.82rem;
}

.app-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.app-timeline li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 14px;
  position: relative;
  padding-bottom: 20px;
}

.app-timeline li:last-child {
  padding-bottom: 0;
}

.app-timeline li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 24px;
  bottom: 0;
  width: 2px;
  background: color-mix(in srgb, var(--line) 80%, transparent);
}

.app-timeline-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #93c5fd;
  position: relative;
  z-index: 1;
}

.app-timeline .is-done .app-timeline-dot {
  background: #22c55e;
}

.app-timeline .is-rejected .app-timeline-dot {
  background: #ef4444;
}

.app-timeline .is-waiting .app-timeline-dot {
  background: #60a5fa;
}

.app-timeline strong {
  display: block;
}

.app-timeline time {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin: 2px 0 4px;
}

.app-timeline p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.app-detail-actions {
  margin: 0;
}

.seeker-job-detail h2 {
  margin: 0 0 6px;
}

.repeat-block .dash-h2 {
  margin: 8px 0 10px;
}

.repeat-list {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.repeat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.7fr) auto;
  gap: 8px;
  align-items: center;
}

.repeat-row input {
  width: 100%;
}

.profile-dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.profile-dl dt {
  color: var(--muted);
  font-weight: 500;
}

.empty-note {
  color: var(--muted);
  text-align: center;
  padding: 24px 8px;
}

.dash-back {
  margin-bottom: 8px;
}

.toast.is-error {
  background: #8a1f1f;
}

.page-home,
.page-job {
  --wrap: 1240px;
}

.board-hero {
  padding: 36px 0 8px;
}

.board-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 8px;
}

.board-hero .lead {
  margin-bottom: 20px;
}

.board-filter {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr) minmax(0, 0.9fr) auto;
}

.board-section {
  padding: 8px 0 48px;
}

.board-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
}

.board-layout--solo {
  grid-template-columns: minmax(0, 1fr);
}

.board-jobs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.board-jobs.is-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.board-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}

.board-toolbar .jobs-count {
  margin: 0;
}

.board-view {
  display: inline-flex;
  padding: 4px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.board-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.board-view-btn .icon {
  flex: none;
}

.board-view-btn.is-active {
  background: var(--crimson);
  color: #fff;
}

.board-job {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: inherit;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.board-jobs.is-grid .board-job {
  align-items: start;
  min-height: 100%;
}

.board-jobs.is-grid .board-job-meta {
  flex-direction: column;
  gap: 6px;
}

a.board-job:hover {
  color: inherit;
  border-color: rgba(240, 82, 82, 0.45);
  transform: translateY(-1px);
}

.board-job.is-featured {
  border-color: rgba(240, 82, 82, 0.35);
  background: linear-gradient(180deg, var(--card) 0%, var(--featured-end) 100%);
}

.board-job-title {
  display: block;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.board-job-company,
.board-job-meta {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.board-job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 6px;
}

.board-job-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.board-job-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.board-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(240, 82, 82, 0.1);
  color: var(--crimson-dark);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.board-badge--new {
  background: var(--badge-new-bg);
  color: var(--badge-new-fg);
}

.board-ads {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.board-ads-kicker {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.board-ad {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.board-ad img {
  width: 100%;
  height: auto;
  display: block;
}

.job-page {
  padding: 20px 0 56px;
}

.job-page h1 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  margin: 0 0 4px;
}

.job-page h2 {
  font-size: 1.12rem;
  margin: 0 0 10px;
}

.job-back {
  margin: 0 0 16px;
}

.job-back a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: 600;
}

.job-back a:hover {
  color: var(--ink);
}

.job-back .icon {
  transform: rotate(180deg);
}

.job-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.job-layout--solo {
  grid-template-columns: minmax(0, 1fr);
}

.job-main {
  display: grid;
  gap: 16px;
}

.job-hero,
.job-block,
.job-apply,
.job-contact {
  padding: 24px;
}

.job-cover {
  margin: -24px -24px 20px;
  border-radius: 28px 28px 0 0;
  overflow: hidden;
  background: var(--bg);
}

.job-cover img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.job-hero-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.job-hero-copy {
  min-width: 0;
}

.job-hero-head .avatar,
.job-company-card .avatar {
  border-radius: 18px;
  font-size: 1.35rem;
}

.job-company-name {
  margin: 0;
  color: var(--crimson);
  font-weight: 600;
}

.job-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 0;
}

.job-chips span {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
}

.job-facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.job-fact {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--bg);
}

.job-fact-icon {
  display: inline-flex;
  color: var(--crimson);
  margin-top: 2px;
}

.job-fact-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.job-fact-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.job-fact-value {
  font-size: 0.95rem;
  word-break: break-word;
}

.job-prose {
  margin: 0;
  color: var(--ink);
  line-height: 1.65;
}

.job-prose p:last-child {
  margin-bottom: 0;
}

.job-company-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.job-company-card h2 {
  margin-bottom: 2px;
}

.job-company-card .job-company-name {
  margin-bottom: 8px;
}

.job-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 88px;
}

.job-apply-kicker {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.job-apply .btn,
.job-hero-apply .btn,
.job-sticky-apply .btn {
  gap: 8px;
}

.job-apply .btn {
  width: 100%;
}

.job-apply .btn + .btn {
  margin-top: 8px;
}

.job-apply .btn-ghost,
.job-hero-apply .btn-ghost {
  border: 1px solid var(--line);
  box-shadow: none;
}

.job-apply-hint {
  margin: 10px 0 0;
  font-size: 0.86rem;
}

.job-hero-apply {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.job-hero-apply .btn {
  flex: 1 1 160px;
}

.job-sticky-apply {
  display: none;
}

.job-contact h2 {
  font-size: 1.05rem;
}

.job-contact-dl {
  margin: 0;
}

.job-contact-dl div {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.job-contact-dl div:first-child {
  padding-top: 0;
}

.job-contact-dl div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.job-contact-dl dt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.job-contact-dl dd {
  margin: 0;
  padding-left: 22px;
  font-weight: 600;
}

.job-related {
  margin-top: 36px;
}

.job-related-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.job-related-head h2 {
  margin: 0;
  font-size: 1.2rem;
}

.job-related-head a {
  font-weight: 600;
  white-space: nowrap;
}

.admin-user-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px 16px;
}

.admin-user-flags {
  display: grid;
  gap: 8px;
}

.admin-user-flags label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
}

.admin-ads-grid {
  display: grid;
  gap: 16px;
}

.admin-ad-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.admin-ad-card img {
  width: 140px;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--bg);
}

.admin-ad-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

@media (max-width: 980px) {
  .dash-layout,
  .page-dashboard .dash-layout:has(.dash-nav),
  .module-grid,
  .dash-form--wide {
    grid-template-columns: 1fr;
  }

  .board-layout,
  .job-layout,
  .admin-ad-card {
    grid-template-columns: 1fr;
  }

  .job-side {
    position: static;
  }

  .job-apply--side {
    display: none;
  }

  .job-hero-apply {
    display: flex;
  }

  .job-sticky-apply {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--sticky-bg);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--header-line);
    box-shadow: var(--shadow-hover);
  }

  .job-sticky-apply .btn {
    width: 100%;
  }

  .page-job:has(.job-sticky-apply) {
    padding-bottom: 84px;
  }

  .job-hero,
  .job-block,
  .job-apply,
  .job-contact {
    padding: 18px;
  }

  .job-cover {
    margin: -18px -18px 16px;
  }

  .job-cover img {
    height: 160px;
  }

  .board-ads {
    position: static;
  }

  .board-filter {
    grid-template-columns: 1fr;
  }

  .not-found-card {
    padding: 32px 20px 24px;
  }

  .not-found-search {
    grid-template-columns: 1fr;
  }

  .not-found-search .btn,
  .not-found-actions .btn {
    width: 100%;
  }

  .board-view-btn span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .page-dashboard .dash-layout:has(.dash-nav) {
    background: none;
    min-height: 0;
  }

  .dash-nav {
    position: static;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid var(--nav-line);
    background: var(--nav-fill);
  }

  .dash-nav-head {
    display: none;
  }

  .dash-nav nav {
    padding: 10px 12px 12px;
  }

  .dash-nav-groups {
    flex-direction: row;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .dash-nav-group > p {
    display: none;
  }

  .dash-nav-group ul {
    flex-direction: row;
  }

  .dash-nav a {
    white-space: nowrap;
    align-items: center;
  }

  .dash-main {
    padding: 20px 16px 56px;
  }

  .dash-main:has(.ticket-thread) {
    --ticket-pad: 16px;
    padding: 12px 16px 96px;
  }

  .dash-layout:has(.dash-nav) .ticket-composer {
    left: 0;
  }

  .dash-layout:has(.dash-nav) .dash-hero {
    text-align: center;
  }

  .pay-top,
  .pay-plans,
  .pay-page .pay-actions,
  .pay-meta,
  .history-detail-top {
    grid-template-columns: 1fr;
  }

  .history-detail-top .job-stat-row {
    grid-template-columns: 1fr 1fr;
  }

  .applicant-detail-head {
    align-items: flex-start;
  }

  .company-logo-field {
    flex-wrap: wrap;
  }

  .jobs-filter,
  .repeat-row {
    grid-template-columns: 1fr;
  }

  .board-jobs.is-grid {
    grid-template-columns: 1fr;
  }

  .jobs-filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .jobs-filter-actions .btn {
    width: 100%;
  }

  .job-tile-cta {
    align-self: stretch;
  }

  .finance-card {
    flex-wrap: wrap;
  }

  .finance-card-side {
    margin-left: auto;
  }

  .pay-summary,
  .pay-box,
  .pay-form {
    padding: 20px 16px;
  }

  .pay-plan {
    grid-template-columns: auto 1fr;
  }

  .pay-plan em {
    grid-column: 2;
  }
}

html[data-theme="dark"] .hero-mark,
html[data-theme="dark"] .auth-mark {
  opacity: 0.18;
}

html[data-theme="dark"] .btn-ghost,
html[data-theme="dark"] .lang,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .menu-toggle,
html[data-theme="dark"] .board-view {
  border: 1px solid var(--line);
}

html[data-theme="dark"] .btn-ghost {
  box-shadow: none;
}

html[data-theme="dark"] .job-apply .btn-ghost,
html[data-theme="dark"] .job-hero-apply .btn-ghost {
  background: transparent;
}

html[data-theme="dark"] .page-dashboard .stat-card,
html[data-theme="dark"] .page-dashboard .chart-card,
html[data-theme="dark"] .page-dashboard .action-card,
html[data-theme="dark"] .page-dashboard .module-card,
html[data-theme="dark"] .page-dashboard .list-card,
html[data-theme="dark"] .page-dashboard .card,
html[data-theme="dark"] .page-dashboard .ticket-help,
html[data-theme="dark"] .page-dashboard .pay-summary,
html[data-theme="dark"] .page-dashboard .pay-box,
html[data-theme="dark"] .page-dashboard .pay-form,
html[data-theme="dark"] .page-dashboard .jobs-filter {
  border: 1px solid var(--line);
}

html[data-theme="dark"] .dash-nav a:hover {
  background: color-mix(in srgb, var(--crimson) 16%, transparent);
}
