@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800; src: url("../fonts/manrope-latin-wght-normal.fc03edc2c673.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800; src: url("../fonts/manrope-latin-ext-wght-normal.91e6441f12d2.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* TrainLink design system — colours from the TrainLink® Brand Identity file (Figma) */
:root {
  --green-100: #31EBA8; --green-80: #68F0BF; --green-60: #84F3CB; --green-40: #9FF6D7; --green-20: #BAF8E2; --green-10: #D6FBEE;
  --petrol-100: #014751; --petrol-80: #25656B; --petrol-60: #488385; --petrol-40: #6CA1A0; --petrol-20: #8FBFBA; --petrol-10: #B2DDD4;
  --mint-100: #BDFFDD; --mint-200: #0F2830; --lilac-100: #D8C8FD; --lilac-200: #281F3F;
  --ink: #111417; --ink-2: #4A5258; --ink-3: #7C858B; --line: #E4E7E6; --bg: #F4F5F4; --card: #FFFFFF;
  --danger: #C2412D; --danger-bg: #FDECE8; --warn: #8A5A00; --warn-bg: #FFF4D6; --info-bg: #EEE8FE;
  --radius: 16px; --radius-sm: 10px; --shadow: 0 1px 2px rgba(15, 40, 48, .06), 0 4px 16px rgba(15, 40, 48, .05);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; font-size: 15px; }
a { color: var(--petrol-100); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-3); }
.small { font-size: .85rem; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-main { grid-template-columns: 2fr 1fr; } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 560px) and (max-width: 999px) { .grid-4 { grid-template-columns: 1fr 1fr; } }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; font-weight: 500; font-size: 1.3rem; letter-spacing: -.02em; }
.logo svg { width: 22px; height: 22px; }
.logo sup { font-size: .45em; margin-left: -4px; }

/* ---------- App top bar (dark lilac, as in prototype) ---------- */
.topbar { background: var(--lilac-200); color: #fff; position: sticky; top: 0; z-index: 20; }
.topbar .container { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.topbar .logo { color: #fff; }
.nav { display: none; gap: 4px; margin-left: 24px; }
.nav a { color: rgba(255,255,255,.82); text-decoration: none; padding: 21px 12px; font-size: .9rem; border-bottom: 2px solid transparent; display: flex; gap: 6px; align-items: center; }
.nav a:hover { color: #fff; }
.nav a.active { color: var(--green-100); border-bottom-color: var(--green-100); }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--lilac-100); color: var(--lilac-200); display: grid; place-items: center; font-weight: 700; font-size: .85rem; overflow: hidden; flex: none; object-fit: cover; }
.avatar.lg { width: 96px; height: 96px; font-size: 1.6rem; }
.avatar.sq { border-radius: 14px; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu .dropdown { position: absolute; right: 0; top: 48px; background: #fff; color: var(--ink); border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.18); min-width: 220px; padding: 8px; }
.menu .dropdown a, .menu .dropdown button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; }
.menu .dropdown a:hover, .menu .dropdown button:hover { background: var(--bg); }
.menu .dropdown .who { padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; font-size: .85rem; }
.mobile-nav { display: flex; overflow-x: auto; gap: 4px; background: var(--lilac-200); padding: 0 8px 8px; }
.mobile-nav a { color: rgba(255,255,255,.82); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: .85rem; white-space: nowrap; }
.mobile-nav a.active { background: var(--green-100); color: var(--mint-200); }
@media (min-width: 860px) { .nav { display: flex; } .mobile-nav { display: none; } }

/* ---------- Page ---------- */
main.page { padding: 28px 0 64px; }
.page-head { display: flex; gap: 12px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { margin: 0; }
.crumbs { font-size: .85rem; margin-bottom: 8px; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 10px 0; text-decoration: none; color: var(--ink-3); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.active { color: var(--petrol-100); border-bottom-color: var(--petrol-100); }

/* ---------- Cards ---------- */
.card { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-head h2, .card-head h3 { margin: 0; }
.card.petrol { background: var(--petrol-100); color: #fff; }
.card.petrol h2 { color: var(--green-100); }
.card.lilac { background: var(--lilac-100); color: var(--lilac-200); position: relative; overflow: hidden; }
.card.mint { background: var(--green-10); }
.empty { text-align: center; color: var(--ink-3); padding: 28px 12px; }
.stat { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; }
.divider { height: 1px; background: var(--line); margin: 16px 0; border: 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 10px 20px; font: 600 .9rem/1.2 var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .05s, background .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green-100); color: var(--mint-200); }
.btn-primary:hover { background: var(--green-80); }
.btn-dark { background: var(--petrol-100); color: #fff; }
.btn-dark:hover { background: var(--petrol-80); }
.btn-soft { background: var(--petrol-10); color: var(--petrol-100); }
.btn-soft:hover { background: var(--green-20); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--petrol-40); }
.btn-danger { background: var(--danger-bg); color: var(--danger); }
.btn-sm { padding: 7px 14px; font-size: .82rem; }
.btn-block { width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--petrol-100); cursor: pointer; text-decoration: underline; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--bg); color: var(--ink-2); white-space: nowrap; }
.badge.green { background: var(--green-20); color: var(--petrol-100); }
.badge.petrol { background: var(--petrol-100); color: #fff; }
.badge.lilac { background: var(--lilac-100); color: var(--lilac-200); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.danger { background: var(--danger-bg); color: var(--danger); }
.chip { display: inline-block; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: .78rem; color: var(--ink-2); background: #fff; margin: 0 4px 4px 0; }
.status-open, .status-approved, .status-shortlisted { background: var(--green-20); color: var(--petrol-100); }
.status-awaiting_approval, .status-pending { background: var(--warn-bg); color: var(--warn); }
.status-rejected, .status-declined { background: var(--danger-bg); color: var(--danger); }
.status-draft, .status-closed, .status-withdrawn { background: #ECEEEE; color: var(--ink-2); }

/* ---------- Forms ---------- */
label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; font: 400 .95rem/1.4 var(--font); padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green-60); outline-offset: 0; border-color: var(--petrol-40); }
.field { margin-bottom: 18px; }
.field .help { font-size: .8rem; color: var(--ink-3); margin-top: 4px; }
.field .errorlist, .errorlist { list-style: none; padding: 0; margin: 6px 0 0; color: var(--danger); font-size: .82rem; }
.form-errors { background: var(--danger-bg); color: var(--danger); padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .9rem; }
.form-errors ul { margin: 0; padding-left: 0; list-style: none; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices > div { display: contents; }
.choices label { font-weight: 500; display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--line); background: #fff; padding: 8px 12px; border-radius: 999px; cursor: pointer; margin: 0; font-size: .85rem; }
.choices label:has(input:checked) { background: var(--green-10); border-color: var(--green-100); color: var(--petrol-100); }
.choices input { accent-color: var(--petrol-100); margin: 0; }
.role-pick { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.role-pick > div { display: contents; }
.role-pick label { border: 1.5px solid var(--line); border-radius: 14px; padding: 16px; cursor: pointer; text-align: center; font-size: .92rem; background: #fff; margin: 0; }
.role-pick label:has(input:checked) { border-color: var(--petrol-100); background: var(--green-10); }
.role-pick input { display: none; }
.checkbox-line { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters input[type=search] { max-width: 280px; border-radius: 999px; }
.filters select { width: auto; border-radius: 999px; padding: 8px 14px; font-size: .85rem; }
.section-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 24px 0 12px; font-weight: 700; }
.pw-rules { font-size: .8rem; color: var(--ink-3); padding-left: 18px; margin: 6px 0 0; }

/* ---------- Auth (split screen, as in prototype) ---------- */
.auth { min-height: 100vh; display: grid; background: #fff; }
.auth-art { display: none; background: var(--petrol-100) center/cover; position: relative; }
.auth-art .quote { position: absolute; left: 32px; right: 32px; bottom: 32px; color: #fff; }
.auth-art .quote p { font-size: 1.5rem; line-height: 1.25; }
.auth-form { padding: 32px 16px; display: flex; flex-direction: column; }
.auth-form .inner { width: 100%; max-width: 420px; margin: auto; padding: 24px 0; }
@media (min-width: 900px) { .auth { grid-template-columns: 1fr 1fr; } .auth-art { display: block; } .auth-form { padding: 40px; } }

/* ---------- Lists / tables ---------- */
.table { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
.table th { text-align: left; font-size: .78rem; color: var(--ink-3); font-weight: 600; padding: 0 14px; }
.table td { background: #fff; padding: 14px; vertical-align: middle; }
.table td:first-child { border-radius: 12px 0 0 12px; }
.table td:last-child { border-radius: 0 12px 12px 0; text-align: right; }
.table-wrap { overflow-x: auto; }
@media (max-width: 719px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { background: #fff; border-radius: 12px; margin-bottom: 10px; padding: 8px 0; }
  .table td { padding: 6px 14px; border-radius: 0 !important; text-align: left !important; }
  .table td[data-label]::before { content: attr(data-label) ": "; color: var(--ink-3); font-size: .8rem; }
}
.person-card { text-align: left; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; }
.person-card .photo { aspect-ratio: 1 / 1; border-radius: 14px; background: var(--lilac-100); overflow: hidden; display: grid; place-items: center; font-size: 2rem; font-weight: 700; color: var(--lilac-200); }
.person-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.person-card h3 { margin: 4px 0 0; }
.job-card { display: flex; flex-direction: column; gap: 10px; }
.job-card h3 a { color: inherit; text-decoration: none; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .85rem; color: var(--ink-2); }
.meta span { display: inline-flex; gap: 6px; align-items: center; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; font-size: .9rem; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; }
.prose { white-space: pre-line; }
.progress { height: 8px; background: rgba(255,255,255,.2); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--green-100); }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }

/* ---------- Messages ---------- */
.messages { position: fixed; right: 16px; left: 16px; bottom: 16px; z-index: 50; display: grid; gap: 8px; pointer-events: none; }
@media (min-width: 720px) { .messages { left: auto; width: 380px; } }
.msg { pointer-events: auto; background: var(--mint-200); color: #fff; padding: 14px 16px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.2); font-size: .9rem; display: flex; gap: 10px; align-items: flex-start; animation: slidein .25s ease-out; }
.msg::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green-100); margin-top: 6px; flex: none; }
.msg.error::before { background: #FF7A62; }
.msg.warning::before { background: #F6C445; }
.msg button { margin-left: auto; background: none; border: 0; color: rgba(255,255,255,.7); cursor: pointer; font-size: 1.1rem; line-height: 1; }
@keyframes slidein { from { transform: translateY(8px); opacity: 0; } }
.notice { padding: 14px 16px; border-radius: 12px; font-size: .9rem; margin-bottom: 16px; }
.notice.warn { background: var(--warn-bg); color: var(--warn); }
.notice.danger { background: var(--danger-bg); color: var(--danger); }
.notice.info { background: var(--info-bg); color: var(--lilac-200); }
.notice.ok { background: var(--green-10); color: var(--petrol-100); }

/* ---------- Landing (public) ---------- */
.pub-header { padding: 6px 0 12px; position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); }
.pub-header .bar { background: #F4F4F4; border-radius: 12px; padding: 10px 16px; display: flex; align-items: center; gap: 24px; }
.pub-header nav { display: none; gap: 24px; }
.pub-header nav a { color: var(--ink); text-decoration: none; font-size: .9rem; }
.pub-header .right { margin-left: auto; display: flex; gap: 8px; }
@media (min-width: 800px) { .pub-header nav { display: flex; } }
.landing { background: #fff; }
.hero { position: relative; text-align: center; padding: 72px 0 88px; overflow: hidden; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 500; max-width: 14ch; margin: 0 auto 20px; letter-spacing: -.03em; }
.hero p.lead { max-width: 540px; margin: 0 auto 28px; color: var(--ink-2); font-size: 1.05rem; }
.hero .floaters { display: none; }
@media (min-width: 1000px) {
  .hero { padding: 120px 0 140px; }
  .hero .floaters { display: block; position: absolute; inset: 0; pointer-events: none; }
  .hero .floaters span { position: absolute; width: 96px; height: 108px; border-radius: 10px; background: var(--c, var(--green-20)); box-shadow: var(--shadow); display: grid; place-items: center; font-weight: 700; color: var(--petrol-100); font-size: 1.3rem; overflow: hidden; }
  .hero .floaters img { width: 100%; height: 100%; object-fit: cover; }
}
.searchbox { display: flex; gap: 8px; max-width: 620px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px; box-shadow: var(--shadow); }
.searchbox select { width: auto; border: 0; border-radius: 999px; background: var(--bg); font-size: .85rem; }
.searchbox input { border: 0; flex: 1; min-width: 0; }
.searchbox input:focus { outline: none; }
.band { padding: 72px 0; }
.band.grey { background: #F4F4F4; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 12px; align-items: center; }
.steps .badge { background: #fff; border: 1px solid var(--line); }
.feature { background: #F4F4F4; border-radius: 16px; padding: 28px; }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--green-100); display: grid; place-items: center; margin-bottom: 16px; }
.cta-band { background: var(--green-40); border-radius: 20px; padding: 56px 24px; text-align: center; }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 500; max-width: 22ch; margin: 0 auto 16px; }
.footer { background: var(--petrol-100); color: #fff; padding: 48px 0 0; margin-top: 72px; overflow: hidden; }
.footer .cols { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; }
@media (min-width: 800px) { .footer .cols { grid-template-columns: repeat(5, 1fr); } }
.footer h4 { color: var(--green-100); font-size: .8rem; font-weight: 500; margin-bottom: 10px; }
.footer a { color: #fff; text-decoration: none; display: block; font-size: .85rem; margin-bottom: 6px; opacity: .9; }
.footer .giant { color: var(--green-100); font-size: clamp(4rem, 17vw, 15rem); font-weight: 500; letter-spacing: -.05em; line-height: .9; margin: 40px 0 -.08em; display: flex; align-items: center; gap: .1em; white-space: nowrap; }
.footer .giant svg { width: .8em; height: .8em; flex: none; }
.app-footer { padding: 24px 0; color: var(--ink-3); font-size: .8rem; }
.app-footer a { color: var(--ink-3); margin-right: 16px; }

/* utility */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.w-full { width: 100%; } .text-right { text-align: right; } .center { text-align: center; }
.hide-sm { display: none; } @media (min-width: 720px) { .hide-sm { display: initial; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* legal pages */
.legal h2 { font-size: 1.15rem; margin-top: 32px; }
.legal h3 { font-size: 1rem; margin-top: 20px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ol, .legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal .toc { background: var(--bg); border-radius: 12px; padding: 16px 20px; columns: 2 220px; font-size: .9rem; }
.legal .toc a { display: block; margin-bottom: 4px; }

/* ===== Round 2 ===== */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.choice-group { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 16px; margin: 0 0 18px; background: #FBFCFB; }
.choice-group legend { font-weight: 700; font-size: .95rem; padding: 0 6px; margin-left: -6px; }
.choice-group .help { margin: -2px 0 10px; }
.choice-group .choices { margin-top: 4px; }
.choice-search { max-width: 320px; margin-bottom: 10px; border-radius: 999px !important; padding: 8px 14px !important; font-size: .85rem !important; }
.req { color: var(--danger); font-weight: 700; }
.chip { white-space: normal; text-align: left; line-height: 1.35; max-width: 100%; }
.other-exp { margin-top: 10px; font-size: .9rem; color: var(--ink-2); }
.other-exp strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 2px; }
/* password */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 64px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; font: 600 .8rem var(--font); color: var(--petrol-100); cursor: pointer; padding: 6px 8px; }
.pw-rules { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; }
.pw-rules li { font-size: .8rem; color: var(--ink-3); display: flex; gap: 8px; align-items: center; }
.pw-rules li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line); flex: none; }
.pw-rules li.ok { color: var(--petrol-100); }
.pw-rules li.ok::before { background: var(--green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%23014751' stroke-width='2' fill='none'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--green-100); }
.pw-match { font-size: .8rem; margin-top: 6px; }
/* photo */
.photo-field { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.photo-preview { width: 112px; height: 112px; border-radius: 16px; background: var(--lilac-100); display: grid; place-items: center; overflow: hidden; color: var(--lilac-200); font-weight: 700; font-size: 1.6rem; flex: none; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-actions { display: flex; flex-direction: column; gap: 8px; }
.photo-actions input[type=file] { display: none; }
.modal { position: fixed; inset: 0; background: rgba(15, 40, 48, .7); z-index: 80; display: none; place-items: center; padding: 16px; }
.modal.open { display: grid; }
.modal .sheet { background: #fff; border-radius: 16px; padding: 20px; width: min(560px, 100%); max-height: 92vh; overflow: auto; }
.crop-area { width: 100%; height: min(60vh, 420px); background: #111; border-radius: 10px; overflow: hidden; }
.crop-area img { max-width: 100%; display: block; }
/* service areas */
.area-picker { display: grid; gap: 10px; }
.area-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.area-row select { width: auto; min-width: 180px; }
.area-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.area-tag { display: inline-flex; gap: 6px; align-items: center; background: var(--green-10); color: var(--petrol-100); border-radius: 999px; padding: 5px 6px 5px 12px; font-size: .82rem; font-weight: 600; }
.area-tag button { background: #fff; border: 0; border-radius: 50%; width: 20px; height: 20px; cursor: pointer; color: var(--ink-2); line-height: 1; }
.region-checks { display: none; }
.region-checks.show { display: flex; }
/* profile header (marketplace-style) */
.profile-head { display: grid; gap: 20px; grid-template-columns: auto 1fr; align-items: start; }
@media (max-width: 640px) { .profile-head { grid-template-columns: 1fr; } }
.profile-head .avatar.xl { width: 120px; height: 120px; border-radius: 20px; font-size: 2rem; }
.profile-head h1 { margin: 0 0 4px; }
.profile-head .headline { font-size: 1.05rem; color: var(--ink-2); margin-bottom: 14px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.fact { display: flex; gap: 10px; align-items: center; }
.fact svg { width: 18px; height: 18px; color: var(--petrol-60); flex: none; }
.fact .k { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); display: block; }
.fact .v { font-size: .92rem; font-weight: 600; color: var(--ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; background: var(--ink-3); }
.dot.on { background: #22B573; }
.rate-big { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; }
.rate-big small { font-size: .85rem; color: var(--ink-3); font-weight: 500; }
.section-card h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 12px; }
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.doc-list li { display: flex; gap: 10px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: .88rem; }
.doc-list a { text-decoration: none; font-weight: 600; word-break: break-all; }
.doc-kind { font-size: .72rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
/* review page */
.review-section { padding: 16px 0; border-top: 1px solid var(--line); }
.review-section:first-of-type { border-top: 0; padding-top: 4px; }
.review-section h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 0 0 8px; }
/* chat */
.nav .badge-count, .mobile-nav .badge-count { background: var(--green-100); color: var(--mint-200); border-radius: 999px; font-size: .7rem; font-weight: 700; padding: 1px 7px; margin-left: 2px; }
.chat-layout { display: grid; gap: 16px; }
@media (min-width: 960px) { .chat-layout { grid-template-columns: 1fr 340px; } }
.thread { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; height: min(70vh, 720px); }
.thread-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; }
.thread-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: #FAFBFA; }
.bubble { max-width: 78%; padding: 10px 14px; border-radius: 16px; font-size: .92rem; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.bubble.me { align-self: flex-end; background: var(--petrol-100); color: #fff; border-bottom-right-radius: 4px; }
.bubble.them { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble.sys { align-self: center; background: var(--lilac-100); color: var(--lilac-200); font-size: .82rem; max-width: 92%; text-align: center; border-radius: 12px; }
.bubble .meta { font-size: .7rem; opacity: .7; margin-top: 4px; display: flex; gap: 8px; justify-content: space-between; }
.bubble.me a { color: var(--green-40); }
.bubble.me .meta, .bubble.me .meta span { color: rgba(255,255,255,.8); opacity: 1; }
.bubble .file { display: inline-flex; gap: 6px; align-items: center; margin-top: 6px; font-weight: 600; }
.composer { border-top: 1px solid var(--line); padding: 12px; display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { min-height: 44px; max-height: 160px; }
.composer label.attach { margin: 0; cursor: pointer; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 1rem; }
.composer input[type=file] { display: none; }
.inbox-item { display: flex; gap: 12px; align-items: center; padding: 14px 16px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--line); }
.inbox-item:hover { background: var(--bg); }
.inbox-item .preview { color: var(--ink-3); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-item.unread strong { color: var(--petrol-100); }
.offer-card { border: 2px solid var(--green-60); border-radius: 14px; padding: 16px; background: var(--green-10); }
.offer-card .total { font-size: 1.4rem; font-weight: 700; }
.steps-mini { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: s; }
.steps-mini li { display: flex; gap: 10px; font-size: .88rem; color: var(--ink-2); }
.steps-mini li::before { counter-increment: s; content: counter(s); width: 22px; height: 22px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-size: .75rem; font-weight: 700; flex: none; }
.steps-mini li.done::before { background: var(--green-100); content: "✓"; }
.steps-mini li.now::before { background: var(--petrol-100); color: #fff; }
.can-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .88rem; }
.can-list li::before { content: "✓ "; color: var(--green-100); font-weight: 700; }
.can-list li.no::before { content: "○ "; color: rgba(255,255,255,.5); }
.report-link { font-size: .8rem; color: var(--ink-3); }
.welcome-title { margin-top: 12px; }
.status-hired, .status-filled, .status-active, .status-accepted { background: var(--petrol-100); color: #fff; }
.status-completed { background: var(--green-20); color: var(--petrol-100); }
.status-cancelled, .status-countered { background: #ECEEEE; color: var(--ink-2); }
