:root {
  color-scheme: dark;
  --bg: #080b16;
  --panel: #101624;
  --panel-2: #151d2f;
  --line: rgba(104, 114, 160, 0.24);
  --text: #f1f4ff;
  --muted: #90a0c0;
  --accent: #32d4e9;
  --accent-2: #b086ff;
  --warn: #ffc864;
  --good: #4ce1a2;
  --danger: #ff6f8c;
  --shadow: 0 16px 44px rgba(0, 0, 0, 0.36);
}

body.update-modal-open {
  overflow: hidden;
}

body.update-modal-open .menu-launcher,
body.update-modal-open .quick-menu,
body.update-modal-open .feed-scroll-top {
  visibility: hidden;
  pointer-events: none;
}

.update-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  align-items: end;
  padding: max(18px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
  background: rgba(3, 7, 15, 0.82);
  backdrop-filter: blur(14px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.update-modal-card {
  width: min(100%, 560px);
  max-height: calc(100dvh - 36px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  margin: auto auto 0;
  padding: 24px;
  border: 1px solid rgba(50, 212, 233, 0.28);
  border-radius: 28px;
  background:
    radial-gradient(circle at 85% 0%, rgba(50, 212, 233, 0.15), transparent 34%),
    linear-gradient(160deg, #151d2f, #0c1220 72%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58);
  overflow-y: auto;
}

.update-modal-card:focus {
  outline: 2px solid rgba(50, 212, 233, 0.72);
  outline-offset: -4px;
}

.update-modal-card h2 {
  margin: 6px 0 10px;
  font-size: clamp(24px, 6vw, 32px);
  line-height: 1.08;
}

.update-modal-card .profile-system-note {
  margin: 0;
}

.update-modal-actions,
.update-guide-actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.update-modal-actions button,
.update-modal-actions a,
.update-guide-actions button,
.update-guide-actions a,
.update-check-button {
  min-height: 48px;
}

.update-modal-error {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 200, 100, 0.28);
  border-radius: 14px;
  background: rgba(255, 200, 100, 0.08);
  color: var(--warn);
  line-height: 1.45;
}

.update-version-card {
  display: grid;
  gap: 6px;
  margin: 14px 0 18px;
  padding: 15px;
  border: 1px solid rgba(144, 160, 192, 0.16);
  border-radius: 18px;
  background: rgba(7, 10, 18, 0.36);
}

.update-version-card strong {
  color: var(--text);
}

.update-version-card small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

@media (min-width: 640px) {
  .update-modal-backdrop {
    align-items: center;
  }

  .update-modal-card {
    margin: auto;
  }

  .update-modal-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .update-modal-actions [data-update-help] {
    grid-column: 1 / -1;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(50, 212, 233, 0.16), transparent 28%),
    radial-gradient(circle at 85% 0%, rgba(176, 134, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #080b16, #090d18 42%, #060810);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input, select { font: inherit; }
button { cursor: pointer; }

.hidden { display: none !important; }

.app-shell { min-height: 100vh; padding-bottom: 92px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(8, 11, 22, 0.9);
  border-bottom: 1px solid rgba(144, 160, 192, 0.12);
  backdrop-filter: blur(16px);
  overflow-x: clip;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-text {
  display: none;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.brand-text-only .brand-logo {
  display: none;
}

.brand-text-only .brand-text {
  display: block;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 10px 30px rgba(0,0,0,0.26);
}

.brand-name { font-size: 15px; font-weight: 900; letter-spacing: 0.02em; }
.brand-subtitle, .session-pill, .eyebrow, .notice, .card-meta, .lock-copy, .hero-location { color: var(--muted); }
.brand-subtitle { font-size: 12px; }

.topbar-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.notification-button { position: relative; }
.notification-button .icon-button-icon { font-size: 23px; line-height: 1; }
.notification-button-badge { right: -2px; top: -2px; }

.icon-button, .ghost-button, .danger-button, .link-button, .text-button, .publish-card {
  border: 0;
  border-radius: 14px;
}

.icon-button {
  width: 42px;
  height: 42px;
  color: var(--text);
  background: rgba(21, 29, 47, 0.95);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 19px;
}

.admin-button { width: auto; min-width: 64px; padding: 0 12px; font-size: 13px; font-weight: 800; }

.workspace { width: min(1120px, calc(100% - 24px)); margin: 0 auto; padding: 18px 0 24px; }

.lock-screen {
  min-height: calc(100vh - 90px);
  display: grid;
  place-items: center;
}

.lock-panel, .feed-card, .profile-panel, .profile-form, .worker-form, .help-card, .modal, .publish-card, .stat-card {
  background: linear-gradient(180deg, rgba(21, 29, 47, 0.96), rgba(16, 22, 36, 0.96));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.lock-panel {
  width: min(560px, 100%);
  padding: 22px;
  border-radius: 22px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(28px, 5vw, 46px); line-height: 1.02; }
h2 { margin-bottom: 0; font-size: 22px; }
h3 { margin-bottom: 8px; }

.login-form, .profile-form, .worker-form { display: grid; gap: 12px; margin-top: 18px; }
.login-form label, .profile-form label, .worker-form label { display: grid; gap: 8px; color: var(--muted); font-size: 14px; }
.inline-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
input, select {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--text);
  background: rgba(7, 10, 18, 0.82);
  border: 1px solid rgba(144, 160, 192, 0.16);
  border-radius: 14px;
  outline: none;
}

input::placeholder { color: rgba(144, 160, 192, 0.58); }
input:focus, select:focus { border-color: rgba(50, 212, 233, 0.85); box-shadow: 0 0 0 3px rgba(50, 212, 233, 0.12); }

.ghost-button, .danger-button, .link-button, .text-button, .publish-card {
  min-height: 44px;
  padding: 0 16px;
}

.ghost-button, .text-button, .link-button {
  color: var(--text);
  background: transparent;
}

.ghost-button {
  border: 1px solid rgba(144, 160, 192, 0.18);
}

.danger-button {
  margin-top: 14px;
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(255, 111, 140, 0.42);
}

.link-button {
  padding: 0;
  color: var(--accent);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 12px;
}

.section-head.compact { margin-top: 0; margin-bottom: 16px; }

.section-head.compact > div {
  display: grid;
  gap: 4px;
  width: 100%;
  justify-items: center;
  text-align: center;
}

.section-subtitle {
  margin: 0;
  color: rgba(181, 196, 222, 0.72);
  font-size: 15px;
  line-height: 1.1;
  letter-spacing: 0.03em;
  animation: subtitlePulse 5.4s ease-in-out infinite;
}

.view { display: none; }
.view.active { display: block; }

.hero {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 18px;
  background: rgba(21, 29, 47, 0.9);
  border: 1px solid rgba(144, 160, 192, 0.14);
}

.search-box span { color: var(--muted); font-size: 18px; }
.search-box input {
  flex: 1;
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none !important;
}

.search-follow-cta {
  margin-top: 12px;
}

.search-follow-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.search-follow-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.search-follow-note {
  margin: 0;
  font-weight: 700;
}

.search-clear {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: rgba(144, 160, 192, 0.14);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  flex: none;
}

.search-clear:active {
  transform: scale(0.96);
  background: rgba(50, 212, 233, 0.18);
}

.search-notify-button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: rgba(144, 160, 192, 0.14);
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
  flex: none;
}

.search-notify-button:active {
  transform: scale(0.96);
  background: rgba(50, 212, 233, 0.18);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 12px;
}

.stat-card {
  position: relative;
  min-height: 122px;
  padding: 16px;
  border-radius: 18px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  color: inherit;
  background:
    linear-gradient(180deg, rgba(21, 29, 47, 0.88), rgba(10, 14, 24, 0.92));
  border: 1px solid rgba(50, 212, 233, 0.18);
  box-shadow:
    0 0 0 1px rgba(50, 212, 233, 0.08),
    0 0 14px rgba(50, 212, 233, 0.12);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.stat-card:hover,
.stat-card:active {
  transform: scale(0.97);
}

.stat-card:active {
  box-shadow:
    0 0 0 1px rgba(50, 212, 233, 0.14),
    0 0 26px rgba(50, 212, 233, 0.26);
}

.stat-card.pulse {
  border-color: rgba(50, 212, 233, 0.5);
  box-shadow:
    0 0 0 1px rgba(50, 212, 233, 0.2),
    0 0 20px rgba(50, 212, 233, 0.24);
}

.stat-card.pulse::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 18px;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.18) 45%, transparent 70%);
  animation: statSweep 1.1s ease-out;
  pointer-events: none;
}

.stat-card strong {
  display: block;
  margin: 2px 0 6px;
  font-size: 40px;
  line-height: 0.92;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.stat-label {
  display: block;
  font-size: 13px;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: rgba(231, 238, 248, 0.92);
  text-align: center;
}

.stat-caption {
  display: block;
  margin-top: auto;
  font-size: 11px;
  line-height: 1.1;
  letter-spacing: 0.03em;
  color: rgba(181, 196, 222, 0.72);
  text-align: center;
}

@keyframes statSweep {
  from { transform: translateX(-15%); opacity: 0; }
  20% { opacity: 1; }
  to { transform: translateX(15%); opacity: 0; }
}

.stat-card:nth-child(1) strong { color: var(--accent); }
.stat-card:nth-child(2) strong { color: var(--accent-2); }
.stat-card:nth-child(3) strong { color: #e8f2ff; }
.stat-card:nth-child(4) strong { color: var(--good); }

.feed-section { margin-top: 8px; }
.feed-list, .feed-strip { display: grid; gap: 16px; }
.feed-strip { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.search-result-highlight {
  background: linear-gradient(180deg, transparent 62%, rgba(50, 212, 233, 0.16) 62%);
  border-radius: 4px;
  padding: 0 1px;
}

.search-empty {
  display: grid;
  gap: 6px;
  padding: 14px 2px;
}

.search-empty-subtitle {
  margin: 0;
  font-size: 13px;
  color: rgba(181, 196, 222, 0.72);
}

.toast-host {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 200;
  display: grid;
  gap: 8px;
  width: min(92vw, 420px);
  pointer-events: none;
}

.toast {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(10, 14, 24, 0.95);
  border: 1px solid rgba(50, 212, 233, 0.2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}

.spotlight-card {
  position: relative;
  min-height: 128px;
  padding: 16px;
  border-radius: 18px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  text-align: left;
  color: inherit;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(21, 29, 47, 0.88), rgba(10, 14, 24, 0.92));
  border: 1px solid rgba(50, 212, 233, 0.2);
  box-shadow:
    0 0 0 1px rgba(50, 212, 233, 0.1),
    0 0 16px rgba(50, 212, 233, 0.14);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.spotlight-card:hover,
.spotlight-card:active {
  transform: scale(0.98);
}

.spotlight-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.08) 45%, transparent 70%);
  opacity: 0;
  pointer-events: none;
}

.spotlight-card[data-home-card="shabashki"].pulse::after,
.spotlight-card[data-home-card="vacancies"].pulse::after,
.spotlight-card[data-home-card="workers"].pulse::after {
  animation: spotlightSweep 1.1s ease-out;
  opacity: 1;
}

.spotlight-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.spotlight-head h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.14;
  color: #eef4ff;
}

.spotlight-badge {
  flex: none;
  margin-left: auto;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  background: rgba(242, 90, 91, 0.2);
  border: 1px solid rgba(242, 90, 91, 0.34);
  color: #ffb6b6;
}

.spotlight-body {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "location brand"
    "time brand";
  align-items: end;
  gap: 6px 12px;
}

.spotlight-location {
  grid-area: location;
  color: rgba(231, 238, 248, 0.92);
  font-size: 13px;
  line-height: 1.2;
}

.spotlight-time {
  grid-area: time;
  color: rgba(181, 196, 222, 0.76);
  font-size: 12px;
  line-height: 1.1;
}

.spotlight-brand {
  grid-area: brand;
  align-self: end;
  color: rgba(231, 238, 248, 0.72);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

@keyframes subtitlePulse {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 0.9; }
}

@keyframes spotlightSweep {
  from { transform: translateX(-18%); opacity: 0; }
  18% { opacity: 1; }
  to { transform: translateX(18%); opacity: 0; }
}

.feed-card {
  width: 100%;
  padding: 0;
  overflow: hidden;
  text-align: left;
  border-radius: 20px;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
  border: 1px solid rgba(50, 212, 233, 0.18);
  box-shadow:
    0 0 0 1px rgba(50, 212, 233, 0.08),
    0 0 18px rgba(50, 212, 233, 0.12);
}

.feed-card-body { display: grid; gap: 12px; padding: 16px; }
.feed-card-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.feed-card h3 { margin: 0; font-size: 18px; line-height: 1.12; }
.card-text { margin: 0; color: #edf4ff; font-size: 15px; line-height: 1.48; }
.card-text-standalone { font-size: 15px; line-height: 1.48; color: #edf4ff; }
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  font-size: 13px;
}
.card-meta span {
  padding: 5px 8px;
  background: rgba(7, 10, 18, 0.42);
  border: 1px solid rgba(144, 160, 192, 0.12);
  border-radius: 999px;
}

.type-badge {
  flex: none;
  padding: 6px 9px;
  color: #070b16;
  background: var(--warn);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}
.type-badge.shabashka { background: var(--accent); }
.type-badge.vacancy { background: var(--warn); }
.type-badge.worker { background: var(--good); }
.type-badge.unknown { background: #8d9bb6; }

.profile-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
}

.profile-panel, .profile-form, .worker-form {
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
}

.worker-profile-shell {
  display: grid;
  gap: 14px;
}

.worker-profile-intro,
.worker-profile-card,
.worker-profile-editor,
.worker-profile-guest {
  padding: 16px;
  border: 1px solid rgba(144, 160, 192, 0.14);
  border-radius: 18px;
  background: rgba(10, 14, 22, 0.38);
  box-shadow: 0 0 0 1px rgba(50, 212, 233, 0.06);
}

.worker-profile-intro h2,
.worker-profile-editor-head h3,
.worker-profile-card-head strong {
  margin: 0;
}

.worker-profile-intro-text,

.worker-profile-intro-compact { display: grid; gap: 10px; }
.worker-profile-intro-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.worker-profile-action-icon { width: 40px; height: 40px; border-radius: 999px; flex: 0 0 auto; font-size: 18px; }
.worker-profile-card-note,
.worker-profile-editor-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.worker-profile-card-compact {
  display: grid;
  gap: 12px;
}

.worker-profile-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.worker-profile-card-text,
.worker-profile-card-meta,
.worker-profile-card-note {
  margin: 0;
}

.worker-profile-actions,
.worker-profile-actions-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.worker-profile-editor {
  display: grid;
  gap: 14px;
}

.worker-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.worker-choice-chip {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(144, 160, 192, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-align: center;
}

.worker-choice-chip.active {
  border-color: rgba(50, 212, 233, 0.48);
  background: rgba(50, 212, 233, 0.14);
  box-shadow: 0 0 0 1px rgba(50, 212, 233, 0.08);
}

.worker-price-stepper {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: center;
}

.worker-stepper-button {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(144, 160, 192, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 18px;
  line-height: 1;
}

.worker-profile-editor input[data-worker-field] {
  width: 100%;
}

.worker-ready-grid {
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}

.profile-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(144, 160, 192, 0.12);
}
.profile-row:last-child { padding-bottom: 0; border-bottom: 0; }

.checks {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(144, 160, 192, 0.12);
  border-radius: 16px;
}
.checks legend { padding: 0 6px; color: var(--muted); }
.checks label { display: flex; align-items: center; gap: 10px; }

.form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.publish-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.publish-card {
  min-height: 120px;
  padding: 16px;
  color: var(--text);
  text-align: left;
  border: 1px solid rgba(144, 160, 192, 0.14);
}
.publish-card strong, .publish-card span { display: block; }
.publish-card strong { margin-bottom: 8px; font-size: 18px; }

.notice { margin-top: 12px; color: var(--muted); }

.menu-launcher {
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  top: 50%;
  z-index: 96;
  width: 64px;
  height: 64px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  overflow: visible;
  background: rgba(5, 13, 27, 0.9);
  border: 1px solid rgba(91, 139, 183, 0.12);
  border-radius: 50%;
  outline: none;
  box-shadow:
    inset 0 0 0 5px rgba(10, 27, 48, 0.54),
    0 0 0 1px rgba(71, 126, 169, 0.07),
    0 7px 22px rgba(0, 0, 0, 0.34);
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transition: opacity 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.menu-launcher::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background:
    conic-gradient(
      from 8deg,
      rgba(84, 158, 210, 0.7) 0deg 42deg,
      transparent 42deg 58deg,
      rgba(76, 136, 191, 0.58) 58deg 100deg,
      transparent 100deg 118deg,
      rgba(64, 184, 211, 0.64) 118deg 160deg,
      transparent 160deg 178deg,
      rgba(72, 130, 178, 0.54) 178deg 220deg,
      transparent 220deg 238deg,
      rgba(72, 169, 200, 0.6) 238deg 280deg,
      transparent 280deg 298deg,
      rgba(86, 145, 199, 0.64) 298deg 340deg,
      transparent 340deg 360deg
    );
  -webkit-mask: radial-gradient(circle, transparent calc(100% - 4px), #000 calc(100% - 3px));
  mask: radial-gradient(circle, transparent calc(100% - 4px), #000 calc(100% - 3px));
  opacity: 0.78;
  pointer-events: none;
  transition: transform 280ms ease, opacity 180ms ease;
}

.menu-launcher.open {
  animation: none;
  background: rgba(7, 17, 32, 0.96);
  border-color: rgba(83, 172, 208, 0.16);
}

.menu-launcher-icon {
  width: 50px;
  height: 50px;
  display: block;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.42)) saturate(0.9);
}

.menu-launcher.open::before {
  transform: rotate(30deg);
  opacity: 0.82;
}

.menu-launcher-badge {
  position: absolute;
  top: 5px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  color: #0a1020;
  background: #72f0ff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 0 0 2px rgba(8, 11, 22, 0.9);
}

.menu-launcher.has-unread {
  border-color: rgba(114, 240, 255, 0.8);
}

.menu-launcher.pulse {
  animation: unreadPulse 1.8s ease-in-out infinite;
}

.notifications-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.notifications-summary {
  color: var(--muted);
}

.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notification-item {
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.notification-item.unread {
  border-color: rgba(114, 240, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(114, 240, 255, 0.14);
}

.notification-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.notification-item-time,
.notification-item small,
.notification-item-body {
  color: var(--muted);
}

.notification-item-body {
  margin: 8px 0 0;
}

@keyframes unreadPulse {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50% { transform: translateY(-50%) scale(1.05); }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(50, 212, 233, 0.08),
      0 0 14px rgba(50, 212, 233, 0.18),
      0 8px 24px rgba(0, 0, 0, 0.25);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(50, 212, 233, 0.24),
      0 0 26px rgba(50, 212, 233, 0.3),
      0 8px 24px rgba(0, 0, 0, 0.25);
  }
}

.quick-menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  background: rgba(1, 4, 10, 0.08);
  touch-action: manipulation;
  transition: opacity 230ms ease, visibility 0s linear 0s;
}

.quick-menu.hidden {
  display: block !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 230ms ease, visibility 0s linear 230ms;
}

.quick-menu-panel {
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  top: 50%;
  z-index: 95;
  display: grid;
  width: clamp(178px, 53vw, 208px);
  max-width: calc(100vw - 24px);
  padding: 7px 9px 5px;
  background: rgba(7, 16, 31, 0.92);
  border: 1px solid rgba(104, 143, 183, 0.18);
  border-radius: 16px 16px 28px 16px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36), inset 0 0 0 1px rgba(255, 255, 255, 0.018);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translate(0, -68%) scale(1);
  transform-origin: 100% 100%;
  opacity: 1;
  transition: transform 230ms cubic-bezier(0.22, 0.78, 0.28, 1), opacity 210ms ease;
}

.quick-menu.hidden .quick-menu-panel {
  opacity: 0;
  transform: translate(14px, calc(-68% + 10px)) scale(0.92);
}

.quick-menu-list {
  display: grid;
  grid-template-columns: 1fr;
}

.quick-menu-panel button {
  min-height: 42px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  color: rgba(236, 244, 255, 0.88);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(126, 155, 190, 0.11);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 620;
  line-height: 1;
  text-align: left;
  position: relative;
}

.quick-menu-list button:last-child {
  border-bottom-color: transparent;
}

.quick-menu-panel button:hover,
.quick-menu-panel button:active {
  color: #f5fbff;
  background: rgba(61, 117, 151, 0.13);
}

.quick-menu-panel button.active {
  color: #8ee8f6;
  background: rgba(47, 111, 143, 0.14);
  box-shadow: inset 2px 0 0 rgba(84, 203, 224, 0.6);
}

.quick-menu-panel button.has-unread {
  color: #edfaff;
}

.quick-menu-icon {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  color: rgba(221, 233, 250, 0.86);
  flex: 0 0 auto;
}

.quick-menu-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quick-menu-list button[data-screen-button="messages"] .quick-menu-icon {
  color: rgba(225, 235, 255, 0.9);
}

.quick-menu-badge {
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  position: absolute;
  top: 11px;
  right: 68px;
  color: #07111e;
  background: #72f0ff;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.quick-menu-back-zone {
  padding-top: 3px;
  padding-right: 64px;
  border-top: 1px solid rgba(144, 160, 192, 0.1);
}

.quick-menu-panel .quick-menu-back {
  width: 36px;
  min-height: 34px;
  margin: 0 auto;
  padding: 0;
  justify-content: center;
  color: rgba(222, 232, 248, 0.78);
  background: transparent;
  border-color: transparent;
  font-size: 19px;
  font-weight: 500;
  text-align: center;
}

.feed-scroll-top {
  position: fixed;
  right: max(17px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 90;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: rgba(233, 252, 255, 0.92);
  background: rgba(12, 18, 31, 0.88);
  border: 1px solid rgba(50, 212, 233, 0.3);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  font-size: 21px;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(0.94);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.feed-scroll-top.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

body.startup-splash-open .menu-launcher,
body:has(#authModal:not(.hidden)) .menu-launcher,
body:has(#helpPanel:not(.hidden)) .menu-launcher,
body:has(#logoutConfirmModal:not(.hidden)) .menu-launcher,
body:has(#cardModal.open) .menu-launcher,
body:has(#authModal:not(.hidden)) .feed-scroll-top,
body:has(#helpPanel:not(.hidden)) .feed-scroll-top,
body:has(#logoutConfirmModal:not(.hidden)) .feed-scroll-top,
body:has(#cardModal.open) .feed-scroll-top,
body:has(#quickMenu:not(.hidden)) .feed-scroll-top {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}


.messages-shell {
  display: grid;
  gap: 12px;
}

.messages-list {
  display: grid;
  gap: 10px;
}

.message-dialog {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(16, 22, 36, 0.96);
  border: 1px solid rgba(144, 160, 192, 0.12);
}

.message-dialog.unread {
  border-color: rgba(114, 240, 255, 0.36);
  box-shadow: 0 0 0 1px rgba(114, 240, 255, 0.08);
}

.message-dialog-actions {
  position: absolute;
  inset: 0 0 0 auto;
  width: 96px;
  background: linear-gradient(180deg, rgba(132, 19, 24, 0.98), rgba(88, 12, 16, 0.98));
  display: grid;
  place-items: center;
  z-index: 0;
  pointer-events: none;
}

.message-dialog.swipe-open .message-dialog-actions {
  pointer-events: auto;
}

.message-dialog-hide {
  border: 0;
  background: transparent;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.message-dialog-body {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: rgba(16, 22, 36, 0.98);
  transform: translateX(0);
  transition: transform 0.2s ease;
  will-change: transform;
}

.message-dialog-swipe-handle {
  position: absolute;
  top: 0;
  right: 0;
  width: 88px;
  height: 100%;
  z-index: 3;
  background: transparent;
  pointer-events: auto;
}

.message-dialog.swipe-open .message-dialog-body {
  transform: translateX(-96px);
}

.message-dialog-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(50, 212, 233, 0.2), rgba(50, 212, 233, 0.08));
  position: relative;
  font-size: 18px;
  overflow: hidden;
}

.message-dialog-avatar {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.message-dialog-avatar-letter {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(8, 12, 24, 0.92);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  color: var(--text);
}

.message-dialog-main {
  min-width: 0;
}

.message-dialog-topline strong {
  display: block;
  font-size: 15px;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-dialog-topline,
.message-dialog-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.message-dialog-topline strong {
  font-size: 15px;
  line-height: 1.2;
}

.message-dialog-preview {
  margin: 6px 0 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-dialog-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.message-dialog-side {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.message-dialog-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--accent);
  color: #09111f;
  font-size: 12px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
}

.message-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(50, 212, 233, 0.14);
  color: var(--accent);
  font-size: 12px;
  text-transform: lowercase;
}

.viewed {
  opacity: 0.65;
  filter: grayscale(0.18);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
}

.icon-chip {
  min-height: 32px;
  padding: 0 10px;
  color: var(--text);
  background: rgba(7, 10, 18, 0.42);
  border: 1px solid rgba(144, 160, 192, 0.12);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  outline: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.icon-chip:focus {
  outline: none;
}

.icon-chip:focus-visible {
  border-color: rgba(50, 212, 233, 0.52);
  box-shadow: 0 0 0 3px rgba(50, 212, 233, 0.14);
}

.icon-chip:active {
  transform: scale(0.96);
}

.icon-chip.active {
  border-color: rgba(50, 212, 233, 0.5);
  color: var(--accent);
  box-shadow: 0 0 0 1px rgba(50, 212, 233, 0.12), 0 0 14px rgba(50, 212, 233, 0.14);
}

.icon-chip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.icon-chip small {
  font-size: 11px;
  line-height: 1;
  color: inherit;
}

.icon-chip-static {
  pointer-events: none;
  user-select: none;
  opacity: 0.9;
}

.help-panel {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: end center;
  padding: 16px 12px 22px;
  background: rgba(3, 5, 11, 0.58);
}

.help-card {
  width: min(720px, 100%);
  padding: 18px;
  border-radius: 24px;
}

.auth-card .auth-actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.auth-card .ghost-button,
.auth-card .link-button {
  width: 100%;
}

.auth-vk-panel {
  display: grid;
  gap: 14px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(144, 160, 192, 0.14);
}

.auth-vk-title {
  margin: 0;
  font-size: 22px;
}

.auth-vk-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.auth-vk-actions,
.auth-vk-confirm-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.auth-vk-start-box,
.auth-vk-confirm {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(144, 160, 192, 0.14);
  border-radius: 18px;
  background: rgba(7, 10, 18, 0.34);
}

.auth-vk-label {
  color: var(--muted);
  font-size: 13px;
}

.auth-vk-code {
  display: block;
  font-size: 18px;
  font-weight: 800;
  word-break: break-all;
}

.auth-vk-input {
  min-height: 46px;
}

.profile-systems-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.profile-systems-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-systems-list {
  display: grid;
  gap: 10px;
}

.profile-system-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(144, 160, 192, 0.14);
  border-radius: 18px;
  background: rgba(7, 10, 18, 0.34);
}

.profile-system-copy {
  display: grid;
  gap: 4px;
}

.profile-system-copy strong {
  font-size: 16px;
}

.profile-system-copy small,
.profile-system-note {
  color: var(--muted);
  line-height: 1.4;
}

.profile-system-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.profile-system-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(144, 160, 192, 0.14);
}

.profile-system-badge.connected {
  background: rgba(76, 225, 162, 0.12);
  color: var(--good);
}

.profile-system-badge.soon {
  background: rgba(255, 200, 100, 0.12);
  color: var(--warn);
}

.profile-system-action {
  min-height: 38px;
  padding: 0 12px;
}

.profile-system-vk-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(50, 212, 233, 0.14);
  border-radius: 18px;
  background: rgba(7, 10, 18, 0.24);
}

.auth-vk-error {
  margin-top: 10px;
  color: var(--warn);
  line-height: 1.45;
}

.profile-system-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-system-codebox {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(144, 160, 192, 0.14);
  border-radius: 18px;
  background: rgba(7, 10, 18, 0.34);
}

.profile-system-label {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.profile-system-code {
  display: block;
  font-size: 18px;
  font-weight: 800;
  word-break: break-all;
}

.profile-system-confirm {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.profile-system-input {
  min-height: 46px;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.help-grid ul { margin: 0; padding-left: 18px; color: var(--text); }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  padding: 14px;
  background: rgba(1, 2, 6, 0.72);
}
.modal-backdrop.open { display: grid; place-items: center; }
.modal {
  width: min(820px, 100%);
  max-height: min(90vh, 880px);
  padding: 18px;
  overflow: auto;
  border-radius: 24px;
}
.modal-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  margin-bottom: 12px;
}
.modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.modal-meta span {
  padding: 5px 8px;
  background: rgba(7, 10, 18, 0.42);
  border: 1px solid rgba(144, 160, 192, 0.12);
  border-radius: 999px;
}
.modal-text { white-space: pre-wrap; line-height: 1.55; }
.modal-source-label {
  margin: 0 0 6px;
  color: rgba(196, 214, 244, 0.78);
  text-align: center;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
}
.modal-source-row {
  display: flex;
  justify-content: center;
  margin-top: 12px;
  margin-bottom: 8px;
}
.source-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin: 0 auto;
  padding: 11px 16px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(50, 212, 233, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(120deg, rgba(50, 212, 233, 0.12), rgba(138, 92, 255, 0.08)),
    rgba(12, 17, 29, 0.84);
  box-shadow:
    0 0 0 1px rgba(50, 212, 233, 0.08),
    0 0 18px rgba(50, 212, 233, 0.14);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.source-link::before {
  content: "";
  position: absolute;
  top: -24%;
  left: -40%;
  width: 42%;
  height: 150%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.36), transparent);
  transform: skewX(-24deg);
  animation: sourceShimmer 3.4s ease-in-out infinite;
  pointer-events: none;
}

.source-link::after {
  content: "\203A\203A";
  position: relative;
  z-index: 1;
  display: inline-block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -2px;
  opacity: 0.92;
  animation: sourceChevrons 2.4s ease-in-out infinite;
}

.source-link:hover,
.source-link:active {
  transform: translateY(-1px);
  border-color: rgba(50, 212, 233, 0.42);
  box-shadow:
    0 0 0 1px rgba(50, 212, 233, 0.12),
    0 0 22px rgba(50, 212, 233, 0.22);
}

@keyframes sourceShimmer {
  0% { left: -45%; opacity: 0; }
  14% { opacity: 1; }
  34% { left: 112%; opacity: 0; }
  100% { left: 112%; opacity: 0; }
}

@keyframes sourceChevrons {
  0%, 58%, 100% { transform: translateX(0); }
  72% { transform: translateX(3px); }
  84% { transform: translateX(1px); }
}

.modal-top-actions {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 8px;
}

.modal-layout {
  position: relative;
  padding-top: 10px;
}

.modal-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.modal-counts,
.card-reactions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.modal-counts span,
.card-reactions span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(7, 10, 18, 0.42);
  border: 1px solid rgba(144, 160, 192, 0.12);
  color: rgba(231, 238, 248, 0.88);
  font-size: 12px;
  line-height: 1;
}

.views-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.profile-row-stack {
  flex-direction: column;
  align-items: flex-start;
}

.profile-row-stack strong {
  font-size: 16px;
}

.profile-row-stack small {
  display: block;
  color: rgba(181, 196, 222, 0.76);
  line-height: 1.35;
  font-size: 12px;
}

.profile-row-button {
  width: 100%;
  text-align: left;
  color: inherit;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(144, 160, 192, 0.12);
  border-radius: 18px;
  padding: 14px 16px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.profile-row-button:hover,
.profile-row-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(50, 212, 233, 0.38);
  box-shadow: 0 0 0 3px rgba(50, 212, 233, 0.08);
}

.profile-links {
  display: grid;
  gap: 10px;
}

.city-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(144, 160, 192, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.city-link:hover,
.city-link:focus-visible {
  border-color: rgba(50, 212, 233, 0.38);
  box-shadow: 0 0 0 3px rgba(50, 212, 233, 0.08);
}

.empty-state {
  padding: 18px;
  border: 1px dashed rgba(144, 160, 192, 0.18);
  border-radius: 18px;
  color: rgba(181, 196, 222, 0.82);
}

@media (max-width: 940px) {
  .stats-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(118px, 1fr);
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .stats-grid::-webkit-scrollbar { display: none; }
  .form-grid, .publish-grid, .profile-layout, .help-grid { grid-template-columns: 1fr; }
  .feed-strip { grid-template-columns: 1fr; }
  .section-head, .feed-card-head, .modal-head { flex-direction: column; align-items: start; }
  .inline-form { grid-template-columns: 1fr; }
  .auth-vk-actions,
  .auth-vk-confirm-row,
  .profile-system-inline,
  .profile-system-confirm { grid-template-columns: 1fr; }
  .profile-systems-head { flex-direction: column; align-items: stretch; }
  .profile-system-row { flex-direction: column; align-items: stretch; }
  .profile-system-actions {
    justify-items: stretch;
  }
  .profile-system-action,
  .profile-system-badge {
    width: 100%;
    justify-content: center;
  }
  .menu-launcher { right: max(12px, env(safe-area-inset-right)); }
  .feed-scroll-top { right: max(14px, env(safe-area-inset-right)); }
  .quick-menu { padding-right: max(12px, env(safe-area-inset-right)); }
}

/* Placements F1-lite polish */
#placementsRoot select,
#placementsRoot input,
#placementsRoot textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.72);
  color: #f8fafc;
  padding: 14px 18px;
  font: inherit;
  outline: none;
}

#placementsRoot textarea {
  min-height: 132px;
  resize: vertical;
}

#placementsRoot label {
  display: grid;
  gap: 8px;
}

#placementsRoot select:focus,
#placementsRoot input:focus,
#placementsRoot textarea:focus {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.08);
}

#placementsRoot input::placeholder,
#placementsRoot textarea::placeholder {
  color: rgba(148, 163, 184, 0.72);
}

#placementsRoot .button-primary {
  margin-top: 8px;
}

#placementsStatus {
  margin-top: 14px;
}


/* Placements F1-lite final polish */
.placements-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0 18px;
  padding: 6px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.placements-tab {
  border: 0;
  border-radius: 17px;
  padding: 13px 12px;
  font: inherit;
  font-weight: 800;
  color: rgba(226, 232, 240, 0.72);
  background: transparent;
}

.placements-tab-active {
  color: #f8fafc;
  background: rgba(14, 165, 233, 0.95);
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.2);
}

.placement-item-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  margin: 12px 0;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.56);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.placement-item-top,
.placement-item-meta,
.placement-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.placement-item-top {
  justify-content: space-between;
}

.placement-status {
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.9rem;
}

.placement-item-title {
  font-size: 1.1rem;
  line-height: 1.25;
}

.placement-item-meta {
  color: rgba(148, 163, 184, 0.9);
  font-size: 0.92rem;
}

.placement-actions {
  margin-top: 4px;
}

.placement-actions .ghost-button:disabled {
  opacity: 0.52;
}

.placement-admin-comment {
  color: rgba(248, 250, 252, 0.82);
}


/* IT / удалёнка F1 */
.it-work-section {
  margin: 14px 0 22px;
}

.it-work-card {
  width: 100%;
  border: 1px solid rgba(46, 213, 255, 0.34);
  border-radius: 22px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(12, 22, 42, 0.94), rgba(19, 32, 58, 0.88));
  color: var(--text);
  box-shadow: 0 0 22px rgba(46, 213, 255, 0.14);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  text-align: left;
}

.it-work-card strong {
  display: block;
  font-size: 20px;
  line-height: 1.15;
}

.it-work-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.it-work-count {
  min-width: 74px;
  min-height: 74px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: rgba(46, 213, 255, 0.08);
  border: 1px solid rgba(46, 213, 255, 0.22);
}

.it-work-count b {
  display: block;
  font-size: 26px;
  line-height: 1;
  color: var(--accent);
}

.it-work-count small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.it-work-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.it-work-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 14px;
  background: rgba(8, 13, 28, 0.72);
}

.it-work-item-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.it-work-item-head strong {
  font-size: 17px;
  line-height: 1.2;
}

.it-work-item-head span {
  color: var(--accent);
  white-space: nowrap;
}

.it-work-item p {
  margin: 10px 0 8px;
  color: #edf4ff;
  line-height: 1.45;
}

.it-work-item small {
  color: var(--muted);
}

/* IT block polish F1 */
.it-work-section {
  margin: 10px 0 18px;
}

.it-work-card {
  min-height: 92px;
  padding: 13px 15px;
  border-radius: 18px;
  box-shadow: 0 0 14px rgba(46, 213, 255, 0.11);
}

.it-work-card strong {
  font-size: 18px;
}

.it-work-card span {
  margin-top: 4px;
  font-size: 13px;
}

.it-work-count {
  min-width: 62px;
  min-height: 62px;
  border-radius: 17px;
}

.it-work-count b {
  font-size: 23px;
}

.it-work-count small {
  font-size: 10px;
}

.stat-label {
  font-size: 15px;
  line-height: 1.15;
}

@media (max-width: 560px) {
  .it-work-card {
    padding: 12px 13px;
  }

  .it-work-card strong {
    font-size: 17px;
  }

  .it-work-card span {
    font-size: 12.5px;
  }
}

/* F2H5A.3: launcher stays fixed; the compact menu opens to its left. */



.it-work-count-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 10px 0 0;
  color: var(--muted);
}

.it-work-count-line b {
  color: var(--accent);
  font-size: 18px;
}

.it-work-home-card {
  width: 100%;
  border: 1px solid rgba(46, 213, 255, 0.18);
  border-radius: 18px;
  padding: 14px 14px 13px;
  background: linear-gradient(180deg, rgba(16, 22, 36, 0.98), rgba(11, 16, 28, 0.95));
  color: var(--text);
  text-align: left;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

.it-work-home-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.it-work-home-head strong {
  font-size: 16px;
  line-height: 1.25;
}

.it-work-home-source {
  margin: 8px 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.it-work-home-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  color: #dbe5ff;
  font-size: 13px;
}

.it-work-home-time {
  margin-top: 8px;
  color: var(--accent);
  font-size: 12px;
}

/* Dedicated IT screen */
.it-screen-section {
  margin-top: 22px;
}

.it-work-list-screen {
  margin-top: 14px;
}

.it-screen-section {
  margin-top: 22px;
}

.it-work-list-screen {
  margin-top: 14px;
}

/* IT detail/actions F1.2 */
.it-direct-card-clickable {
  cursor: pointer;
}

.it-detail-panel {
  margin: 14px 0;
}

.it-detail-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(46, 213, 255, 0.42);
  border-radius: 22px;
  background: rgba(12, 20, 39, 0.94);
  box-shadow: 0 0 22px rgba(46, 213, 255, 0.12);
}

.it-detail-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.12;
}

.it-detail-card p {
  margin: 0;
  color: #edf4ff;
  line-height: 1.45;
}

.it-detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.it-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.it-detail-meta span {
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(5, 8, 20, 0.45);
}

.it-detail-actions {
  display: grid;
  gap: 10px;
}

.it-detail-link {
  text-align: center;
  text-decoration: none;
}

/* IT screen: верхняя плитка уже является заголовком, не дублируем */
.it-screen-section {
  margin-top: 12px;
}


.response-cta-row {
  margin-top: 10px;
}

.response-form {
  display: grid;
  gap: 8px;
}

.response-form span {
  color: rgba(231, 238, 248, 0.92);
  font-size: 14px;
}

.response-form textarea {
  width: 100%;
  min-height: 140px;
  resize: vertical;
  box-sizing: border-box;
}

.placement-city-display {
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.72);
  color: #f8fafc;
  font: inherit;
}


.chat-history {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.chat-bubble {
  max-width: min(82%, 560px);
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(7, 10, 18, 0.62);
  border: 1px solid rgba(144, 160, 192, 0.12);
}

.chat-bubble.mine {
  margin-left: auto;
  background: rgba(34, 197, 94, 0.14);
}

.chat-bubble p { margin: 0; white-space: pre-wrap; line-height: 1.45; }
.chat-bubble small { display: block; margin-top: 6px; opacity: 0.72; }

.message-detail-card.chat-screen {
  display: grid;
  gap: 14px;
}

.chat-screen-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.chat-screen-title {
  flex: 1 1 180px;
  min-width: 0;
}

.chat-screen-title p,
.chat-object-head p {
  margin: 4px 0 0;
  opacity: 0.76;
  font-size: 13px;
}

.chat-object-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(15, 23, 42, 0.45);
}

.chat-object-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.message-detail-card.chat-screen {
  display: grid;
  gap: 14px;
}

.chat-screen-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.chat-screen-title {
  flex: 1 1 180px;
  min-width: 0;
}

.chat-screen-title p,
.chat-object-head p {
  margin: 4px 0 0;
  opacity: 0.76;
  font-size: 13px;
}

.chat-object-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(15, 23, 42, 0.45);
}

.chat-object-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.chat-compose textarea {
  width: 100%;
  min-height: 120px;
  box-sizing: border-box;
  font-size: 16px;
  line-height: 1.45;
}

.chat-compose .modal-actions-row {
  flex-wrap: wrap;
}


.live-refresh-banner {
  position: fixed;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(16, 22, 36, 0.95);
  border: 1px solid rgba(50, 212, 233, 0.24);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
}

.live-refresh-banner.hidden {
  display: none;
}

.live-refresh-banner button {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: linear-gradient(135deg, #32d4e9, #b086ff);
  color: #08111d;
  font-weight: 700;
}


.chat-live-notice {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(50, 212, 233, 0.14);
  color: #0e1a28;
  font-size: 14px;
  font-weight: 600;
}

.chat-live-notice.hidden {
  display: none;
}


.chat-typing {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(50, 212, 233, 0.12);
  color: #0e1a28;
  font-size: 14px;
  font-weight: 600;
}

.chat-typing.hidden {
  display: none;
}

.typing-dots {
  display: inline-flex;
  gap: 4px;
}

.typing-dots i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #0e1a28;
  animation: typingDot 1s infinite ease-in-out;
}

.typing-dots i:nth-child(2) { animation-delay: 0.15s; }
.typing-dots i:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingDot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
  40% { transform: translateY(-3px); opacity: 1; }
}


.chat-back-icon {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}


.message-dialog {
  padding: 0;
}

.message-dialog-body {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  padding: 12px 14px;
}

.message-dialog-main {
  min-width: 0;
}

.message-dialog-topline strong {
  display: block;
  font-size: 15px;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-dialog-preview {
  margin: 5px 0 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-dialog-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(50, 212, 233, 0.2), rgba(50, 212, 233, 0.08));
  position: relative;
  overflow: hidden;
}

.message-dialog-avatar {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.message-dialog-avatar-letter {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(8, 12, 24, 0.92);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  color: var(--text);
}

.message-dialog-actions {
  width: 96px;
}

.message-dialog.swipe-open .message-dialog-body {
  transform: translateX(-96px);
}

.chat-screen-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.chat-screen-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(50, 212, 233, 0.2), rgba(50, 212, 233, 0.08));
  font-size: 18px;
  flex: 0 0 auto;
}

.chat-screen-title {
  min-width: 0;
}

.chat-screen-title strong {
  display: block;
  font-size: 16px;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-screen-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.chat-object-card {
  border-radius: 16px;
  padding: 14px;
  background: rgba(10, 16, 28, 0.9);
  border: 1px solid rgba(144, 160, 192, 0.12);
}

.chat-object-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-object-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(50, 212, 233, 0.12);
  flex: 0 0 auto;
}

.chat-object-head-text {
  min-width: 0;
  flex: 1;
}

.chat-object-head-text strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-object-head-text p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.message-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.message-first {
  margin: 10px 0 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.chat-history {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.chat-object-compact {
  margin: 10px 0 0;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(50, 212, 233, 0.08);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.chat-day-divider {
  display: flex;
  justify-content: center;
  margin: 8px 0;
}

.chat-day-divider span {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(114, 240, 255, 0.08);
  color: var(--muted);
  font-size: 12px;
}

.chat-bubble {
  max-width: 82%;
  padding: 12px 14px 10px;
  border-radius: 18px;
  background: rgba(16, 22, 36, 0.96);
  border: 1px solid rgba(144, 160, 192, 0.12);
}

.chat-bubble.mine {
  margin-left: auto;
  background: rgba(22, 32, 52, 0.98);
  border-color: rgba(50, 212, 233, 0.22);
}

.chat-bubble.theirs {
  margin-right: auto;
}

.chat-bubble p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-bubble small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.chat-compose textarea[data-chat-compose] {
  font-size: 16px;
  min-height: 54px;
  line-height: 1.4;
}


.profile-avatar-wrap {
  display: grid;
  gap: 12px;
  justify-items: center;
  margin-bottom: 14px;
}

.profile-avatar-button {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(50, 212, 233, 0.22), rgba(50, 212, 233, 0.08));
  display: grid;
  place-items: center;
}

.profile-avatar-img,
.profile-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: grid;
  place-items: center;
  font-size: 30px;
  color: var(--text);
}

.profile-avatar-copy {
  text-align: center;
}

.profile-avatar-copy strong {
  display: block;
  font-size: 16px;
}

.profile-avatar-copy small {
  color: var(--muted);
}

.profile-avatar-action {
  min-height: 34px;
}

.profile-avatar-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.message-dialog-avatar-image,
.chat-screen-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.chat-screen-avatar-image-wrap {
  overflow: hidden;
}


/* SHABAGO: визуальное выравнивание публикаций и формы размещения */
.profile-row.profile-row-stack,
#placementsForm.profile-row,
#placementsCreatePane .profile-row {
  border-radius: 24px;
  border: 1px solid rgba(125, 150, 210, 0.22);
  background:
    radial-gradient(circle at 15% 0%, rgba(29, 157, 255, 0.08), transparent 36%),
    rgba(11, 18, 35, 0.78);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

.placements-tabs {
  border: 1px solid rgba(125, 150, 210, 0.18);
  background: rgba(5, 10, 24, 0.52);
  border-radius: 24px;
  padding: 10px;
  margin: 14px 0 18px;
}

.placements-tab {
  width: 100%;
  border: 0;
  border-radius: 18px;
  padding: 13px 18px;
  font-weight: 800;
  font-size: 17px;
  color: #ffffff;
  background: linear-gradient(135deg, #16a8ff, #0f7dff);
  box-shadow: 0 14px 32px rgba(18, 145, 255, 0.28);
}

#placementsForm label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

#placementsForm label span {
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  font-weight: 650;
}

#placementsForm input,
#placementsForm textarea,
#placementsForm select,
.placement-city-display {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(125, 150, 210, 0.22);
  background: rgba(4, 9, 22, 0.72);
  color: #ffffff;
  font-size: 16px;
  padding: 13px 16px;
  outline: none;
}

#placementsForm textarea {
  min-height: 130px;
  resize: vertical;
}

#placementsForm input::placeholder,
#placementsForm textarea::placeholder {
  color: rgba(190, 202, 230, 0.52);
}

#placementsForm input:focus,
#placementsForm textarea:focus,
#placementsForm select:focus {
  border-color: rgba(31, 172, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(31, 172, 255, 0.13);
}

#placementsForm .button-primary,
#placementsForm button[type="submit"] {
  width: 100%;
  border-radius: 18px;
  padding: 14px 18px;
  font-weight: 850;
  font-size: 17px;
  color: #ffffff;
  background: linear-gradient(135deg, #16a8ff, #0f7dff);
  box-shadow: 0 14px 32px rgba(18, 145, 255, 0.28);
}

.empty-state button,
.empty-state .button-primary,
.empty-state [data-profile-nav],
.empty-state [data-screen-button] {
  border: 0;
  border-radius: 18px;
  padding: 12px 18px;
  font-weight: 800;
  color: #ffffff !important;
  background: linear-gradient(135deg, #16a8ff, #0f7dff) !important;
  box-shadow: 0 12px 28px rgba(18, 145, 255, 0.24);
}

.empty-state {
  border-radius: 24px;
  border-color: rgba(125, 150, 210, 0.18);
}


/* SHABAGO: выравниваем тёмную внутреннюю область "Мои публикации" под стиль профиля */
#myPostsSection,
.profile-my-posts,
.profile-publications,
.profile-publications-panel,
.profile-saved-searches,
.profile-saved-searches-panel {
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 0%, rgba(35, 200, 255, 0.10), transparent 38%),
    radial-gradient(circle at 92% 12%, rgba(70, 90, 180, 0.12), transparent 36%),
    rgba(12, 20, 38, 0.78) !important;
  border: 1px solid rgba(125, 150, 210, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 18px 46px rgba(0, 0, 0, 0.18);
}

/* Заголовок внутри "Мои публикации" без чёрной плоскости */
.profile-saved-searches-head {
  background: transparent !important;
}

/* Пустой блок "Публикаций пока нет" тоже в общий стеклянный стиль */
#myPostsSection .empty-state,
.profile-my-posts .empty-state,
.profile-publications .empty-state,
.profile-saved-searches .empty-state {
  background:
    radial-gradient(circle at 20% 0%, rgba(35, 200, 255, 0.08), transparent 40%),
    rgba(9, 16, 31, 0.62) !important;
  border: 1px dashed rgba(125, 150, 210, 0.22) !important;
  box-shadow: none !important;
}

/* Сама кнопка внутри пустого блока — не ядовито синяя, а в стиле акцента */
#myPostsSection .empty-state button,
.profile-my-posts .empty-state button,
.profile-publications .empty-state button,
.profile-saved-searches .empty-state button {
  color: #65d9ff !important;
  background:
    radial-gradient(circle at 20% 0%, rgba(35, 200, 255, 0.15), transparent 38%),
    rgba(7, 13, 28, 0.82) !important;
  border: 1px solid rgba(75, 218, 255, 0.34) !important;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.22),
    0 0 18px rgba(34, 193, 255, 0.10) !important;
}


/* SHABAGO: правка layout формы размещения после визуального выравнивания */

/* Не даём общему .profile-row превращать каждый внутренний блок в тяжёлую карточку */
#placementsRoot .profile-row.profile-row-stack,
#placementsCreatePane .profile-row.profile-row-stack,
#placementsForm.profile-row.profile-row-stack {
  margin: 0 !important;
}

/* Верхний инфо-блок формы — без огромной вложенной рамки */
.profile-row.profile-row-stack:has(+ .placements-tabs) {
  padding: 22px 24px 18px !important;
  margin-bottom: 14px !important;
}

/* Обёртка таба "Создать" — компактнее, не как отдельная большая карточка */
.placements-tabs {
  margin: 10px 0 18px !important;
  padding: 8px !important;
  border-radius: 22px !important;
}

/* Сама кнопка "Создать / Редактирование" не должна раздувать блок */
.placements-tab {
  width: auto !important;
  min-width: 210px;
  max-width: 100%;
  padding: 12px 28px !important;
  border-radius: 18px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Форма — одна цельная карточка, без лишнего съезда */
#placementsForm.profile-row.profile-row-stack {
  padding: 22px 24px 24px !important;
  border-radius: 24px !important;
  gap: 0 !important;
}

/* Поля формы ближе друг к другу, как в основном стиле */
#placementsForm label {
  margin-bottom: 18px !important;
}

#placementsForm label span {
  margin-bottom: 2px !important;
}

/* Убираем ощущение, что поля упали слишком низко */
#placementsForm label:first-of-type {
  margin-top: 0 !important;
}

/* Submit не должен быть гигантским на всю карточку, но на мобиле оставляем удобно */
#placementsForm button[type="submit"] {
  margin-top: 8px !important;
  min-height: 54px;
}

/* Мобильная подгонка */
@media (max-width: 640px) {
  .profile-row.profile-row-stack:has(+ .placements-tabs) {
    padding: 18px 18px 14px !important;
  }

  .placements-tabs {
    margin: 8px 0 16px !important;
  }

  .placements-tab {
    min-width: 170px;
    padding: 11px 24px !important;
  }

  #placementsForm.profile-row.profile-row-stack {
    padding: 18px !important;
  }

  #placementsForm input,
  #placementsForm textarea,
  #placementsForm select,
  .placement-city-display {
    max-width: 100%;
  }
}


/* SHABAGO: выравниваем ширину всех элементов формы размещения */

/* Таб "Создать / Редактирование" — на всю ширину, как submit */
.placements-tabs {
  width: 100% !important;
  box-sizing: border-box !important;
}

.placements-tab {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

/* Форма и все label — на всю ширину карточки */
#placementsForm,
#placementsForm label {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

/* Все поля — одинаковой ширины */
#placementsForm input,
#placementsForm textarea,
#placementsForm select,
#placementsForm .placement-city-display,
.placement-city-display {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* Select на iPhone иногда сам сжимается — принудительно растягиваем */
#placementsForm select[name="placement_type"] {
  display: block !important;
  width: 100% !important;
}

/* Submit оставляем как эталон */
#placementsForm button[type="submit"] {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

/* На мобильном убираем лишнюю боковую вложенность */
@media (max-width: 640px) {
  #placementsForm.profile-row.profile-row-stack {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  #placementsForm input,
  #placementsForm textarea,
  #placementsForm select,
  #placementsForm .placement-city-display {
    font-size: 16px !important;
  }
}


/* SHABAGO: кнопка "Создать / Редактирование" как нижняя submit-кнопка */
#placementsCreatePane + .placements-tabs,
.placements-tabs {
  width: 100% !important;
  display: block !important;
  box-sizing: border-box !important;
}

.placements-tabs .placements-tab,
button.placements-tab,
[data-placement-mode="create"].placements-tab {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  margin: 0 !important;

  min-height: 54px !important;
  border-radius: 18px !important;
  padding: 14px 18px !important;
  font-weight: 850 !important;
  font-size: 17px !important;
}

/* На мобиле держим ту же ширину */
@media (max-width: 640px) {
  .placements-tabs .placements-tab,
  button.placements-tab,
  [data-placement-mode="create"].placements-tab {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
  }
}


.notifications-menu-grid {
  display: grid;
  gap: 12px;
  margin: 16px 0 18px;
}

.notifications-menu-card {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(18, 22, 34, 0.98), rgba(14, 18, 28, 0.98));
  color: #f3f6ff;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.notifications-menu-card strong {
  display: block;
  font-size: 16px;
  line-height: 1.25;
}

.notifications-menu-card small {
  display: block;
  margin-top: 8px;
  color: rgba(227, 233, 245, 0.72);
  font-size: 13px;
  line-height: 1.35;
}

.notifications-menu-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.notifications-menu-status {
  flex: 0 0 auto;
  font-size: 12px;
  line-height: 1.2;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(245, 247, 252, 0.92);
}

.notifications-menu-card.soon {
  opacity: 0.96;
}

.notifications-list-divider {
  margin: 8px 2px 10px;
  color: rgba(228, 233, 243, 0.7);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.notifications-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin: 12px 0 14px;
}

.notifications-actions .button-primary[disabled] {
  opacity: 0.5;
  background: rgba(96, 105, 126, 0.35);
  color: rgba(241, 245, 255, 0.8);
}

.profile-notification-cards {
  display: grid;
  gap: 10px;
}

.profile-notification-card {
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(16, 21, 33, 0.95);
}

.profile-notification-card.active {
  background: linear-gradient(180deg, rgba(22, 32, 51, 0.98), rgba(16, 21, 33, 0.98));
}

.profile-notification-card.soon {
  opacity: 0.9;
}

.profile-notification-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.profile-notification-status {
  font-size: 12px;
  line-height: 1.2;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(245, 247, 252, 0.88);
}

.profile-notification-card small {
  display: block;
  margin-top: 8px;
  color: rgba(227, 233, 245, 0.72);
  line-height: 1.35;
}

.profile-notification-event {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-notification-event-copy {
  min-width: 0;
}

.profile-notification-events {
  display: grid;
}

.profile-notification-hint {
  margin-top: 14px;
}

.notification-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 84px;
  height: 44px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.notification-switch-input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.notification-switch-track {
  position: relative;
  display: block;
  width: 84px;
  height: 36px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(75, 84, 102, 0.8);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.notification-switch-off,
.notification-switch-on {
  position: absolute;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  transition: opacity 150ms ease;
}

.notification-switch-off {
  right: 10px;
  color: rgba(255, 255, 255, 0.86);
}

.notification-switch-on {
  left: 12px;
  color: #051923;
  opacity: 0;
}

.notification-switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  z-index: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff, #dce8ee);
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.3);
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.notification-switch-input:checked + .notification-switch-track {
  border-color: rgba(69, 222, 245, 0.72);
  background: linear-gradient(135deg, #27cfe8, #52e4c0);
  box-shadow: 0 0 0 1px rgba(69, 222, 245, 0.16), 0 5px 18px rgba(39, 207, 232, 0.2);
}

.notification-switch-input:checked + .notification-switch-track .notification-switch-knob {
  transform: translateX(48px);
}

.notification-switch-input:checked + .notification-switch-track .notification-switch-off {
  opacity: 0;
}

.notification-switch-input:checked + .notification-switch-track .notification-switch-on {
  opacity: 1;
}

.notification-switch-input:focus-visible + .notification-switch-track {
  outline: 2px solid rgba(82, 228, 192, 0.9);
  outline-offset: 3px;
}

.notification-switch.disabled,
.notification-switch.loading {
  cursor: default;
  opacity: 0.52;
}

.notification-switch.loading .notification-switch-knob {
  animation: notificationSwitchPulse 700ms ease-in-out infinite alternate;
}

@keyframes notificationSwitchPulse {
  to { opacity: 0.58; }
}

.notifications-summary {
  color: rgba(227, 233, 245, 0.76);
}



/* F6-44: protect feed/cards from long VK aliases, tracking links and hashtag walls */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.app,
.screen,
.page,
.feed,
.feed-list,
.cards,
.card,
.feed-card,
.vacancy-card,
.shabago-card,
.modal,
.modal-card,
.modal-content,
.detail-card,
.it-card {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.card *,
.feed-card *,
.vacancy-card *,
.shabago-card *,
.modal-content *,
.detail-card *,
.it-card * {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  box-sizing: border-box;
}

.card-title,
.feed-card h2,
.vacancy-card h2,
.shabago-card h2,
.it-card h2,
.card-text,
.feed-card p,
.vacancy-card p,
.shabago-card p,
.it-card p {
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

/* Feed preview must stay compact; full text remains available in opened card/detail */
.feed-card h2,
.vacancy-card h2,
.shabago-card h2,
.it-card h2 {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-card p,
.vacancy-card p,
.shabago-card p,
.it-card p {
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Buttons and source links should not stretch the layout */
a,
button,
.source-link,
.open-source,
.card-source {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* F6-47: brighter chat typing indicator */
.chat-typing {
  opacity: 1 !important;
  visibility: visible;
  background: rgba(16, 185, 210, 0.22) !important;
  border: 1px solid rgba(88, 224, 255, 0.48) !important;
  color: rgba(245, 252, 255, 0.96) !important;
  box-shadow:
    0 0 0 1px rgba(88, 224, 255, 0.10),
    0 10px 28px rgba(0, 180, 220, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  font-weight: 650;
}

.chat-typing.hidden {
  display: none !important;
}

.chat-typing .typing-dots i,
.typing-dots i {
  background: rgba(230, 252, 255, 0.96) !important;
  opacity: 1 !important;
  box-shadow: 0 0 8px rgba(95, 230, 255, 0.85);
}

.chat-typing span:not(.typing-dots) {
  color: rgba(245, 252, 255, 0.96) !important;
}


.worker-profile-intro.worker-profile-intro-compact {
  min-height: 76px;
  padding: 10px 12px;
  border-radius: 14px;
}

.worker-profile-intro-compact .worker-profile-intro-head {
  align-items: center;
}

.worker-profile-intro-compact .worker-profile-intro-text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.worker-profile-action-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
}

.worker-create-confirm {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.worker-create-confirm h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.worker-create-confirm p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}


.worker-card {
  text-align: left;
  align-items: stretch;
  padding: 0;
}

.worker-card .feed-card-body {
  gap: 12px;
  padding: 16px;
}

.worker-card-top {
  display: flex;
  gap: 12px;
  align-items: center;
}

.worker-card-avatar {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  overflow: hidden;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, rgba(99, 233, 202, 0.26), rgba(105, 120, 255, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.worker-card-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.worker-card-avatar-fallback {
  font-size: 22px;
  line-height: 1;
}

.worker-card-title-block {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 4px;
}

.worker-card-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.worker-card-name {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
}

.worker-card-category {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.worker-channel-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.worker-channel-badges span {
  width: fit-content;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(102, 255, 196, 0.12);
  color: rgba(190, 255, 229, 0.96);
  font-size: 11px;
  line-height: 1.15;
}

.worker-card-description {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}

.worker-card-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.worker-card-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 12px;
}

.worker-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(95, 230, 255, 0.16);
  color: var(--accent-strong);
  white-space: nowrap;
}

.worker-card-cta-own {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}


.worker-card-lines {
  display: grid;
  gap: 4px;
}

.worker-card-line {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.worker-card-price {
  font-weight: 700;
}

.worker-card-activity {
  color: var(--muted);
}

.worker-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.worker-card-badge {
  width: fit-content;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(95, 230, 255, 0.12);
  color: var(--accent-strong);
  font-size: 12px;
  line-height: 1.2;
}

.worker-trust-controls {
  gap: 10px;
}

.worker-trust-controls .worker-profile-card-head span {
  color: var(--muted);
  font-size: 12px;
}

.worker-modal-profile {
  gap: 16px;
}

.worker-modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.worker-modal-head h2 {
  margin: 2px 0 0;
}

.worker-modal-avatar {
  width: 58px;
  height: 58px;
  border-radius: 20px;
}

.worker-modal-body {
  display: grid;
  gap: 14px;
}

.worker-modal-description {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
}

.worker-modal-details {
  display: grid;
  gap: 8px;
}

.worker-modal-detail-row {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.worker-modal-detail-row span {
  color: var(--muted);
  font-size: 12px;
}

.worker-modal-detail-row strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}

.worker-modal-trust {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.worker-modal-trust h3 {
  margin: 0;
  font-size: 15px;
}

.worker-modal-trust-badges {
  margin: 0;
}

.worker-contact-feedback {
  display: grid;
  gap: 10px;
  margin: 10px 0;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(95, 230, 255, 0.16);
  background: linear-gradient(135deg, rgba(95, 230, 255, 0.12), rgba(255, 255, 255, 0.05));
}

.worker-contact-feedback strong {
  display: block;
  margin-bottom: 4px;
}

.worker-contact-feedback p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.worker-contact-feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.worker-contact-feedback-actions .ghost-button {
  padding: 7px 10px;
  font-size: 12px;
}


/* worker-card-category-atmosphere */
.worker-card,
.worker-modal-profile {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.worker-card::before,
.worker-modal-profile::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: min(46%, 180px);
  pointer-events: none;
  opacity: 0.34;
  z-index: 0;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 100% 100%;
  mask-image: linear-gradient(90deg, transparent, #000 34%, #000);
}

.worker-card .feed-card-body,
.worker-modal-profile > * {
  position: relative;
  z-index: 1;
}

.worker-card--loader::before {
  background-image:
    linear-gradient(135deg, transparent 18%, rgba(255, 196, 91, 0.18) 18% 27%, transparent 27% 46%, rgba(255, 196, 91, 0.12) 46% 56%, transparent 56%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.10) 0 2px, transparent 2px 28px);
}

.worker-card--courier::before {
  background-image:
    radial-gradient(circle at 74% 28%, rgba(95, 230, 255, 0.34) 0 7px, transparent 8px),
    radial-gradient(circle at 42% 68%, rgba(95, 230, 255, 0.20) 0 5px, transparent 6px),
    linear-gradient(135deg, transparent 35%, rgba(95, 230, 255, 0.24) 36% 38%, transparent 39% 52%, rgba(95, 230, 255, 0.16) 53% 55%, transparent 56%);
}

.worker-card--driver::before {
  background-image:
    radial-gradient(circle at 78% 42%, rgba(255, 234, 168, 0.28) 0 10px, transparent 12px),
    linear-gradient(110deg, transparent 36%, rgba(255, 255, 255, 0.18) 37% 39%, transparent 40% 47%, rgba(255, 255, 255, 0.14) 48% 50%, transparent 51%),
    linear-gradient(0deg, transparent 48%, rgba(95, 230, 255, 0.15) 49% 51%, transparent 52%);
}

.worker-card--cleaning::before {
  background-image:
    radial-gradient(circle at 74% 24%, rgba(255, 255, 255, 0.42) 0 3px, transparent 4px),
    radial-gradient(circle at 62% 50%, rgba(95, 230, 255, 0.22) 0 14px, transparent 16px),
    radial-gradient(circle at 88% 70%, rgba(255, 255, 255, 0.28) 0 5px, transparent 6px);
}

.worker-card--plumber::before {
  background-image:
    linear-gradient(90deg, transparent 28%, rgba(95, 230, 255, 0.18) 29% 35%, transparent 36%),
    linear-gradient(0deg, transparent 42%, rgba(95, 230, 255, 0.22) 43% 49%, transparent 50%),
    radial-gradient(circle at 72% 48%, transparent 0 20px, rgba(95, 230, 255, 0.18) 21px 25px, transparent 26px);
}

.worker-card--furniture::before,
.worker-card--handyman::before {
  background-image:
    linear-gradient(135deg, transparent 26%, rgba(255, 196, 91, 0.18) 27% 31%, transparent 32%),
    linear-gradient(45deg, transparent 42%, rgba(255, 255, 255, 0.16) 43% 46%, transparent 47%),
    radial-gradient(circle at 82% 68%, rgba(255, 196, 91, 0.14) 0 18px, transparent 20px);
}

.worker-card--painter::before {
  background-image:
    linear-gradient(100deg, transparent 22%, rgba(255, 132, 176, 0.20) 23% 29%, transparent 30%),
    linear-gradient(0deg, transparent 54%, rgba(255, 132, 176, 0.18) 55% 62%, transparent 63%),
    radial-gradient(circle at 78% 34%, rgba(255, 132, 176, 0.18) 0 18px, transparent 20px);
}

.worker-card--tiler::before {
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.10) 0 1px, transparent 1px 30px),
    radial-gradient(circle at 76% 46%, rgba(95, 230, 255, 0.12) 0 28px, transparent 30px);
}

.worker-card--other::before {
  background-image: radial-gradient(circle at 76% 48%, rgba(95, 230, 255, 0.18) 0 38px, transparent 42px);
}

.worker-modal-profile::before {
  width: min(44%, 220px);
  opacity: 0.24;
}


/* PROFILE_INNER_ROUND_BACK_F1 */
.profile-inner-back,
#favoritesSection [data-screen-button="profile"] {
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  padding: 0;
  border: 1px solid rgba(170, 190, 225, 0.24);
  border-radius: 50%;
  background: rgba(20, 29, 48, 0.82);
  color: var(--text, #f4f7ff);
  display: inline-grid;
  place-items: center;
  font-size: 0;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.profile-inner-back::before,
#favoritesSection [data-screen-button="profile"]::before {
  content: "←";
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}

.profile-inner-back:active,
#favoritesSection [data-screen-button="profile"]:active {
  transform: scale(0.94);
}

.profile-systems-head:has(> .profile-inner-back),
.profile-saved-searches-head:has(> .profile-inner-back) {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: 14px;
  align-items: start;
}

.profile-systems-head:has(> .profile-inner-back) > div,
.profile-saved-searches-head:has(> .profile-inner-back) > div {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.profile-systems-head:has(> .profile-inner-back) > .profile-inner-back,
.profile-saved-searches-head:has(> .profile-inner-back) > .profile-inner-back {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
}

#favoritesSection:has(> [data-screen-button="profile"]) {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: 14px;
  align-items: center;
}

#favoritesSection > h2 {
  grid-column: 2;
  grid-row: 1;
  margin-top: 0;
}

#favoritesSection > [data-screen-button="profile"] {
  grid-column: 1;
  grid-row: 1;
}

#favoritesList {
  grid-column: 1 / -1;
}

/* COMPACT_TOPBAR_NO_BRAND_F2 */
.topbar {
  justify-content: flex-end;
  padding: 9px 14px;
  min-height: 56px;
}

.brand-block {
  display: none !important;
}

.topbar-actions {
  margin-left: auto;
  gap: 6px;
}

.topbar .icon-button {
  width: 38px;
  height: 38px;
  font-size: 17px;
  border-radius: 12px;
}

.topbar .notification-button .icon-button-icon {
  font-size: 20px;
}

/* SCREEN_TITLE_ACTIONS_F1 */

/* Старая отдельная полоса больше не занимает место. */
.topbar {
  display: none !important;
}

.workspace {
  padding-top: 10px;
}

/* Город или заголовок слева, глобальные действия справа. */
.screen-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  margin: 0 0 18px;
}

.screen-top-row > h1,
.screen-top-row > .hero-location {
  min-width: 0;
  margin: 0 !important;
}

.screen-top-row .topbar-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
  margin-left: auto;
}

.screen-top-row .icon-button {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 17px;
}

.screen-top-row .notification-button .icon-button-icon {
  font-size: 20px;
}

/* Место под колокольчик сохраняется и до авторизации:
   остальные две кнопки не прыгают вправо-влево. */
.screen-top-row #notificationButton.hidden {
  display: grid !important;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 390px) {
  .screen-top-row {
    gap: 8px;
  }

  .screen-top-row .icon-button {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .screen-top-row .notification-button .icon-button-icon {
    font-size: 19px;
  }
}

/* NOTIFICATION_BELL_F1 */
.notification-button .icon-button-icon {
  display: inline-block;
  transform-origin: 50% 12%;
}

.notification-button.notification-arrived .icon-button-icon {
  animation: notificationBellRingF1 900ms ease-in-out 1;
}

.notification-button.notification-arrived .notification-button-badge {
  animation: notificationBadgePopF1 700ms ease-out 1;
}

.notification-button-badge {
  min-width: 18px;
  padding-inline: 4px;
  white-space: nowrap;
}

@keyframes notificationBellRingF1 {
  0% { transform: rotate(0deg) scale(1); }
  12% { transform: rotate(18deg) scale(1.12); }
  25% { transform: rotate(-16deg) scale(1.12); }
  38% { transform: rotate(13deg) scale(1.08); }
  52% { transform: rotate(-10deg) scale(1.06); }
  68% { transform: rotate(6deg) scale(1.03); }
  82% { transform: rotate(-3deg) scale(1.01); }
  100% { transform: rotate(0deg) scale(1); }
}

@keyframes notificationBadgePopF1 {
  0% { transform: scale(0.75); }
  45% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .notification-button.notification-arrived .icon-button-icon,
  .notification-button.notification-arrived .notification-button-badge {
    animation: none;
  }
}

/* NOTIFICATION_CENTER_VISUAL_F1 */
.notification-item {
  position: relative;
  padding-right: 38px;
  transition:
    transform 120ms ease,
    border-color 120ms ease,
    background 120ms ease;
}

.notification-item::after {
  content: "›";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 25px;
  line-height: 1;
  color: #a0a9b8;
}

.notification-item.unread {
  padding-left: 32px;
  border-color: #82b5f7;
  background: #f5f9ff;
}

.notification-item.unread::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 20px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #287ee6;
  box-shadow: 0 0 0 4px rgba(40, 126, 230, 0.12);
}

.notification-item:active {
  transform: scale(0.992);
}


/* NOTIFICATION_PUBLICATION_UI_F2 */

/* Убираем большую рамку вокруг внутреннего экрана уведомлений. */
#profilePanel:has(.notifications-inbox-screen) {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.notifications-inbox-screen {
  width: 100%;
}

.notifications-inbox-screen .profile-systems-head {
  margin-bottom: 18px;
}

.notifications-inbox-screen .notifications-actions {
  margin: 0 0 12px;
}

.notifications-inbox-screen .notifications-list {
  gap: 8px;
}

.notifications-inbox-screen .notification-item {
  min-height: 0;
  padding: 12px 36px 12px 14px;
  border-radius: 16px;
  overflow: hidden;
}

.notifications-inbox-screen .notification-item.unread {
  padding-left: 30px;
}

.notifications-inbox-screen .notification-item.unread::before {
  left: 13px;
  top: 18px;
  width: 7px;
  height: 7px;
}

.notifications-inbox-screen .notification-item-top {
  align-items: flex-start;
  gap: 8px;
}

.notifications-inbox-screen .notification-item-top strong {
  min-width: 0;
  flex: 1 1 auto;
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.notifications-inbox-screen .notification-item-time {
  flex: 0 0 auto;
  width: auto;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1.3;
}

.notifications-inbox-screen .notification-item-body {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.notifications-inbox-screen .notification-item::after {
  right: 12px;
  font-size: 22px;
}

.notifications-inbox-screen .notifications-list-divider {
  margin: 7px 2px 3px;
}

/* На внутреннем экране есть собственная стрелка назад. */
body:has(.notifications-inbox-screen) .menu-launcher,
body:has(.publication-detail-screen) .menu-launcher {
  display: none !important;
}

/* Детальная публикация без повторов и рамки в рамке. */
#myPostsSection:has(.publication-detail-screen) {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.publication-detail-screen {
  width: 100%;
}

.publication-detail-head {
  margin-bottom: 16px;
}

.publication-detail-head > div {
  min-width: 0;
}

.publication-detail-head h2 {
  margin: 4px 0 3px;
  font-size: 24px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.publication-detail-head .section-subtitle {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
}

.publication-detail-card {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.publication-detail-description {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.publication-detail-location {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.publication-detail-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.publication-moderator-note {
  margin-top: 16px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 116, 116, 0.22);
  border-radius: 14px;
  background: rgba(143, 43, 43, 0.12);
  overflow: hidden;
}

.publication-moderator-note span {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 205, 205, 0.82);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.publication-moderator-note p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}


/* STARTUP_BRAND_SPLASH_F2H2 */
body.startup-splash-open {
  overflow: hidden;
}

.startup-splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 50% 45%,
      rgba(88, 209, 255, 0.10) 0,
      rgba(88, 209, 255, 0.035) 19%,
      transparent 43%
    ),
    linear-gradient(
      180deg,
      #080b16 0%,
      #070a13 100%
    );
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 420ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 420ms;
  will-change: opacity;
}

.startup-splash-inner {
  position: relative;
  display: grid;
  place-items: center;
  width: 152px;
  height: 152px;
  transform: translateY(-2vh);
}

.startup-splash-glow {
  position: absolute;
  width: 122px;
  height: 122px;
  border-radius: 50%;
  background: rgba(115, 218, 255, 0.09);
  filter: blur(27px);
  opacity: 0.8;
  animation:
    startupSplashGlowF2H2
    1800ms
    ease-in-out
    infinite
    alternate;
}

.startup-splash-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 26px;
  object-fit: contain;
  opacity: 1;
  transform: translateZ(0) scale(1);
  filter:
    drop-shadow(
      0 14px 34px rgba(0, 0, 0, 0.34)
    )
    drop-shadow(
      0 0 18px rgba(110, 216, 255, 0.13)
    );
  animation:
    startupSplashBreathF2H2
    1650ms
    cubic-bezier(0.45, 0, 0.55, 1)
    infinite;
  transition:
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 340ms ease,
    filter 420ms ease;
  will-change: transform, opacity;
}

.startup-splash-wordmark {
  position: relative;
  z-index: 1;
  display: block;
  color: #ffffff;
  font-size: 25px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-indent: 0.12em;
  text-shadow:
    0 12px 30px rgba(0, 0, 0, 0.34),
    0 0 20px rgba(110, 216, 255, 0.13);
  transition:
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 340ms ease;
}

.startup-splash.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.startup-splash.is-leaving .startup-splash-logo,
.startup-splash.is-leaving .startup-splash-wordmark {
  opacity: 0;
  transform:
    translateY(6px)
    scale(0.74);
  filter:
    blur(1.2px)
    drop-shadow(
      0 5px 12px rgba(0, 0, 0, 0.16)
    );
}

.startup-splash.is-leaving .startup-splash-glow {
  opacity: 0;
  transform: scale(0.7);
  transition:
    opacity 260ms ease,
    transform 420ms ease;
}

.stats-grid[data-startup-placeholder="1"]
.stat-card strong {
  color: rgba(231, 238, 248, 0.38);
  animation:
    startupStatPlaceholderF2H2
    900ms
    ease-in-out
    infinite
    alternate;
}

@keyframes startupSplashBreathF2H2 {
  0%,
  100% {
    transform:
      translateZ(0)
      scale(0.97);
  }

  50% {
    transform:
      translateZ(0)
      scale(1.025);
  }
}

@keyframes startupSplashGlowF2H2 {
  from {
    opacity: 0.5;
    transform: scale(0.88);
  }

  to {
    opacity: 0.88;
    transform: scale(1.08);
  }
}

@keyframes startupStatPlaceholderF2H2 {
  from {
    opacity: 0.34;
  }

  to {
    opacity: 0.68;
  }
}

@media (prefers-reduced-motion: reduce) {
  .startup-splash-logo,
  .startup-splash-glow,
  .stats-grid[data-startup-placeholder="1"]
  .stat-card strong {
    animation: none;
  }

  .startup-splash,
  .startup-splash-logo,
  .startup-splash-wordmark {
    transition-duration: 120ms;
  }
}


/* AUTH_VK_PRIMARY_UX_F2H3 */
#authMainPanel[data-auth-vk-primary-ux="1"] {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.auth-card {
  width: min(520px, 100%);
}

.auth-provider-primary-section,
.auth-provider-telegram-section {
  display: grid;
  gap: 11px;
}

.auth-provider-primary-section {
  padding: 16px;
  border: 1px solid rgba(51, 128, 255, 0.34);
  border-radius: 22px;
  background:
    radial-gradient(
      circle at 20% 0%,
      rgba(66, 142, 255, 0.18),
      transparent 43%
    ),
    rgba(9, 17, 34, 0.78);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.20),
    0 0 24px rgba(50, 128, 255, 0.08);
}

.auth-provider-kicker {
  color: rgba(177, 205, 255, 0.78);
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

#authVkButton {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 17px;
  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      #2787f5,
      #1769d2
    );
  box-shadow:
    0 14px 28px rgba(39, 135, 245, 0.28);
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0.01em;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
}

#authVkButton:active {
  transform: scale(0.975);
  box-shadow:
    0 8px 18px rgba(39, 135, 245, 0.22);
}

.auth-provider-note {
  margin: 0;
  color: rgba(221, 230, 246, 0.72);
  font-size: 12px;
  line-height: 1.42;
}

.auth-provider-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: rgba(181, 196, 222, 0.58);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.auth-provider-divider::before,
.auth-provider-divider::after {
  content: "";
  height: 1px;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(144, 160, 192, 0.18)
    );
}

.auth-provider-divider::after {
  background:
    linear-gradient(
      90deg,
      rgba(144, 160, 192, 0.18),
      transparent
    );
}

.auth-provider-telegram-section {
  padding: 14px;
  border: 1px solid rgba(144, 160, 192, 0.14);
  border-radius: 20px;
  background: rgba(7, 10, 18, 0.32);
}

#authTelegramButton {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  color: rgba(235, 244, 255, 0.94);
  background:
    rgba(22, 34, 55, 0.82);
  border:
    1px solid rgba(83, 178, 255, 0.22);
  font-weight: 760;
}

.auth-provider-telegram-section
.auth-code-form {
  display: grid;
  gap: 9px;
  margin-top: 2px;
  padding-top: 12px;
  border-top:
    1px solid rgba(144, 160, 192, 0.12);
}

.auth-provider-telegram-section
.auth-code-form label {
  color: rgba(190, 205, 230, 0.78);
  font-size: 12px;
}

.auth-provider-telegram-section
.inline-form {
  grid-template-columns:
    minmax(0, 1fr)
    auto;
}

#authCodeInput {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
}

#authCodeButton {
  min-width: 116px;
  border-radius: 15px;
  color: rgba(235, 244, 255, 0.94);
  background:
    rgba(32, 48, 75, 0.88);
  border:
    1px solid rgba(100, 184, 255, 0.24);
  font-weight: 780;
}

.auth-provider-later {
  display: flex;
  justify-content: center;
}

#authLaterButton {
  width: auto;
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  color: rgba(181, 196, 222, 0.68);
  background: transparent;
  box-shadow: none;
  font-size: 13px;
}

#vkAuthOpenButton {
  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      #2787f5,
      #1769d2
    );
  border: 0;
  box-shadow:
    0 12px 25px rgba(39, 135, 245, 0.24);
}

@media (max-width: 560px) {
  .auth-provider-primary-section,
  .auth-provider-telegram-section {
    padding: 13px;
  }

  .auth-provider-telegram-section
  .inline-form {
    grid-template-columns: 1fr;
  }

  #authCodeButton {
    width: 100%;
  }
}


/* AUTH_COMPACT_DISCLOSURE_F2H4 */
#authModal {
  z-index: 1200;
  padding:
    max(10px, env(safe-area-inset-top))
    10px
    max(10px, env(safe-area-inset-bottom));
}

#authModal .auth-card {
  width: min(480px, 100%);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
  border-radius: 22px;
  scrollbar-width: thin;
}

#authModal .auth-card > .eyebrow {
  margin-bottom: 6px;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.11em;
}

#authModal .auth-card > h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
}

#authModal .auth-card > .lock-copy {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.35;
}

#authMainPanel[data-auth-compact-disclosure="1"] {
  display: grid;
  gap: 11px;
  margin-top: 14px;
}

.auth-provider-primary-compact {
  gap: 8px;
  padding: 13px;
  border-radius: 19px;
}

.auth-provider-primary-compact
#authVkButton {
  min-height: 50px;
  border-radius: 16px;
  font-size: 15px;
}

.auth-provider-primary-compact
.auth-provider-note {
  font-size: 11.5px;
  line-height: 1.35;
}

.auth-provider-alternative-toggle {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 0;
  color: rgba(188, 202, 226, 0.76);
  background: transparent;
  box-shadow: none;
  font-size: 12px;
  font-weight: 650;
}

.auth-provider-toggle-arrow {
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform 180ms ease;
}

.auth-provider-alternative-toggle.is-expanded
.auth-provider-toggle-arrow {
  transform:
    translateY(1px)
    rotate(180deg);
}

.auth-provider-telegram-collapsible[hidden] {
  display: none !important;
}

.auth-provider-telegram-collapsible {
  padding: 12px;
  border-radius: 18px;
  animation:
    authAlternativeRevealF2H4
    180ms
    ease-out;
}

.auth-provider-telegram-collapsible
#authTelegramButton {
  min-height: 44px;
  font-size: 13px;
}

.auth-provider-telegram-collapsible
.auth-code-form {
  gap: 7px;
  padding-top: 10px;
}

.auth-provider-telegram-collapsible
.auth-code-form label {
  font-size: 11px;
}

.auth-provider-telegram-collapsible
input {
  min-height: 44px;
  font-size: 16px;
}

.auth-provider-telegram-collapsible
#authCodeButton {
  min-height: 44px;
  font-size: 13px;
}

#authModal .auth-provider-later {
  margin-top: 0;
}

#authModal #authLaterButton {
  min-height: 32px;
  font-size: 11.5px;
}


/* Компактный экран получения и ввода VK-кода */
#authModal .auth-vk-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
}

#authModal .auth-vk-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
}

#authModal .auth-vk-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}

.auth-vk-compact-actions {
  display: grid;
  gap: 8px;
}

#authModal #vkAuthOpenButton {
  width: 100%;
  min-height: 48px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 780;
}

.auth-vk-compact-label {
  margin-top: 2px;
  color: rgba(190, 205, 230, 0.8);
  font-size: 12px;
  line-height: 1.2;
}

#authModal .auth-vk-compact-confirm-row {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    auto;
  gap: 8px;
}

#authModal #vkAuthConfirmInput {
  min-height: 46px;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
}

#authModal #vkAuthConfirmButton {
  min-width: 112px;
  min-height: 46px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 760;
}

.auth-vk-compact-back {
  display: flex;
  justify-content: center;
}

#authModal #vkAuthBackButton {
  width: auto;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  color: rgba(188, 202, 226, 0.72);
  background: transparent;
  box-shadow: none;
  font-size: 12px;
}

#authModal .auth-vk-error {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

@keyframes authAlternativeRevealF2H4 {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 560px) {
  #authModal .auth-card {
    padding: 14px;
  }

  #authModal .auth-vk-compact-confirm-row {
    grid-template-columns: 1fr;
  }

  #authModal #vkAuthConfirmButton {
    width: 100%;
  }

  .auth-provider-telegram-collapsible
  .inline-form {
    grid-template-columns: 1fr;
  }
}

/* SCALE_STATS_CSS_F2H5B_START */
.scale-stats-row[hidden],
.scale-info-panel[hidden] {
  display: none !important;
}

.scale-stats-row {
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
  margin: 10px 0 16px;
  padding: 9px 12px 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(68, 211, 231, 0.22);
  border-radius: 15px;
  background:
    linear-gradient(
      135deg,
      rgba(15, 33, 52, 0.74),
      rgba(10, 21, 37, 0.56)
    );
  color: rgba(228, 241, 249, 0.88);
  font: inherit;
  font-size: 13px;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 120ms ease;
}

.scale-stats-row:active {
  transform: scale(0.992);
}

.scale-stats-row:focus-visible {
  outline: 2px solid rgba(62, 211, 235, 0.7);
  outline-offset: 2px;
}

.scale-stats-copy {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.scale-stats-chevron {
  flex: 0 0 auto;
  color: rgba(61, 214, 235, 0.9);
  font-size: 22px;
  line-height: 1;
  transform: translateY(-1px);
}

.scale-info-panel {
  position: fixed;
  inset: 0;
  z-index: 1100;
  box-sizing: border-box;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding:
    20px
    14px
    calc(14px + env(safe-area-inset-bottom));
  background: rgba(2, 8, 18, 0.58);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.scale-info-card {
  position: relative;
  box-sizing: border-box;
  width: min(100%, 430px);
  padding: 22px 20px 20px;
  border: 1px solid rgba(64, 205, 229, 0.28);
  border-radius: 24px;
  background:
    linear-gradient(
      155deg,
      rgba(20, 37, 58, 0.98),
      rgba(8, 18, 33, 0.98)
    );
  color: rgba(238, 246, 251, 0.96);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.48),
    0 0 28px rgba(39, 201, 228, 0.08);
  animation: scaleInfoEnter 210ms ease-out both;
}

.scale-info-kicker {
  margin: 0 42px 7px 0;
  color: rgba(66, 211, 233, 0.86);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scale-info-card h2 {
  margin: 0 38px 12px 0;
  font-size: 20px;
  line-height: 1.18;
}

.scale-info-card p {
  margin: 0;
  color: rgba(218, 229, 238, 0.86);
  font-size: 14px;
  line-height: 1.48;
}

.scale-info-card .scale-info-note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(129, 164, 190, 0.16);
  color: rgba(172, 190, 205, 0.78);
  font-size: 12.5px;
}

.scale-info-close {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(132, 164, 188, 0.18);
  border-radius: 50%;
  background: rgba(81, 107, 133, 0.14);
  color: rgba(232, 241, 248, 0.88);
  font: inherit;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

body.scale-info-open {
  overflow: hidden;
}

body.scale-info-open #menuLauncher,
body.scale-info-open #feedScrollTop {
  opacity: 0;
  pointer-events: none;
}

@keyframes scaleInfoEnter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.975);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 360px) {
  .scale-stats-row {
    padding-left: 11px;
    padding-right: 10px;
    font-size: 12px;
  }

  .scale-info-card {
    padding-left: 17px;
    padding-right: 17px;
  }

  .scale-info-card h2 {
    font-size: 18px;
  }
}
/* SCALE_STATS_CSS_F2H5B_END */


/* SCALE_ROW_TOP_CSS_F2H5B1_START */
.scale-stats-row.scale-stats-row-top {
  margin-top: 6px;
  margin-bottom: 12px;
}

@media (max-width: 390px) {
  .scale-stats-row.scale-stats-row-top {
    margin-top: 4px;
    margin-bottom: 10px;
  }
}
/* SCALE_ROW_TOP_CSS_F2H5B1_END */


/* SCALE_COPY_SPACING_F2H5B2_START */
.scale-stats-row.scale-stats-row-top {
  margin-top: -28px;
  margin-bottom: 0;
}

@media (max-width: 390px) {
  .scale-stats-row.scale-stats-row-top {
    margin-top: -26px;
    margin-bottom: 0;
  }
}
/* SCALE_COPY_SPACING_F2H5B2_END */


/* INSTALL_HELP_F2H6A1_START */
.profile-help-menu,
.install-update-grid {
  display: grid;
  gap: 10px;
}

.install-help-head {
  margin-bottom: 14px;
}

.install-platform-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.install-platform-tab {
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(144, 160, 192, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(232, 240, 251, 0.78);
  font: inherit;
  line-height: 1.25;
}

.install-platform-tab.active {
  border-color: rgba(50, 212, 233, 0.52);
  background: rgba(31, 112, 139, 0.24);
  color: #f5fbff;
}

.install-guide-card,
.install-state-card,
.install-safety-note {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(144, 160, 192, 0.14);
  border-radius: 18px;
  background: rgba(10, 18, 30, 0.72);
}

.install-guide-card h3 {
  margin: 0 0 12px;
  font-size: clamp(18px, 1rem + 0.45vw, 22px);
  line-height: 1.25;
}

.install-guide-steps,
.install-guide-card ul {
  margin: 0;
  padding-left: 22px;
}

.install-guide-steps > li,
.install-guide-card li {
  margin-bottom: 10px;
  color: rgba(236, 243, 252, 0.92);
  line-height: 1.52;
}

.install-guide-steps > li:last-child,
.install-guide-card li:last-child {
  margin-bottom: 0;
}

.install-guide-steps ul {
  margin-top: 7px;
  padding-left: 18px;
  color: rgba(190, 204, 225, 0.82);
}

.install-guide-note {
  background: rgba(22, 35, 51, 0.72);
}

.install-state-card.active {
  border-color: rgba(72, 204, 154, 0.34);
  color: rgba(222, 255, 241, 0.96);
}

.install-primary-action,
.install-help-actions .button-primary,
.install-help-actions .ghost-button {
  min-height: 46px;
  width: 100%;
}

.install-primary-action {
  margin: 0 0 4px;
}

.install-prompt-status,
.install-safety-note {
  color: rgba(197, 211, 232, 0.82);
  line-height: 1.45;
}

.install-help-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-bottom: max(18px, env(safe-area-inset-bottom));
}

.install-help-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

body:has(#profilePanel .install-help-head) .menu-launcher,
body:has(#profilePanel .install-help-head) .feed-scroll-top {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 420px) {
  .install-platform-tabs {
    grid-template-columns: 1fr;
  }

  .install-guide-card,
  .install-state-card,
  .install-safety-note {
    padding: 14px;
    border-radius: 16px;
  }
}
/* INSTALL_HELP_F2H6A1_END */

/* FEEDBACK_F2H6B_START */
.feedback-screen {
  padding-bottom: max(28px, env(safe-area-inset-bottom));
}

.feedback-form {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.feedback-form label {
  display: grid;
  gap: 8px;
  color: rgba(225, 235, 249, 0.92);
  font-size: 14px;
}

.feedback-form textarea,
.feedback-form input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(144, 160, 192, 0.2);
  border-radius: 16px;
  background: rgba(7, 14, 25, 0.82);
  color: #f5fbff;
  font: inherit;
  font-size: max(16px, 1em);
  line-height: 1.48;
  outline: none;
}

.feedback-form textarea {
  min-height: 184px;
  padding: 14px;
  resize: vertical;
}

.feedback-form input {
  min-height: 48px;
  padding: 11px 14px;
}

.feedback-form textarea:focus,
.feedback-form input:focus {
  border-color: rgba(50, 212, 233, 0.62);
  box-shadow: 0 0 0 3px rgba(50, 212, 233, 0.1);
}

.feedback-field-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(179, 194, 216, 0.72);
}

.feedback-error {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 116, 116, 0.32);
  border-radius: 14px;
  background: rgba(119, 35, 45, 0.2);
  color: rgba(255, 220, 224, 0.96);
  line-height: 1.4;
}

.feedback-submit,
.feedback-success-actions .button-primary,
.feedback-success-actions .ghost-button {
  width: 100%;
  min-height: 48px;
}

.feedback-success-card {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(72, 204, 154, 0.34);
  border-radius: 18px;
  background: rgba(26, 91, 67, 0.2);
  color: rgba(231, 255, 245, 0.96);
}

.feedback-success-card p {
  margin: 9px 0 0;
  color: rgba(199, 224, 214, 0.82);
  line-height: 1.48;
}

.feedback-success-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

body:has(#profilePanel .feedback-screen) .menu-launcher,
body:has(#profilePanel .feedback-screen) .feed-scroll-top {
  opacity: 0;
  pointer-events: none;
}
/* FEEDBACK_F2H6B_END */

/* F2H7B1_COMPACT_FEED_CARDS_START */
#vacancyList,
#shabashkiList,
#searchResultsList,
#favoritesList,
#itScreenList {
  gap: 10px;
}

.compact-feed-card,
.compact-spotlight-card {
  --compact-card-accent: rgba(50, 212, 233, 0.72);
  --compact-card-accent-soft: rgba(50, 212, 233, 0.11);
}

.compact-feed-card--shabashka {
  --compact-card-accent: rgba(255, 196, 91, 0.78);
  --compact-card-accent-soft: rgba(255, 196, 91, 0.11);
}

.compact-feed-card--it-work {
  --compact-card-accent: rgba(82, 228, 192, 0.76);
  --compact-card-accent-soft: rgba(82, 228, 192, 0.1);
}

.feed-card.compact-feed-card {
  min-height: 92px;
  border: 1px solid rgba(144, 160, 192, 0.16);
  border-left: 3px solid var(--compact-card-accent);
  border-radius: 16px;
  background:
    linear-gradient(115deg, var(--compact-card-accent-soft), transparent 32%),
    linear-gradient(180deg, rgba(21, 29, 47, 0.96), rgba(13, 19, 31, 0.97));
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.feed-card.compact-feed-card:focus-visible {
  border-color: var(--compact-card-accent);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}

.feed-card.compact-feed-card:active {
  border-color: var(--compact-card-accent);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
  transform: scale(0.992);
}

@media (hover: hover) and (pointer: fine) {
  .feed-card.compact-feed-card:hover {
    border-color: var(--compact-card-accent);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
  }
}

.compact-feed-card-body {
  display: grid;
  gap: 4px;
  padding: 8px 11px 9px;
}

.compact-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.compact-card-type {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 2px 7px;
  border: 1px solid var(--compact-card-accent);
  border-radius: 999px;
  background: var(--compact-card-accent-soft);
  color: rgba(237, 247, 255, 0.96);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.compact-card-lifecycle {
  min-width: 0;
  overflow: hidden;
  color: rgba(181, 196, 222, 0.76);
  font-size: 11px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-card .compact-card-title,
.spotlight-card .compact-card-title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #f0f5ff;
  font-size: 16px;
  font-weight: 720;
  line-height: 1.34;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.compact-card-meta {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  margin: 0;
  overflow: hidden;
  color: rgba(181, 196, 222, 0.78);
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap !important;
  -webkit-line-clamp: unset !important;
}

.compact-card-meta span {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-card-meta span:not(:last-child)::after {
  content: "\00b7";
  margin: 0 6px;
  color: rgba(144, 160, 192, 0.56);
}

.compact-card-detail {
  display: block !important;
  margin: 0;
  overflow: hidden;
  color: rgba(227, 236, 249, 0.9);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap !important;
  -webkit-line-clamp: unset !important;
}

.spotlight-card.compact-spotlight-card {
  min-height: 94px;
  padding: 9px 11px;
  grid-template-rows: auto auto auto;
  align-content: start;
  gap: 4px;
  border-color: rgba(144, 160, 192, 0.16);
  border-left: 3px solid var(--compact-card-accent);
  border-radius: 16px;
  background:
    linear-gradient(115deg, var(--compact-card-accent-soft), transparent 34%),
    linear-gradient(180deg, rgba(21, 29, 47, 0.94), rgba(13, 19, 31, 0.96));
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.spotlight-card.compact-spotlight-card::after {
  border-radius: 16px;
}

.it-direct-card.compact-feed-card {
  cursor: pointer;
}

@media (max-width: 560px) {
  #vacancyList,
  #shabashkiList,
  #searchResultsList,
  #favoritesList,
  #itScreenList {
    gap: 9px;
  }

  .compact-feed-card-body,
  .spotlight-card.compact-spotlight-card {
    padding: 8px 10px 9px;
  }

  .feed-card .compact-card-title,
  .spotlight-card .compact-card-title {
    font-size: 15px;
    line-height: 1.32;
  }

  .compact-card-lifecycle {
    font-size: 10.5px;
  }

  .compact-card-meta,
  .compact-card-detail {
    font-size: 11.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feed-card.compact-feed-card {
    transition: none;
  }
}
/* F2H7B1_COMPACT_FEED_CARDS_END */

/* F2H7B1_1_MOBILE_POLISH_START */
.feed-card.compact-feed-card.viewed {
  opacity: 1;
  filter: none;
}

/* F2H8A1_NARROW_MOBILE_FOUNDATION_START */
/* Keep the existing standard-mobile layout intact; only compact the proven narrow range. */
@media (max-width: 359px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero > * {
    min-width: 0;
    max-width: 100%;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .stat-card {
    min-height: 104px;
    padding: 10px;
  }

  .stat-card:nth-child(3):last-child {
    grid-column: 1 / -1;
    min-height: 88px;
  }
}

/* The launcher keeps its 390px position; only collision-prone ranges use the bottom safe zone. */
@media (max-width: 389px), (min-width: 640px) and (max-width: 1199px) {
  .menu-launcher {
    top: auto;
    bottom: max(12px, env(safe-area-inset-bottom));
    transform: none;
  }
}

/* Reserve the launcher footprint at the end of scrollable content without changing its visual size. */
.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: max(92px, calc(76px + env(safe-area-inset-bottom)));
}

/* Preserve compact visual buttons while extending their coarse-pointer hit area to 44px. */
@media (pointer: coarse) {
  .screen-top-row .icon-button,
  .search-clear,
  .search-notify-button,
  .scale-stats-row {
    position: relative;
  }

  .screen-top-row .icon-button::after,
  .search-clear::after,
  .search-notify-button::after,
  .modal-close::after {
    content: "";
    position: absolute;
    z-index: 1;
    pointer-events: auto;
  }

  .screen-top-row .icon-button::after {
    inset: -3px;
  }

  .search-clear::after,
  .search-notify-button::after {
    inset: -7px;
  }

  .modal-close::after {
    inset: -1px;
  }

  .scale-stats-row::after {
    content: "";
    position: absolute;
    inset: -1px 0;
  }
}

@media (pointer: coarse) and (max-width: 390px) {
  .screen-top-row .icon-button::after {
    inset: -4px;
  }

  .screen-top-row .topbar-actions .icon-button + .icon-button::after {
    inset: -4px -6px -4px -2px;
  }
}

/* Use dynamic viewport height when supported without removing the older fallback. */
.lock-screen {
  min-height: calc(100vh - 90px);
  min-height: calc(100dvh - 90px);
}

#cardModal.modal-backdrop {
  padding:
    max(14px, env(safe-area-inset-top))
    14px
    max(14px, env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
}

#cardModal .modal {
  max-height: calc(100vh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  max-height: calc(100dvh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
}

/* This project already uses :has(); keep card-modal scroll locking local to the open state. */
body:has(#cardModal.open) {
  overflow: hidden;
}
/* F2H8A1_NARROW_MOBILE_FOUNDATION_END */

body:has(.view[data-screen="shabashki"].active) .menu-launcher,
body:has(.view[data-screen="vacancies"].active) .menu-launcher,
body:has(#itScreenSection:not(.hidden)) .menu-launcher {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-actions-row.modal-reactions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  width: 100%;
  max-width: 430px;
  margin-inline: auto;
}

.compact-card-badges {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.quality-risk-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.quality-risk-badge--caution {
  color: #ffe3a3;
  border-color: rgba(240, 176, 62, 0.34);
  background: rgba(161, 104, 17, 0.22);
}

.quality-risk-badge--danger {
  color: #ffd0cc;
  border-color: rgba(255, 94, 84, 0.38);
  background: rgba(153, 42, 35, 0.25);
}

.quality-risk-notice {
  margin: 0 0 14px;
  padding: 11px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
}

.quality-risk-notice--caution {
  color: #ffe8b3;
  border: 1px solid rgba(240, 176, 62, 0.32);
  background: rgba(161, 104, 17, 0.18);
}

.quality-risk-notice--danger {
  color: #ffd6d2;
  border: 1px solid rgba(255, 94, 84, 0.34);
  background: rgba(153, 42, 35, 0.2);
}

.quality-primary-actions .quality-action {
  display: grid;
  grid-template-rows: 24px auto;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  min-height: 52px;
  min-width: 0;
  padding: 5px 2px 4px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font: inherit;
  line-height: 1;
  overflow: hidden;
}

.quality-primary-actions .quality-action.active {
  color: #dffbff;
  border-color: rgba(50, 212, 233, 0.42);
  background: rgba(50, 212, 233, 0.13);
  box-shadow: inset 0 0 0 1px rgba(50, 212, 233, 0.08);
}

.quality-action-icon {
  grid-column: 1 / -1;
  font-size: 20px;
  line-height: 24px;
}

.quality-action-heart {
  font-size: 24px;
}

.quality-action-label {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  font-size: 10px;
  font-weight: 720;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-action small {
  margin-left: 2px;
  color: inherit;
  font-size: 9px;
  line-height: 1;
}

.quality-more-actions {
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.quality-more-actions summary {
  width: max-content;
  margin: 10px auto 0;
  padding: 7px 14px;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}

.quality-more-actions summary::-webkit-details-marker {
  display: none;
}

.quality-more-menu {
  display: grid;
  gap: 7px;
  margin-top: 7px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(5, 10, 20, 0.62);
}

.quality-more-menu button {
  min-height: 42px;
  padding: 9px 12px;
  border: 0;
  border-radius: 11px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  text-align: left;
}

.quality-more-menu p {
  margin: 2px 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.quality-report-panel {
  display: grid;
  gap: 11px;
  margin-top: 12px;
  padding: 13px;
  border: 1px solid rgba(50, 212, 233, 0.18);
  border-radius: 16px;
  background: rgba(8, 17, 31, 0.88);
}

.quality-report-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.quality-report-panel select,
.quality-report-panel textarea {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  color: var(--text);
  background: #0b1322;
  font: inherit;
}

.hidden-sources-screen .profile-systems-head {
  margin-bottom: 18px;
}

.hidden-source-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.quality-tombstone {
  padding: 26px 18px;
  text-align: center;
}

.quality-tombstone p {
  color: var(--muted);
  line-height: 1.5;
}

.modal-reaction-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}

.view[data-screen="shabashki"] > .section-head.compact,
.view[data-screen="vacancies"] > .section-head.compact {
  margin-bottom: 12px;
}

.view[data-screen="shabashki"] > .section-head.compact > div,
.view[data-screen="vacancies"] > .section-head.compact > div {
  gap: 3px;
}

.view[data-screen="shabashki"] > .section-head.compact h1,
.view[data-screen="vacancies"] > .section-head.compact h1 {
  font-size: clamp(26px, 4.6vw, 42px);
}

.view[data-screen="shabashki"] > .section-head.compact .section-subtitle,
.view[data-screen="vacancies"] > .section-head.compact .section-subtitle {
  font-size: 14px;
  line-height: 1.05;
}

@media (max-width: 560px) {
  .modal-actions-row.modal-reactions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
  }

  .quality-risk-badge {
    font-size: 10px;
  }

  .quality-primary-actions .quality-action {
    min-height: 52px;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .source-link::before,
  .source-link::after {
    animation: none;
  }
}
/* F2H7B1_1_MOBILE_POLISH_END */

/* F2H8B1_PUSH_DIAGNOSTICS_START */
.technical-info-copy {
  opacity: 0.88;
}

.technical-info-fallback {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.technical-info-fallback label {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.technical-info-output {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: var(--text);
  background: rgba(5, 10, 20, 0.72);
  font: 12px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace;
  user-select: text;
}
/* F2H8B1_PUSH_DIAGNOSTICS_END */
