/* WorkBridge Poland – identyfikacja: granat, złoto, biały most na tle zachodzącego słońca. */

:root {
  --navy-950: #0b1d30;
  --navy-900: #0f2741;
  --navy-800: #15344f;
  --navy-700: #1b4a6f;
  --navy-100: #e6edf4;
  --sky-text: #c8d6e5;
  --gold: #f9c35c;
  --sun-1: #ffc15e;
  --sun-2: #f39a3d;
  --gold-line: #f2a744;
  --gold-soft: #fdf3df;
  --ink: #132238;
  --muted: #586a80;
  --line: #dde4ec;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --wa: #157f3d;
  --wa-hover: #0f6a32;
  --ok: #1d7a46;
  --ok-bg: #e7f5ec;
  --warn: #8a5a00;
  --warn-bg: #fff4dc;
  --danger: #b42318;
  --danger-bg: #fdecea;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 39, 65, .06), 0 10px 30px rgba(15, 39, 65, .07);
  --font: "Poppins", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari",
          "Nirmala UI", "Kohinoor Devanagari", "Helvetica Neue", Arial, sans-serif;
  --container: 1120px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
:lang(hi) { line-height: 1.75; }
/* Strona zawsze wypełnia całe okno – krótkie strony (błąd, zakończona rekrutacja) bez pustego pasa pod stopką. */
body.site { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body.site > main { flex: 1 0 auto; display: flex; flex-direction: column; }
body.site > main > * { flex: none; }
body.site > main > .status-page { flex: 1 0 auto; display: flex; align-items: center; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .5em; }
:lang(hi) h1, :lang(hi) h2, :lang(hi) h3 { line-height: 1.4; letter-spacing: 0; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold-line); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--gold); color: var(--navy-950); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip-link:focus { top: 8px; }

.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: .6em 1.3em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; text-decoration: none; line-height: 1.25; text-align: center; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-lg { min-height: 52px; padding: .75em 1.6em; font-size: 1.05rem; }
.btn-small { min-height: 36px; padding: .35em .9em; font-size: .875rem; }
.btn-block { display: flex; width: 100%; }
.btn-sun { background: linear-gradient(180deg, var(--sun-1), var(--sun-2)); color: var(--navy-950); box-shadow: 0 6px 18px rgba(243, 154, 61, .35); }
.btn-sun:hover { box-shadow: 0 8px 22px rgba(243, 154, 61, .45); }
.btn-ghost { background: rgba(255, 255, 255, .06); border-color: rgba(249, 195, 92, .65); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-navy { background: var(--navy-900); color: #fff; }
.btn-navy:hover { background: var(--navy-700); }
.btn-outline { background: var(--surface); border-color: var(--line); color: var(--navy-900); }
.btn-outline:hover { border-color: var(--navy-700); }
.btn-plain { background: transparent; color: var(--navy-700); }
.btn-plain:hover { background: var(--navy-100); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); }
.btn-danger-outline { background: var(--surface); border-color: #f1c4bf; color: var(--danger); }
.btn-danger-outline:hover { background: var(--danger-bg); }
.link-button { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- Header */
.topbar { background: var(--navy-950); color: var(--sky-text); font-size: .875rem; }
.topbar-inner { display: flex; justify-content: flex-end; align-items: center; min-height: 40px; }
.topbar-note { padding: 6px 0; }
.lang-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; padding: 4px 0; }
.lang-switch a { color: var(--sky-text); text-decoration: none; padding: 6px 6px; border-radius: 6px; min-height: 32px; display: inline-flex; align-items: center; }
.lang-switch a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.lang-switch a.is-active { color: var(--gold); font-weight: 600; }
.lang-sep { color: rgba(200, 214, 229, .45); }

.site-header { background: var(--navy-900); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand-mark { width: 56px; height: auto; }
.brand-word { display: inline-flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand-country { color: var(--gold-line); font-size: .66rem; font-weight: 600; letter-spacing: .42em; text-transform: uppercase; margin-top: 4px; }
.main-nav { display: flex; gap: 4px; }
.main-nav a { color: #fff; text-decoration: none; font-weight: 600; padding: 10px 14px; border-radius: 999px; }
.main-nav a:hover { background: rgba(255, 255, 255, .08); }
.main-nav a[aria-current="page"] { color: var(--gold); }

/* ---------------------------------------------------------------- Hero */
.hero {
  background: radial-gradient(ellipse 90% 75% at 50% 15%, var(--navy-700) 0%, var(--navy-900) 55%, var(--navy-950) 100%);
  color: #fff; text-align: center; overflow: hidden;
}
.hero-inner { padding: 40px var(--gutter) 56px; display: flex; flex-direction: column; align-items: center; }
.hero-mark { width: min(440px, 82vw); margin-bottom: 28px; }
.hero-title { font-size: clamp(2.1rem, 8vw, 4rem); font-weight: 700; margin-bottom: .3em; letter-spacing: -0.03em; }
:lang(hi) .hero-title { letter-spacing: 0; }
.hero-slogan { color: var(--gold); font-weight: 600; font-size: clamp(1.05rem, 3.6vw, 1.6rem); line-height: 1.3; margin-bottom: .9em; }
.hero-lead { color: var(--sky-text); max-width: 600px; font-size: clamp(1rem, 2.6vw, 1.15rem); margin-bottom: 1.6em; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 360px; }
.hero-stat { display: flex; flex-direction: column; align-items: center; margin-top: 40px; }
.hero-stat-rule { width: 160px; height: 3px; background: var(--gold-line); border-radius: 2px; margin-bottom: 20px; }
.hero-stat-value { font-size: clamp(3rem, 12vw, 5.5rem); line-height: 1; font-weight: 700; letter-spacing: -0.03em;
  background: linear-gradient(180deg, var(--sun-1), var(--sun-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stat-label { color: #fff; font-size: 1.05rem; margin-top: 8px; }

/* ---------------------------------------------------------------- Sections */
.section { padding: 48px 0; }
.section--tight { padding: 28px 0 56px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-title { font-size: clamp(1.5rem, 4.5vw, 2rem); margin: 0; }
.section-cta { margin-top: 28px; display: flex; justify-content: center; }
.empty-state { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px 20px; text-align: center; color: var(--muted); margin: 0; }

.page-head { background: var(--navy-900); color: #fff; padding: 32px 0 28px; }
.page-title { font-size: clamp(1.8rem, 6vw, 2.6rem); margin-bottom: .3em; }
.page-lead { color: var(--sky-text); margin: 0; }
.page-count { display: inline-block; margin-left: 6px; color: var(--gold); font-weight: 600; }

/* ---------------------------------------------------------------- Job cards */
.job-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.job-card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.job-card:hover { transform: translateY(-2px); border-color: #c9d4e0; box-shadow: 0 14px 34px rgba(15, 39, 65, .12); }
.job-card:focus-within { outline: 3px solid var(--gold-line); outline-offset: 2px; }
.job-card-title { font-size: 1.2rem; margin: 0 0 4px; }
.job-card-title a { color: var(--navy-900); text-decoration: none; }
.job-card-title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.job-card-title a:focus-visible { outline: none; }
.job-card-row { display: flex; gap: 8px; align-items: flex-start; margin: 0; color: var(--muted); }
.job-card-row .icon { margin-top: .2em; color: var(--navy-700); }
.job-card-acc { color: var(--ink); }
.job-card-rate { margin: 4px 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.rate-amount { font-weight: 700; font-size: 1.3rem; color: var(--navy-900); white-space: nowrap; }
.rate-meta { color: var(--muted); font-size: .95rem; }
.job-card-more { margin-top: auto; padding-top: 8px; color: var(--navy-700); font-weight: 600; font-size: .95rem; }

/* ---------------------------------------------------------------- Steps */
.section--steps { background: var(--surface); border-top: 1px solid var(--line); }
.section--steps .section-title { margin-bottom: 24px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.step { position: relative; padding: 20px 20px 16px 76px; border-radius: var(--radius); background: var(--bg); }
.step-icon { position: absolute; left: 18px; top: 20px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--navy-900); color: var(--gold); }
.step-icon .icon { width: 22px; height: 22px; }
.step-title { font-size: 1.1rem; margin-bottom: .25em; }
.step p { margin: 0; color: var(--muted); }

/* ---------------------------------------------------------------- Job detail */
.job-hero { background: radial-gradient(ellipse 80% 120% at 50% 0%, var(--navy-700), var(--navy-900) 70%); color: #fff; padding: 20px 0 28px; }
.back-link { display: inline-block; color: var(--sky-text); text-decoration: none; font-size: .95rem; margin-bottom: 14px; padding: 4px 0; }
.back-link:hover { color: #fff; }
.job-title { font-size: clamp(1.7rem, 6vw, 2.6rem); margin-bottom: .35em; }
.job-hero-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--sky-text); margin-bottom: 12px; }
.job-hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.job-hero-rate { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.job-hero-rate .rate-amount { color: var(--gold); font-size: clamp(1.6rem, 6vw, 2.1rem); }
.job-hero-rate .rate-meta { color: #fff; font-size: 1.05rem; }

.job-layout { display: grid; gap: 20px; padding-top: 20px; padding-bottom: 110px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card-title { font-size: 1.15rem; margin-bottom: 14px; }
.notice { background: var(--gold-soft); border: 1px solid #f3d9a6; color: #6b4a07; border-radius: var(--radius-sm); padding: 12px 14px; margin: 0 0 16px; }

.facts-list { margin: 0; display: grid; gap: 0; }
.fact { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.fact:first-child { border-top: 0; padding-top: 0; }
.fact dt { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .875rem; font-weight: 500; }
.fact dt .icon { color: var(--navy-700); }
.fact dd { margin: 0; padding-left: calc(1.15em + 8px); font-weight: 500; }
.fact--pay dd strong { font-size: 1.15rem; color: var(--navy-900); }
.fact-hint { display: block; color: var(--muted); font-weight: 400; margin-top: 2px; }

.prose { margin-top: 28px; }
.prose h2 { font-size: 1.3rem; margin-bottom: .6em; }
.prose p { max-width: 70ch; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; max-width: 70ch; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.5 2.6 2.5L14 7.5' fill='none' stroke='%23c77a1c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }

.apply-card { display: grid; gap: 12px; }
.apply-card .card-title { margin-bottom: 0; }
.apply-hint { color: var(--muted); font-size: .9rem; margin: 0; }
.permalink { margin: 0; font-size: .8rem; color: var(--muted); word-break: break-all; }
.permalink a { color: var(--muted); }
.apply-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(15, 39, 65, .08);
  backdrop-filter: blur(6px);
}

.preview-bar { background: var(--gold); color: var(--navy-950); font-size: .9rem; }
.preview-bar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding-top: 10px; padding-bottom: 10px; }
.preview-bar a { color: var(--navy-950); font-weight: 600; }

/* ---------------------------------------------------------------- Status pages */
.status-page { background: radial-gradient(ellipse 90% 80% at 50% 10%, var(--navy-700), var(--navy-900) 60%, var(--navy-950)); color: #fff; text-align: center; }
.status-inner { padding: 48px var(--gutter) 72px; display: flex; flex-direction: column; align-items: center; max-width: 640px; }
.status-mark { width: min(260px, 60vw); margin-bottom: 24px; }
.status-eyebrow { color: var(--sky-text); margin-bottom: .6em; }
.status-title { font-size: clamp(1.8rem, 6vw, 2.6rem); }
.status-text { color: var(--sky-text); margin-bottom: 1.6em; }

/* ---------------------------------------------------------------- Footer */
.site-footer { background: var(--navy-950); color: var(--sky-text); padding: 36px 0 24px; }
.footer-inner { display: grid; gap: 20px; }
.brand-word--footer .brand-name { color: #fff; }
.footer-slogan { color: var(--gold); margin: 10px 0 0; font-weight: 500; }
.footer-nav { display: flex; flex-direction: column; gap: 4px; }
.footer-nav a { color: var(--sky-text); text-decoration: none; padding: 6px 0; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; color: rgba(200, 214, 229, .75); }
body.site:has(.apply-bar) .site-footer { padding-bottom: 96px; }

/* ---------------------------------------------------------------- Breakpoints */
@media (min-width: 600px) {
  :root { --gutter: 24px; }
  .hero-actions { flex-direction: row; justify-content: center; max-width: none; width: auto; }
  .job-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-nav { flex-direction: row; gap: 20px; }
  .fact { grid-template-columns: 200px 1fr; align-items: baseline; gap: 12px; }
  .fact dd { padding-left: 0; }
}
@media (min-width: 900px) {
  .hero-inner { padding: 64px var(--gutter) 80px; }
  .hero-mark { margin-bottom: 36px; }
  .job-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { padding: 24px; }
  .step-icon { position: static; margin-bottom: 14px; }
  .job-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 32px; padding-top: 32px; padding-bottom: 64px; }
  .job-aside { position: sticky; top: 20px; }
  .apply-bar { display: none; }
  body.site:has(.apply-bar) .site-footer { padding-bottom: 24px; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
  .job-hero { padding: 28px 0 40px; }
}
@media (max-width: 899px) {
  .job-aside { order: 2; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ===================================================================== ADMIN */
.admin { background: var(--bg); }
.admin-container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.admin-header { background: var(--navy-900); color: #fff; }
.admin-header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 12px; padding-bottom: 12px; }
.admin-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; font-size: .95rem; }
.admin-nav a, .admin-nav .link-button { color: var(--sky-text); text-decoration: none; padding: 8px 10px; border-radius: 8px; min-height: 40px; display: inline-flex; align-items: center; }
.admin-nav a:hover, .admin-nav .link-button:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.admin-nav a[aria-current="page"] { color: var(--gold); font-weight: 600; }
.inline-form { display: inline; margin: 0; }
.admin-main { padding: 24px 0 64px; }
.admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.admin-title { font-size: clamp(1.4rem, 4vw, 1.8rem); margin: 0; }
.back-link--admin { color: var(--muted); margin-bottom: 4px; }
.back-link--admin:hover { color: var(--navy-900); }
.muted { color: var(--muted); font-weight: 400; }
.pre-line { white-space: pre-line; }

.alert { border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 16px; border: 1px solid transparent; }
.alert-success { background: var(--ok-bg); color: var(--ok); border-color: #bfe3cc; }
.alert-error { background: var(--danger-bg); color: var(--danger); border-color: #f3c7c2; }

.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.badge-lg { font-size: .9rem; padding: 6px 14px; }
.badge-draft { background: #eef1f5; color: #44546a; }
.badge-published { background: var(--ok-bg); color: var(--ok); }
.badge-archived { background: #f4ece1; color: #7a5a2c; }

.filter-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 16px; padding-bottom: 4px; }
.filter-tabs a { white-space: nowrap; text-decoration: none; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; font-size: .9rem; }
.filter-tabs a span { color: var(--ink); font-weight: 600; margin-left: 4px; }
.filter-tabs a[aria-current="page"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.filter-tabs a[aria-current="page"] span { color: var(--gold); }

.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.jobs-table { width: 100%; border-collapse: collapse; }
.jobs-table th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 12px 16px; background: #f8fafc; border-bottom: 1px solid var(--line); }
.jobs-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.jobs-table tr:last-child td { border-bottom: 0; }
.row-title { font-weight: 600; color: var(--navy-900); text-decoration: none; display: block; }
.row-title:hover { text-decoration: underline; }
.row-sub { display: block; color: var(--muted); font-size: .875rem; margin-top: 2px; }
.row-actions { text-align: right; }
.row-actions-inner { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; }
.lang-dots { display: inline-flex; gap: 4px; }
.lang-dot { font-size: .7rem; font-weight: 700; padding: 2px 6px; border-radius: 6px; background: #eef1f5; color: #9aa7b6; }
.lang-dot.is-on { background: var(--navy-100); color: var(--navy-700); }
.empty-admin { text-align: center; }

@media (max-width: 760px) {
  .jobs-table thead { display: none; }
  .jobs-table, .jobs-table tbody, .jobs-table tr, .jobs-table td { display: block; width: 100%; }
  .jobs-table tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .jobs-table tr:last-child { border-bottom: 0; }
  .jobs-table td { padding: 4px 0; border: 0; }
  .jobs-table td[data-label]:not(:first-child)::before { content: attr(data-label) ": "; color: var(--muted); font-size: .85rem; }
  .row-actions { text-align: left; padding-top: 10px !important; }
  .row-actions-inner { justify-content: flex-start; }
}

.meta-strip { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0 0 20px; font-size: .9rem; }
.meta-strip dt { color: var(--muted); font-size: .8rem; }
.meta-strip dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.row-author { font-size: .8rem; }

.form-section { margin-bottom: 20px; }
.form-section-title { font-size: 1.15rem; margin-bottom: 8px; }
.form-help { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.form-narrow { max-width: 480px; }
.form-stack { display: grid; gap: 4px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.field-label { font-weight: 600; font-size: .9rem; }
.field-label abbr { color: var(--danger); text-decoration: none; }
.field-help { color: var(--muted); font-size: .825rem; }
.field-error { color: var(--danger); font-size: .85rem; margin: 0; font-weight: 500; }
.text-warn { color: var(--warn); display: block; margin-top: 4px; }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="tel"],
.field input[type="date"], .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid #cfd8e3; border-radius: var(--radius-sm); background: #fff;
  font-size: 16px;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy-700); outline: 3px solid rgba(27, 74, 111, .15); outline-offset: 0; }
[aria-invalid="true"] { border-color: var(--danger) !important; background: #fffafa !important; }
.fieldset { border: 0; border-top: 1px solid var(--line); margin: 8px 0 0; padding: 18px 0 0; min-width: 0; }
.fieldset legend { font-weight: 700; padding: 0 8px 0 0; font-size: 1rem; }
.grid-2, .grid-4 { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.segmented { display: inline-flex; border: 1.5px solid #cfd8e3; border-radius: var(--radius-sm); overflow: hidden; min-height: 46px; background: #fff; }
.segmented label { flex: 1; display: flex; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { flex: 1; display: grid; place-items: center; padding: 0 16px; cursor: pointer; font-weight: 500; }
.segmented label + label span { border-left: 1.5px solid #cfd8e3; }
.segmented input:checked + span { background: var(--navy-900); color: #fff; }
.segmented input:focus-visible + span { outline: 3px solid var(--gold-line); outline-offset: -3px; }

.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; min-height: 44px; }
.check input { width: 20px; height: 20px; flex: none; accent-color: var(--navy-900); }
.check--box { border: 1.5px solid #cfd8e3; border-radius: var(--radius-sm); padding: 8px 12px; background: #fff; }
.inline-fields { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.inline-fields input[type="date"] { width: auto; flex: 1 1 180px; }

.lang-tabs { display: none; gap: 6px; overflow-x: auto; margin: 4px 0 16px; padding-bottom: 2px; }
.js .lang-tabs { display: flex; }
.lang-tab { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; min-height: 44px; padding: 8px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-weight: 600; }
.lang-tab[aria-selected="true"] { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.lang-tab.has-error { border-color: var(--danger); }
.tab-req { font-size: .7rem; font-weight: 600; color: var(--danger); background: var(--danger-bg); padding: 2px 6px; border-radius: 6px; }
.lang-tab[aria-selected="true"] .tab-req { background: rgba(255, 255, 255, .15); color: var(--gold); }
.tab-state { width: 9px; height: 9px; border-radius: 50%; background: #cfd8e3; }
.tab-state.is-filled { background: #2fa463; }
.lang-panel + .lang-panel { border-top: 1px solid var(--line); padding-top: 16px; }
.js .lang-panel + .lang-panel { border-top: 0; padding-top: 0; }
.lang-panel-title { font-size: 1rem; margin-bottom: 12px; display: flex; gap: 8px; align-items: center; }
.js .lang-panel-title { display: none; }

.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; position: sticky; bottom: 0; z-index: 5;
  background: rgba(244, 246, 249, .96); padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); backdrop-filter: blur(6px); }
.form-actions--inline { position: static; background: none; border: 0; padding: 4px 0 0; }
.btn-push { margin-left: auto; }
@media (max-width: 600px) {
  .form-actions .btn { flex: 1 1 calc(50% - 10px); }
  .btn-push { margin-left: 0; }
}

.auth-card { max-width: 460px; margin: 24px auto; }
.auth-card .admin-title { margin-bottom: 16px; }
.auth-card code, .card code { background: #eef1f5; padding: 1px 6px; border-radius: 4px; font-size: .9em; }

.checks { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.check-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: var(--radius-sm); background: #f8fafc; }
.check-mark { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.is-ok .check-mark { background: var(--ok-bg); color: var(--ok); }
.is-bad .check-mark { background: var(--danger-bg); color: var(--danger); }
.is-info .check-mark { background: var(--navy-100); color: var(--navy-700); }
.check-detail { color: var(--muted); font-size: .9rem; word-break: break-word; }
.kv { margin: 0; display: grid; gap: 10px; }
.kv div { display: grid; gap: 2px; }
.kv dt { color: var(--muted); font-size: .85rem; }
.kv dd { margin: 0; word-break: break-all; }
@media (min-width: 700px) { .kv div { grid-template-columns: 240px 1fr; } }

/* Ustawienia: wybór ofert na stronę główną; Użytkownicy */
.choice-list { display: grid; gap: 8px; margin-bottom: 16px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid #cfd8e3; border-radius: var(--radius-sm); background: #fff; cursor: pointer; }
.choice input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy-900); flex: none; }
.choice:has(input:checked) { border-color: var(--navy-900); background: var(--navy-100); }
.pick-list { display: grid; gap: 8px; }
.pick-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.pick-check { min-height: 44px; flex: 1; min-width: 0; }
.pick-check > span { min-width: 0; }
.pick-check strong { display: block; overflow-wrap: anywhere; }
.pick-pos select { min-height: 44px; padding: 6px 10px; border: 1.5px solid #cfd8e3; border-radius: var(--radius-sm); background: #fff; font-size: 16px; }
.badge-home { background: var(--gold-soft); color: #7a5208; margin-left: 4px; }
.inline-details { display: inline-block; }
.inline-details summary { list-style: none; cursor: pointer; }
.inline-details summary::-webkit-details-marker { display: none; }
.inline-pw { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.inline-pw input { min-height: 40px; padding: 6px 10px; border: 1.5px solid #cfd8e3; border-radius: var(--radius-sm); font-size: 16px; flex: 1 1 160px; }
.users-add { margin-top: 24px; }

/* Panel: linki do udostępnienia */
.share-links { margin-bottom: 20px; }
.share-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.share-lang { flex: none; width: 40px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.share-input { flex: 1 1 auto; min-width: 0; min-height: 38px; padding: 6px 10px; border: 1.5px solid #cfd8e3; border-radius: var(--radius-sm); background: #f8fafc; color: var(--muted); font-size: 16px; }
@media (min-width: 720px) { .share-input { font-size: .875rem; } }
.share-row .btn { flex: none; }
.share-help { margin: 12px 0 0; }
