:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-soft: #f9fbff;
  --stroke: #d8deea;
  --text: #171b24;
  --muted: #667085;
  --accent: #0f7a6f;
  --accent-2: #22b8a8;
  --danger: #b83f57;
  --success: #17865f;
  --radius: 18px;
  --shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  height: 100%;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(70% 40% at 10% 0%, rgba(34, 184, 168, 0.15) 0%, rgba(34, 184, 168, 0) 60%),
    radial-gradient(75% 45% at 90% 10%, rgba(15, 122, 111, 0.12) 0%, rgba(15, 122, 111, 0) 60%),
    var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", "Space Grotesk", sans-serif;
  overscroll-behavior-y: none;
}

.bg-noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.25;
  background-image: radial-gradient(circle, rgba(23, 27, 36, 0.025) 0.75px, transparent 0.8px);
  background-size: 8px 8px;
}

.app-shell {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
  padding: 20px 14px 108px;
}

.screen-head {
  margin-bottom: 16px;
  padding: 2px 2px 0;
}

.eyebrow {
  margin: 0;
  color: color-mix(in srgb, var(--accent) 88%, #123a47 12%);
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.48rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.03rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.muted {
  color: var(--muted);
  line-height: 1.52;
}

.head-title-row {
  margin: 8px 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.head-badge {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, rgba(224, 236, 250, 0.9), rgba(210, 228, 248, 0.86));
  color: #31577b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 8px 18px rgba(52, 76, 112, 0.16);
}

.head-badge-svg {
  width: 16px;
  height: 16px;
}

.small-text {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
}

.progress-text {
  margin-top: 8px;
  color: #2f6f67;
  font-size: 0.9rem;
}

.swipe-tip {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(194, 210, 232, 0.78);
  border-radius: 16px;
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.9), rgba(242, 247, 255, 0.78));
  box-shadow: 0 16px 28px rgba(22, 34, 54, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  color: #1e3048;
  font-size: 0.86rem;
  backdrop-filter: blur(14px);
}

.swipe-tip-close {
  border: 0;
  background: linear-gradient(160deg, rgba(234, 242, 252, 0.95), rgba(224, 236, 251, 0.9));
  color: #385572;
  border-radius: 999px;
  width: 24px;
  height: 24px;
  line-height: 24px;
  font-size: 16px;
  font-weight: 700;
  padding: 0;
}

.swipe-legend {
  display: block;
  margin: -1px 0 14px;
}

.swipe-legend-bar {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 16px;
  border: 1px solid rgba(206, 200, 190, 0.7);
  backdrop-filter: blur(12px);
  padding: 12px 14px;
  font-size: 0.8rem;
  box-shadow: 0 16px 26px rgba(18, 29, 47, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(90deg, rgba(255, 88, 118, 0.22) 0%, rgba(255, 245, 245, 0.2) 46%, rgba(224, 249, 244, 0.22) 54%, rgba(23, 193, 149, 0.24) 100%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(246, 250, 255, 0.82));
}

.swipe-legend-bar::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 0;
  height: 46%;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.swipe-legend-side {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.76rem;
  position: relative;
  z-index: 1;
}

.swipe-legend-side:first-child {
  color: #8f2a44;
}

.swipe-legend-side:last-child {
  color: #0c6a61;
}

.swipe-legend-divider {
  width: 1px;
  height: 18px;
  background: rgba(70, 83, 103, 0.24);
  border-radius: 999px;
  position: relative;
  z-index: 1;
}

.panel,
.swipe-card {
  background: color-mix(in srgb, var(--surface) 90%, #ffffff 10%);
  border: 1px solid color-mix(in srgb, var(--stroke) 90%, #e9eef8 10%);
  border-radius: var(--radius);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.09);
  padding: 17px;
  margin-bottom: 14px;
}

.accordion-group {
  display: grid;
  gap: 10px;
}

.accordion-item {
  padding: 0;
  overflow: hidden;
}

.accordion-head {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 16px;
  cursor: pointer;
}

.accordion-head::-webkit-details-marker {
  display: none;
}

.accordion-head h2 {
  margin: 0;
}

.section-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: linear-gradient(165deg, rgba(226, 238, 252, 0.92), rgba(212, 228, 248, 0.9));
  color: #345980;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.section-svg {
  width: 15px;
  height: 15px;
}

.accordion-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ebf2fa;
  color: #54657e;
  transition: transform 180ms ease, background-color 180ms ease;
}

.accordion-item[open] .accordion-icon {
  transform: rotate(180deg);
  background: #dff2ee;
}

.accordion-icon::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid #5a6d89;
  border-bottom: 2px solid #5a6d89;
  transform: translateY(-1px) rotate(45deg);
}

.accordion-body {
  padding: 2px 16px 16px;
  border-top: 1px solid #e6ebf4;
  transform-origin: top center;
}

.accordion-item[open] .accordion-body {
  animation: accordionReveal 260ms ease;
}

.panel-soft {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(246, 250, 255, 0.92));
  box-shadow: 0 20px 36px rgba(19, 34, 58, 0.1);
}

.form-grid p {
  margin: 0 0 10px;
}

label {
  display: block;
  margin-bottom: 6px;
  color: #3a4253;
  font-size: 0.88rem;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: #ffffff;
  padding: 12px 13px;
  color: var(--text);
  font-size: 16px;
  font-family: "Plus Jakarta Sans", sans-serif;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 62%, white 38%);
  box-shadow: 0 0 0 4px rgba(34, 184, 168, 0.16);
}

input[type="file"] {
  border: 0;
  padding: 0;
  background: transparent;
}

.file-picker {
  display: block;
  border: 1px dashed #9ec9c2;
  border-radius: 12px;
  background: linear-gradient(160deg, #eff9f7, #f6fcfb);
  padding: 10px;
}

.file-picker input[type="file"] {
  width: 100%;
}

.file-picker input[type="file"]::file-selector-button {
  border: 0;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  padding: 10px 12px;
  margin-right: 10px;
  cursor: pointer;
}

.field-error {
  display: block;
  margin-top: 6px;
  color: #9a1f3a;
  font-size: 0.82rem;
}

.btn {
  border: 0;
  border-radius: 14px;
  padding: 11px 14px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 22px rgba(15, 122, 111, 0.24);
}

.btn-ghost {
  color: var(--danger);
  background: #fbe9ed;
}

.btn-soft {
  color: #0e534d;
  background: #ddf4f1;
}

.messages {
  margin-bottom: 10px;
}

.message {
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-size: 0.88rem;
  border: 1px solid transparent;
}

.message.success {
  color: #0a5a3f;
  background: #def6ea;
  border-color: #b5e7d0;
}

.message.error {
  color: #7f2237;
  background: #fde8ee;
  border-color: #f6c1cf;
}

.swipe-card {
  position: relative;
  overflow: hidden;
}

.swipe-card::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  top: -78px;
  right: -58px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 184, 168, 0.22), rgba(34, 184, 168, 0));
}

.swipe-card-top {
  margin-bottom: 10px;
}

.swipe-stage {
  perspective: 1000px;
  position: relative;
}

.swipe-page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-wave {
  position: absolute;
  border-radius: 50%;
  filter: blur(56px);
  opacity: 0.7;
  mix-blend-mode: multiply;
  animation: waveDrift 14s ease-in-out infinite;
}

.bg-wave-a {
  width: 320px;
  height: 320px;
  left: -90px;
  top: -70px;
  background: rgba(29, 196, 175, 0.42);
}

.bg-wave-b {
  width: 360px;
  height: 360px;
  right: -120px;
  top: 20%;
  background: rgba(30, 138, 224, 0.34);
  animation-delay: 2.8s;
}

.bg-wave-c {
  width: 280px;
  height: 280px;
  left: 25%;
  bottom: -90px;
  background: rgba(90, 109, 231, 0.28);
  animation-delay: 1.4s;
}

.dynamic-stage {
  overflow: hidden;
  border-radius: 24px;
}

.motion-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(26px);
  pointer-events: none;
  opacity: 0.75;
  z-index: 0;
  animation: floaty 9s ease-in-out infinite;
}

.orb-a {
  width: 180px;
  height: 180px;
  top: -35px;
  right: -30px;
  background: rgba(27, 183, 167, 0.35);
}

.orb-b {
  width: 160px;
  height: 160px;
  bottom: 100px;
  left: -40px;
  background: rgba(22, 118, 183, 0.24);
  animation-delay: 1.6s;
}

.orb-c {
  width: 120px;
  height: 120px;
  top: 38%;
  right: 25%;
  background: rgba(88, 122, 223, 0.2);
  animation-delay: 0.7s;
}

.swipe-gesture-card {
  transition: transform 220ms ease, box-shadow 220ms ease, opacity 220ms ease;
  touch-action: pan-y;
  position: relative;
  z-index: 1;
  --swipe-tint-opacity: 0;
}

.swipe-gesture-card.is-dragging {
  box-shadow: 0 24px 46px rgba(6, 13, 30, 0.28);
}

.swipe-gesture-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: var(--swipe-tint-opacity, 0);
  transition: opacity 120ms ease, background-color 120ms ease;
  background: transparent;
}

.swipe-gesture-card.is-drag-like::after {
  background: rgba(20, 162, 131, 0.2);
}

.swipe-gesture-card.is-drag-pass::after {
  background: rgba(188, 56, 86, 0.2);
}

.swipe-gesture-card.is-dragging .swipe-media img,
.swipe-gesture-card.is-dragging .profile-scroll,
.swipe-gesture-card.is-dragging .audio-zone {
  filter: blur(1.4px);
}

.swipe-hint {
  position: absolute;
  top: 16px;
  z-index: 2;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0;
  transition: opacity 120ms ease;
}

.swipe-hint-left {
  left: 16px;
  color: #a62f47;
}

.swipe-hint-right {
  right: 16px;
  color: #0f786e;
}

.swipe-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 250px;
  background: #eef2f8;
  margin-bottom: 12px;
}

.swipe-drag-zone {
  touch-action: pan-y;
}

.swipe-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swipe-photo-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 4rem;
  font-family: "Space Grotesk", sans-serif;
  color: #5e6f8b;
}

.swipe-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 12px 12px;
  background: linear-gradient(to top, rgba(10, 16, 25, 0.72), rgba(10, 16, 25, 0));
}

.swipe-overlay .swipe-city {
  color: rgba(255, 255, 255, 0.85);
}

.swipe-overlay h2 {
  margin: 4px 0 0;
  color: #fff;
}

.swipe-real-name {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
}

.thumb-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 58px;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 12px;
  padding-bottom: 2px;
}

.thumb-btn {
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  background: transparent;
}

.thumb-btn img {
  width: 100%;
  height: 58px;
  object-fit: cover;
}

.thumb-btn.is-active {
  border-color: #18a296;
}

.audio-zone {
  background: #f4fbfa;
  border: 1px solid #cfe9e5;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
  position: relative;
}

.audio-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 10px;
}

.audio-label {
  color: #3a6f69;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.audio-title {
  font-weight: 700;
}

#track-player {
  width: 100%;
  margin-bottom: 6px;
}

.hidden-audio-player {
  display: none;
}

.autoplay-note {
  font-size: 0.78rem;
  color: #5f7478;
  margin-bottom: 10px;
}

.demo-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.track-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.track-link-btn {
  display: inline-flex;
  border-radius: 999px;
  background: #dff1ee;
  color: #0f5d55;
  padding: 6px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
}

.track-toggle-btn {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(155deg, #1cb8a8, #147d71);
  color: #fff;
  box-shadow: 0 10px 24px rgba(13, 97, 88, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex: 0 0 auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.track-toggle-icon {
  position: relative;
  width: 18px;
  height: 18px;
  display: inline-block;
}

.track-toggle-btn.is-playing .track-toggle-icon::before,
.track-toggle-btn.is-playing .track-toggle-icon::after {
  content: "";
  position: absolute;
  top: 1px;
  width: 5px;
  height: 16px;
  border-radius: 2px;
  background: #fff;
}

.track-toggle-btn.is-playing .track-toggle-icon::before {
  left: 2px;
}

.track-toggle-btn.is-playing .track-toggle-icon::after {
  right: 2px;
}

.track-toggle-btn.is-paused .track-toggle-icon {
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid #fff;
  transform: translateX(2px);
}

.demo-btn {
  border: 1px solid #b9d8d3;
  background: #fff;
  color: #275f59;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.demo-btn.is-active {
  background: #d8f2ee;
  border-color: #18a296;
}

.profile-scroll {
  max-height: 180px;
  overflow-y: auto;
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
}

.profile-scroll h3 {
  margin: 0 0 6px;
  font-size: 0.9rem;
  font-family: "Space Grotesk", sans-serif;
}

.profile-scroll p {
  margin-bottom: 12px;
  line-height: 1.45;
}

.swipe-city {
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 5px;
}

.swipe-bio {
  margin-bottom: 12px;
  line-height: 1.45;
}

.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #cfe2df;
  background: #edf8f6;
  color: #16544d;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 600;
}

.swipe-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.swipe-actions-fixed {
  position: sticky;
  bottom: 88px;
  z-index: 3;
  margin-top: 12px;
}

.swipe-hidden-form {
  display: none;
}

.items-list {
  margin-top: 10px;
}

.item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #e4e8f1;
  padding: 10px 0;
}

.item-title {
  font-weight: 600;
}

.track-snippet {
  margin-left: 6px;
  font-size: 0.74rem;
}

.item-row a {
  color: #146258;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
}

.item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inline-form {
  margin: 0;
}

.track-row {
  display: block;
  border-top: 1px solid #e4e8f1;
  padding: 10px 0;
}

.track-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.track-meta-form {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.track-meta-form label {
  margin-bottom: 0;
  font-size: 0.78rem;
}

.track-meta-form input {
  padding: 9px 10px;
  font-size: 14px;
}

.text-btn {
  border: 0;
  background: #e1f3f0;
  color: #0e5d55;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 700;
}

.primary-badge {
  display: inline-block;
  margin-left: 8px;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  background: #157a6f;
}

.yandex-link-btn {
  margin-top: 10px;
  display: inline-block;
  text-decoration: none;
}

.auth-switch {
  margin-top: 14px;
  font-size: 0.88rem;
}

.auth-switch a {
  color: #0f786e;
  font-weight: 700;
  text-decoration: none;
}

.logout-form {
  margin-top: 10px;
}

.profile-screen-head {
  padding: 16px;
  border: 1px solid rgba(205, 216, 232, 0.9);
  border-radius: 24px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.82), rgba(246, 251, 255, 0.68));
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 40px rgba(15, 23, 42, 0.1);
}

.profile-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.profile-title-row h1 {
  margin: 6px 0 2px;
}

.profile-contact {
  margin-top: 6px;
}

.logout-btn {
  border: 0;
  border-radius: 999px;
  background: rgba(228, 236, 247, 0.95);
  color: #2b4761;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.76rem;
  padding: 8px 12px;
}

.profile-accordion {
  gap: 12px;
}

.profile-accordion-item {
  border-color: rgba(202, 213, 230, 0.95);
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.9), rgba(246, 250, 255, 0.76));
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.profile-accordion-item .accordion-head {
  padding: 16px 16px;
}

.profile-accordion-item .accordion-head h2 {
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.profile-accordion-item .accordion-body {
  padding-top: 8px;
  border-top-color: rgba(223, 230, 243, 0.9);
}

.profile-accordion .file-picker {
  border-style: solid;
  border-color: #c8d8ec;
  background: linear-gradient(180deg, #f6f9ff, #edf3fb);
}

.profile-accordion .file-picker input[type="file"]::file-selector-button {
  background: linear-gradient(145deg, #2b4f77, #426f9e);
  box-shadow: 0 8px 16px rgba(47, 78, 114, 0.24);
}

.profile-accordion .btn-soft {
  background: linear-gradient(145deg, #dbe8f8, #e6f0fd);
  color: #234a74;
}

.profile-accordion .btn-primary {
  background: linear-gradient(145deg, #2c4f78, #3e6ea2);
  box-shadow: 0 10px 22px rgba(44, 79, 120, 0.28);
}

.profile-accordion .item-row {
  border-top-color: rgba(217, 226, 240, 0.9);
}

.profile-accordion .track-row {
  margin-top: 8px;
  border: 1px solid rgba(209, 221, 239, 0.92);
  border-radius: 14px;
  padding: 12px;
  background: rgba(250, 252, 255, 0.95);
}

.profile-accordion .track-row + .track-row {
  margin-top: 10px;
}

.profile-accordion .track-meta-form {
  margin-top: 12px;
}

.profile-accordion .text-btn {
  background: #e3edf9;
  color: #2c5179;
}

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

.push-settings {
  display: grid;
  gap: 10px;
}

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

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

.actions-item-row {
  align-items: flex-start;
}

.text-btn-danger {
  background: #f8e5ec;
  color: #8c2c45;
}

.profile-accordion .primary-badge {
  background: #31557e;
}

.profile-accordion .photo-item {
  border-color: rgba(205, 217, 236, 0.9);
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(32, 53, 81, 0.1);
}

.back-link {
  display: inline-block;
  margin-bottom: 8px;
  color: #2d6077;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
}

.dialog-artist-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid rgba(45, 96, 119, 0.28);
}

.compact-form {
  margin-bottom: 10px;
}

.photo-grid {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
}

.photo-item {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid #d3dae8;
  background: #f3f6fb;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-state,
.empty-state {
  padding: 12px;
  border-radius: 14px;
  border: 1px dashed #bfd3df;
  background: #f4fbfd;
}

.state-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-2);
  margin-bottom: 10px;
}

.bottom-nav {
  position: fixed;
  z-index: 10;
  left: 50%;
  transform: translateX(-50%);
  width: min(520px, 100%);
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(244, 248, 252, 0.9);
  border-top: 1px solid #d6deea;
  backdrop-filter: blur(16px);
}

.nav-link {
  display: grid;
  justify-items: center;
  align-content: center;
  text-decoration: none;
  border-radius: 14px;
  padding: 8px 6px;
  color: #6a768c;
  gap: 4px;
  position: relative;
}

.nav-link .nav-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(188, 203, 223, 0.25);
  transition: transform 180ms ease, background-color 180ms ease;
}

.nav-svg {
  width: 18px;
  height: 18px;
  display: block;
  opacity: 0.95;
}

.nav-link-main .nav-icon {
  border-radius: 999px;
  background: rgba(188, 203, 223, 0.32);
}

.nav-label {
  font-size: 0.72rem;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
}

.nav-link.is-active {
  color: #0f786e;
  background: #def4f1;
}

.nav-link.is-active .nav-icon {
  background: color-mix(in srgb, #0f786e 26%, transparent 74%);
  transform: translateY(-1px) scale(1.04);
}

.nav-badge {
  position: absolute;
  top: 4px;
  right: 14px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #d6293e;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.chats-panel {
  display: grid;
  gap: 12px;
}

.notifications-box {
  padding: 0;
  overflow: hidden;
}

.notifications-head {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  font-weight: 700;
  cursor: pointer;
}

.notifications-head::-webkit-details-marker {
  display: none;
}

.notifications-counter {
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #d6293e;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
}

.notifications-body {
  border-top: 1px solid #e6ebf4;
  padding: 10px 14px 14px;
  display: grid;
  gap: 8px;
}

.like-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #e1e8f2;
  border-radius: 10px;
  padding: 8px 10px;
  background: #f9fbff;
}

.like-name {
  font-weight: 700;
}

.chat-list {
  display: grid;
  gap: 8px;
}

.chat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  border: 1px solid #dce5f1;
  border-radius: 14px;
  background: #f9fcff;
  padding: 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.chat-item.is-selected {
  border-color: #97d6cd;
  background: #ebf8f5;
}

.chat-name {
  font-weight: 700;
}

.chat-last {
  margin-top: 2px;
  font-size: 0.8rem;
  color: #5f6d82;
}

.chat-time {
  margin-top: 3px;
  font-size: 0.72rem;
  color: #7b899f;
}

.chat-unread {
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #d6293e;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
}

.chat-thread {
  border: 1px solid #dce5f1;
  border-radius: 16px;
  background: #ffffff;
  padding: 12px;
}

.chat-thread-head {
  font-weight: 700;
  margin-bottom: 8px;
}

.messages-list {
  max-height: 280px;
  overflow-y: auto;
  display: grid;
  gap: 8px;
  padding-right: 2px;
  margin-bottom: 10px;
}

.msg-row {
  display: flex;
}

.msg-row.is-own {
  justify-content: flex-end;
}

.msg-bubble {
  max-width: 82%;
  border-radius: 12px;
  background: #edf2fa;
  padding: 8px 10px;
  font-size: 0.9rem;
}

.msg-text {
  white-space: pre-wrap;
}

.msg-time {
  margin-top: 4px;
  text-align: right;
  font-size: 0.7rem;
  color: #6c7b92;
}

.msg-row.is-own .msg-bubble {
  background: #dff4f1;
}

.chat-form textarea {
  margin-bottom: 8px;
}

.msg-date-sep {
  text-align: center;
  margin: 2px 0 6px;
  font-size: 0.72rem;
  color: #6f7d93;
}

.typing-indicator {
  margin-bottom: 8px;
  font-size: 0.8rem;
}

@media (max-width: 370px) {
  .app-shell {
    padding-left: 10px;
    padding-right: 10px;
  }

  .panel,
  .swipe-card {
    padding: 14px;
  }

  .swipe-legend {
    margin-bottom: 12px;
  }
}

@keyframes floaty {
  0% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-10px) translateX(6px);
  }
  100% {
    transform: translateY(0) translateX(0);
  }
}

@keyframes waveDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  33% {
    transform: translate3d(16px, -18px, 0) scale(1.08);
  }
  66% {
    transform: translate3d(-12px, 20px, 0) scale(0.95);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes accordionReveal {
  0% {
    opacity: 0;
    transform: translateY(-6px) scaleY(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}
