* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Renoox brand gold — sampled from the ox mark */
  --gold: #E3BA36;
  --gold-bright: #F3D843;
  --gold-deep: #C88916;

  /* workwear steel */
  --steel-900: #12161F;
  --steel-800: #1B2431;
  --steel-700: #26313F;

  --bg: #EDEFF3;
  --card: #ffffff;
  --ink: #12161F;
  --ink-soft: #5C6675;
  --line: #DBE0E7;
  --primary: var(--gold);
  --primary-ink: #8A5F14;      /* gold dark enough to read as text */
  --primary-soft: #FBF2DF;
  --green: #15803D;
  --green-soft: #ECFDF3;
  --blue: #1D4ED8;
  --blue-soft: #EEF3FF;
  --amber: #9A6B0A;
  --amber-soft: #FBF3D5;
  --red: #B91C1C;
  --red-soft: #FEF2F2;
  --radius: 12px;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

.hidden { display: none !important; }
.screen { min-height: 100vh; }

/* ===== auth ===== */
#authScreen {
  position: relative; isolation: isolate;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
  background: linear-gradient(165deg, #26313F 0%, #1B2431 50%, #0C1017 100%);
}
/* faint diagonal site-hazard texture — reads as workwear, not decoration */
#authScreen::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(135deg,
    rgba(224,168,60,.055) 0 2px, transparent 2px 22px);
}
.auth-card {
  position: relative; overflow: hidden;
  width: 100%; max-width: 400px;
  background: var(--card); border-radius: 16px;
  padding: 30px 24px 26px;
  box-shadow: 0 24px 70px rgba(0,0,0,.45);
}
/* gold faceplate rule across the top of the card */
.auth-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright), var(--gold-deep));
}
.brand { text-align: center; margin-bottom: 24px; }
.brand-logo {
  width: 64px; height: 64px; margin: 0 auto 12px;
  display: block; object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(224,168,60,.35));
}
.brand h1 {
  font-size: 26px; font-weight: 800; letter-spacing: -.02em;
  display: flex; align-items: center; justify-content: center; gap: 9px;
}
/* PRO reads as a tier stamp, not just a word */
.brand-pro {
  font-size: 14px; font-weight: 900; letter-spacing: .12em;
  text-transform: uppercase; color: #2A1D05;
  background: linear-gradient(160deg, var(--gold-bright), var(--gold-deep));
  padding: 4px 10px 3px; border-radius: 6px;
  box-shadow: 0 2px 6px rgba(182,128,42,.35);
}
/* hairline-flanked kicker, echoing the Renoox wordmark rule */
.brand-kicker {
  display: flex; align-items: center; gap: 10px;
  margin: 12px auto 0; max-width: 300px;
  font-size: 10px; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; color: var(--primary-ink); white-space: nowrap;
}
.brand-kicker::before, .brand-kicker::after {
  content: ''; flex: 1; height: 1px; background: var(--gold); opacity: .5;
}
.brand-sub { color: var(--ink-soft); font-size: 12.5px; margin-top: 10px; line-height: 1.5; }

.auth-tabs {
  display: flex; background: var(--bg); border-radius: 10px;
  padding: 4px; margin-bottom: 18px;
}
.auth-tab {
  flex: 1; border: 0; background: transparent; padding: 10px;
  border-radius: 7px; font-size: 13px; color: var(--ink-soft);
  cursor: pointer; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; font-family: inherit;
}
.auth-tab.active {
  background: var(--steel-800); color: #fff;
  box-shadow: 0 2px 6px rgba(18,22,31,.28);
}

.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form label { font-size: 13px; font-weight: 600; color: var(--ink-soft); display: flex; flex-direction: column; gap: 7px; }
/* uppercase micro-labels — spec-sheet feel, applied to the span so typed input stays as-is */
.auth-form label > span, .profile-form label > span, .admin-card label > span {
  font-size: 11px; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; color: var(--steel-700);
}
.auth-form input, .auth-form select {
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 16px; font-family: inherit; background: #fff; color: var(--ink);
}
.auth-form input:focus, .auth-form select:focus {
  outline: none; border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(224,168,60,.2);
}
.auth-error { margin-top: 12px; color: var(--red); background: var(--red-soft); padding: 10px 12px; border-radius: 10px; font-size: 13px; }
.auth-hint { margin-top: 16px; text-align: center; color: var(--ink-soft); font-size: 12px; }

/* ===== language switcher ===== */
.lang-switch {
  display: flex; justify-content: flex-end; gap: 4px; margin-bottom: 4px;
}
.lang-btn {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-soft);
  border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700;
  cursor: pointer; font-family: inherit;
}
.lang-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.lang-switch-sm { margin-bottom: 0; }
.header-right { display: flex; align-items: center; gap: 8px; }

/* ===== buttons ===== */
.btn {
  border: 0; border-radius: 9px; padding: 13px 18px;
  font-size: 15px; font-weight: 800; cursor: pointer; font-family: inherit;
}
.btn-primary {
  background: linear-gradient(160deg, var(--gold-bright), var(--gold-deep));
  color: #2A1D05;
  box-shadow: 0 2px 0 rgba(138,95,20,.45), 0 4px 14px rgba(182,128,42,.3);
}
.btn-primary:active { transform: scale(.98); }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--ink-soft); font-size: 13px; padding: 8px 12px; }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 2px 0 rgba(6,78,39,.4); }
.btn-steel { background: var(--steel-800); color: #fff; box-shadow: 0 2px 0 rgba(0,0,0,.35); }
.btn-outline-red { background: #fff; color: var(--red); border: 1.5px solid var(--red); }
.btn-sm { padding: 9px 14px; font-size: 13px; border-radius: 8px; }

/* ===== app shell ===== */
#appScreen { max-width: 560px; margin: 0 auto; padding-bottom: 40px; }
.app-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 16px 10px;
}
.app-title { font-size: 22px; font-weight: 800; }
.app-user { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }

.filter-bar {
  display: flex; gap: 8px; overflow-x: auto; padding: 8px 16px 14px;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; border: 1.5px solid var(--line); background: #fff;
  color: var(--ink-soft); border-radius: 999px; padding: 7px 14px;
  font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; gap: 6px;
}
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-badge {
  background: var(--red); color: #fff; border-radius: 999px;
  font-size: 11px; padding: 1px 6px; min-width: 18px; text-align: center;
}
.chip-badge:empty { display: none; }

/* ===== ox chip: the mark + a plain label, so the wordmark is never repeated ===== */
.ox-chip {
  display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto;
  padding: 5px 11px 5px 6px; border-radius: 999px;
  background: var(--steel-800);
  box-shadow: inset 0 0 0 1px rgba(224,168,60,.35);
}
.ox-chip img { width: 24px; height: 24px; display: block; }
.ox-chip span {
  font-size: 11.5px; font-weight: 700; color: #DCE2EA;
  letter-spacing: .02em; white-space: nowrap;
}
.ox-chip b { color: var(--gold-bright); font-weight: 900; letter-spacing: .06em; }

/* ===== job cards ===== */
.job-list { display: flex; flex-direction: column; gap: 12px; padding: 0 16px; }
.job-card {
  background: var(--card); border-radius: var(--radius);
  padding: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06);
  cursor: pointer; border: 1.5px solid transparent;
}
.job-card:active { transform: scale(.99); }
.job-card.is-pending {
  border-color: var(--gold);
  box-shadow: inset 4px 0 0 var(--gold), 0 2px 8px rgba(18,22,31,.09);
}
.job-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.job-title { font-size: 15.5px; font-weight: 700; line-height: 1.35; }
.job-meta { color: var(--ink-soft); font-size: 12.5px; margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 12px; }

.status {
  flex: 0 0 auto; font-size: 11.5px; font-weight: 700;
  padding: 4px 9px; border-radius: 999px; white-space: nowrap;
}
.st-pending { background: var(--primary-soft); color: var(--primary-ink); }
.st-accepted { background: var(--blue-soft); color: var(--blue); }
.st-in_progress { background: var(--blue-soft); color: var(--blue); }
.st-awaiting_inspection { background: var(--amber-soft); color: var(--amber); }
.st-rework { background: var(--red-soft); color: var(--red); }
.st-done { background: var(--green-soft); color: var(--green); }

.progress-track { height: 7px; background: var(--bg); border-radius: 99px; margin-top: 12px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--blue); border-radius: 99px; transition: width .3s; }
.progress-fill.full { background: var(--green); }
.progress-label { font-size: 11.5px; color: var(--ink-soft); margin-top: 5px; }

.card-actions { display: flex; gap: 10px; margin-top: 14px; }
.card-actions .btn { flex: 1; }

/* ===== empty ===== */
.empty { text-align: center; padding: 70px 20px; color: var(--ink-soft); }
.empty-icon { font-size: 44px; margin-bottom: 10px; }
.empty-sub { font-size: 12.5px; margin-top: 4px; }

/* ===== bottom sheet ===== */
.sheet-overlay {
  position: fixed; inset: 0; background: rgba(15,15,30,.5);
  display: flex; align-items: flex-end; justify-content: center; z-index: 50;
}
.sheet {
  background: var(--bg); width: 100%; max-width: 560px;
  border-radius: 20px 20px 0 0; max-height: 92vh; overflow-y: auto;
  padding: 10px 16px 30px; animation: slideUp .25s ease;
}
@keyframes slideUp { from { transform: translateY(40px); opacity: .5; } to { transform: none; opacity: 1; } }
.sheet-grab { width: 42px; height: 5px; background: #d1d5db; border-radius: 99px; margin: 6px auto 14px; }
.sheet h2 { font-size: 18px; line-height: 1.35; margin-bottom: 4px; }
.sheet-section {
  background: var(--card); border-radius: var(--radius);
  padding: 14px 16px; margin-top: 12px;
}
.sheet-section h3 {
  font-size: 11px; color: var(--steel-700); margin-bottom: 11px;
  font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
}
.kv { display: flex; gap: 10px; font-size: 14px; padding: 5px 0; }
.kv b { flex: 0 0 74px; color: var(--ink-soft); font-weight: 600; }

.defect-list { list-style: none; }
.defect-list li {
  background: var(--red-soft); color: var(--red); border-radius: 8px;
  padding: 8px 12px; font-size: 13.5px; margin-bottom: 6px;
}

.range-row { display: flex; align-items: center; gap: 12px; }
.range-row input[type=range] { flex: 1; accent-color: var(--primary); height: 30px; }
.range-val { font-weight: 800; font-size: 18px; min-width: 52px; text-align: right; color: var(--primary-ink); }

.photo-drop {
  border: 2px dashed var(--line); border-radius: 10px; padding: 14px;
  text-align: center; color: var(--ink-soft); font-size: 13.5px; cursor: pointer;
  margin-top: 10px;
}
.photo-drop img { max-width: 100%; max-height: 180px; border-radius: 8px; display: block; margin: 0 auto; }
textarea.note-input {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-size: 15px; font-family: inherit; margin-top: 10px;
  resize: vertical; min-height: 60px;
}
textarea.note-input:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(224,168,60,.18); }

.update-item { border-top: 1px solid var(--line); padding: 10px 0; }
.update-item:first-of-type { border-top: 0; padding-top: 0; }
.update-head { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-soft); }
.update-head b { color: var(--blue); font-size: 13px; }
.update-note { font-size: 14px; margin-top: 4px; }
.update-item img { max-width: 100%; border-radius: 10px; margin-top: 8px; }

.timeline { list-style: none; }
.timeline li { display: flex; gap: 10px; padding: 6px 0; font-size: 13px; }
.timeline .t-dot { flex: 0 0 8px; height: 8px; border-radius: 99px; background: var(--line); margin-top: 5px; }
.timeline .t-time { color: var(--ink-soft); font-size: 11.5px; margin-top: 2px; }

.sheet-actions { display: flex; gap: 10px; margin-top: 16px; }
.sheet-actions .btn { flex: 1; }

/* ===== bottom nav ===== */
#appScreen { padding-bottom: 90px; }
.bottom-nav {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 0; width: 100%; max-width: 560px;
  display: flex; background: var(--card);
  border-top: 1px solid var(--line);
  padding: 6px 10px calc(10px + env(safe-area-inset-bottom));
  z-index: 40;
}
.bottom-nav-btn {
  flex: 1; border: 0; background: transparent; font-family: inherit;
  font-size: 14px; font-weight: 700; color: var(--ink-soft);
  padding: 10px; border-radius: 10px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.bottom-nav-btn.active { color: var(--primary-ink); background: var(--primary-soft); }

/* ===== profile view ===== */
.profile-wrap { padding: 0 16px; display: flex; flex-direction: column; gap: 12px; }
.profile-card {
  background: var(--card); border-radius: var(--radius); padding: 18px 16px;
  display: flex; align-items: center; gap: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
/* trade-ID badge look; doubles as the photo upload target */
.profile-avatar {
  width: 62px; height: 62px; border-radius: 12px; background: var(--steel-800);
  color: var(--gold-bright); font-size: 26px; font-weight: 900;
  display: flex; align-items: center; justify-content: center; flex: 0 0 62px;
  box-shadow: inset 0 0 0 2px var(--gold-deep);
  border: 0; padding: 0; cursor: pointer; overflow: hidden; font-family: inherit;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-avatar.has-photo { box-shadow: inset 0 0 0 2px var(--gold-deep); }
.profile-card-body { min-width: 0; }
.avatar-actions { display: flex; gap: 12px; margin-top: 6px; }
.btn-link {
  border: 0; background: none; padding: 0; cursor: pointer; font-family: inherit;
  font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--primary-ink); text-decoration: underline; text-underline-offset: 2px;
}
.btn-link-red { color: var(--red); }
.profile-name { font-size: 17px; font-weight: 800; }
.profile-sub { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.profile-form { display: flex; flex-direction: column; gap: 12px; margin-top: 0; }
.profile-form label { font-size: 13px; font-weight: 600; color: var(--ink-soft); display: flex; flex-direction: column; gap: 6px; }
.profile-form input, .profile-form select {
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 16px; font-family: inherit; background: #fff; color: var(--ink);
}
.profile-form input:disabled { background: var(--bg); color: var(--ink-soft); }
.profile-form input:focus, .profile-form select:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(224,168,60,.18); }
.field-note { font-size: 12px; color: var(--ink-soft); margin-top: -6px; }
.lang-switch-left { justify-content: flex-start; }

/* ===== portfolio grid (contractor's own editor) ===== */
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.pf-item { position: relative; border-radius: 10px; overflow: hidden; background: var(--bg); }
.pf-item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.pf-item figcaption {
  font-size: 10.5px; line-height: 1.3; color: var(--ink-soft);
  padding: 5px 6px; background: #fff;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pf-del {
  position: absolute; top: 4px; right: 4px; width: 24px; height: 24px;
  border: 0; border-radius: 999px; cursor: pointer; font-family: inherit;
  background: rgba(18,22,31,.72); color: #fff; font-size: 17px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.pf-empty {
  grid-column: 1 / -1; text-align: center; color: var(--ink-soft);
  font-size: 13px; padding: 18px 8px; border: 1.5px dashed var(--line); border-radius: 10px;
}
.pf-add:disabled { opacity: .45; cursor: not-allowed; }
.pf-count { margin-top: 8px; text-align: center; }

/* ===== share controls ===== */
.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 0; border-top: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer;
}
.switch-row:first-of-type { border-top: 0; }
.switch-row input[type=checkbox] {
  flex: 0 0 auto; width: 44px; height: 26px; margin: 0;
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background: #C9CFD8; border-radius: 999px; position: relative; transition: background .18s;
}
.switch-row input[type=checkbox]::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  background: #fff; border-radius: 50%; transition: transform .18s;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.switch-row input[type=checkbox]:checked { background: var(--gold-deep); }
.switch-row input[type=checkbox]:checked::after { transform: translateX(18px); }

.share-box { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.share-link {
  background: var(--steel-800); color: var(--gold-bright);
  font-size: 12.5px; font-weight: 600; word-break: break-all;
  padding: 10px 12px; border-radius: 9px; margin-bottom: 10px;
}
.share-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.share-actions .btn { flex: 1 1 auto; }

/* ===== public profile page ===== */
.pro-body { background: var(--bg); }
.pro-loading { min-height: 60vh; }
.pro-wrap { max-width: 560px; margin: 0 auto; padding-bottom: 30px; }

.pro-hero {
  position: relative; isolation: isolate;
  background: linear-gradient(165deg, #26313F 0%, #1B2431 55%, #0C1017 100%);
  padding: 14px 16px 26px; text-align: center; color: #fff;
}
.pro-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: repeating-linear-gradient(135deg, rgba(224,168,60,.055) 0 2px, transparent 2px 22px);
}
.pro-lang { justify-content: center; margin-bottom: 16px; }
.pro-lang .lang-btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #C6CEDA; }
.pro-lang .lang-btn.active { background: var(--gold); border-color: var(--gold); color: #2A1D05; }

.pro-avatar {
  width: 92px; height: 92px; margin: 0 auto 12px; border-radius: 20px;
  background: var(--steel-700); color: var(--gold-bright);
  font-size: 38px; font-weight: 900; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 2px var(--gold-deep), 0 8px 24px rgba(0,0,0,.4);
}
.pro-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pro-id h1 { font-size: 25px; font-weight: 800; letter-spacing: -.01em; }
.pro-trade { color: var(--gold-bright); font-size: 14px; font-weight: 700; margin-top: 3px; }
.pro-verified {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  padding: 5px 12px 5px 7px; border-radius: 999px;
  background: rgba(224,168,60,.14); box-shadow: inset 0 0 0 1px rgba(224,168,60,.45);
  font-size: 11.5px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gold-bright);
}
.pro-verified img { display: block; }

.pro-badges { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-top: 18px; }
.pro-badge {
  font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.1); color: #E6EBF2;
}
.pro-badge-soft { background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); color: #AEB8C6; }

.pro-main { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.pro-section { background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: 0 1px 3px rgba(18,22,31,.07); }
.pro-section h2 {
  font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--steel-700); margin-bottom: 10px;
}
.pro-bio { font-size: 14.5px; line-height: 1.6; white-space: pre-wrap; }
.pro-areas { font-size: 14.5px; line-height: 1.5; }

.pro-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pro-shot { border-radius: 10px; overflow: hidden; background: var(--bg); cursor: zoom-in; }
.pro-shot img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.pro-shot figcaption { font-size: 11.5px; line-height: 1.35; color: var(--ink-soft); padding: 7px 8px; }
.pro-empty { grid-column: 1 / -1; color: var(--ink-soft); font-size: 13.5px; text-align: center; padding: 14px 0; }

.pro-contact { padding: 0 16px; display: flex; flex-direction: column; gap: 9px; }
.pro-contact .btn { text-align: center; text-decoration: none; display: block; }

.pro-footer {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 26px 16px 10px; color: var(--ink-soft);
  font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
}

.pro-missing { max-width: 420px; margin: 0 auto; padding: 90px 24px; text-align: center; }
.pro-missing img { margin: 0 auto 18px; display: block; }
.pro-missing h1 { font-size: 21px; margin-bottom: 8px; }
.pro-missing p { color: var(--ink-soft); font-size: 14px; }

.pro-lightbox {
  position: fixed; inset: 0; z-index: 80; background: rgba(8,11,16,.94);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.pro-lightbox img { max-width: 100%; max-height: 78vh; border-radius: 10px; display: block; }
.pro-lightbox figcaption { color: #D6DCE5; font-size: 13.5px; text-align: center; margin-top: 12px; }
.pro-lb-close {
  position: absolute; top: 14px; right: 16px; width: 40px; height: 40px;
  border: 0; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff;
  font-size: 26px; line-height: 1; cursor: pointer; font-family: inherit;
}

@media (max-width: 360px) {
  .pf-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== toast ===== */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 11px 20px;
  border-radius: 999px; font-size: 14px; z-index: 99;
  box-shadow: 0 8px 24px rgba(0,0,0,.25); white-space: nowrap;
}

/* ===== admin page ===== */
.admin-wrap { max-width: 760px; margin: 0 auto; padding: 24px 16px 60px; }
.admin-wrap h1 { font-size: 22px; margin-bottom: 4px; }
/* admin header brand lockup */
.admin-brand { display: flex; align-items: center; gap: 10px; }
.admin-brand img { display: block; flex: 0 0 34px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.admin-auth-card { max-width: 400px; margin: 30px auto 0; }
.admin-auth-card .admin-sub { margin-bottom: 14px; }
.admin-sub { color: var(--ink-soft); font-size: 13.5px; margin-bottom: 20px; }
.admin-card { background: var(--card); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-grid .full { grid-column: 1 / -1; }
.admin-card label { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); display: flex; flex-direction: column; gap: 5px; }
.admin-card input, .admin-card select, .admin-card textarea {
  padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 9px;
  font-size: 14.5px; font-family: inherit;
}
.magic-link {
  background: var(--blue-soft); color: var(--blue); font-size: 12.5px;
  padding: 8px 10px; border-radius: 8px; word-break: break-all; margin-top: 8px;
  display: block; text-decoration: none;
}
.admin-job { border-top: 1px solid var(--line); padding: 14px 0; }
.admin-job-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
