:root {
  --bg: var(--tg-theme-bg-color, #f4f6fb);
  --surface: var(--tg-theme-secondary-bg-color, #ffffff);
  --surface-2: #f8f9fc;
  --text: var(--tg-theme-text-color, #16181d);
  --muted: var(--tg-theme-hint-color, #7b8190);
  --link: var(--tg-theme-link-color, #4169e1);
  --accent: var(--tg-theme-button-color, #4169e1);
  --accent-text: var(--tg-theme-button-text-color, #ffffff);
  --border: rgba(120, 128, 150, .16);
  --shadow: 0 14px 40px rgba(34, 42, 70, .08);
  --green: #1f9d68;
  --orange: #df8a25;
  --red: #d95757;
  --purple: #7457df;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --safe-bottom: max(12px, env(safe-area-inset-bottom));
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { min-height: 100vh; min-height: 100dvh; overscroll-behavior: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
button, .chip, .job-card, .action-card, .nav-item { -webkit-tap-highlight-color: transparent; }

#app { min-height: 100vh; min-height: 100dvh; }
.app-shell { min-height: 100vh; min-height: 100dvh; padding-bottom: 92px; }
.page { width: min(720px, 100%); margin: 0 auto; padding: 16px 16px 28px; }

.splash { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 12px; }
.splash-mark { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 22px; font-size: 32px; background: linear-gradient(135deg, var(--accent), #8d6bf4); color: white; box-shadow: var(--shadow); }
.splash-title { font-weight: 800; font-size: 24px; }
.splash-subtitle { color: var(--muted); font-size: 14px; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 20px; }
.eyebrow { color: var(--muted); font-size: 13px; margin-bottom: 3px; }
.topbar h1, .page-title { margin: 0; font-size: 27px; line-height: 1.1; letter-spacing: -.03em; }
.dev-badge { border: 0; background: rgba(116, 87, 223, .12); color: #7658d8; border-radius: 999px; padding: 9px 12px; font-size: 12px; font-weight: 700; }
.avatar { width: 44px; height: 44px; min-width: 44px; max-width: 44px; flex: 0 0 44px; box-sizing: border-box; padding: 0; margin: 0; border: 0; border-radius: 16px; background: linear-gradient(135deg, #6b7cff, #8f67e8); color: white; display: grid; place-items: center; font-weight: 800; font-size: 18px; line-height: 1; overflow: hidden; -webkit-appearance: none; appearance: none; }
.avatar img { width: 100%; height: 100%; min-width: 100%; max-width: none; object-fit: cover; object-position: center; display: block; margin: 0; padding: 0; pointer-events: none; }

.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #3d5ee9 0%, #7457df 58%, #9166ed 100%); color: white; padding: 23px; border-radius: var(--radius-xl); box-shadow: 0 18px 42px rgba(79, 88, 210, .28); margin-bottom: 14px; }
.hero::after { content: ""; position: absolute; width: 190px; height: 190px; border-radius: 50%; right: -70px; top: -70px; background: rgba(255,255,255,.12); }
.hero::before { content: ""; position: absolute; width: 115px; height: 115px; border-radius: 36px; right: 22px; bottom: -74px; transform: rotate(35deg); background: rgba(255,255,255,.08); }
.hero-kicker { font-size: 13px; font-weight: 750; opacity: .82; text-transform: uppercase; letter-spacing: .08em; }
.hero-title { font-size: 32px; font-weight: 850; letter-spacing: -.045em; margin: 8px 0 5px; }
.hero-sub { max-width: 300px; opacity: .86; line-height: 1.45; font-size: 14px; }
.hero-button { margin-top: 20px; border: 0; border-radius: 15px; padding: 13px 16px; background: white; color: #4c55c8; font-weight: 800; box-shadow: 0 8px 24px rgba(35,42,120,.18); }

.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.action-card { border: 1px solid var(--border); background: var(--surface); text-align: left; padding: 18px; border-radius: var(--radius-lg); min-height: 140px; box-shadow: 0 7px 20px rgba(36, 43, 68, .04); position: relative; overflow: hidden; }
.action-card .icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 15px; font-size: 23px; margin-bottom: 18px; }
.action-card.search .icon { background: rgba(65,105,225,.12); }
.action-card.watch .icon { background: rgba(223,138,37,.13); }
.action-card strong { display: block; font-size: 17px; line-height: 1.18; margin-bottom: 5px; }
.action-card span { color: var(--muted); font-size: 12px; line-height: 1.35; display: block; padding-right: 20px; }
.action-card .corner-icon { position: absolute; right: 15px; top: 16px; width: 34px; height: 34px; padding: 0; border-radius: 13px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); line-height: 0; }
.action-card .corner-icon svg { width: 18px; height: 18px; display: block; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.action-card.search .corner-icon { color: #878d9b; }
.action-card.watch .corner-icon { color: var(--orange); background: rgba(223,138,37,.10); }

.wide-card { width: 100%; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-lg); padding: 18px; display: flex; align-items: center; gap: 14px; text-align: left; margin-top: 12px; }
.wide-icon { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; background: rgba(31,157,104,.12); border-radius: 16px; font-size: 22px; }
.wide-card strong { display: block; font-size: 16px; margin-bottom: 3px; }
.wide-card span { color: var(--muted); font-size: 13px; }
.chevron { margin-left: auto; color: var(--muted); font-size: 20px; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin: 25px 0 12px; }
.section-head h2 { font-size: 19px; margin: 0; letter-spacing: -.025em; }
.section-head button { border: 0; background: transparent; color: var(--link); font-weight: 700; font-size: 13px; }

.nav { position: fixed; z-index: 40; bottom: 0; left: 0; right: 0; padding: 8px 12px var(--safe-bottom); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(18px); border-top: 1px solid var(--border); }
.nav-inner { width: min(720px, 100%); margin: auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.nav-item { border: 0; background: transparent; color: var(--muted); display: grid; justify-items: center; gap: 4px; padding: 6px 4px 2px; font-size: 11px; font-weight: 700; }
.nav-item .nav-icon { font-size: 21px; line-height: 1; filter: grayscale(.3); }
.nav-item.active { color: var(--accent); }
.nav-item.active .nav-icon { filter: none; transform: translateY(-1px); }

.page-header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.back { border: 0; width: 42px; height: 42px; flex: 0 0 42px; padding: 0; border-radius: 14px; background: var(--surface); box-shadow: 0 4px 16px rgba(20,25,50,.05); display: grid; place-items: center; line-height: 0; }
.back-icon { width: 20px; height: 20px; display: block; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.back:active .back-icon { transform: scale(.92); }
.page-header-copy h1 { margin: 0; font-size: 25px; letter-spacing: -.035em; }
.page-header-copy p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 18px; box-shadow: 0 8px 28px rgba(30,38,70,.04); margin-bottom: 12px; }
.form-title { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 15px; margin-bottom: 13px; }
.form-title .step-icon { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); font-size: 17px; }
.location-box { width: 100%; border: 1px solid var(--border); background: var(--surface-2); border-radius: 17px; padding: 14px; text-align: left; display: flex; gap: 12px; align-items: center; }
.location-pin { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; background: rgba(65,105,225,.12); font-size: 19px; }
.location-copy { min-width: 0; flex: 1; }
.location-copy strong { display: block; font-size: 14px; margin-bottom: 3px; }
.location-copy span { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.radius-summary { width: 100%; margin-top: 10px; border: 1px solid var(--border); background: color-mix(in srgb, var(--accent) 5%, var(--surface)); border-radius: 17px; padding: 13px 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; text-align: left; }
.radius-summary span { min-width: 0; }
.radius-summary b { display: block; font-size: 13px; }
.radius-summary small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.radius-summary > strong { color: var(--accent); font-size: 19px; font-weight: 900; white-space: nowrap; }

.range-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.range-value { color: var(--accent); font-weight: 850; font-size: 18px; }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.range-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin-top: 5px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--border); background: var(--surface-2); border-radius: 999px; padding: 10px 13px; font-size: 13px; font-weight: 700; }
.chip.active { background: color-mix(in srgb, var(--accent) 13%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 38%, transparent); color: var(--accent); }
.chip.category { border-radius: 14px; padding: 11px 13px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.input-group label { display: block; color: var(--muted); font-size: 12px; font-weight: 700; margin-bottom: 7px; }
.input, .textarea { width: 100%; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); border-radius: 15px; padding: 13px 14px; outline: none; }
.input:focus, .textarea:focus { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent); }
.textarea { min-height: 116px; resize: vertical; line-height: 1.45; }
.input-suffix { position: relative; }
.input-suffix .input { padding-right: 70px; }
.input-suffix span { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 12px; }

.primary { width: 100%; border: 0; border-radius: 17px; padding: 15px 18px; background: linear-gradient(135deg, var(--accent), #7658e4); color: var(--accent-text); font-weight: 850; font-size: 15px; box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 24%, transparent); }
.primary:disabled { opacity: .55; box-shadow: none; }
.secondary { width: 100%; border: 1px solid var(--border); border-radius: 17px; padding: 14px 18px; background: var(--surface); font-weight: 800; }
.danger { color: var(--red); }
.button-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.search-summary { padding: 13px 14px; border-radius: 17px; background: var(--surface); border: 1px solid var(--border); margin-bottom: 12px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.search-summary::-webkit-scrollbar { display: none; }
.summary-pill { white-space: nowrap; background: var(--surface-2); border-radius: 999px; padding: 8px 11px; color: var(--muted); font-size: 12px; font-weight: 700; }

.jobs-list { display: grid; gap: 12px; }
.job-card { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-lg); padding: 18px; text-align: left; box-shadow: 0 8px 26px rgba(27,34,64,.04); }
.job-top { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.category-line { color: var(--muted); font-size: 12px; font-weight: 750; margin-bottom: 8px; }
.job-title { margin: 0; font-size: 19px; line-height: 1.2; letter-spacing: -.025em; }
.rate { font-size: 18px; font-weight: 900; color: var(--accent); white-space: nowrap; }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 15px; }
.meta { padding: 8px 10px; border-radius: 11px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 650; }
.job-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.total { font-size: 13px; color: var(--muted); }
.total strong { color: var(--text); font-size: 16px; }
.details-link { color: var(--accent); font-weight: 800; font-size: 13px; }

.empty { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 30px 22px; text-align: center; }
.empty-icon { font-size: 40px; margin-bottom: 12px; }
.empty h3 { margin: 0 0 8px; font-size: 19px; }
.empty p { margin: 0 auto 18px; max-width: 320px; color: var(--muted); line-height: 1.5; font-size: 13px; }
.watch-cta { margin-top: 14px; background: linear-gradient(135deg, rgba(223,138,37,.14), rgba(116,87,223,.11)); border: 1px solid rgba(190,130,80,.18); border-radius: var(--radius-lg); padding: 18px; }
.watch-cta strong { display: block; margin-bottom: 5px; }
.watch-cta p { color: var(--muted); font-size: 13px; line-height: 1.45; margin: 0 0 14px; }

.search-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 17px; margin-bottom: 12px; }
.search-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.search-card h3 { margin: 0; font-size: 17px; }
.search-status { width: 11px; height: 11px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 5px color-mix(in srgb, var(--muted) 12%, transparent); }
.search-status.on { background: var(--green); box-shadow: 0 0 0 5px rgba(31,157,104,.12); }
.search-details { display: flex; flex-wrap: wrap; gap: 7px; margin: 13px 0 15px; }
.search-actions { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.small-button { border: 1px solid var(--border); background: var(--surface-2); border-radius: 13px; padding: 11px 13px; font-size: 12px; font-weight: 800; }

.profile-head { background: linear-gradient(135deg, rgba(65,105,225,.12), rgba(116,87,223,.13)); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 20px; margin-bottom: 12px; }
.profile-id { display: flex; align-items: center; gap: 15px; }
.profile-id > div:last-child { min-width: 0; flex: 1 1 auto; }
.profile-avatar { width: 72px; height: 72px; min-width: 72px; flex: 0 0 72px; aspect-ratio: 1 / 1; border-radius: 22px; overflow: hidden; background: linear-gradient(135deg, #6d7ff2, #8b64dd); color: white; display: grid; place-items: center; font-size: 27px; font-weight: 850; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-id h1 { margin: 0 0 5px; font-size: 24px; letter-spacing: -.035em; }
.profile-id p { margin: 0; color: var(--muted); font-size: 13px; }
.reliability { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; margin-top: 11px; padding: 8px 11px; font-size: 12px; font-weight: 800; background: var(--surface); }
.reliability.high { color: var(--green); }
.reliability.medium, .reliability.forming { color: var(--orange); }
.reliability.low { color: var(--red); }
.reliability.new { color: var(--purple); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.stat { background: color-mix(in srgb, var(--surface) 82%, transparent); border-radius: 16px; padding: 13px 8px; text-align: center; }
.stat strong { display: block; font-size: 20px; }
.stat span { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; line-height: 1.2; }

.avatar-editor { display: flex; align-items: center; gap: 15px; }
.avatar-preview { flex: 0 0 82px; width: 82px; height: 82px; min-width: 82px; border-radius: 24px; }
.avatar-editor-copy { min-width: 0; flex: 1; }
.avatar-editor-copy > strong { display: block; font-size: 15px; margin-bottom: 5px; }
.avatar-editor-copy > span { display: block; color: var(--muted); font-size: 11px; line-height: 1.45; }
.avatar-editor-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.avatar-upload-button { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.avatar-upload-button input { display: none; }
.form-note { color: var(--muted); font-size: 11px; line-height: 1.45; margin: -2px 0 12px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; align-items: start; }
.photo-item, .photo-add { aspect-ratio: 9 / 16; border-radius: 17px; overflow: hidden; position: relative; border: 1px solid var(--border); background: var(--surface-2); }
.photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; position: relative; z-index: 2; }
.photo-fallback { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 5px; color: var(--muted); text-align: center; padding: 8px; z-index: 1; }
.photo-fallback span { font-size: 23px; line-height: 1; }
.photo-fallback small { font-size: 9px; line-height: 1.2; }
.photo-item.image-ready .photo-fallback { display: none; }
.photo-delete { position: absolute; top: 7px; right: 7px; width: 27px; height: 27px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(14,18,28,.82); color: white; font-size: 18px; line-height: 1; z-index: 4; box-shadow: 0 4px 12px rgba(0,0,0,.24); }
.photo-add { display: block; color: var(--muted); border-style: dashed; cursor: pointer; }
.photo-add > div { position: absolute; inset: 0; }
.photo-add strong { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: block; margin: 0; font-size: 28px; font-weight: 400; line-height: 1; text-align: center; }
.photo-add span { position: absolute; left: 0; right: 0; top: calc(50% + 30px); display: block; margin: 0; font-size: 10px; line-height: 1.2; text-align: center; }
.photo-add input { display: none; }

.crop-stage {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #0d0f15;
  border: 1px solid var(--border);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  overscroll-behavior: contain;
}
.crop-stage.avatar-crop {
  aspect-ratio: 1 / 1;
}
.crop-stage.portrait-crop {
  aspect-ratio: 9 / 16;
  width: min(100%, calc(56dvh * 9 / 16));
  margin-inline: auto;
}
.crop-stage > img {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: none;
  max-height: none;
  transform-origin: center center;
  will-change: transform;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.crop-frame {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border: 2px solid rgba(255,255,255,.88);
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.18);
}
.crop-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .48;
}
.crop-grid span { position: absolute; background: rgba(255,255,255,.6); }
.crop-grid span:nth-child(1), .crop-grid span:nth-child(2) { top: 0; bottom: 0; width: 1px; }
.crop-grid span:nth-child(1) { left: 33.333%; }
.crop-grid span:nth-child(2) { left: 66.666%; }
.crop-grid span:nth-child(3), .crop-grid span:nth-child(4) { left: 0; right: 0; height: 1px; }
.crop-grid span:nth-child(3) { top: 33.333%; }
.crop-grid span:nth-child(4) { top: 66.666%; }
.crop-hint {
  margin: 11px 2px 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}
.crop-zoom {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  gap: 8px;
  padding: 8px 4px 12px;
}
.crop-zoom > span {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}
.crop-zoom input[type="range"] { margin: 0; }
.crop-actions {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  gap: 9px;
}
.crop-actions .primary, .crop-actions .secondary { min-height: 50px; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border: 1px solid var(--border); padding: 5px; border-radius: 16px; margin-bottom: 14px; }
.tab { border: 0; background: transparent; border-radius: 12px; padding: 11px; color: var(--muted); font-size: 13px; font-weight: 800; }
.tab.active { background: var(--surface-2); color: var(--text); box-shadow: 0 4px 12px rgba(25,30,50,.05); }
.list-row { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 16px; margin-bottom: 10px; }
.list-row-head { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.list-row h3 { margin: 0; font-size: 16px; }
.status-label { font-size: 11px; font-weight: 800; color: var(--accent); background: color-mix(in srgb, var(--accent) 11%, var(--surface)); padding: 7px 9px; border-radius: 999px; white-space: nowrap; }
.list-row p { color: var(--muted); font-size: 12px; line-height: 1.45; margin: 10px 0 0; }

.modal-backdrop { position: fixed; z-index: 100; inset: 0; background: rgba(12,16,28,.42); display: flex; align-items: end; justify-content: center; backdrop-filter: blur(3px); }
.sheet { width: min(720px, 100%); max-height: 92vh; max-height: 92dvh; overflow-y: auto; background: var(--bg); border-radius: 30px 30px 0 0; padding: 10px 16px calc(18px + var(--safe-bottom)); animation: sheetIn .2s ease-out; }
.sheet-handle { width: 42px; height: 5px; border-radius: 999px; background: rgba(130,135,150,.35); margin: 2px auto 13px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sheet-head h2 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.sheet-subtitle { color: var(--muted); font-size: 12px; margin-top: 4px; line-height: 1.35; }
.close { border: 0; background: var(--surface); width: 39px; height: 39px; border-radius: 14px; font-size: 18px; }
.map { height: 360px; border-radius: 22px; overflow: hidden; border: 1px solid var(--border); background: #dfe5eb; }
.map-with-radius { height: min(39dvh, 390px); min-height: 275px; }
.map-radius-panel { margin: 10px 0; padding: 14px; border: 1px solid var(--border); background: var(--surface); border-radius: 18px; }
.map-radius-value { color: var(--accent); font-size: 21px; font-weight: 900; }
.map-radius-hint { color: var(--muted); font-size: 11px; line-height: 1.4; margin-top: 9px; }
.map-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 10px 0; }
.address-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 10px 0; }
.address-row button { border: 0; background: var(--accent); color: var(--accent-text); border-radius: 14px; padding: 0 15px; font-weight: 800; }
.map-selected { color: var(--muted); font-size: 12px; line-height: 1.4; margin: 9px 3px 13px; }
.job-sheet-rate { font-size: 27px; font-weight: 900; color: var(--accent); margin: 13px 0 2px; }
.job-sheet-total { color: var(--muted); font-size: 13px; }
.job-copy { line-height: 1.55; font-size: 14px; }
.job-copy h3 { margin: 20px 0 7px; font-size: 15px; }
.organizer-box { display: flex; align-items: center; gap: 12px; margin: 17px 0; padding: 14px; background: var(--surface); border-radius: 17px; border: 1px solid var(--border); }
.organizer-box .avatar { width: 43px; height: 43px; }

.dev-list { display: grid; gap: 8px; }
.dev-user { width: 100%; border: 1px solid var(--border); background: var(--surface); border-radius: 15px; padding: 13px; display: flex; align-items: center; gap: 10px; text-align: left; }
.dev-user.active { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.dev-user strong { display: block; font-size: 14px; }
.dev-user span { color: var(--muted); font-size: 11px; }

.toast-root { position: fixed; z-index: 200; top: max(14px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: min(520px, calc(100% - 28px)); pointer-events: none; }
.toast { background: #1f2430; color: white; border-radius: 15px; padding: 13px 15px; box-shadow: 0 14px 38px rgba(8,10,18,.28); font-size: 13px; font-weight: 700; animation: toastIn .2s ease-out; }
.toast.error { background: #9f3838; }
.loader { width: 22px; height: 22px; border: 3px solid rgba(255,255,255,.35); border-top-color: white; border-radius: 50%; animation: spin .8s linear infinite; margin: auto; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sheetIn { from { transform: translateY(35px); opacity: .5; } to { transform: translateY(0); opacity: 1; } }
@keyframes toastIn { from { transform: translateY(-10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@media (min-width: 560px) {
  .page { padding-top: 24px; }
  .hero { padding: 29px; }
  .action-card { min-height: 155px; }
  .photo-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--tg-theme-bg-color, #111318);
    --surface: var(--tg-theme-secondary-bg-color, #1a1d24);
    --surface-2: #222630;
    --text: var(--tg-theme-text-color, #f4f5f7);
    --muted: var(--tg-theme-hint-color, #9299aa);
    --border: rgba(180,188,210,.10);
    --shadow: 0 14px 40px rgba(0,0,0,.22);
  }
  .hero-button { color: #4b54be; }
  .leaflet-control-zoom a { background: #1a1d24 !important; color: #f4f5f7 !important; border-color: rgba(255,255,255,.08) !important; }
}

/* 0.2.12 — Mini App job publishing */
.compact-textarea { min-height: 94px; }
.job-total-preview { margin-top: 14px; padding: 15px; border: 1px solid var(--border); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 9%, var(--surface)), color-mix(in srgb, var(--purple) 8%, var(--surface))); border-radius: 17px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.job-total-preview span { color: var(--muted); font-size: 12px; line-height: 1.35; }
.job-total-preview strong { color: var(--accent); font-size: 21px; white-space: nowrap; }
.worker-stepper { display: grid; grid-template-columns: 58px 1fr 58px; align-items: center; gap: 10px; }
.worker-stepper button { height: 54px; border: 1px solid var(--border); border-radius: 17px; background: var(--surface-2); color: var(--text); font-size: 28px; line-height: 1; font-weight: 500; }
.worker-stepper strong { height: 54px; border-radius: 17px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); color: var(--accent); font-size: 24px; }
.job-location-map { height: min(48dvh, 460px); min-height: 330px; }
.job-preview-card { border: 1px solid var(--border); background: var(--surface); border-radius: 22px; padding: 18px; margin-bottom: 14px; }
.job-preview-card > h3 { margin: 0; font-size: 22px; line-height: 1.22; letter-spacing: -.03em; }
.job-preview-location { margin: 3px 0 15px; padding: 12px 13px; background: var(--surface-2); border-radius: 14px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.job-preview-money { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 16px 0 4px; }
.job-preview-money strong { color: var(--accent); font-size: 24px; }
.job-preview-money span { color: var(--muted); font-size: 12px; text-align: right; }
.publish-success { min-height: calc(100dvh - 150px); display: flex; flex-direction: column; justify-content: center; text-align: center; padding: 28px 0 38px; }
.publish-success-icon { width: 82px; height: 82px; margin: 0 auto 18px; border-radius: 28px; display: grid; place-items: center; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--surface)), color-mix(in srgb, var(--purple) 18%, var(--surface))); font-size: 38px; }
.publish-success h1 { margin: 6px 0 10px; font-size: 32px; letter-spacing: -.045em; }
.publish-success > p { max-width: 390px; margin: 0 auto 18px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.publish-job-summary { display: grid; gap: 7px; text-align: left; margin: 0 0 12px; padding: 17px; border: 1px solid var(--border); background: var(--surface); border-radius: 20px; }
.publish-job-summary strong { font-size: 17px; }
.publish-job-summary span { color: var(--muted); font-size: 12px; }
.notify-result { margin: 0 0 14px; padding: 12px 14px; border-radius: 15px; background: color-mix(in srgb, var(--accent) 9%, var(--surface)); color: var(--accent); font-size: 12px; font-weight: 800; }
.publish-success .secondary { margin-top: 10px; }

/* 0.2.13 — Organizer applicant review, job editing and active create icon */
.create-job-icon {
  background: rgba(31,157,104,.13) !important;
  color: var(--green);
  font-size: 27px;
  line-height: 1;
  font-weight: 750;
}
.list-row-button {
  width: 100%;
  color: var(--text);
  text-align: left;
  display: block;
}
.list-row-link {
  display: block;
  margin-top: 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}
.job-owner-summary {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}
.job-owner-summary .secondary { margin-top: 12px; }
.applicant-section-head { margin-top: 3px; }
.applicant-section-head > span {
  min-width: 30px;
  height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}
.applicants-list { display: grid; gap: 11px; }
.applicant-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 15px;
  background: var(--surface);
}
.applicant-card-top {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
}
.applicant-avatar {
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #6d7ff2, #8b64dd);
  color: white;
  font-size: 23px;
  font-weight: 850;
}
.applicant-avatar img,
.applicant-profile-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.applicant-card-copy { min-width: 0; }
.applicant-name { font-size: 17px; font-weight: 900; line-height: 1.2; }
.applicant-rating { color: var(--muted); font-size: 11px; margin-top: 3px; }
.applicant-card .reliability { margin-top: 7px; padding: 6px 8px; font-size: 10px; }
.applicant-card > .applicant-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 13px 0;
}
.applicant-facts span {
  padding: 7px 9px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}
.applicant-profile-button { min-height: 44px; }
.applicant-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 8px;
  margin-top: 9px;
}
.small-button.accept {
  color: var(--green);
  background: color-mix(in srgb, var(--green) 10%, var(--surface-2));
  border-color: color-mix(in srgb, var(--green) 24%, var(--border));
}
.compact-empty { padding: 22px 16px; }
.compact-empty .empty-icon { font-size: 32px; }
.sheet-head .sheet-back {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}
.applicant-sheet-title { min-width: 0; flex: 1; }
.applicant-profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), color-mix(in srgb, var(--purple) 9%, var(--surface)));
}
.applicant-profile-head > div:last-child { min-width: 0; flex: 1; }
.applicant-profile-head h2 { margin: 0 0 4px; font-size: 23px; }
.applicant-profile-head p { margin: 0; color: var(--muted); font-size: 12px; }
.applicant-profile-avatar { flex: 0 0 76px; width: 76px; height: 76px; min-width: 76px; }
.applicant-stats { margin: 10px 0 0; }
.applicant-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.applicant-info-grid > div {
  min-width: 0;
  padding: 12px;
  border-radius: 15px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.applicant-info-grid span { display: block; color: var(--muted); font-size: 10px; margin-bottom: 4px; }
.applicant-info-grid strong { display: block; font-size: 14px; overflow-wrap: anywhere; }
.profile-section {
  margin-top: 13px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}
.profile-section h3 { margin: 0 0 10px; font-size: 16px; }
.profile-section > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; white-space: pre-wrap; }
.static-chip { pointer-events: none; }
.muted-copy { color: var(--muted); font-size: 12px; line-height: 1.45; }
.applicant-gallery {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 3px;
  scrollbar-width: none;
}
.applicant-gallery::-webkit-scrollbar { display: none; }
.applicant-photo {
  position: relative;
  flex: 0 0 min(46vw, 170px);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 17px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  scroll-snap-align: start;
}
.applicant-photo img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; display: block; }
.applicant-photo .photo-fallback { z-index: 1; }
.review-card {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.review-card:first-of-type { padding-top: 0; }
.review-card:last-child { padding-bottom: 0; border-bottom: 0; }
.review-card strong { font-size: 12px; }
.review-card p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.applicant-profile-actions {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 9px;
  margin-top: 14px;
}
.processed-banner {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.processed-banner strong { color: var(--text); }

/* 0.2.14 — безопасное редактирование условий после принятия работников */
.locked-chip { opacity: .52; }
.warning-note { color: #a96a00; }
.warning-category { color: #c47a00; }
.policy-warning-card,
.pending-confirmation-summary,
.change-history,
.pending-change-inline {
  margin-top: 12px;
  padding: 15px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, #f4a62a 45%, var(--border));
  background: color-mix(in srgb, #f4a62a 9%, var(--surface));
}
.policy-warning-card strong { display: block; font-size: 15px; }
.policy-warning-card p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.change-diff-list { display: grid; gap: 10px; margin-top: 13px; }
.change-diff-item {
  padding: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 17px;
}
.change-diff-label { font-weight: 800; font-size: 14px; margin-bottom: 10px; }
.change-diff-before,
.change-diff-after { display: grid; grid-template-columns: 45px 1fr; gap: 8px; align-items: start; }
.change-diff-before + .change-diff-after { margin-top: 8px; }
.change-diff-before span,
.change-diff-after span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.change-diff-before p,
.change-diff-after p { margin: 0; font-size: 12px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.change-diff-after p { font-weight: 700; }
.rate-raise-note,
.confirmation-card-note {
  margin-top: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--green) 10%, var(--surface));
  color: var(--text);
  font-size: 11px;
  line-height: 1.45;
}
.pending-change-row { border-color: color-mix(in srgb, #f4a62a 55%, var(--border)); }
.pending-change-inline { display: grid; gap: 6px; }
.pending-change-inline strong { font-size: 12px; }
.pending-change-inline span { color: var(--muted); font-size: 11px; line-height: 1.4; }
.compact-primary { min-height: 42px; margin-top: 5px; }
.worker-change-actions { display: grid; grid-template-columns: .95fr 1.05fr; gap: 9px; margin-top: 14px; }
.awaiting-confirmation-card { border-color: color-mix(in srgb, #f4a62a 55%, var(--border)); }
.confirmation-count-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-top: 10px; }
.confirmation-count-grid > div { padding: 11px 6px; border-radius: 14px; text-align: center; background: var(--surface); border: 1px solid var(--border); }
.confirmation-count-grid strong { display: block; font-size: 19px; }
.confirmation-count-grid span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.mini-change-list { display: grid; gap: 7px; margin-top: 10px; }
.mini-change-list > div { display: grid; gap: 2px; }
.mini-change-list strong { font-size: 11px; }
.mini-change-list span { color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.change-history { border-color: var(--border); background: var(--surface); }
.history-item { padding: 12px 0; border-top: 1px solid var(--border); }
.history-item:first-of-type { border-top: 0; padding-top: 3px; }
.history-item-head { display: flex; justify-content: space-between; gap: 8px; align-items: start; }
.history-item-head strong { font-size: 12px; }
.history-item-head span { color: var(--muted); font-size: 9px; white-space: nowrap; }
.history-change { display: grid; gap: 2px; margin-top: 7px; }
.history-change b { font-size: 10px; }
.history-change span { color: var(--muted); font-size: 10px; line-height: 1.35; overflow-wrap: anywhere; }
.warning-banner { border-color: color-mix(in srgb, #f4a62a 45%, var(--border)); background: color-mix(in srgb, #f4a62a 8%, var(--surface)); }
@media (max-width: 370px) {
  .worker-change-actions, .button-row { grid-template-columns: 1fr; }
}
.confirmed-note {
  background: color-mix(in srgb, var(--green) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--green) 30%, var(--border));
}

/* 0.2.15 — полноценные «Мои» для работника */
.my-application-section { margin-bottom: 18px; }
.my-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 2px 9px;
}
.my-section-head h2 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.my-section-head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.35; }
.my-section-head > span {
  min-width: 29px;
  height: 29px;
  padding: 0 8px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}
.my-application-section.attention .my-section-head > span { color: #c47a00; background: color-mix(in srgb, #f4a62a 9%, var(--surface)); }
.my-application-section.accepted .my-section-head > span { color: var(--green); background: color-mix(in srgb, var(--green) 9%, var(--surface)); }
.my-application-list { display: grid; gap: 9px; }
.worker-application-row {
  margin-bottom: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, border-color .12s ease;
}
.worker-application-row:active { transform: scale(.992); }
.worker-application-title { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.worker-application-title > span { flex: 0 0 auto; font-size: 17px; line-height: 1.1; }
.worker-application-title h3 { overflow-wrap: anywhere; }
.worker-application-row .status-label { max-width: 46%; white-space: normal; text-align: center; line-height: 1.2; }

.worker-status-banner {
  margin: 0 0 12px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}
.worker-status-banner strong { display: block; font-size: 16px; }
.worker-status-banner p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.worker-status-banner.accepted { border-color: color-mix(in srgb, var(--green) 38%, var(--border)); background: color-mix(in srgb, var(--green) 9%, var(--surface)); }
.worker-status-banner.pending { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.worker-status-banner.danger { border-color: color-mix(in srgb, var(--red) 42%, var(--border)); background: color-mix(in srgb, var(--red) 8%, var(--surface)); }

.worker-job-summary,
.worker-location-card,
.worker-organizer-card,
.worker-attention-card {
  margin-top: 12px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 19px;
  background: var(--surface);
}
.worker-money-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 13px; }
.worker-money-row > div { padding: 12px; border-radius: 15px; background: var(--surface-2); }
.worker-money-row span { display: block; color: var(--muted); font-size: 10px; margin-bottom: 4px; }
.worker-money-row strong { display: block; font-size: 18px; }
.worker-location-card .section-head { margin-bottom: 8px; }
.worker-location-card .section-head h2 { font-size: 15px; }
.worker-location-card .section-head > span { color: var(--green); font-size: 10px; font-weight: 850; }
.worker-location-card p { margin: 0; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.worker-location-card.exact { border-color: color-mix(in srgb, var(--green) 30%, var(--border)); }
.worker-location-card .secondary { margin-top: 12px; }
.location-lock-note { margin-top: 10px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.worker-organizer-box { margin: 0; }
.worker-organizer-box > div:last-child { min-width: 0; }
.worker-organizer-box > div:last-child > div { color: var(--muted); font-size: 11px; margin-top: 3px; }
.worker-organizer-box > div:last-child > span { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; overflow-wrap: anywhere; }
.worker-organizer-card > .secondary { margin-top: 9px; }
.worker-attention-card { border-color: color-mix(in srgb, #f4a62a 46%, var(--border)); background: color-mix(in srgb, #f4a62a 8%, var(--surface)); }
.worker-attention-card strong { display: block; font-size: 14px; }
.worker-attention-card p { margin: 7px 0 11px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.worker-cancel-button { margin-top: 13px; min-height: 48px; }
.worker-cancel-disabled-note { margin-top: 12px; padding: 12px; border-radius: 15px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); font-size: 10px; line-height: 1.45; }
.worker-cancel-warning { margin-bottom: 14px; padding: 15px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); }
.worker-cancel-warning.danger { border-color: color-mix(in srgb, var(--red) 44%, var(--border)); background: color-mix(in srgb, var(--red) 8%, var(--surface)); color: var(--text); }
.worker-cancel-warning strong { display: block; font-size: 15px; }
.worker-cancel-warning p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.danger-primary { background: var(--red); color: white; box-shadow: none; }

@media (max-width: 370px) {
  .worker-money-row { grid-template-columns: 1fr; }
  .worker-application-row .status-label { max-width: 42%; font-size: 9px; }
}


/* 0.2.19 — отдельная лента «Сегодня» */
.today-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.today-page-header { flex: 1; min-width: 0; }
.today-filter-button { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 15px; min-height: 42px; padding: 0 12px; display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 850; white-space: nowrap; }
.today-location, .today-filter-location { width: 100%; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 18px; padding: 13px 14px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; text-align: left; }
.today-location { margin: 0 0 16px; }
.today-location > span:first-child, .today-filter-location > span:first-child { width: 39px; height: 39px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 10%, var(--surface-2)); }
.today-location strong, .today-filter-location strong { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.today-location small, .today-filter-location small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; line-height: 1.35; }
.today-count-row { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 4px 2px 11px; }
.today-count-row > div { display: grid; gap: 4px; }
.today-count-row strong { font-size: 24px; letter-spacing: -.03em; }
.today-count-row button { border: 0; background: transparent; color: var(--accent); font-size: 12px; font-weight: 800; padding: 7px 0; }
.today-pills { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; padding: 0 0 12px; }
.today-pills::-webkit-scrollbar { display: none; }
.today-pill { flex: 0 0 auto; border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border)); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); color: var(--text); border-radius: 999px; padding: 8px 10px; font-size: 11px; font-weight: 750; }
.today-pill b { color: var(--muted); margin-left: 3px; }
.today-pill.all { background: var(--surface); border-color: var(--border); color: var(--accent); }
.today-filter-location { margin-bottom: 12px; }
.today-filter-section { border: 1px solid var(--border); background: var(--surface); border-radius: 19px; padding: 15px; margin-bottom: 10px; }
.today-filter-actions { display: grid; grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr); gap: 9px; position: sticky; bottom: 0; padding-top: 8px; background: linear-gradient(to top, var(--bg) 72%, transparent); }
.today-filter-actions .primary, .today-filter-actions .secondary { min-height: 52px; margin: 0; }
@media (max-width: 380px) {
  .today-title-row { display: block; }
  .today-filter-button { margin: -4px 0 12px 54px; }
}

/* 0.2.19 completion and reviews */
.review-action-card {
  margin: 14px 0;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(124,92,255,.10);
  color: var(--text);
}
.review-action-card strong { display:block; font-size: 16px; margin-bottom: 6px; }
.review-action-card p { margin: 0; color: var(--muted); line-height: 1.35; }
.review-action-card.done { background: rgba(52,199,89,.10); }
.rating-picker {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 16px 0;
}
.rating-star {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.35);
  font-size: 24px;
  line-height: 1;
}
.rating-star.active {
  color: #ffd166;
  background: rgba(255,209,102,.14);
  border-color: rgba(255,209,102,.35);
}
.result-actions { margin-top: 10px; }
.review-needed-inline { background: rgba(255,209,102,.10); border-color: rgba(255,209,102,.22); }

/* 0.2.20 — жизненный цикл работы и управление набором */
.recruitment-deadline-card .cutoff-chips { gap: 8px; }
.custom-deadline-input { margin-top: 14px; }
.deadline-preview {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.deadline-preview span { color: var(--muted); font-size: 12px; }
.deadline-preview strong { font-size: 13px; text-align: right; }
.job-preview-deadline,
.job-public-deadline,
.recruitment-deadline-owner {
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--border));
  font-size: 12px;
  line-height: 1.45;
}
.recruitment-deadline-owner { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.recruitment-deadline-owner span { color:var(--muted); }
.recruitment-deadline-owner strong { text-align:right; }
.job-card-status-row,
.job-detail-statuses,
.owner-status-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  justify-content: space-between;
}
.job-card-status-row { margin-bottom: 10px; }
.work-phase-badge,
.recruitment-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  border: 1px solid var(--border);
  background: var(--surface);
  white-space: nowrap;
}
.work-phase-badge.recruiting { color: var(--green); background: color-mix(in srgb, var(--green) 9%, var(--surface)); }
.work-phase-badge.starting_soon { color: #d99414; background: color-mix(in srgb, #d99414 10%, var(--surface)); }
.work-phase-badge.in_progress { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.work-phase-badge.needs_completion { color: #d99414; background: color-mix(in srgb, #d99414 10%, var(--surface)); }
.work-phase-badge.completed { color: var(--green); }
.work-phase-badge.cancelled { color: var(--red); }
.recruitment-badge.open { color: var(--green); background: color-mix(in srgb, var(--green) 8%, var(--surface)); }
.recruitment-badge:not(.open) { color: var(--muted); }
.deadline-mini { color: var(--muted); font-size: 10px; font-weight: 700; }
.owner-status-grid { justify-content: flex-start; margin-bottom: 12px; }
.owner-job-actions { display:grid; gap:9px; margin-top:12px; }
.reopen-button { color: var(--green) !important; border-color: color-mix(in srgb, var(--green) 35%, var(--border)) !important; }
.application-closed-note {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}
.job-detail-statuses { justify-content:flex-start; margin-bottom:12px; }
@media (max-width: 390px) {
  .deadline-preview { align-items:flex-start; flex-direction:column; }
  .deadline-preview strong { text-align:left; }
  .work-phase-badge, .recruitment-badge { font-size:9px; padding:6px 8px; }
}


/* 0.2.21 — закрытие клавиатуры и безопасное время отметки результата */
.result-timing-note {
  margin-top: 12px;
  padding: 11px 13px;
  border: 1px solid rgba(113, 139, 190, .24);
  border-radius: 14px;
  background: rgba(82, 102, 145, .10);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.applicant-profile-actions + .result-timing-note { margin-top: 14px; }
.no-workers-decision{margin-top:14px;padding:14px;border:1px solid rgba(255,166,0,.35);border-radius:18px;background:rgba(255,166,0,.08);display:grid;gap:10px}.no-workers-decision p{margin:0;color:var(--muted)}.urgent-recruitment-button{border-color:rgba(255,149,0,.45)!important;color:#ffb340!important}.button-stack{display:grid;gap:10px}

/* 0.2.23 — flexible urgent recruitment */
.urgent-active-card{display:grid;gap:7px;text-align:left}.urgent-active-card strong{font-size:15px}.urgent-active-card span{color:var(--muted)}.urgent-active-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:5px}.urgent-choice-section{display:grid;gap:11px;margin-top:16px;padding:14px;border:1px solid var(--border);border-radius:18px;background:var(--card)}.urgent-quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.full-width{width:100%}@media(max-width:360px){.urgent-active-actions{grid-template-columns:1fr}}


/* 0.2.24 — direct Telegram contact after application */
.contact-profile-card { gap: 12px; }
.contact-profile-row { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.contact-profile-row > div { min-width:0; display:flex; flex-direction:column; gap:4px; }
.contact-profile-row strong { font-size:15px; overflow-wrap:anywhere; }
.contact-profile-row span { color:var(--muted); font-size:12px; line-height:1.45; }
.contact-consent-card { padding:16px; border-radius:18px; background:var(--section-bg, var(--card)); border:1px solid var(--border); margin-bottom:14px; }
.contact-consent-card strong { display:block; margin-bottom:6px; }
.contact-consent-card p { margin:0; color:var(--muted); line-height:1.5; }
.dev-contact-box { margin-top:18px; padding-top:16px; border-top:1px solid var(--border); display:grid; gap:10px; }
.dev-contact-box label { color:var(--muted); font-size:12px; }
.applicant-contact-line { margin:10px 0 8px; color:var(--muted); font-size:13px; overflow-wrap:anywhere; }
.applicant-contact-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.applicant-contact-actions .applicant-profile-button { width:100%; }
.contact-telegram-button { min-height:44px; }
.applicant-contact-section { margin-top:12px; }
.applicant-contact-box { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px; border-radius:16px; background:var(--section-bg, var(--card)); border:1px solid var(--border); }
.applicant-contact-box strong { overflow-wrap:anywhere; }
.applicant-contact-box span { color:var(--muted); font-size:12px; }
@media (max-width: 380px) {
  .applicant-contact-actions { grid-template-columns:1fr; }
  .contact-profile-row, .applicant-contact-box { align-items:stretch; flex-direction:column; }
}

/* 0.2.25 — regular job search reuses the mobile feed/filter components from Today. */


/* 0.2.28 — прозрачная сортировка лент работ */
.feed-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin: -5px 0 12px 54px; align-items: stretch; }
.feed-toolbar .today-filter-button { margin: 0; min-height: 44px; }
.feed-sort-button { min-width: 0; min-height: 44px; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 15px; padding: 0 11px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 7px; text-align: left; }
.feed-sort-icon { color: var(--accent); font-size: 16px; font-weight: 900; line-height: 1; }
.feed-sort-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 850; }
.feed-sort-chevron { color: var(--muted); font-size: 14px; line-height: 1; }
.sort-options { display: grid; gap: 8px; }
.sort-option { width: 100%; min-height: 52px; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 16px; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; font-size: 14px; font-weight: 800; }
.sort-option i { color: var(--muted); font-style: normal; font-size: 17px; }
.sort-option.active { border-color: color-mix(in srgb, var(--accent) 52%, var(--border)); background: color-mix(in srgb, var(--accent) 11%, var(--surface)); }
.sort-option.active i { color: var(--accent); }
@media (max-width: 380px) {
  .feed-toolbar { margin-left: 0; }
  .feed-toolbar .today-filter-button { padding: 0 10px; }
  .feed-sort-text { font-size: 11px; }
}


/* 0.2.29 — mobile gestures and iPhone keyboard viewport */
html,
body,
#app,
#modal-root {
  touch-action: manipulation;
}

/* Pinch gestures remain available where they are part of the interface. */
.map,
.leaflet-container {
  touch-action: pan-x pan-y pinch-zoom;
}

input,
textarea,
select,
[contenteditable="true"] {
  font-size: 16px;
  line-height: 1.35;
  scroll-margin-top: 24px;
  scroll-margin-bottom: calc(var(--keyboard-inset, 0px) + 32px);
}

.input,
.textarea {
  min-height: 48px;
  vertical-align: middle;
}

.textarea {
  padding-top: 13px;
  padding-bottom: 13px;
}

.nav {
  transition: transform .18s ease, opacity .15s ease;
}

body.keyboard-open {
  overflow-anchor: none;
}

body.keyboard-open .nav {
  transform: translateY(calc(100% + env(safe-area-inset-bottom)));
  opacity: 0;
  pointer-events: none;
}

body.keyboard-open .app-shell,
body.keyboard-open .page {
  padding-bottom: max(28px, calc(var(--keyboard-inset, 0px) + 24px));
}

body.keyboard-open .modal-backdrop {
  align-items: flex-start;
  padding-top: max(4px, var(--visual-viewport-offset-top, 0px));
}

body.keyboard-open .sheet {
  max-height: calc(var(--visual-viewport-height, 100dvh) - 8px);
  border-radius: 24px;
}

/* 0.2.30 — optional Telegram group chat for accepted workers */
.group-chat-card {
  margin: 16px 0;
  padding: 16px;
  border-radius: 18px;
  background: var(--card, #fff);
  border: 1px solid rgba(19, 42, 65, .09);
  box-shadow: 0 8px 24px rgba(35, 55, 80, .06);
}
.group-chat-card .section-head { margin-bottom: 10px; }
.group-chat-card p { margin: 0 0 14px; line-height: 1.45; color: var(--muted, #6d7580); }
.connected-chat-title { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.connected-chat-title strong { font-size: 17px; }
.connected-chat-title span { color: var(--muted, #6d7580); font-size: 13px; }
.group-chat-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0 14px;
}
.group-chat-stats > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 6px;
  border-radius: 14px;
  background: rgba(44, 128, 255, .06);
  text-align: center;
}
.group-chat-stats strong { font-size: 19px; }
.group-chat-stats span { font-size: 11px; color: var(--muted, #6d7580); }
.group-chat-actions { display: grid; gap: 8px; }
.group-chat-actions .compact-action { font-size: 13px; min-height: 42px; }
.group-invite-quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.group-invite-quick-actions button { min-height: 46px; font-size: 13px; }
.group-worker-list { display: grid; gap: 8px; margin: 10px 0 16px; }
.group-worker-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(19, 42, 65, .1);
  border-radius: 14px;
  background: var(--card, #fff);
}
.group-worker-row input { width: 21px; height: 21px; flex: 0 0 auto; }
.group-worker-row.joined { opacity: .72; background: rgba(38, 164, 91, .06); }
.group-worker-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.group-worker-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group-worker-copy span { color: var(--muted, #6d7580); font-size: 13px; }
@media (max-width: 380px) {
  .group-invite-quick-actions { grid-template-columns: 1fr; }
  .group-chat-stats span { font-size: 10px; }
}


/* 0.2.31 — optional dress code in job creation */
.dress-code-card .form-note { margin-bottom: 12px; }
.dress-code-chips { display: grid; grid-template-columns: 1fr; gap: 8px; }
.dress-code-chip { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: flex-start; text-align: left; border-radius: 14px; line-height: 1.3; }
.dress-code-details { margin-top: 14px; }
.field-counter { margin-top: 6px; color: var(--muted); font-size: 11px; text-align: right; }
.dress-code-display strong { color: var(--text); }
