:root {
  --color-black: #0b0b0c;
  --color-black-soft: #18181a;
  --color-white: #ffffff;
  --color-surface: #f7f7f5;
  --color-surface-strong: #efefec;
  --color-border: #deded9;
  --color-border-strong: #b9b9b2;
  --color-text: #111112;
  --color-text-muted: #666660;
  --color-yellow: #f5a800;
  --color-yellow-hover: #ffb616;
  --color-yellow-soft: #fff3cf;
  --color-success: #16803d;
  --color-success-soft: #e8f6ed;
  --color-danger: #bd3030;
  --color-danger-soft: #fbe9e9;
  --color-warning: #8a5a00;
  --color-warning-soft: #fff2cf;
  --font-sans: "Manrope", "Inter", Arial, sans-serif;
  --font-size-xs: 0.78rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-card: 1.25rem;
  --font-size-h3: 1.375rem;
  --font-size-h2: 2.25rem;
  --font-size-page: 3rem;
  --font-size-hero: 4rem;
  --line-height-tight: 1.1;
  --line-height-body: 1.6;
  --container: 1220px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-image: 16px;
  --radius-pill: 999px;
  --shadow-sm: 0 4px 18px rgba(11, 11, 12, 0.05);
  --shadow-md: 0 18px 48px rgba(11, 11, 12, 0.12);
  --button-height: 48px;
  --header-height: 70px;
  --z-header: 50;
  --z-dropdown: 60;
  --z-dialog: 100;
  --z-toast: 120;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-body);
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

h1,
h2,
h3,
h4 {
  color: inherit;
  font-weight: 800;
  line-height: var(--line-height-tight);
  text-align: left;
}

h1 {
  font-size: var(--font-size-page);
}

h2 {
  font-size: var(--font-size-h2);
}

h3 {
  font-size: var(--font-size-h3);
}

p,
li,
dd,
label {
  text-align: left;
}

[hidden],
.hidden {
  display: none !important;
}

.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;
}

:focus-visible {
  outline: 3px solid var(--color-yellow);
  outline-offset: 3px;
}

.loading-state {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--color-white);
  font-weight: 800;
}

/* Header and navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-8);
  padding: 0 max(48px, calc((100vw - var(--container)) / 2));
  border-bottom: 1px solid #242426;
  background: var(--color-black);
  color: var(--color-white);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: var(--color-white);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-right: 10px;
  border: 1px solid #353538;
  border-radius: var(--radius-sm);
  background: var(--color-yellow);
  color: var(--color-black);
  font-size: 1rem;
}

.brand-name strong {
  color: var(--color-yellow);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
}

.main-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  color: #d5d5d2;
  font-size: var(--font-size-sm);
  font-weight: 600;
  white-space: nowrap;
  transition: color 140ms ease, background-color 140ms ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: #242426;
  color: var(--color-yellow);
}

.header-actions,
.guest-actions,
.user-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

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

.user-actions {
  position: relative;
}

.icon-button {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid #39393c;
  border-radius: var(--radius-sm);
  background: var(--color-black-soft);
  color: var(--color-white);
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.icon-button:hover {
  border-color: var(--color-yellow);
  background: #252527;
}

.nav-toggle {
  display: none;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  display: block;
  margin: 2px auto;
  background: currentColor;
}

.profile-menu-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px 10px 4px 4px;
  border: 1px solid #39393c;
  border-radius: var(--radius-pill);
  background: var(--color-black-soft);
  color: var(--color-white);
  font-size: var(--font-size-sm);
  font-weight: 700;
  cursor: pointer;
}

.header-avatar {
  width: 32px;
  height: 32px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-yellow);
  color: var(--color-black);
  font-size: 0.72rem;
  font-weight: 800;
}

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

.notification-button b {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border: 2px solid var(--color-black);
  border-radius: var(--radius-pill);
  background: var(--color-yellow);
  color: var(--color-black);
  font-size: 0.65rem;
  font-weight: 800;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: var(--z-dropdown);
  width: 220px;
  padding: var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  color: var(--color-text);
  box-shadow: var(--shadow-md);
}

.profile-dropdown button {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  text-align: left;
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
}

.profile-dropdown button:hover {
  background: var(--color-surface);
}

/* Global layout */
.app-view {
  display: none;
}

.app-view.active {
  display: block;
}

.page-view {
  width: min(var(--container), calc(100% - 96px));
  min-height: calc(100vh - var(--header-height));
  margin: 0 auto;
  padding: var(--space-16) 0 var(--space-24);
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-10);
  margin-bottom: var(--space-10);
}

.page-header > div {
  min-width: 0;
}

.page-header h1 {
  max-width: 800px;
  margin-bottom: var(--space-2);
}

.page-header p {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--color-text-muted);
}

.eyebrow {
  display: block;
  margin-bottom: var(--space-3);
  color: var(--color-warning);
  font-size: var(--font-size-xs);
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading.centered {
  display: block;
  text-align: left;
}

.section-heading.centered h2,
.section-heading.centered .eyebrow {
  text-align: left;
}

/* Buttons */
.button {
  min-height: var(--button-height);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition:
    transform 140ms ease,
    background-color 140ms ease,
    border-color 140ms ease,
    color 140ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button.primary {
  border-color: var(--color-yellow);
  background: var(--color-yellow);
  color: var(--color-black);
}

.button.primary:hover:not(:disabled) {
  border-color: var(--color-yellow-hover);
  background: var(--color-yellow-hover);
}

.button.secondary {
  border-color: var(--color-black);
  background: var(--color-black);
  color: var(--color-white);
}

.button.secondary:hover:not(:disabled),
.button.dark:hover:not(:disabled) {
  background: #29292b;
}

.button.dark {
  border-color: var(--color-black);
  background: var(--color-black);
  color: var(--color-white);
}

.button.light {
  border-color: var(--color-white);
  background: var(--color-white);
  color: var(--color-black);
}

.button.ghost {
  border-color: var(--color-border);
  background: var(--color-white);
  color: var(--color-text);
}

.site-header .button.ghost {
  border-color: #454548;
  background: transparent;
  color: var(--color-white);
}

.button.success {
  border-color: var(--color-success);
  background: var(--color-success);
  color: var(--color-white);
}

.button.danger {
  border-color: #e4b6b6;
  background: var(--color-danger-soft);
  color: var(--color-danger);
}

.button.danger:hover:not(:disabled) {
  border-color: var(--color-danger);
  background: var(--color-danger);
  color: var(--color-white);
}

.button.compact {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
}

.button.full {
  width: 100%;
}

.hero-actions .button {
  border-radius: var(--radius-pill);
}

.button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}

.button.loading {
  color: transparent;
  pointer-events: none;
}

.button.loading::after {
  content: "";
  position: absolute;
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Home */
.home-hero {
  padding: var(--space-16) 48px var(--space-12);
  background: var(--color-black);
  color: var(--color-white);
}

.home-hero-inner {
  width: min(var(--container), 100%);
  margin: 0 auto;
}

.home-hero-copy {
  max-width: 820px;
  margin-bottom: var(--space-12);
}

.home-hero-copy .eyebrow {
  color: var(--color-yellow);
}

.home-hero-copy h1 {
  max-width: 780px;
  margin-bottom: var(--space-5);
  font-size: var(--font-size-hero);
}

.home-hero-copy .lead {
  max-width: 700px;
  margin-bottom: var(--space-8);
  color: #d0d0cc;
  font-size: var(--font-size-lg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
}

.hero-actions .button {
  min-height: 52px;
  padding-inline: 24px;
  font-size: var(--font-size-base);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 720px;
  padding-top: var(--space-6);
  border-top: 1px solid #343437;
}

.hero-proof span,
.hero-proof strong {
  display: block;
}

.hero-proof span {
  color: #aeadA8;
  font-size: var(--font-size-xs);
}

.hero-proof strong {
  margin-bottom: 2px;
  color: var(--color-white);
  font-size: 1.1rem;
}

.home-hero-media {
  position: relative;
  height: 390px;
  overflow: hidden;
  border-radius: var(--radius-image);
  background: url("./assets/hero-team.jpg") center 42% / cover;
}

.hero-job-card {
  position: absolute;
  left: var(--space-8);
  bottom: var(--space-8);
  width: min(480px, calc(100% - 64px));
  padding: var(--space-6);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.96);
  color: var(--color-text);
  box-shadow: var(--shadow-md);
}

.hero-job-card h3 {
  margin: var(--space-3) 0 var(--space-1);
  font-size: var(--font-size-card);
}

.hero-job-card p {
  margin-bottom: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.hero-job-card strong {
  display: block;
  margin-bottom: var(--space-4);
}

.home-band {
  padding: var(--space-24) max(48px, calc((100vw - var(--container)) / 2));
  background: var(--color-white);
}

.home-band.muted {
  background: var(--color-surface);
}

.steps-grid,
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

.steps-grid article {
  min-height: 240px;
  padding: var(--space-8);
  border-top: 1px solid var(--color-border-strong);
  background: transparent;
}

.steps-grid article > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: var(--space-10);
  border-radius: 50%;
  background: var(--color-yellow);
  color: var(--color-black);
  font-weight: 800;
}

.steps-grid article h3 {
  margin-bottom: var(--space-3);
  font-size: var(--font-size-card);
}

.steps-grid article p {
  margin-bottom: 0;
  color: var(--color-text-muted);
}

.trust-band {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: var(--space-16);
  background: var(--color-black);
  color: var(--color-white);
}

.trust-band .eyebrow {
  color: var(--color-yellow);
}

.trust-band .trust-grid {
  gap: var(--space-8);
}

.trust-band article {
  padding-top: var(--space-5);
  border-top: 1px solid #38383a;
}

.trust-band article h3 {
  font-size: var(--font-size-card);
}

.trust-band article p {
  margin-bottom: 0;
  color: #bdbdb8;
}

.charity-band {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--space-16);
  align-items: start;
}

.charity-band > div:first-child > p:last-child {
  color: var(--color-text-muted);
}

.charity-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.charity-list article {
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.charity-list article h3 {
  margin: var(--space-3) 0;
  font-size: var(--font-size-card);
}

.charity-list article p {
  color: var(--color-text-muted);
}

/* Jobs */
.job-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

.job-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.job-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-border-strong);
  box-shadow: 0 12px 32px rgba(11, 11, 12, 0.08);
}

.job-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--color-surface-strong);
}

.job-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
}

.job-card-top,
.tag-row,
.card-actions,
.posted-actions,
.notification-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.job-card-top {
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.job-card h3 {
  margin-bottom: var(--space-3);
  font-size: var(--font-size-card);
  overflow-wrap: anywhere;
}

.job-card-body > p {
  margin-bottom: var(--space-5);
  color: var(--color-text-muted);
}

.tag,
.status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 27px;
  padding: 5px 9px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-strong);
  color: #454541;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.tag {
  background: var(--color-black);
  color: var(--color-white);
}

.tag.urgent {
  background: var(--color-yellow);
  color: var(--color-black);
}

.tag.charity {
  background: var(--color-success-soft);
  color: var(--color-success);
}

.status.active,
.status.accepted,
.status.resolved,
.status.finished {
  background: var(--color-success-soft);
  color: var(--color-success);
}

.status.full,
.status.applied,
.status.open,
.status.started,
.status.disputed {
  background: var(--color-warning-soft);
  color: var(--color-warning);
}

.status.not_selected,
.status.withdrawn,
.status.cancelled_late,
.status.suspended,
.status.inactive,
.status.no_show {
  background: var(--color-danger-soft);
  color: var(--color-danger);
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px var(--space-4);
  margin-bottom: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}

.job-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin: auto 0 var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  font-size: var(--font-size-xs);
}

.job-facts span,
.job-facts strong {
  display: block;
}

.job-facts span {
  color: var(--color-text-muted);
}

.job-facts strong {
  margin-bottom: 2px;
  color: var(--color-text);
}

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

.filter-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  align-items: end;
  margin-bottom: var(--space-8);
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
}

/* Forms */
.filter-panel label,
.panel-form label {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: #333330;
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-align: left;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-text);
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

textarea {
  min-height: 118px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #94948d;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-black);
  box-shadow: 0 0 0 3px rgba(245, 168, 0, 0.28);
}

input:user-invalid,
select:user-invalid,
textarea:user-invalid {
  border-color: var(--color-danger);
}

input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  min-height: 18px;
  padding: 0;
  accent-color: var(--color-yellow);
}

.hungarian-phone-input {
  display: grid;
  grid-template-columns: auto 76px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.phone-country-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 13px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: #f4f4f1;
  color: var(--color-text);
  font-weight: 800;
  white-space: nowrap;
}

.hungarian-phone-input select,
.hungarian-phone-input input {
  min-width: 0;
}

.profile-photo-field {
  display: grid;
  gap: 7px;
  color: #333330;
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-align: left;
}

.profile-photo-box {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-white);
}

.profile-photo-guidance {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  font-weight: 600;
  line-height: 1.45;
}

.profile-photo-actions {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.profile-photo-actions input[type="file"] {
  flex: 1 1 100%;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  padding: 8px;
}

.profile-photo-status {
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  font-weight: 700;
}

.profile-camera-panel {
  display: grid;
  gap: var(--space-3);
}

.profile-camera-panel[hidden] {
  display: none;
}

.profile-camera-panel video {
  width: 100%;
  max-height: 360px;
  border-radius: var(--radius-md);
  background: #0a0a0a;
  object-fit: cover;
}

.check-label,
.filter-panel .check-label,
.panel-form .check-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.panel-form {
  display: grid;
  gap: var(--space-5);
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
}

.panel-form h2 {
  margin-bottom: 0;
  font-size: 1.65rem;
}

.form-section {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-border);
}

.form-section h2 {
  margin-bottom: 0;
  font-size: 1.55rem;
}

.form-section:last-of-type {
  border-bottom: 0;
}

.two-col,
.three-col {
  display: grid;
  gap: var(--space-4);
}

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

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

.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  gap: var(--space-8);
  align-items: start;
}

.preview-panel {
  position: sticky;
  top: calc(var(--header-height) + var(--space-6));
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
}

.preview-panel h2 {
  margin-bottom: var(--space-5);
  font-size: 1.5rem;
}

.optional-fields {
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.optional-fields summary {
  cursor: pointer;
  font-weight: 800;
}

.optional-fields[open] {
  display: grid;
  gap: var(--space-4);
}

.inline-checks {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-6);
}

.inline-checks label {
  display: flex;
  align-items: center;
}

.optional-label {
  color: var(--color-text-muted);
  font-weight: 500;
}

.warning-note,
.success-note,
.error-note,
.demo-note {
  margin-bottom: 0;
  padding: 13px 15px;
  border-left: 4px solid var(--color-yellow);
  border-radius: var(--radius-sm);
  background: var(--color-yellow-soft);
  color: #4d3c11;
  font-size: var(--font-size-sm);
  text-align: left;
}

.success-note {
  border-left-color: var(--color-success);
  background: var(--color-success-soft);
  color: var(--color-success);
}

.error-note {
  border-left-color: var(--color-danger);
  background: var(--color-danger-soft);
  color: var(--color-danger);
}

/* Lists and management */
.list-stack {
  display: grid;
  gap: var(--space-5);
}

.application-card,
.posted-job-card,
.notification-row {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.application-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-8);
  align-items: center;
  padding: var(--space-6);
}

.application-main h2,
.posted-job-card h2 {
  margin: var(--space-3) 0 var(--space-2);
  font-size: var(--font-size-card);
}

.application-main p,
.posted-job-card p {
  margin-bottom: var(--space-1);
  color: var(--color-text-muted);
}

.application-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-2);
}

.posted-job-card {
  padding: var(--space-6);
}

.posted-job-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-8);
  margin-bottom: var(--space-5);
}

.posted-actions {
  margin-bottom: var(--space-5);
}

.capacity-box {
  min-width: 104px;
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  text-align: center;
}

.capacity-box strong,
.capacity-box span {
  display: block;
  text-align: center;
}

.capacity-box strong {
  font-size: 1.45rem;
}

.capacity-box span {
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}

.applicant-list {
  display: grid;
  gap: var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}

.applicant-list > h3 {
  margin-bottom: var(--space-2);
  font-size: 1.05rem;
}

.applicant-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.applicant-row:first-of-type {
  border-top: 0;
}

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

.applicant-copy > strong,
.applicant-copy > span {
  display: block;
}

.applicant-copy > span {
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}

.applicant-copy p {
  margin: var(--space-1) 0 var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.applicant-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-2);
}

.applicant-actions .button {
  min-height: 40px;
  padding: 8px 12px;
  font-size: var(--font-size-xs);
}

.private-data {
  display: grid;
  gap: 3px;
  margin-top: var(--space-3);
  padding: 10px 12px;
  border-left: 3px solid var(--color-success);
  border-radius: var(--radius-sm);
  background: var(--color-success-soft);
  color: #145a2d;
  font-size: var(--font-size-xs);
}

.empty-state {
  position: relative;
  min-height: 180px;
  display: grid;
  place-items: start;
  align-content: center;
  gap: var(--space-3);
  padding: var(--space-8);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  text-align: left;
}

.empty-state:not(.compact)::before {
  content: "g";
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--color-purple-soft);
  color: var(--color-purple);
  font-size: 1rem;
  font-weight: 800;
}

.empty-state strong,
.empty-state span {
  text-align: left;
}

.empty-state.compact {
  min-height: 90px;
  padding: var(--space-5);
}

.empty-state.wide {
  grid-column: 1 / -1;
}

/* Chat */
.chat-shell {
  height: min(720px, calc(100vh - 190px));
  min-height: 560px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.conversation-list {
  overflow-y: auto;
  border-right: 1px solid var(--color-border);
  background: var(--color-surface);
}

.conversation-item {
  width: 100%;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-4);
  border: 0;
  border-bottom: 1px solid var(--color-border);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.conversation-item:hover,
.conversation-item.active {
  background: var(--color-white);
}

.conversation-item > span {
  min-width: 0;
}

.conversation-item > span strong,
.conversation-item > span small,
.conversation-item > span em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.conversation-item > span small,
.conversation-item > span em {
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  font-style: normal;
}

.conversation-item > b {
  min-width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-yellow);
  color: var(--color-black);
  font-size: 0.7rem;
}

.chat-window {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
}

.chat-header > div {
  min-width: 0;
}

.chat-header strong,
.chat-header span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.chat-header span {
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}

.chat-header .button {
  margin-left: auto;
}

.chat-back {
  display: none;
}

.chat-contact {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  padding: 10px var(--space-5);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: var(--font-size-xs);
}

.chat-contact span {
  color: var(--color-text-muted);
}

.message-thread {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
}

.message-bubble {
  max-width: min(72%, 540px);
  padding: 11px 14px;
  border-radius: var(--radius-md);
  background: var(--color-surface-strong);
  overflow-wrap: anywhere;
}

.message-bubble.mine {
  align-self: flex-end;
  background: var(--color-yellow);
}

.message-bubble p {
  margin-bottom: 0;
}

.message-bubble span {
  display: block;
  margin-top: 4px;
  color: #555550;
  font-size: 0.68rem;
}

.chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-3);
  padding: var(--space-4);
  border-top: 1px solid var(--color-border);
}

/* Profile */
.public-profile {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: var(--space-8);
  align-items: start;
}

.profile-summary,
.profile-details {
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
}

.profile-summary {
  text-align: left;
}

.profile-summary .avatar.large {
  width: 116px;
  height: 116px;
  margin-bottom: var(--space-5);
}

.profile-summary h2 {
  margin-bottom: var(--space-1);
  font-size: 1.75rem;
}

.profile-summary > p {
  color: var(--color-text-muted);
}

.profile-summary .button + .button {
  margin-top: var(--space-2);
}

.avatar {
  width: 46px;
  height: 46px;
  overflow: hidden;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--color-surface-strong);
  color: var(--color-text);
  font-weight: 800;
}

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

.rating-summary {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin: var(--space-5) 0;
}

.rating-summary strong {
  font-size: 1.75rem;
}

.rating-summary span {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.profile-details {
  display: grid;
  gap: var(--space-6);
}

.profile-details section {
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.profile-details section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.profile-details h2 {
  margin-bottom: var(--space-2);
  font-size: 1.35rem;
}

.profile-details p {
  margin-bottom: 0;
  color: var(--color-text-muted);
}

.profile-details blockquote {
  margin: var(--space-3) 0 0;
  padding: var(--space-4);
  border-left: 3px solid var(--color-yellow);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  text-align: left;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.profile-stats article {
  padding: var(--space-5);
  text-align: left;
}

.profile-stats article + article {
  border-left: 1px solid var(--color-border);
}

.profile-stats article strong,
.profile-stats article span {
  display: block;
  text-align: left;
}

.profile-stats article strong {
  font-size: 1.55rem;
}

.profile-stats article span {
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}

/* Notifications and admin */
.notification-toolbar {
  display: flex;
  justify-content: flex-end;
}

.notification-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-8);
  padding: var(--space-5);
}

.notification-row.unread {
  border-left: 4px solid var(--color-yellow);
}

.notification-row strong,
.notification-row p,
.notification-row small {
  display: block;
  text-align: left;
}

.notification-row p {
  margin: var(--space-1) 0;
  color: var(--color-text-muted);
}

.notification-channel {
  display: block;
  margin-bottom: var(--space-1);
  color: var(--color-warning);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.stats-grid article {
  padding: var(--space-5);
  border-top: 3px solid var(--color-yellow);
  background: var(--color-white);
}

.stats-grid article span,
.stats-grid article strong {
  display: block;
  text-align: left;
}

.stats-grid article span {
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}

.stats-grid article strong {
  margin-top: var(--space-2);
  font-size: 1.85rem;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 240px;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.admin-content {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
}

.table-wrap {
  overflow-x: auto;
}

.admin-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.admin-content th,
.admin-content td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.admin-content th {
  background: var(--color-black);
  color: var(--color-white);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.admin-content tr:last-child td {
  border-bottom: 0;
}

.table-action {
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-text);
  font-size: var(--font-size-xs);
  font-weight: 700;
  cursor: pointer;
}

.table-action:hover {
  border-color: var(--color-black);
  background: var(--color-black);
  color: var(--color-white);
}

/* Informational pages */
.prose-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(270px, 0.65fr);
  gap: var(--space-10);
}

.prose-layout article,
.prose-layout aside,
.contact-layout > aside {
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-purple);
  border-radius: var(--radius-lg);
}

.prose-layout aside,
.contact-layout > aside {
  border-top-color: var(--color-yellow);
  background: var(--color-yellow-soft);
}

.prose-layout p,
.prose-layout li,
.contact-layout p {
  color: var(--color-text-muted);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: var(--space-10);
  align-items: start;
}

.legal-banner {
  width: fit-content;
  margin-bottom: var(--space-6);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--color-yellow-soft);
  color: var(--color-warning);
  font-size: var(--font-size-xs);
  font-weight: 800;
}

.legal-copy {
  max-width: 860px;
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-purple);
  border-radius: var(--radius-lg);
}

.legal-copy h2 {
  margin: var(--space-10) 0 var(--space-3);
  font-size: 1.5rem;
}

.legal-copy h2:first-child {
  margin-top: 0;
}

.legal-copy p {
  color: var(--color-text-muted);
}

/* Footer */
.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-10) max(48px, calc((100vw - var(--container)) / 2));
  border-top: 1px solid #252527;
  background: var(--color-black);
  color: var(--color-white);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
}

.site-footer nav a {
  color: #d0d0cc;
  font-size: var(--font-size-sm);
}

.site-footer nav a:hover {
  color: var(--color-yellow);
}

.site-footer p {
  margin-bottom: 0;
  color: #94948f;
  font-size: var(--font-size-xs);
}

.site-footer .logo-mark {
  display: none;
}

/* Dialogs */
dialog {
  width: min(680px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-md);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.modal {
  position: relative;
  padding: var(--space-8);
}

.auth-modal {
  width: min(740px, calc(100% - 32px));
}

.job-modal {
  width: min(1000px, calc(100% - 32px));
}

.modal-close {
  position: sticky;
  top: 0;
  z-index: 4;
  float: right;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-text);
  font-size: 1.25rem;
  cursor: pointer;
}

.modal-close:hover {
  border-color: var(--color-black);
  background: var(--color-black);
  color: var(--color-white);
}

.back-button {
  min-height: 40px;
  margin-bottom: var(--space-4);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 52px var(--space-6) 0;
  border-bottom: 1px solid var(--color-border);
}

.auth-tab {
  min-height: 46px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.auth-tab.active {
  border-bottom-color: var(--color-yellow);
}

.auth-form {
  display: none;
  gap: var(--space-4);
}

.auth-form.active {
  display: grid;
}

.auth-form h2 {
  margin-bottom: var(--space-2);
  font-size: 1.8rem;
}

.auth-step-note,
.profile-form-intro {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  line-height: 1.55;
}

.auth-provider-panel,
.auth-provider-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.auth-provider-button,
.auth-provider-option {
  min-width: 0;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-text);
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.auth-provider-button span,
.auth-provider-option span {
  width: 28px;
  height: 28px;
  display: grid;
  flex: 0 0 28px;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--color-black);
  color: var(--color-white);
  font-weight: 900;
  line-height: 1;
}

.auth-provider-button img,
.auth-provider-option img {
  width: 118px;
  max-width: 52%;
  height: 34px;
  flex: 0 1 118px;
  padding: 3px 5px;
  border-radius: var(--radius-sm);
  background: var(--color-white);
  object-fit: contain;
}

.auth-provider-option img {
  width: 104px;
  flex-basis: 104px;
}

.auth-provider-button strong,
.auth-provider-option strong {
  min-width: 0;
  font-size: var(--font-size-sm);
  line-height: 1.2;
}

.auth-provider-button:hover,
.auth-provider-option:has(input:checked) {
  border-color: var(--color-yellow);
  box-shadow: 0 0 0 3px rgba(245, 168, 0, 0.18);
}

.auth-provider-button.facebook span,
.auth-provider-option input[value="facebook"] + span {
  background: #1877f2;
}

.auth-provider-button.google span,
.auth-provider-option input[value="gmail"] + span {
  background: var(--color-white);
  color: #1f1f1f;
  box-shadow: inset 0 0 0 1px var(--color-border-strong);
}

.auth-provider-choice {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.auth-provider-choice legend {
  margin-bottom: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  font-weight: 800;
}

.auth-provider-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

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

.profile-legal-checks {
  display: grid;
  gap: var(--space-3);
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-3);
  align-items: center;
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  font-weight: 800;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--color-border);
}

@media (max-width: 560px) {
  .auth-provider-panel,
  .auth-provider-options {
    grid-template-columns: 1fr;
  }
}

.demo-logins {
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.demo-logins p {
  margin-bottom: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}

.demo-logins button {
  min-height: 40px;
  margin: 0 var(--space-2) var(--space-2) 0;
  padding: 8px 11px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  font-size: var(--font-size-xs);
  font-weight: 700;
  cursor: pointer;
}

.job-detail-hero {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: var(--space-8);
  align-items: center;
  margin-bottom: var(--space-8);
}

.job-detail-hero img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-image);
  object-fit: cover;
}

.job-detail-hero h1 {
  margin: var(--space-3) 0;
  font-size: 2.5rem;
}

.job-detail-hero p {
  color: var(--color-text-muted);
}

.job-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(270px, 0.7fr);
  gap: var(--space-8);
}

.job-detail-grid > article h2 {
  font-size: 1.5rem;
}

.job-detail-grid > article > p {
  color: var(--color-text-muted);
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin: var(--space-6) 0;
}

.detail-list div {
  min-width: 0;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}

.detail-list dt {
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  font-weight: 700;
}

.detail-list dd {
  margin: var(--space-1) 0 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.owner-summary {
  align-self: start;
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  text-align: left;
}

.owner-summary .avatar {
  width: 76px;
  height: 76px;
  margin-bottom: var(--space-4);
}

.owner-summary h2 {
  margin-bottom: var(--space-1);
  font-size: 1.35rem;
}

.owner-summary p {
  color: var(--color-text-muted);
}

.owner-summary .button {
  margin-top: var(--space-2);
}

.capacity-summary {
  margin: var(--space-5) 0;
  padding: var(--space-4) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.capacity-summary strong,
.capacity-summary span {
  display: block;
  text-align: left;
}

.capacity-summary strong {
  font-size: 1.75rem;
}

.capacity-summary span {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.star-rating {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: 0;
  border: 0;
}

.star-rating legend {
  width: 100%;
  margin-bottom: var(--space-2);
  font-weight: 800;
  text-align: left;
}

.star-rating label {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  cursor: pointer;
}

.star-rating label:has(input:checked) {
  border-color: var(--color-yellow);
  background: var(--color-yellow-soft);
}

.star-rating input {
  width: 17px;
  min-height: 17px;
}

/* Toast */
.toast {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: var(--z-toast);
  width: min(390px, calc(100% - 40px));
  padding: 14px 16px;
  border-left: 5px solid var(--color-yellow);
  border-radius: var(--radius-md);
  background: var(--color-black);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.toast.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.toast[data-type="error"] {
  border-left-color: var(--color-danger);
}

/* Tablet */
@media (max-width: 1120px) {
  :root {
    --font-size-hero: 3rem;
    --font-size-page: 2.65rem;
    --font-size-h2: 2rem;
  }

  .site-header {
    grid-template-columns: auto auto minmax(0, 1fr);
    padding-inline: 32px;
  }

  .nav-toggle {
    display: inline-grid;
  }

  .main-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: none;
    padding: var(--space-3) 32px;
    border-bottom: 1px solid #2d2d30;
    background: var(--color-black);
    box-shadow: var(--shadow-md);
  }

  .main-nav.open {
    display: grid;
  }

  .main-nav a {
    width: 100%;
  }

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

  .page-view {
    width: calc(100% - 64px);
  }

  .home-hero {
    padding-inline: 32px;
  }

  .home-band,
  .site-footer {
    padding-inline: 32px;
  }

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

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

  .editor-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

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

@media (max-width: 840px) {
  .page-header {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-4);
  }

  .home-hero-media {
    height: 340px;
  }

  .trust-band,
  .charity-band,
  .public-profile,
  .prose-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .editor-layout {
    grid-template-columns: 1fr;
  }

  .preview-panel {
    position: static;
  }

  .application-card {
    grid-template-columns: 1fr;
  }

  .application-actions {
    justify-content: flex-start;
  }

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

/* Mobile */
@media (max-width: 680px) {
  :root {
    --font-size-hero: 2.25rem;
    --font-size-page: 2rem;
    --font-size-h2: 1.75rem;
    --font-size-h3: 1.2rem;
    --font-size-lg: 1rem;
    --space-24: 4rem;
    --header-height: 64px;
  }

  body {
    font-size: 0.95rem;
  }

  .site-header {
    min-height: var(--header-height);
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: var(--space-2);
    padding-inline: 18px;
  }

  .logo-mark {
    display: none;
  }

  .brand {
    font-size: 1.15rem;
  }

  .main-nav {
    top: var(--header-height);
    padding-inline: 18px;
  }

  .guest-actions .button.ghost,
  .profile-menu-button #headerUserName {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .header-actions .button.primary {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 0.78rem;
  }

  .icon-button,
  .profile-menu-button {
    min-width: 40px;
    height: 40px;
  }

  .profile-menu-button {
    padding: 3px;
  }

  .page-view {
    width: calc(100% - 36px);
    padding: var(--space-10) 0 var(--space-16);
  }

  .page-header {
    margin-bottom: var(--space-8);
  }

  .home-hero {
    padding: var(--space-10) 18px var(--space-8);
  }

  .home-hero-copy {
    margin-bottom: var(--space-8);
  }

  .home-hero-copy h1 {
    margin-bottom: var(--space-4);
  }

  .home-hero-copy .lead {
    margin-bottom: var(--space-6);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: var(--space-8);
  }

  .hero-proof {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .hero-proof span {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-3);
  }

  .home-hero-media {
    height: 290px;
  }

  .hero-job-card {
    left: var(--space-4);
    right: var(--space-4);
    bottom: var(--space-4);
    width: auto;
    padding: var(--space-4);
  }

  .hero-job-card p {
    display: none;
  }

  .home-band,
  .site-footer {
    padding: var(--space-16) 18px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-4);
  }

  .steps-grid,
  .trust-grid,
  .job-grid,
  .filter-panel,
  .two-col,
  .three-col,
  .charity-list,
  .stats-grid,
  .admin-toolbar,
  .detail-list {
    grid-template-columns: 1fr;
  }

  .steps-grid article {
    min-height: auto;
    padding: var(--space-6) 0;
  }

  .steps-grid article > span {
    margin-bottom: var(--space-6);
  }

  .trust-band {
    gap: var(--space-10);
  }

  .filter-panel,
  .panel-form,
  .preview-panel,
  .profile-summary,
  .profile-details {
    padding: var(--space-5);
  }

  .card-actions {
    grid-template-columns: 1fr;
  }

  .posted-job-card > header,
  .notification-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .capacity-box {
    width: 100%;
    text-align: left;
  }

  .capacity-box strong,
  .capacity-box span {
    text-align: left;
  }

  .applicant-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .applicant-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .applicant-actions .button {
    flex: 1 1 140px;
  }

  .application-actions .button {
    flex: 1 1 140px;
  }

  .chat-shell {
    height: calc(100vh - 150px);
    min-height: 520px;
    grid-template-columns: 1fr;
  }

  .conversation-list {
    border-right: 0;
  }

  .chat-window {
    display: none;
  }

  .chat-shell.chat-open .conversation-list {
    display: none;
  }

  .chat-shell.chat-open .chat-window {
    display: grid;
  }

  .chat-back {
    display: inline-grid;
  }

  .chat-contact {
    display: grid;
  }

  .message-bubble {
    max-width: 88%;
  }

  .profile-stats {
    grid-template-columns: 1fr;
  }

  .profile-stats article + article {
    border-top: 1px solid var(--color-border);
    border-left: 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  dialog,
  .auth-modal,
  .job-modal {
    width: calc(100% - 16px);
    max-height: calc(100vh - 16px);
  }

  .modal {
    padding: var(--space-5);
  }

  .auth-tabs {
    margin-right: 48px;
  }

  .job-detail-hero h1 {
    font-size: 2rem;
  }

  .chat-composer {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Reference-led Grapit interface */
:root {
  --color-black: #17123b;
  --color-black-soft: #281b4b;
  --color-surface: #fbfaff;
  --color-surface-strong: #f4f0fb;
  --color-border: #e6def4;
  --color-border-strong: #c9bde2;
  --color-text: #17123b;
  --color-text-muted: #6e6880;
  --color-purple: #5b21b6;
  --color-purple-hover: #47178f;
  --color-purple-soft: #f2edff;
  --color-yellow: #f5a800;
  --color-yellow-hover: #ffbc19;
  --color-yellow-soft: #fff7df;
  --shadow-sm: 0 8px 26px rgba(46, 26, 86, 0.07);
  --shadow-md: 0 22px 60px rgba(46, 26, 86, 0.16);
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-image: 18px;
  --header-height: 66px;
}

body {
  background: var(--color-surface);
}

:focus-visible {
  outline-color: var(--color-purple);
}

.site-header {
  min-height: var(--header-height);
  padding-inline: max(32px, calc((100vw - var(--container)) / 2));
  border-bottom-color: #eee9f7;
  background: rgba(255, 255, 255, 0.97);
  color: var(--color-text);
  box-shadow: 0 4px 22px rgba(45, 24, 84, 0.04);
}

.brand {
  color: var(--color-text);
  font-size: 1.18rem;
  text-transform: lowercase;
}

.logo-mark {
  width: 29px;
  height: 29px;
  margin-right: 7px;
  border: 0;
  border-radius: 9px;
  background: var(--color-purple);
  color: var(--color-white);
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: lowercase;
}

.brand-name,
.brand-name strong {
  color: var(--color-text);
}

.main-nav {
  gap: 2px;
}

.main-nav a,
.main-nav button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #403951;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.main-nav a:hover,
.main-nav a.active,
.main-nav button:hover {
  background: var(--color-purple-soft);
  color: var(--color-purple);
}

.icon-button,
.profile-menu-button {
  border-color: var(--color-border);
  background: var(--color-white);
  color: var(--color-text);
}

.icon-button:hover,
.profile-menu-button:hover {
  border-color: var(--color-purple);
  background: var(--color-purple-soft);
}

.nav-toggle span {
  background: var(--color-purple);
}

.header-avatar,
.notification-button b {
  border-color: var(--color-white);
  background: var(--color-purple);
  color: var(--color-white);
}

.button.primary,
.button.yellow {
  border-color: var(--color-yellow);
  background: var(--color-yellow);
  color: var(--color-text);
}

.button.primary:hover:not(:disabled),
.button.yellow:hover:not(:disabled) {
  border-color: var(--color-yellow-hover);
  background: var(--color-yellow-hover);
}

.button.secondary,
.button.dark,
.button.purple {
  border-color: var(--color-purple);
  background: var(--color-purple);
  color: var(--color-white);
}

.button.secondary:hover:not(:disabled),
.button.dark:hover:not(:disabled),
.button.purple:hover:not(:disabled) {
  border-color: var(--color-purple-hover);
  background: var(--color-purple-hover);
}

.button.outline,
.button.ghost,
.site-header .button.ghost {
  border-color: #bba8df;
  background: var(--color-white);
  color: var(--color-text);
}

.button.outline:hover:not(:disabled),
.button.ghost:hover:not(:disabled) {
  border-color: var(--color-purple);
  background: var(--color-purple-soft);
}

.button.compact {
  min-height: 36px;
  padding: 7px 15px;
}

.page-view {
  min-height: calc(100vh - var(--header-height));
}

.page-header {
  padding-top: var(--space-3);
}

.page-header .eyebrow,
.eyebrow {
  color: var(--color-purple);
}

.page-header h1 {
  color: var(--color-text);
}

.filter-panel,
.panel-form,
.preview-panel,
.profile-summary,
.profile-details,
.posted-job-card,
.application-card,
.notification-row,
.admin-toolbar,
.admin-content,
.chat-shell,
.prose-layout > article,
.prose-layout > aside,
.contact-layout > aside,
.legal-copy {
  border-color: var(--color-border);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.job-card {
  border-color: var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.job-card:hover {
  border-color: #bca8e3;
  box-shadow: 0 16px 38px rgba(57, 31, 104, 0.12);
}

.tag {
  background: var(--color-purple-soft);
  color: var(--color-purple);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-purple);
  box-shadow: 0 0 0 3px rgba(91, 33, 182, 0.12);
}

.auth-tab.active {
  border-color: var(--color-purple);
  background: var(--color-purple);
  color: var(--color-white);
}

.star-rating label:has(input:checked) {
  border-color: var(--color-yellow);
  background: var(--color-yellow-soft);
}

dialog {
  border: 1px solid var(--color-border);
  border-radius: 18px;
}

dialog::backdrop {
  background: rgba(23, 18, 59, 0.7);
}

.modal-close:hover {
  border-color: var(--color-purple);
  background: var(--color-purple);
}

.toast {
  border-left-color: var(--color-yellow);
  background: var(--color-purple);
}

/* Landing page */
.home-view {
  background: var(--color-white);
}

.landing-container {
  width: min(var(--container), calc(100% - 64px));
  margin: 0 auto;
}

.landing-hero {
  overflow: hidden;
  background: var(--color-white);
}

.landing-hero-grid {
  min-height: 525px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr);
  align-items: center;
  gap: 42px;
  padding-block: 34px 16px;
}

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

.landing-hero-copy h1 {
  max-width: 590px;
  margin-bottom: 19px;
  color: var(--color-text);
  font-size: clamp(3rem, 4.25vw, 4rem);
  line-height: 1.08;
}

.hero-inline-logo {
  width: min(5.1em, 320px);
  height: auto;
  display: block;
  margin-top: 10px;
  object-fit: contain;
}

.landing-hero-copy > p {
  max-width: 560px;
  margin-bottom: 24px;
  color: #4f4960;
  font-size: 1rem;
  line-height: 1.65;
}

.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 27px;
}

.landing-action {
  min-width: 205px;
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(40, 21, 77, 0.1);
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.landing-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 32px rgba(40, 21, 77, 0.16);
}

.landing-action.employer {
  background: var(--color-purple);
  color: var(--color-white);
}

.landing-action.worker {
  background: var(--color-yellow);
  color: var(--color-text);
}

.landing-action.light-action {
  border-color: var(--color-border);
  background: var(--color-white);
  color: var(--color-purple);
}

.landing-action-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 800;
}

.landing-action strong,
.landing-action small {
  display: block;
  text-align: left;
}

.landing-action strong {
  font-size: 0.98rem;
  line-height: 1.25;
}

.landing-action small {
  margin-top: 2px;
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.78;
}

.landing-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  color: #50495f;
  font-size: 0.73rem;
  font-weight: 700;
}

.landing-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.landing-trust-row b {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--color-purple-soft);
  color: var(--color-purple);
}

.landing-hero-visual {
  align-self: end;
}

.landing-hero-visual img {
  width: 100%;
  max-width: 610px;
  margin-left: auto;
  object-fit: contain;
}

.landing-section {
  padding: 54px 0;
  scroll-margin-top: calc(var(--header-height) + 18px);
}

.landing-section h2,
.landing-jobs-showcase h2 {
  margin-bottom: 26px;
  font-size: 2rem;
  text-align: center;
}

.audience-section,
.pricing-section,
.faq-section {
  background: #fdfcff;
}

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

.audience-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 22px;
  padding: 27px 30px;
  border: 1px solid var(--color-border);
  border-radius: 11px;
}

.employer-card {
  background: var(--color-purple-soft);
}

.worker-card {
  background: var(--color-yellow-soft);
}

.round-symbol {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-purple);
  color: var(--color-white);
  font-size: 1.45rem;
  font-weight: 800;
}

.worker-card .round-symbol,
.worker-process .round-symbol {
  background: var(--color-yellow);
  color: var(--color-text);
}

.audience-card h3 {
  margin-bottom: 9px;
  font-size: 1.42rem;
}

.audience-card p {
  margin-bottom: 13px;
  color: #575166;
  font-size: 0.88rem;
}

.audience-card ul {
  display: grid;
  gap: 6px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.audience-card li {
  position: relative;
  padding-left: 22px;
  font-size: 0.82rem;
  font-weight: 700;
}

.audience-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-purple);
}

.worker-card li::before {
  color: #b37700;
}

.process-section {
  background: var(--color-white);
}

.process-band {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid #cbbce9;
  border-radius: 10px;
  background: var(--color-white);
}

.worker-process {
  border-color: #efd487;
}

.process-label {
  display: grid;
  align-content: center;
  justify-items: start;
  padding: 22px;
  background: var(--color-purple-soft);
}

.worker-process .process-label {
  background: var(--color-yellow-soft);
}

.process-label .round-symbol {
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
  font-size: 1rem;
}

.process-label strong,
.process-label small {
  display: block;
}

.process-label strong {
  font-size: 0.9rem;
}

.process-label small {
  color: var(--color-text-muted);
  font-size: 0.72rem;
}

.process-band ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 20px 24px;
  list-style: none;
}

.process-band li {
  position: relative;
  min-width: 0;
  padding: 0 18px;
}

.process-band li + li::before {
  content: "→";
  position: absolute;
  left: -5px;
  top: 7px;
  color: #8e78bd;
  font-weight: 800;
}

.worker-process li + li::before {
  color: #c38b00;
}

.process-band li b {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  margin-bottom: 9px;
  border: 2px solid #9f87d4;
  border-radius: 50%;
  color: var(--color-purple);
}

.worker-process li b {
  border-color: #e1aa18;
  color: #8b6100;
}

.process-band li strong,
.process-band li span {
  display: block;
}

.process-band li strong {
  margin-bottom: 5px;
  font-size: 0.8rem;
  line-height: 1.35;
}

.process-band li span {
  color: var(--color-text-muted);
  font-size: 0.69rem;
  line-height: 1.45;
}

.benefits-section {
  background: #fdfcff;
}

.landing-intro {
  margin: -13px auto 28px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  text-align: center;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
}

.benefits-grid article {
  min-width: 0;
  text-align: center;
}

.benefits-grid article > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--color-purple-soft);
  color: var(--color-purple);
  font-weight: 800;
}

.benefits-grid h3 {
  margin-bottom: 6px;
  font-size: 0.78rem;
  text-align: center;
}

.benefits-grid p {
  margin-bottom: 0;
  color: var(--color-text-muted);
  font-size: 0.67rem;
  line-height: 1.5;
  text-align: center;
}

.pricing-section {
  padding-top: 36px;
}

.pricing-card {
  width: min(700px, 100%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(210px, auto);
  align-items: center;
  gap: 24px;
  margin: 0 auto;
  padding: 22px 28px;
  border: 1px solid var(--color-border);
  border-radius: 11px;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.pricing-card h3 {
  margin-bottom: 5px;
  font-size: 1.05rem;
}

.pricing-card p {
  margin-bottom: 0;
  color: var(--color-text-muted);
  font-size: 0.76rem;
}

.pricing-card > strong {
  padding-left: 24px;
  border-left: 1px solid var(--color-border);
  color: var(--color-purple);
  font-size: 1.6rem;
  text-align: center;
}

.pricing-card > strong small {
  display: block;
  margin-top: 5px;
  color: var(--color-text);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.4;
}

.landing-jobs-showcase {
  padding: 30px 0 34px;
  background: #261442;
  color: var(--color-white);
}

.landing-jobs-showcase h2 {
  margin-bottom: 20px;
  color: var(--color-white);
  font-size: 1.45rem;
}

.landing-job-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.landing-job-grid button {
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: var(--color-white);
  color: var(--color-text);
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease;
}

.landing-job-grid button:hover {
  transform: translateY(-3px);
  border-color: var(--color-yellow);
}

.landing-job-grid img {
  width: 100%;
  aspect-ratio: 1.55 / 1;
  object-fit: cover;
}

.landing-job-grid span {
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 8px;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.landing-jobs-showcase > .landing-container > .button {
  display: flex;
  width: fit-content;
  min-height: 38px;
  margin: 0 auto;
  padding: 8px 18px;
  font-size: 0.76rem;
}

.faq-section {
  padding-block: 44px;
}

.faq-section h2 {
  margin-bottom: 23px;
}

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

.faq-grid details {
  min-width: 0;
  padding: 15px 17px;
  border: 1px solid var(--color-border);
  border-radius: 9px;
  background: var(--color-white);
}

.faq-grid summary {
  position: relative;
  padding-right: 24px;
  color: var(--color-text);
  font-size: 0.75rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  list-style: none;
}

.faq-grid summary::after {
  content: "+";
  position: absolute;
  top: -3px;
  right: 0;
  color: var(--color-purple);
  font-size: 1.1rem;
}

.faq-grid details[open] summary::after {
  content: "−";
}

.faq-grid p {
  margin: 10px 0 0;
  color: var(--color-text-muted);
  font-size: 0.7rem;
}

.landing-cta {
  padding: 25px 0;
  background: var(--color-purple);
  color: var(--color-white);
}

.landing-cta .landing-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.landing-cta h2 {
  max-width: 520px;
  margin-bottom: 5px;
  color: var(--color-white);
  font-size: 1.55rem;
}

.landing-cta p {
  margin-bottom: 0;
  color: #ded3f4;
  font-size: 0.8rem;
}

.landing-cta .landing-container > div:last-child {
  display: flex;
  gap: 16px;
}

.landing-cta .landing-action {
  min-width: 185px;
  min-height: 54px;
  box-shadow: none;
}

/* Footer */
.site-footer {
  display: block;
  padding: 24px max(32px, calc((100vw - var(--container)) / 2)) 18px;
  border-top-color: var(--color-border);
  background: var(--color-white);
  color: var(--color-text);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.7fr) repeat(3, minmax(105px, 0.7fr)) minmax(130px, 0.8fr);
  gap: 34px;
}

.site-footer .brand {
  margin-bottom: 10px;
}

.site-footer .logo-mark {
  display: grid;
}

.footer-brand p {
  max-width: 310px;
  color: var(--color-text-muted);
  font-size: 0.72rem;
}

.site-footer nav {
  display: grid;
  align-content: start;
  gap: 6px;
}

.site-footer nav strong,
.footer-social strong {
  margin-bottom: 4px;
  font-size: 0.72rem;
}

.site-footer nav a,
.site-footer nav button {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 0.67rem;
  text-align: left;
  cursor: pointer;
}

.site-footer nav a:hover,
.site-footer nav button:hover {
  color: var(--color-purple);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 8px;
}

.footer-social strong {
  flex-basis: 100%;
}

.footer-social span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-purple);
  font-size: 0.6rem;
  font-weight: 800;
}

.site-footer .footer-copyright {
  margin-top: 16px;
  color: #8a8495;
  font-size: 0.62rem;
  text-align: center;
}

@media (max-width: 1120px) {
  .site-header {
    padding-inline: 32px;
  }

  .main-nav {
    top: var(--header-height);
    padding: 12px 32px;
    border-bottom-color: var(--color-border);
    background: var(--color-white);
  }

  .main-nav a,
  .main-nav button {
    width: 100%;
    justify-content: flex-start;
  }

  .landing-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
    gap: 24px;
  }

  .landing-hero-copy h1 {
    font-size: 3.2rem;
  }

  .benefits-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 30px;
  }

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

  .footer-inner {
    grid-template-columns: minmax(240px, 1.4fr) repeat(2, minmax(120px, 0.8fr));
  }
}

@media (max-width: 840px) {
  .landing-container {
    width: calc(100% - 48px);
  }

  .landing-hero-grid {
    min-height: 0;
    grid-template-columns: 1fr;
    padding-top: 54px;
  }

  .landing-hero-copy {
    max-width: 680px;
  }

  .landing-hero-copy h1 {
    max-width: 620px;
    font-size: 3rem;
  }

  .landing-hero-visual img {
    max-width: 610px;
    margin: 0 auto;
  }

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

  .process-band {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .process-band ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 10px;
  }

  .process-band li:nth-child(3)::before {
    content: none;
  }

  .pricing-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .pricing-card > strong {
    grid-column: 1 / -1;
    padding: 18px 0 0;
    border-top: 1px solid var(--color-border);
    border-left: 0;
  }

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

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

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .site-header {
    grid-template-columns: auto auto minmax(0, 1fr);
    padding-inline: 18px;
  }

  .logo-mark {
    display: grid;
    width: 27px;
    height: 27px;
  }

  .main-nav {
    padding-inline: 18px;
  }

  .guest-actions {
    gap: 5px;
  }

  .guest-actions .button {
    min-height: 35px;
    padding: 6px 9px;
    font-size: 0.66rem;
  }

  .landing-container {
    width: calc(100% - 36px);
  }

  .landing-hero-grid {
    gap: 10px;
    padding-top: 38px;
  }

  .landing-hero-copy h1 {
    font-size: 2.35rem;
  }

  .landing-hero-copy h1 br {
    display: none;
  }

  .hero-inline-logo {
    width: min(4.7em, 260px);
    margin-top: 8px;
  }

  .landing-hero-copy > p {
    font-size: 0.92rem;
  }

  .landing-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .landing-action {
    width: 100%;
    min-width: 0;
  }

  .landing-trust-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .landing-section {
    padding: 46px 0;
  }

  .landing-section h2,
  .landing-jobs-showcase h2 {
    font-size: 1.65rem;
  }

  .audience-card {
    grid-template-columns: 1fr;
    padding: 23px;
  }

  .process-band {
    grid-template-columns: 1fr;
  }

  .process-label {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 12px;
    padding: 16px 18px;
  }

  .process-label .round-symbol {
    grid-row: 1 / 3;
    margin: 0;
  }

  .process-band ol {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .process-band li {
    padding: 0 0 0 45px;
  }

  .process-band li b {
    position: absolute;
    left: 0;
    top: 0;
  }

  .process-band li + li::before {
    content: none;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
  }

  .pricing-card {
    grid-template-columns: 1fr;
    padding: 23px;
  }

  .pricing-card .round-symbol {
    width: 44px;
    height: 44px;
  }

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

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

  .landing-cta .landing-container > div:last-child {
    width: 100%;
    flex-direction: column;
  }

  .landing-cta .landing-action {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .footer-social {
    grid-column: 1 / -1;
  }
}

@media (max-width: 420px) {
  .brand-name {
    display: none;
  }

  .site-header {
    gap: 6px;
  }

  .nav-toggle {
    width: 36px;
    height: 36px;
  }

  .guest-actions .button {
    padding-inline: 8px;
  }

  .landing-hero-copy h1 {
    font-size: 2.15rem;
  }

  .benefits-grid,
  .landing-job-grid {
    grid-template-columns: 1fr;
  }
}

/* Final cross-view consistency adjustments */
.prose-layout > article,
.legal-copy {
  border-top-color: var(--color-purple);
}

.prose-layout > aside,
.contact-layout > aside {
  border-top-color: var(--color-yellow);
  background: var(--color-yellow-soft);
}

.message-thread {
  min-width: 0;
  overflow-x: hidden;
}

.message-bubble {
  width: fit-content;
  min-width: 0;
  max-width: min(72%, 540px);
}

.message-bubble p {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 680px) {
  .chat-header {
    display: grid;
    grid-template-columns: auto 44px minmax(0, 1fr);
    gap: 8px;
    padding-inline: 12px;
  }

  .chat-header .button {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    min-height: 36px;
    margin-left: 0;
    padding: 7px 9px;
  }

  .chat-contact {
    min-width: 0;
    padding-inline: 12px;
  }

  .chat-contact > * {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .message-thread {
    width: 100%;
    padding-inline: 12px;
  }

  .message-bubble {
    max-width: calc(100% - 24px);
  }

  .message-bubble.mine {
    margin-left: auto;
  }
}

/* Uploaded Grapit wordmark */
.brand-logo {
  width: 112px;
  height: auto;
  display: block;
  object-fit: contain;
}

.site-header .brand {
  min-width: 112px;
}

.site-footer .brand-logo {
  width: 126px;
}

@media (max-width: 680px) {
  .brand-logo {
    width: 88px;
  }

  .site-header .brand {
    min-width: 88px;
  }

  .site-footer .brand-logo {
    width: 112px;
  }
}

@media (max-width: 420px) {
  .brand-logo {
    width: 76px;
  }

  .site-header .brand {
    min-width: 76px;
  }
}

/* Dedicated admin experience */
body[data-current-route="admin-login"],
body[data-current-route="admin"] {
  background: #f5f7fb;
}

body[data-current-route="admin-login"] .site-header,
body[data-current-route="admin-login"] .site-footer,
body[data-current-route="admin"] .site-header,
body[data-current-route="admin"] .site-footer {
  display: none;
}

.admin-login-view.active {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px;
  background:
    linear-gradient(135deg, rgba(246, 200, 68, 0.16), rgba(255, 255, 255, 0) 38%),
    #f5f7fb;
}

.admin-login-shell {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  overflow: hidden;
  border: 1px solid #d9dee8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(20, 31, 54, 0.14);
}

.admin-login-intro {
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: clamp(36px, 6vw, 72px);
  background: #151820;
  color: #ffffff;
}

.admin-login-brand {
  width: max-content;
  margin-bottom: 32px;
}

.admin-login-intro .brand-logo {
  filter: brightness(0) invert(1);
}

.admin-login-intro h1 {
  max-width: 560px;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
}

.admin-login-intro p {
  max-width: 520px;
  color: #d4dae7;
  font-size: 1.05rem;
}

.admin-login-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.admin-login-highlights span {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #f7cf48;
  font-size: 0.85rem;
  font-weight: 800;
}

.admin-login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: clamp(28px, 5vw, 52px);
}

.admin-login-card h2 {
  font-size: 1.85rem;
}

.admin-login-card > a {
  color: #4c367e;
  font-weight: 800;
  text-align: center;
}

.admin-demo-box {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #d9dee8;
  border-radius: 8px;
  background: #f8fafc;
}

.admin-demo-box span {
  color: #647084;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-demo-box strong {
  color: #151820;
}

.admin-demo-box button {
  width: max-content;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #ccd4df;
  border-radius: 6px;
  background: #ffffff;
  color: #151820;
  font-weight: 800;
  cursor: pointer;
}

.admin-view.active {
  display: block;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  background: #f5f7fb;
  color: #151820;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 18px;
  border-right: 1px solid #d9dee8;
  background: #ffffff;
}

.admin-sidebar-brand {
  padding: 2px 6px;
}

.admin-sidebar-title {
  display: grid;
  gap: 4px;
  padding: 0 8px 8px;
}

.admin-sidebar-title span {
  color: #687386;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-sidebar-title strong {
  font-size: 1.18rem;
}

.admin-sidebar nav {
  display: grid;
  gap: 6px;
}

.admin-sidebar nav button {
  min-height: 42px;
  padding: 9px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #384255;
  text-align: left;
  font-weight: 800;
  cursor: pointer;
}

.admin-sidebar nav button:hover,
.admin-sidebar nav button.active {
  background: #f1f4f9;
  color: #191b21;
}

.admin-sidebar nav button.active {
  box-shadow: inset 3px 0 0 #f4bd21;
}

.admin-sidebar-footer {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.admin-workspace {
  min-width: 0;
  padding: 28px clamp(20px, 4vw, 48px) 48px;
}

.admin-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.admin-topbar h1 {
  color: #151820;
  font-size: clamp(1.8rem, 3vw, 2.75rem);
}

.admin-topbar p {
  max-width: 760px;
  color: #687386;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-kpi-grid article {
  min-height: 138px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  padding: 18px;
  border: 1px solid #d9dee8;
  border-left: 4px solid #5d6b82;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(20, 31, 54, 0.05);
}

.admin-kpi-grid article.is-warning {
  border-left-color: #f4bd21;
}

.admin-kpi-grid article.is-ok {
  border-left-color: #22a06b;
}

.admin-kpi-grid span,
.admin-kpi-grid small {
  color: #687386;
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-kpi-grid strong {
  color: #151820;
  font-size: 2rem;
  line-height: 1;
}

.admin-view .admin-toolbar {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(220px, 2fr) repeat(5, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid #d9dee8;
  border-radius: 8px;
  background: #ffffff;
}

.admin-view .admin-toolbar input,
.admin-view .admin-toolbar select {
  min-width: 0;
  height: 42px;
  border-color: #ccd4df;
  background: #ffffff;
  font-size: 0.9rem;
}

.admin-view .admin-content {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.admin-overview-grid,
.admin-stat-layout,
.admin-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid #d9dee8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(20, 31, 54, 0.05);
}

.admin-panel header {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.admin-panel header span {
  color: #687386;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-panel h2 {
  color: #151820;
  font-size: 1.05rem;
}

.admin-summary-list,
.conversion-grid,
.admin-credentials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-summary-list div,
.conversion-grid div,
.admin-credentials div {
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px;
  border: 1px solid #e2e7ef;
  border-radius: 8px;
  background: #f8fafc;
}

.admin-summary-list span,
.conversion-grid span,
.admin-credentials dt {
  color: #687386;
  font-size: 0.75rem;
  font-weight: 800;
}

.admin-summary-list strong,
.conversion-grid strong,
.admin-credentials dd {
  color: #151820;
  font-weight: 900;
}

.admin-alert-list,
.admin-check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-alert-list li,
.admin-check-list li {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #f1d88d;
  border-radius: 8px;
  background: #fff8df;
}

.admin-alert-list span,
.admin-check-list li {
  color: #66521a;
  font-size: 0.9rem;
}

.admin-mini-rows {
  display: grid;
  gap: 8px;
}

.admin-mini-rows div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e2e7ef;
}

.admin-mini-rows div:last-child {
  border-bottom: 0;
}

.admin-mini-rows strong {
  color: #151820;
}

.admin-mini-rows span,
.admin-mini-rows small {
  color: #687386;
  font-weight: 800;
}

.admin-business-note {
  display: grid;
  gap: 8px;
}

.admin-business-note strong {
  color: #151820;
}

.admin-business-note p,
.admin-business-note span,
.admin-panel > p {
  color: #687386;
}

.admin-view .table-wrap {
  overflow-x: auto;
  border: 1px solid #d9dee8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(20, 31, 54, 0.05);
}

.admin-view .admin-panel .table-wrap {
  box-shadow: none;
}

.admin-view table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.admin-view th,
.admin-view td {
  padding: 13px 14px;
  border-bottom: 1px solid #e2e7ef;
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.admin-view th {
  background: #f8fafc;
  color: #687386;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-view tr:last-child td {
  border-bottom: 0;
}

.admin-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-view .table-action {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #ccd4df;
  border-radius: 6px;
  background: #ffffff;
  color: #151820;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.admin-view .table-action:hover {
  border-color: #f4bd21;
  background: #fff8df;
}

@media (max-width: 1180px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .admin-login-shell,
  .admin-shell,
  .admin-overview-grid,
  .admin-stat-layout,
  .admin-settings-grid {
    grid-template-columns: 1fr;
  }

  .admin-login-intro {
    min-height: auto;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

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

  .admin-topbar {
    display: grid;
  }
}

@media (max-width: 620px) {
  .admin-login-view.active {
    padding: 12px;
  }

  .admin-login-shell {
    border-radius: 8px;
  }

  .admin-login-intro,
  .admin-login-card,
  .admin-workspace {
    padding: 22px;
  }

  .admin-kpi-grid,
  .admin-view .admin-toolbar,
  .admin-summary-list,
  .conversion-grid,
  .admin-credentials {
    grid-template-columns: 1fr;
  }

  .admin-sidebar nav {
    display: flex;
    flex-wrap: wrap;
  }

  .admin-sidebar nav button {
    width: auto;
  }

  .admin-sidebar-footer {
    display: flex;
    flex-wrap: wrap;
  }

  .admin-mini-rows div {
    grid-template-columns: 1fr;
  }
}
