:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  color: #f4f3eb;
  background: #101110;
  --muted: #a3a69f;
  --line: #ffffff14;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid #c1c3bc; outline-offset: 5px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible { outline: 2px solid #c1c3bc; outline-offset: 4px; }
[hidden] { display: none !important; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { display: block; border-radius: 50%; }
.brand-name { font-size: 16px; font-weight: 700; letter-spacing: .14em; line-height: 1.1; }
.brand-name span { display: block; margin-top: 5px; font-size: 10px; font-weight: 400; letter-spacing: .32em; }

.login-page { min-height: 100svh; display: grid; place-items: center; padding: 32px 24px; }
.login-content { width: min(100%, 340px); text-align: center; padding-bottom: 40px; }
.login-brand { margin-bottom: 52px; text-align: left; }
.login-content h1 { margin: 0; font: 400 44px/1.15 Georgia, 'Times New Roman', serif; letter-spacing: -.04em; }
.login-content p { margin: 16px 0 32px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.google-button { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 14px 20px; border-radius: 5px; background: #fff; color: #202124; font-size: 14px; font-weight: 500; }
.google-button:hover { background: #eaece8; }
.google-button svg { flex-shrink: 0; }

.admin-page { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100svh; }
.sidebar { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; padding: 32px 20px 24px; border-right: 1px solid var(--line); background: #0c0d0c; }
.sidebar > .brand { margin: 0 12px 48px; }
.navigation { display: grid; gap: 6px; }
.navigation-item, .sign-out { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 12px 14px; border-radius: 5px; font-size: 14px; }
.navigation-item[aria-current="page"] { background: #ffffff0c; color: #f4f3eb; }
.navigation-item svg, .sign-out svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.upcoming { color: #70746d; }
.sign-out { margin-top: auto; color: var(--muted); }
.sign-out:hover { color: #f4f3eb; background: #ffffff08; }
.jobs-content { padding: 40px 48px; }
.page-header { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.page-header h1 { margin: 0; font-size: 28px; font-weight: 500; letter-spacing: -.035em; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 2; padding: 12px 18px; background: #f4f3eb; color: #101110; }
.skip-link:focus { top: 12px; }

.jobs-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 11px 17px; border: 1px solid transparent; border-radius: 5px; font-size: 13px; font-weight: 600; }
.primary-button { background: #f4f3eb; color: #171917; }
.primary-button:hover { background: #dcded5; }
.secondary-button { color: #d2d5cd; background: transparent; border-color: #ffffff20; }
.secondary-button:hover { background: #ffffff0a; }
.primary-button svg, .search-field svg, .icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.jobs-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 24px 0 28px; }
.job-filters { display: flex; align-items: center; gap: 8px; }
.filter-pill { min-height: 38px; padding: 8px 17px; border: 1px solid #ffffff20; border-radius: 999px; background: transparent; color: #b4b9ae; font-size: 13px; line-height: 20px; }
.filter-pill:hover { background: #ffffff09; color: #f4f3eb; border-color: #ffffff40; }
.filter-pill[aria-pressed="true"] { background: #f4f3eb; color: #171917; border-color: #f4f3eb; }
.search-field { display: flex; align-items: center; gap: 10px; width: min(100%, 320px); padding: 0 13px; border: 1px solid #ffffff20; border-radius: 5px; color: var(--muted); }
.search-field input { min-width: 0; width: 100%; height: 42px; border: 0; outline: 0; background: transparent; color: #f4f3eb; font-size: 13px; }
.search-field:focus-within { border-color: #818a78; }
.search-field svg { flex-shrink: 0; }
input::placeholder { color: #8e948a; }
.jobs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 22px; }
.job-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #141614; }
.job-card:hover { border-color: #ffffff40; }
.job-cover { display: grid; place-items: center; aspect-ratio: 16 / 10; background: #1b1e1b; }
.job-cover img { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.cover-placeholder { color: #959c90; font-size: 13px; }
.job-details { padding: 17px 16px 19px; }
.job-details h2 { margin: 0 0 12px; min-height: 40px; font-size: 14px; font-weight: 500; line-height: 1.45; overflow-wrap: anywhere; }
.job-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: space-between; color: var(--muted); font-size: 11px; line-height: 1.5; }
.no-jobs { margin: 70px 0; text-align: center; color: var(--muted); font-size: 14px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
dialog { width: min(460px, calc(100% - 32px)); max-height: calc(100svh - 32px); padding: 28px; color: #f4f3eb; background: #171917; border: 1px solid #ffffff24; border-radius: 10px; box-shadow: 0 24px 100px #0008; }
dialog::backdrop { background: #000a; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.dialog-header h2 { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -.025em; }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; background: transparent; border: 0; color: var(--muted); border-radius: 4px; }
.icon-button:hover { background: #ffffff0a; color: #fff; }
.form-field { display: grid; gap: 9px; margin-top: 20px; color: #d2d5cd; font-size: 13px; }
.form-field input, .form-field select { width: 100%; min-width: 0; height: 46px; padding: 0 12px; background: #101210; border: 1px solid #ffffff24; border-radius: 4px; color: #f4f3eb; outline: 0; }
.form-field input:focus, .form-field select:focus { border-color: #818a78; box-shadow: 0 0 0 1px #818a78; }
.dialog-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 32px; }

@media (min-width: 1600px) {
  .jobs-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .jobs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jobs-content { padding-inline: 28px; }
}

@media (max-width: 640px) {
  .admin-page { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; padding: 20px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 24px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar > .brand { margin: 0; }
  .sign-out { margin: 0 0 0 auto; padding-inline: 8px; }
  .sign-out svg { display: none; }
  .navigation { order: 1; width: 100%; grid-template-columns: 1fr 1fr; }
  .jobs-content { padding: 28px 24px; }
  .admin-page { grid-template-rows: auto 1fr; }
  .page-header { padding-bottom: 22px; }
}

@media (max-width: 440px) {
  .jobs-grid { grid-template-columns: 1fr; gap: 20px; }
  .job-details h2 { min-height: 0; }
  dialog { padding: 22px; }
}
