:root {
  color-scheme: dark;
  --bg: #050505;
  --card: #111111;
  --card-raised: #171717;
  --line: #292929;
  --text: #ffffff;
  --muted: #8a8a8a;
  --purple: #7c3cff;
  --purple-bright: #a855f7;
  --green: #42d58b;
  --amber: #f5b942;
  --danger: #ef637d;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button, input, textarea, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.app-shell {
  width: min(100%, 620px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 18px 18px 104px;
  background: var(--bg);
}
.app-shell.flow-active { padding-bottom: 112px; }

.screen { animation: enter .24s ease-out; }
@keyframes enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.topline, .wizard-header, .section-heading, .release-top, .timeline-row, .profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wordmark { font-weight: 750; font-size: 17px; }
.wordmark small, .eyebrow { display: block; margin-top: 3px; color: var(--purple-bright); font-size: 12px; font-weight: 700; }
.telegram-badge, .status-pill, .step-count, .tag { border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; padding: 7px 10px; }

.hero { padding: 52px 4px 34px; text-align: center; }
.hero-mark { display: grid; width: 108px; height: 108px; place-items: center; margin: 0 auto 28px; border: 1px solid #6033cb; border-radius: 31px; background: #15101f; box-shadow: 0 0 44px rgba(124, 60, 255, .2); color: #c49aff; font-size: 54px; transform: rotate(-4deg); }
h1, h2, h3, p { margin: 0; }
h1 { max-width: 470px; margin: 0 auto; font-size: clamp(35px, 8vw, 50px); line-height: 1.01; }
h2 { font-size: 27px; line-height: 1.1; }
h3 { font-size: 16px; }
.hero p, .section-copy, .wizard-copy { margin: 15px auto 0; max-width: 390px; color: var(--muted); font-size: 15px; line-height: 1.5; }

.primary-button, .secondary-button, .text-button, .back-button, .platform-control, .nav-item, .option-card, .quick-date, .release-card { border: 0; cursor: pointer; }
.primary-button { width: 100%; min-height: 58px; border-radius: 18px; background: linear-gradient(110deg, #6d28ff, #a855f7); color: white; font-weight: 750; font-size: 16px; box-shadow: 0 14px 28px rgba(109, 40, 255, .22); }
.primary-button:active { transform: scale(.985); }
.secondary-button { width: 100%; min-height: 54px; border: 1px solid var(--line); border-radius: 16px; background: var(--card-raised); color: var(--text); font-weight: 650; }
.text-button, .back-button { padding: 0; background: transparent; color: var(--muted); }
.back-button { font-size: 14px; }
.text-button { color: var(--purple-bright); font-weight: 700; }

.section { margin-top: 30px; }
.section-heading { margin-bottom: 14px; }
.section-heading h2 { font-size: 19px; }
.release-list { display: grid; gap: 10px; }
.release-card { width: 100%; padding: 15px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); color: var(--text); text-align: left; }
.release-card:active, .option-card.selected { border-color: var(--purple); background: #171123; }
.release-name { font-size: 15px; font-weight: 700; }
.release-meta { margin-top: 6px; color: var(--muted); font-size: 13px; }
.release-edit-hint { display: block; margin-top: 10px; color: #d6b767; font-size: 12px; font-weight: 700; }
.status-pill { white-space: nowrap; }
.status-draft { color: var(--muted); }
.status-review { color: var(--amber); border-color: rgba(245,185,66,.35); }
.status-processing { color: #b798ff; border-color: rgba(124,60,255,.4); }
.status-sent { color: #7fb9ff; }
.status-live { color: var(--green); border-color: rgba(66,213,139,.35); }
.change-callout { display: grid; gap: 5px; margin: 18px 0; padding: 14px; border: 1px solid rgba(245,185,66,.45); border-radius: 16px; background: rgba(71,52,15,.32); color: #f6d47a; }
.change-callout span { color: #c6b889; font-size: 13px; line-height: 1.4; }
.status-back-button { margin-top: 10px; }

.bottom-nav { position: fixed; z-index: 10; right: 0; bottom: 0; left: 0; display: flex; width: min(100%, 620px); margin: auto; padding: 10px 15px 16px; border-top: 1px solid var(--line); background: rgba(5,5,5,.94); backdrop-filter: blur(16px); }
.bottom-nav[hidden] { display: none; }
.nav-item { flex: 1; display: grid; gap: 4px; place-items: center; padding: 7px 0; background: transparent; color: var(--muted); font-size: 11px; }
.nav-item span { line-height: 1; }
.nav-item.active { color: var(--purple-bright); }
.nav-icon { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.wizard-header { margin-bottom: 20px; }
.progress { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; margin: 16px 0 33px; }
.progress-dot { height: 6px; border-radius: 99px; background: #2b2b2b; }
.progress-dot.active { background: var(--purple); box-shadow: 0 0 12px rgba(124,60,255,.8); }
.progress-dot.complete { background: #8264d6; }
.wizard-copy { margin: 10px 0 25px; }
.option-grid { display: grid; gap: 12px; }
.option-card { display: flex; align-items: center; gap: 17px; min-height: 108px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); color: var(--text); text-align: left; transition: border .2s, background .2s; }
.option-icon { display: grid; flex: 0 0 auto; width: 56px; height: 56px; place-items: center; border-radius: 17px; background: #21183a; color: #c29cff; font-size: 21px; }
.option-icon svg { display: block; width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.option-icon .release-type-asset {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(78%) sepia(20%) saturate(1084%) hue-rotate(220deg) brightness(102%) contrast(101%);
}
.option-icon svg path:only-child, .option-icon svg circle { fill: none; }
.option-card small { display: block; margin-top: 5px; color: var(--muted); }

.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field label { color: #d7d7d7; font-size: 13px; font-weight: 650; }
.field input, .field textarea, .field select { width: 100%; min-width: 0; max-width: 100%; border: 1px solid var(--line); border-radius: 14px; outline: none; background: var(--card); color: var(--text); padding: 14px; }
.field input[type="date"] { appearance: none; -webkit-appearance: none; overflow: hidden; }
.field textarea { min-height: 115px; resize: vertical; line-height: 1.45; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124,60,255,.15); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.drop-zone { display: grid; min-height: 260px; place-items: center; align-content: center; gap: 10px; padding: 28px; border: 1px dashed #7952d5; border-radius: 24px; background: #0d0a12; color: var(--muted); text-align: center; }
.drop-zone > * { justify-self: center; }
.drop-zone strong { color: var(--text); font-size: 17px; }
.upload-mark { display: grid; width: 66px; height: 66px; place-items: center; margin: 0 0 5px; border: 1px solid rgba(166, 120, 255, .45); border-radius: 22px; background: #171023; color: #bb96ff; box-shadow: 0 0 28px rgba(124, 60, 255, .14); line-height: 0; }
.upload-mark .upload-asset { display: block; width: 38px; height: 38px; object-fit: contain; }
.file-card { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px; border-radius: 16px; background: var(--card); }
.file-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; background: #1d1730; color: #c5a6ff; }
.file-card small { display: block; margin-top: 3px; color: var(--muted); }
.file-ok { margin-left: auto; color: var(--green); }
.upload-input { display: none; }
.track-card { margin-top: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--card); }
.track-card.open { border-color: rgba(124,60,255,.62); }
.track-card-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 10px 10px 10px 14px; }
.track-main-button { display: flex; min-width: 0; flex: 1; align-items: center; gap: 12px; padding: 4px 0; border: 0; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.track-main-button > span:nth-child(2) { min-width: 0; flex: 1; }
.track-main-button strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-main-button small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.track-file-asset { display: block; width: 22px; height: 22px; object-fit: contain; }
.track-status { display: grid; width: 22px; height: 22px; flex: 0 0 auto; place-items: center; border-radius: 50%; font-size: 13px; font-weight: 850; }
.track-status.complete { background: rgba(66, 213, 139, .14); color: var(--green); }
.track-status.pending { background: rgba(245, 185, 66, .14); color: var(--amber); }
.track-order-controls { display: flex; flex: 0 0 auto; align-items: center; gap: 5px; padding-left: 8px; border-left: 1px solid var(--line); }
.track-drag-handle { display: grid; width: 28px; height: 32px; place-items: center; opacity: 1; }
.track-grip-asset, .track-sort-asset { display: block; width: 20px; height: 20px; object-fit: contain; }
.track-order-button { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: #181818; color: #d7c7ff; cursor: pointer; font-size: 16px; line-height: 1; }
.track-order-asset { display: block; width: 16px; height: 16px; object-fit: contain; }
.track-order-button:disabled { cursor: default; opacity: .35; }
.track-remove-button { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(255, 113, 113, .35); border-radius: 9px; background: #1a1010; color: #ff9999; cursor: pointer; font-size: 21px; line-height: 1; }
.track-remove-button:hover { border-color: rgba(255, 113, 113, .75); background: #291313; }
.track-editor { padding: 0 14px 16px; border-top: 1px solid var(--line); }
.track-editor-title { display: grid; gap: 4px; padding: 16px 0 13px; }
.track-editor-title span, .track-section p { color: var(--muted); font-size: 12px; line-height: 1.45; }
.track-section { display: grid; gap: 9px; margin: 20px 0; }
.track-section > label { color: #d7d7d7; font-size: 13px; font-weight: 650; }
.track-section p { margin-top: -4px; }
.person-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(130px, .8fr) 36px; gap: 8px; align-items: center; }
.person-row input, .person-row select { min-width: 0; border: 1px solid var(--line); border-radius: 12px; outline: none; background: #0c0c0c; color: var(--text); padding: 12px; }
.person-row input:focus, .person-row select:focus { border-color: var(--purple); }
.icon-button { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: #191919; color: var(--muted); cursor: pointer; font-size: 20px; }
.inline-add { justify-self: start; padding: 0; border: 0; background: transparent; color: #c5a6ff; cursor: pointer; font-weight: 700; font-size: 13px; }
.check-list { display: grid; gap: 8px; }
.check-list label { display: flex; align-items: center; gap: 10px; color: #d8d8d8; font-size: 13px; }
.check-list input { width: 18px; height: 18px; accent-color: var(--purple); }
.track-lyrics { margin: 0; }
.required-mark { color: #bb96ff; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.track-setup-notice { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: start; gap: 11px; margin-top: 14px; padding: 13px; border: 1px solid #4e376f; border-radius: 16px; background: #120d1b; }
.track-setup-notice.ready { border-color: rgba(66, 213, 139, .52); background: #0d1912; }
.track-setup-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: #2a1b43; }
.track-setup-asset { display: block; width: 20px; height: 20px; object-fit: contain; }
.track-setup-notice strong { display: block; font-size: 14px; }
.track-setup-notice p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }

.cover-preview { display: grid; width: min(100%, 360px); aspect-ratio: 1; place-items: center; overflow: hidden; margin: 8px auto 17px; border: 1px dashed #7653cc; border-radius: 24px; background: #111015; color: #aa80ff; font-size: 58px; }
.cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.requirements { text-align: center; color: var(--muted); font-size: 13px; line-height: 1.5; }
.cover-requirements { display: grid; gap: 4px; margin: 15px 0 0; padding: 14px; border: 1px solid rgba(124,60,255,.35); border-radius: 15px; background: #100c18; color: var(--muted); font-size: 12px; line-height: 1.4; }
.cover-requirements strong { color: var(--text); font-size: 14px; }

.quick-dates { display: grid; gap: 9px; margin: 10px 0 20px; }
.quick-date { display: flex; justify-content: space-between; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: var(--card); color: var(--text); text-align: left; }
.quick-date span { color: var(--muted); font-size: 13px; }
.quick-date.active { border-color: var(--purple); }

.platform-list { display: grid; gap: 9px; }
.platform-control { display: flex; align-items: center; justify-content: space-between; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--text); text-align: left; }
.platform-name { display: flex; align-items: center; gap: 10px; }
.platform-logo { display: grid; flex: 0 0 auto; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: white; font-size: 13px; font-weight: 850; line-height: 1; }
.platform-logo .platform-asset { display: block; width: 100%; height: 100%; object-fit: contain; image-rendering: -webkit-optimize-contrast; }
.platform-logo svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.platform-logo.spotify { background: #1ed760; color: #071609; }
.platform-logo.spotify svg { width: 20px; stroke-width: 2.2; }
.platform-logo.apple { border-radius: 8px; background: linear-gradient(135deg, #fa2f68, #ff3e75); }
.platform-logo.apple svg { width: 17px; fill: currentColor; stroke: none; }
.platform-logo.vk { border-radius: 8px; background: #0077ff; }
.platform-logo.vk svg { width: 20px; fill: currentColor; stroke: none; }
.platform-logo.yandex { background: #ffd400; color: #151000; }
.platform-logo.yandex svg { width: 17px; fill: currentColor; stroke: none; }
.platform-logo.youtube { width: 29px; border-radius: 8px; background: #ff0033; }
.platform-logo.youtube svg { width: 17px; fill: white; stroke: none; }
.platform-logo.all { background: #2a1b43; color: #c4a2ff; }
.switch { width: 44px; height: 25px; padding: 3px; border-radius: 99px; background: #333; transition: background .2s; }
.switch i { display: block; width: 19px; height: 19px; border-radius: 50%; background: white; transition: transform .2s; }
.platform-control.on .switch { background: var(--purple); }
.platform-control.on .switch i { transform: translateX(19px); }
.all-platforms-control { margin-top: 7px; border-color: #4c347e; background: #120d1d; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.tag { cursor: pointer; background: var(--card); }
.tag.active { border-color: var(--purple); background: #21163b; color: #d2c0ff; }
.ai-assist { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 18px; padding: 14px; border: 1px solid rgba(124,60,255,.45); border-radius: 16px; background: #120d1d; }
.ai-assist span { color: var(--muted); font-size: 13px; line-height: 1.35; }

.review-cover { width: 74px; height: 74px; overflow: hidden; border-radius: 17px; background: #18131f; }
.review-cover img { width: 100%; height: 100%; object-fit: cover; }
.review-cover span { display: grid; height: 100%; place-items: center; color: #ab83ff; font-size: 28px; }
.summary-card, .payment-card, .timeline { margin: 17px 0; padding: 17px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.summary-line { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.summary-line:last-child { border-bottom: 0; }
.summary-line span { color: var(--muted); }
.price { margin: 8px 0 19px; font-size: 32px; font-weight: 800; }
.price small { color: var(--muted); font-size: 13px; font-weight: 500; }
.additional-services { display: grid; gap: 9px; margin: 18px 0; padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.additional-services-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 3px; }
.additional-services-heading h3 { font-size: 16px; }
.additional-services-heading p { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.additional-services-heading > span { flex: 0 0 auto; color: #cdb7ff; font-size: 11px; font-weight: 700; }
.additional-service { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: #151515; color: var(--text); text-align: left; cursor: pointer; }
.additional-service.selected { border-color: var(--purple); background: #171123; }
.additional-service strong, .additional-service small { display: block; }
.additional-service strong { font-size: 14px; line-height: 1.3; }
.additional-service small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.service-switch { display: block; flex: 0 0 auto; width: 42px; height: 24px; padding: 3px; border-radius: 99px; background: #383838; transition: background .2s; }
.service-switch::after { display: block; width: 18px; height: 18px; border-radius: 50%; background: white; content: ""; transition: transform .2s; }
.additional-service.selected .service-switch { background: var(--purple); }
.additional-service.selected .service-switch::after { transform: translateX(18px); }
.payment-card { overflow: hidden; }
.payment-method { display: grid; min-width: 0; grid-template-columns: 50px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--purple); border-radius: 16px; background: #120d1d; }
.payment-method p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.payment-method-copy { min-width: 0; }
.payment-method-copy strong, .payment-method-copy p { overflow-wrap: anywhere; }
.payment-method-state { padding: 5px 8px; border: 1px solid rgba(170, 130, 255, .45); border-radius: 99px; color: #d5bdff; font-size: 11px; font-weight: 750; white-space: nowrap; }
.payment-mark { display: grid; flex: 0 0 auto; width: 50px; height: 50px; place-items: center; border-radius: 14px; background: white; color: #151515; }
.payment-mark .payment-asset { display: block; width: 31px; height: 31px; object-fit: contain; }
.payment-card .field { margin-top: 16px; }
.release-submitted { display: grid; justify-items: center; gap: 16px; padding: 76px 12px 30px; text-align: center; }
.release-submitted-mark { display: grid; width: 78px; height: 78px; place-items: center; border: 1px solid rgba(66,213,139,.55); border-radius: 25px; background: rgba(66,213,139,.12); color: var(--green); font-size: 42px; font-weight: 800; }
.release-submitted-mark.loading { border-color: rgba(170,130,255,.55); background: rgba(124,60,255,.12); color: #d2baff; letter-spacing: 4px; animation: submitted-pulse 1s ease-in-out infinite; }
.release-submitted p { max-width: 370px; color: var(--muted); line-height: 1.5; }
.release-submitted .primary-button { width: min(100%, 360px); margin-top: 8px; }
@keyframes submitted-pulse { 50% { opacity: .48; transform: scale(.95); } }
.notice { margin: 16px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.primary-button:disabled { cursor: not-allowed; transform: none; box-shadow: none; background: #282231; color: #aaa2b3; }

.timeline { display: grid; gap: 0; }
.timeline-row { position: relative; justify-content: flex-start; gap: 13px; min-height: 48px; color: var(--muted); font-size: 14px; }
.timeline-row:not(:last-child)::after { position: absolute; top: 29px; left: 8px; width: 1px; height: 22px; background: #343434; content: ""; }
.timeline-dot { width: 17px; height: 17px; border: 1px solid #555; border-radius: 50%; }
.timeline-row.done { color: var(--text); }
.timeline-row.done .timeline-dot { border-color: var(--green); background: var(--green); box-shadow: inset 0 0 0 4px var(--card); }
.timeline-row.current { color: #ceb6ff; }
.timeline-row.current .timeline-dot { border-color: var(--purple); background: var(--purple); box-shadow: 0 0 14px rgba(124,60,255,.7); }

.profile-head { display: flex; align-items: center; gap: 15px; margin: 28px 0; }
.avatar { display: grid; width: 64px; height: 64px; place-items: center; border-radius: 22px; background: #261849; color: #ddceff; font-size: 25px; font-weight: 800; }
.profile-avatar { position: relative; flex: 0 0 auto; width: 82px; height: 82px; overflow: hidden; border: 1px solid rgba(166, 120, 255, .52); border-radius: 25px; box-shadow: 0 0 26px rgba(124, 60, 255, .15); }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-head p { margin-top: 5px; color: var(--muted); }
.profile-edit-button { margin-left: auto; padding: 10px 12px; border: 1px solid #3e2a68; border-radius: 12px; background: #171020; color: #d9c7ff; font-size: 13px; font-weight: 700; cursor: pointer; }
.profile-row { padding: 16px 0; border-bottom: 1px solid var(--line); }
.profile-row span { color: var(--muted); font-size: 14px; }
.profile-row strong { font-size: 14px; }
.profile-socials { margin-top: 30px; }
.profile-socials .section-copy { margin: 4px 0 0; }
.social-card { display: flex; align-items: center; gap: 12px; min-height: 66px; margin-top: 9px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 17px; background: var(--card); color: var(--text); text-decoration: none; }
.social-card:active { border-color: #7146d1; background: #171123; }
.social-icon { display: grid; width: 38px; height: 38px; place-items: center; flex: 0 0 auto; border-radius: 12px; background: #1c1530; color: #caaeff; font-size: 13px; font-weight: 800; }
.social-card small, .social-card strong { display: block; }
.social-card small { color: var(--muted); font-size: 12px; }
.social-card strong { max-width: 340px; overflow: hidden; margin-top: 2px; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.social-arrow { margin-left: auto; color: #b999ff; font-size: 18px; }
.social-empty { display: flex; align-items: center; gap: 13px; padding: 16px; border: 1px dashed #51358c; border-radius: 18px; background: #100c18; }
.social-empty > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: #1d1430; color: #bd9bff; }
.social-empty p { margin-top: 3px; color: var(--muted); font-size: 13px; }
.profile-editor-head { display: flex; align-items: center; gap: 16px; margin: 8px 0 30px; }
.profile-editor-head p { margin-top: 5px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.avatar-upload { position: relative; display: block; flex: 0 0 auto; cursor: pointer; }
.avatar-upload-overlay { position: absolute; right: -5px; bottom: -5px; padding: 5px 7px; border: 1px solid #8057dc; border-radius: 9px; background: #23133e; color: #f5efff; font-size: 10px; font-weight: 700; }
.profile-form-section { margin-top: 28px; }

.sticky-actions { display: grid; gap: 9px; margin-top: 27px; }
.flow-action-bar { position: fixed; z-index: 16; right: 0; bottom: 0; left: 0; display: none; width: min(100%, 620px); gap: 9px; margin: auto; padding: 13px 18px max(14px, env(safe-area-inset-bottom)); border-top: 1px solid rgba(58, 58, 58, .85); background: rgba(5, 5, 5, .96); backdrop-filter: blur(16px); }
.flow-action-bar.visible { display: grid; }
.flow-action-bar.split { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.flow-action-bar .primary-button, .flow-action-bar .secondary-button { min-height: 54px; }
.toast { position: fixed; z-index: 20; bottom: 96px; left: 50%; max-width: calc(100vw - 36px); padding: 12px 15px; border: 1px solid #4d347e; border-radius: 14px; background: #1d1331; color: #eee7ff; font-size: 13px; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: .2s; }
.app-shell.flow-active ~ .toast { bottom: 100px; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 420px) {
  .app-shell { padding-right: 14px; padding-left: 14px; }
  .app-shell.flow-active { padding-bottom: 112px; }
  .field-row, .person-row { grid-template-columns: 1fr; }
  .person-row { gap: 7px; }
  .icon-button { justify-self: end; }
  .option-card { min-height: 94px; padding: 16px; }
  .option-icon { width: 50px; height: 50px; border-radius: 15px; }
  .option-icon .release-type-asset { width: 35px; height: 35px; }
  .track-card-head { grid-template-columns: 1fr; gap: 8px; }
  .track-order-controls { justify-content: flex-end; padding: 8px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .payment-method { grid-template-columns: 50px minmax(0, 1fr); gap: 10px; padding: 12px; }
  .payment-method-state { grid-column: 1 / -1; justify-self: end; margin-top: 0; }
  .release-top { align-items: flex-start; }
  .release-card { padding: 14px; }
  .status-pill { max-width: 52%; overflow: hidden; text-overflow: ellipsis; }
  .flow-action-bar { padding-right: 14px; padding-left: 14px; }
  .flow-action-bar.split { grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); }
}

@media (min-width: 680px) {
  body { background: #0a0a0a; }
  .app-shell { box-shadow: 0 0 0 1px #181818, 0 18px 60px rgba(0,0,0,.45); }
}
