/* The «Промо» tab (scout/templates/promo/): the cabinet's tokens (app.css), its own blocks. */
.p-mock { font-style: normal; font-size: 12px; font-weight: 650; vertical-align: middle; padding: 3px 8px; border-radius: 6px;
          background: var(--warn-soft); color: var(--warn); letter-spacing: 0; }
.p-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.p-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.p-link { color: var(--accent-text); font-weight: 580; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.p-danger { color: var(--down); }

/* --- artists --- */
.p-artists { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.p-artist { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 16px;
            background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: border-color .12s; }
.p-artist:hover { border-color: var(--line-strong); }
.p-artist-open { position: absolute; inset: 0; border-radius: inherit; }  /* the whole card opens the artist */
.p-artist-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* ✎ and ×: over the card's link; on a mouse they show when the card is pointed at, on a touch screen always */
.p-artist-tools { position: absolute; z-index: 1; top: 10px; right: 10px; display: flex; gap: 6px; transition: opacity .15s; }
.p-artist-tools form { margin: 0; display: contents; }
.p-tool { width: 30px; height: 30px; padding: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--muted);
          border: 1px solid color-mix(in srgb, var(--line-strong) 80%, transparent);
          background: color-mix(in srgb, var(--surface-2) 70%, transparent); -webkit-backdrop-filter: blur(12px) saturate(1.6); backdrop-filter: blur(12px) saturate(1.6);
          box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); transition: color .12s, background .12s, border-color .12s, transform .12s; }
.p-tool svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.p-tool:hover { color: var(--text); background: var(--surface-3); }
.p-tool:active { transform: scale(.92); }
.p-tool:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.p-artist-tools form .p-tool:hover { color: var(--down); border-color: color-mix(in srgb, var(--down) 45%, transparent); }
@media (hover: hover) {
  .p-artist-tools { opacity: 0; }
  .p-artist:hover .p-artist-tools, .p-artist:focus-within .p-artist-tools { opacity: 1; }
}
@media (hover: none) { .p-artist-main { padding-right: 68px; } }
/* The name being changed: the card becomes its field */
.p-rename { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 12px 12px 12px 14px; border-radius: inherit;
            background: var(--surface); }
.p-rename[hidden] { display: none; }
.p-rename input[name=name] { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--accent);
                             background: var(--surface-2); color: var(--text); font: 600 15px var(--font); }
.p-rename .p-tool { flex: none; width: 36px; height: 36px; }
.p-tool-ok { color: #fff; border-color: transparent; background: var(--accent); box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--accent) 70%, transparent),
             inset 0 1px 0 rgba(255, 255, 255, .25); }
.p-tool-ok:hover { color: #fff; background: color-mix(in srgb, var(--accent) 88%, #fff); }
.p-hidden { margin-bottom: 18px; }
.p-hidden summary { cursor: pointer; font-weight: 600; }
.p-hidden ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.p-hidden li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 14px;
               background: var(--surface-2); }
.p-hidden .p-avatar { width: 36px; height: 36px; font-size: 14px; opacity: .7; }
.p-hidden form { margin: 0; }
.p-artist .pill { grid-column: 2; justify-self: start; }
.p-avatar { grid-row: span 2; width: 52px; height: 52px; display: block; }
.p-avatar text { fill: #fff; stroke: none; font: 700 20px var(--font); }
.p-artist-main { display: grid; min-width: 0; }
.p-artist-main b { font-size: 16px; }
.p-artist-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* «Как это работает» (promo/artists.html); «Как делаем» on the new edit is fieldset.p-how below — two names, or its grid
   broke this one into columns on a computer */
.p-howto { margin-top: 18px; }
.p-howto ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
.p-howto li { display: grid; gap: 4px; padding-top: 34px; position: relative; counter-increment: step; }
.p-howto li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
                    background: var(--accent-soft); color: var(--accent-text); font-weight: 700; font-size: 13px; }
.p-howto li span { color: var(--muted); font-size: 13.5px; }

/* --- the artist: tracks, media library --- */
.p-tracks { display: grid; gap: 10px; }
.p-track { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.p-track header { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.p-track header > span:first-child { display: grid; }
.p-track b { font-size: 16px; }
.wave { display: block; width: 100%; height: 56px; margin-top: 10px; }
.wave .bars { stroke: var(--faint); stroke-width: 3; }
.wave .piece { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.5; }
.wave .drop { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 3 3; }
.p-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.p-thumb, .p-upload { position: relative; margin: 0; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.p-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-upload { display: grid; place-content: center; justify-items: center; gap: 4px; text-align: center; border: 1.5px dashed var(--line-strong);
            background: var(--surface); color: var(--muted); cursor: pointer; padding: 10px; }
.p-upload b { color: var(--text); }
.p-upload small { font-size: 12px; }
.p-dur { position: absolute; top: 8px; right: 8px; font-size: 11.5px; font-weight: 650; color: #fff; background: rgba(0, 0, 0, .55); padding: 2px 6px; border-radius: 6px; }
.p-src { position: absolute; left: 8px; bottom: 8px; font-size: 11px; font-weight: 650; padding: 2px 7px; border-radius: 6px;
         background: rgba(255, 255, 255, .9); color: #16161b; }
.p-src.licensed { background: #fbf1d9; color: #7a5300; }
.p-src.generated { background: #ecebff; color: #4a3be0; }
.p-src.foreign, .p-src-inline.foreign { background: #fbe9e1; color: #c03d12; }
.p-src-inline { font-style: normal; font-size: 12px; font-weight: 650; padding: 1px 7px; border-radius: 6px; }

/* --- the TikTok profile's reading, the estimate, the warning --- */
.p-link-field { flex: 1; min-width: 240px; }
.p-profile { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); }
.p-profile p, .p-profile li { margin: 0; color: var(--text); font-size: 14.5px; }
.p-profile ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--muted); }
.p-kpis { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.p-kpis span { display: grid; }
.p-kpis b { font-size: 22px; font-weight: 700; }
.p-found { margin: 0; color: var(--muted); font-size: 14px; }
.p-estimate { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line-strong); font-size: 14px; }
.p-estimate span { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.p-estimate i { font-style: normal; color: var(--text); font-variant-numeric: tabular-nums; }
.p-estimate .total { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 2px; font-weight: 600; color: var(--text); }
.p-warn { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--down-soft); color: var(--down); font-size: 14px; line-height: 1.45; }
.p-warn b { font-weight: 650; }

/* --- a new edit: the steps --- */
.p-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.p-step { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 14px; }
.p-step header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.p-step header h2 { margin: 0; }
.p-step header .p-more { margin-left: auto; height: 36px; }
.p-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; flex: none; }
.p-drop { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 26px 16px; border: 1.5px dashed var(--line-strong); border-radius: 12px;
          background: var(--surface-2); color: var(--muted); }
.p-drop b { color: var(--text); font-size: 16px; }
.p-strip { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.p-pick { position: relative; flex: none; width: 54px; aspect-ratio: 9 / 16; border-radius: 8px; overflow: hidden; outline: 2px solid var(--accent); outline-offset: -2px; }
.p-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-pick i { position: absolute; right: 3px; bottom: 2px; font-style: normal; font-size: 10px; color: #fff; }
.p-pick.off { outline-color: transparent; opacity: .45; }
.p-check { display: inline-flex; align-items: center; gap: 8px; font-weight: 560; }
.p-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.p-check { flex-wrap: wrap; row-gap: 2px; }
.p-check > small { flex-basis: 100%; padding-left: 26px; font-weight: 500; }  /* its hint under it, not a squeezed column beside */
.p-check input { flex: none; }
.p-chip { border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); border-radius: 999px; padding: 8px 14px; font: 580 14px var(--font); cursor: pointer; }
.p-chip small { color: var(--muted); font-weight: 500; }
.p-chip.on { background: var(--accent-soft); border-color: transparent; color: var(--accent-text); }
.p-wave { display: grid; gap: 8px; }
.p-wave-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 13.5px; color: var(--muted); }
.p-wave-legend .sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 6px; }
.sw.piece { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.sw.drop { background: var(--accent); width: 3px; }
.p-nudge { display: inline-flex; gap: 6px; margin-left: auto; }
.p-ideas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
/* An idea is Scoute AI's words: its mood, the reference's moves and the spine in pills can be long, even one unbroken
   string («laider060:зум_панч_…»). The card's one column may shrink (minmax(0, 1fr), not the implicit auto column that
   grows to the widest nowrap pill) and a pill wraps inside it — a card never runs past the step (the owner's iPhone,
   26.10). A pill of two lines keeps round corners (12px is the one-line pill's full round). */
.p-idea { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-content: start; padding: 16px; border: 1px solid var(--line);
          border-radius: 12px; background: var(--surface-2); overflow-wrap: anywhere; }
.p-idea .pill { justify-self: start; white-space: normal; border-radius: 12px; }
.p-idea h3 { margin: 0; font-size: 18px; color: var(--text); text-transform: none; letter-spacing: -.01em; }
.p-idea p { margin: 0; color: var(--muted); font-size: 14px; }
.p-idea footer { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.p-idea footer .button { height: 36px; padding: 0 14px; font-size: 14px; }
.p-idea.chosen { background: var(--accent-soft); border-color: var(--accent); }
.p-wishes { margin-top: 0; }
.p-build { height: 48px; padding: 0 30px; font-size: 16px; }

/* --- the script: the timeline and a segment --- */
.p-wish { margin: 0; font-style: italic; }
.p-timeline-box { padding: 14px 16px 10px; }
.p-scroll { overflow-x: auto; scrollbar-width: thin; }
.p-timeline { display: block; width: 100%; min-width: 760px; height: auto; font: 600 11px var(--font); }
.p-timeline rect, .p-timeline text { stroke: none; }
.p-timeline .band { fill: var(--surface-2); }
.p-timeline .band.build { fill: var(--warn-soft); }
.p-timeline .band.drop { fill: var(--accent); }
.p-timeline .band.main { fill: var(--accent-soft); }
.p-timeline .band-name { fill: var(--muted); stroke: none; }
.p-timeline .band-name.build { fill: var(--warn); }
.p-timeline .band-name.drop { fill: #fff; }
.p-timeline .band-name.main { fill: var(--accent-text); }
.p-timeline .fx-count { fill: #fff; stroke: rgba(0, 0, 0, .6); stroke-width: 3px; paint-order: stroke; font-size: 10px; font-weight: 700; }
.p-timeline .chosen { fill: none; stroke: var(--accent); stroke-width: 3; }
.p-timeline .dropline { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 4 3; }
.p-timeline .drop-name { fill: var(--accent-text); font-weight: 700; stroke: var(--surface); stroke-width: 3px; paint-order: stroke; }
.p-timeline .tick { fill: var(--faint); stroke: none; font-weight: 500; font-variant-numeric: tabular-nums; }
.p-timeline .text-span { fill: var(--surface-3); }
.p-timeline .text-name { fill: var(--muted); stroke: none; font-size: 10.5px; }
.p-edit { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; align-items: start; }
.p-inspect { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: start; }
.p-big { width: 120px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; display: block; }
.p-fx { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.p-fx-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-weight: 580; font-size: 13.5px; }
.p-fx-chip button { border: 0; background: none; color: inherit; font-size: 15px; line-height: 1; cursor: pointer; padding: 0 4px; }
.p-fx-add { border: 1px dashed var(--line-strong); background: none; color: var(--muted); border-radius: 999px; padding: 4px 11px; font: 580 13.5px var(--font); cursor: pointer; }

/* --- the queue --- */
.p-queue { display: grid; gap: 10px; }
.p-q { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 16px; background: var(--surface);
       border: 1px solid var(--line); border-radius: var(--radius); }
.p-q img { width: 54px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 8px; display: block; }
.p-q-main { display: grid; gap: 2px; min-width: 0; }
.p-q-main b, .p-q-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-q-state { display: grid; justify-items: end; gap: 4px; text-align: right; }
.p-progress { display: block; width: 100%; max-width: 360px; height: 6px; margin-top: 6px; }
.p-progress rect, .p-scrub rect { stroke: none; }
.p-progress .track { fill: var(--surface-3); }
.p-progress .fill { fill: var(--accent); }
.p-q.queued { opacity: .8; }
/* The cards of «Эдиты» and «Биты» are carried like a deal (app.js, carryCard): the same ghost and bin (app.css .deal-ghost, .deal-bin);
   the card's own place stays faint and a line shows where it would land. A beat's ghost is only its head: the card is tall. */
.p-q, .p-beat { -webkit-touch-callout: none; }
.p-q img { -webkit-user-drag: none; }
.p-q.carried, .p-beat.carried { opacity: .35; }
.p-q.deal-ghost, .p-beat.deal-ghost { transition: none; background: linear-gradient(180deg, var(--glass-hi), var(--glass)), var(--surface); }  /* the glass alone would show the cards under it */
.p-beat.deal-ghost { max-height: 124px; overflow: hidden; }
.item-line { position: fixed; z-index: 155; height: 3px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); pointer-events: none; }

/* --- review: the vertical player --- */
.p-review { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 24px; align-items: start; }
.p-player { position: relative; aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden; background: #000; box-shadow: var(--shadow); }
.p-player img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; }
.p-overlay-title { position: absolute; left: 0; right: 0; top: 46%; text-align: center; color: #fff; font: 800 30px/1 Impact, "Arial Narrow", sans-serif;
                   letter-spacing: .02em; text-shadow: 0 2px 0 #000, 0 0 18px rgba(0, 0, 0, .6); }
.p-play { position: absolute; left: 50%; top: 62%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; border: 0;
          background: rgba(255, 255, 255, .92); color: #16161b; display: grid; place-items: center; cursor: pointer; }
.p-play .fill { fill: currentColor; stroke: none; }
.p-bar { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 10px; color: #fff; }
.p-scrub { flex: 1; height: 4px; min-width: 0; }
.p-scrub .track { fill: rgba(255, 255, 255, .35); }
.p-scrub .fill { fill: #fff; }
.p-bar small { color: #fff; font-variant-numeric: tabular-nums; }
.p-verdict { display: grid; gap: 14px; }
.p-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.p-comment { margin-top: 0; }

/* --- ready --- */
.p-done { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.p-d { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; padding: 14px; background: var(--surface); border: 1px solid var(--line);
       border-radius: var(--radius); box-shadow: var(--shadow); }
.p-poster { position: relative; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; }
.p-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-d-main { display: grid; gap: 6px; align-content: start; min-width: 0; }
.p-d-main b { font-size: 16px; }
.p-pub { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: 13.5px; }
.p-pub .p-link { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.p-d .p-row { margin-top: 6px; }
.p-d .button { height: 36px; padding: 0 12px; font-size: 14px; }

/* --- tablet --- */
@media (max-width: 1080px) {
  .p-ideas { grid-template-columns: minmax(0, 1fr); }  /* 1fr is minmax(auto, 1fr): a card's widest pill would widen it */
  .p-edit { grid-template-columns: 1fr; }
}

/* --- phone --- */
@media (max-width: 720px) {
  .head .button { height: 40px; }
  .p-howto ol { grid-template-columns: 1fr 1fr; }
  .p-step { padding: 14px; }
  .p-drop { padding: 18px 12px; }
  .p-nudge { margin-left: 0; }
  .p-media { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .p-inspect { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
  .p-big { width: 96px; }
  .p-review { grid-template-columns: 1fr; gap: 16px; }
  .p-player { max-width: 360px; width: 100%; justify-self: center; }
  .p-q { grid-template-columns: 44px minmax(0, 1fr); padding: 12px; }
  .p-q img { width: 44px; }
  .p-q-state { grid-column: 2; justify-items: start; text-align: left; grid-auto-flow: column; justify-content: start; gap: 8px; align-items: center; }
  .p-d { grid-template-columns: 92px minmax(0, 1fr); }
  .p-build { flex: 1; }
}

/* step 1: the artist's link and the references, each with its period; whose style, in what proportion */
.p-link { display: grid; gap: 6px; }
.p-link .fine { margin: 0; }
.p-sub { margin: 6px 0 0; font-size: 15px; font-weight: 650; }
.p-sub small { font-weight: 500; text-transform: none; letter-spacing: normal; }
.p-ref { background: var(--accent-soft); }
.p-take { font-weight: 600; }
.p-note { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; border-radius: 12px;
  background: var(--surface-2); border: 1px dashed var(--line-strong); font-size: 14px; color: var(--text); }
.p-add { justify-self: start; }
.p-mixes { flex-wrap: wrap; justify-self: start; }
.p-mix { display: grid; height: 10px; border-radius: 999px; overflow: hidden; margin-bottom: -6px; }
.p-mix span:first-child { background: var(--accent); }
.p-mix span:last-child { background: var(--line-strong); }
.p-mix-legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-size: 13px; font-weight: 600; }
.p-mix-legend span:first-child { color: var(--accent-text); }
.p-mix-legend span:last-child { color: var(--muted); }
.p-mix.m100 { grid-template-columns: 1fr 0; }
.p-mix.m70 { grid-template-columns: 7fr 3fr; }
.p-mix.m50 { grid-template-columns: 1fr 1fr; }
.p-mix.m0 { grid-template-columns: 0 1fr; }
.p-ref-pill { background: var(--accent-soft); color: var(--accent-text); }
@media (max-width: 640px) {
  .p-link .seg { width: 100%; }
  .p-link .seg button { flex: 1; }
  .p-mixes { display: grid; grid-template-columns: 1fr 1fr; }
}

/* --- the working tab (scout/promo_pages.py): the render server's state, uploads, progress, the variants --- */
.p-head-side { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 14px; }
.p-server { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 560; color: var(--muted); white-space: nowrap; }
.p-server i { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); }
.p-server.on i { background: var(--up); box-shadow: 0 0 0 4px var(--up-soft); }
.p-server.off { color: var(--warn); }
.p-server.off i { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-soft); }
/* a long «not online» line wraps on a phone instead of widening the page (it pushed «Биты» to 432px at 375) */
.p-server { min-width: 0; }
@media (max-width: 720px) { .p-server { white-space: normal; } .p-server i { flex: none; } }
.p-head-side + * { margin-top: 0; }
.p-start, .p-add-artist { display: grid; gap: 12px; margin-bottom: 18px; }
.p-add-artist summary { cursor: pointer; font-weight: 600; }
.p-start .p-row, .p-add-artist .p-row, .p-tiktok, .p-publish { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; }
.p-start .p-link-field, .p-tiktok .p-link-field, .p-publish .p-link-field { flex: 1 1 320px; }
.p-tiktok { margin: 10px 0 18px; }
.p-avatar { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text);
            font-weight: 700; font-size: 15px; flex: none; }
.p-drop { cursor: pointer; transition: border-color .15s, background .15s; }
.p-drop:hover, .p-drop:focus-visible, .p-drop.over { border-color: var(--accent); background: var(--accent-soft); outline: none; }
.p-drop .p-check { cursor: default; margin-top: 6px; font-size: 13.5px; color: var(--text); display: inline-flex; gap: 8px; align-items: center; }
.p-uploads { display: grid; gap: 4px; width: 100%; max-width: 560px; justify-self: center; cursor: default; }
.p-up { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 4px 10px; border-radius: 8px; background: var(--surface); text-align: left; }
.p-up span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-up small { flex: none; font-variant-numeric: tabular-nums; }
.p-up.ok small { color: var(--up); }
.p-up.bad small, .p-up.bad span { color: var(--down); white-space: normal; }
.p-media { margin-top: 12px; }
.p-thumb { aspect-ratio: 3 / 4; }
.p-thumb figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; font-size: 11.5px; color: #fff;
                      background: linear-gradient(transparent, rgba(0, 0, 0, .65)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-thumb.failed figcaption { white-space: normal; background: var(--down-soft); color: var(--down); padding: 6px 8px; }
.p-thumb-state { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12.5px; color: var(--muted); text-align: center; padding: 8px; }
.p-thumb .p-dur { top: 8px; bottom: auto; }
.p-del { position: absolute; top: 6px; right: 6px; margin: 0; }
.p-del button { width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; font-size: 17px; line-height: 1; cursor: pointer;
                opacity: 0; transition: opacity .15s; }
.p-thumb:hover .p-del button, .p-del button:focus-visible { opacity: 1; }
@media (hover: none) { .p-del button { opacity: 1; } }
.p-err { color: inherit; }
.p-progress-box { display: grid; gap: 8px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); }
.p-progress-box p { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.p-meter { display: block; height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; max-width: 420px; margin-top: 6px; }
.p-meter i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.p-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--accent-soft); border-top-color: var(--accent); animation: p-spin 0.9s linear infinite; flex: none; }
@keyframes p-spin { to { transform: rotate(360deg); } }
/* A search running (beatmakers): what it does now, for how long, that the page follows it — or that it waits for the server */
.p-live { display: flex; align-items: center; gap: 14px; margin: 4px 0 12px; padding: 13px 16px; border-radius: 14px; background: var(--accent-soft);
          border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent); box-shadow: 0 10px 28px -18px color-mix(in srgb, var(--accent) 80%, transparent); }
.p-live .p-spin { width: 20px; height: 20px; }
.p-live b { display: block; font-size: 14.5px; }
.p-live small { display: block; margin-top: 3px; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.p-live time { color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }
.p-live .p-live-slow { display: none; color: var(--warn); }
.p-live.slow .p-live-slow { display: block; }
.p-live.away { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 40%, transparent); box-shadow: none; }
.p-live.away .p-spin { border-color: color-mix(in srgb, var(--warn) 30%, transparent); border-top-color: var(--warn); }
@media (prefers-reduced-motion: reduce) { .p-spin { animation: none; } }
.p-stems-wait { display: inline-flex; gap: 8px; align-items: center; }  /* «Запросить стемы» pressed: the studio splits the take */
.p-hits { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; }
.p-hits li { display: grid; gap: 1px; }
/* «Одобрен»: as tall and round as the buttons beside it, a quiet green — a state, not a button. */
.p-approved { display: inline-flex; align-items: center; gap: 7px; min-height: 2.75rem; padding: 0 1.15rem; border-radius: 999px;
              font-weight: 620; font-size: 15px; color: var(--up); background: var(--up-soft);
              box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--up) 35%, transparent); white-space: nowrap; }
.p-approved svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.p-wave-svg { display: block; width: 100%; height: 64px; margin: 10px 0 4px; }
.p-wave-svg rect { stroke: none; }  /* the cabinet's svg icons are stroked; these bars are not */
.p-wave-svg .out { fill: var(--line-strong); }
.p-wave-svg .in { fill: var(--accent); }
.p-wave-svg .piece { fill: var(--accent-soft); }
.p-wave-svg .drop { stroke: var(--text); stroke-width: 2; stroke-dasharray: 3 3; }
.p-nudge { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.p-nudge .button { height: 34px; padding: 0 12px; font-size: 13.5px; }
.p-track + .p-drop { margin-top: 12px; }
.p-radio { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.p-radio legend { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.p-radio label { display: inline-flex; }
.p-radio input { position: absolute; opacity: 0; pointer-events: none; }
.p-radio { grid-auto-flow: column; justify-content: start; background: var(--surface-2); border-radius: 12px; padding: 4px; gap: 4px; }
.p-radio legend { grid-column: 1 / -1; padding: 0; }
.p-radio span { padding: 7px 13px; border-radius: 9px; color: var(--muted); font-weight: 560; cursor: pointer; white-space: nowrap; }
.p-radio input:checked + span { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), inset 0 0 0 1px var(--line); }
.p-radio input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.p-go .p-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 12px; }
.p-build[disabled] { opacity: .45; cursor: not-allowed; filter: none; }
.p-check-section { margin-top: 24px; display: grid; gap: 14px; }
.p-variants { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.p-variant { margin: 0; display: grid; gap: 8px; align-content: start; padding: 10px; border-radius: 16px; background: var(--surface);
             box-shadow: inset 0 0 0 1px var(--line); }
.p-variant.chosen { box-shadow: inset 0 0 0 2px var(--accent); }
.p-variant video { width: 100%; border-radius: 12px; background: #000; display: block; }
.p-variant video.square { aspect-ratio: 1 / 1; }
.p-variant video.tall { aspect-ratio: 9 / 16; }
.p-variant figcaption { display: grid; gap: 6px; }
.p-variant figcaption .p-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.p-variant form { margin: 0; }
.p-gone { aspect-ratio: 1 / 1; display: grid; place-items: center; text-align: center; padding: 16px; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: 13.5px; }
.p-redo { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; }
.p-redo .p-comment { flex: 1 1 320px; }
.p-delete { margin-top: 26px; }
.pill.reading, .pill.building { background: var(--accent-soft); color: var(--accent-text); }
.pill.review { background: var(--warn-soft); color: var(--warn); }
.pill.approved { background: var(--up-soft); color: var(--up); }
.pill.failed { background: var(--down-soft); color: var(--down); }
.p-q { color: inherit; text-decoration: none; }
.p-d-main b a { color: inherit; }
@media (max-width: 640px) {
  .p-head-side { justify-content: flex-start; }
  .p-radio { grid-auto-flow: row; }
  .p-radio legend { grid-column: auto; }
}
.field input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text);
               border-radius: 10px; font: inherit; }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.p-add-artist .field { margin-top: 0; flex: 1 1 220px; }
.p-add-artist .field > span small { font-weight: 450; }
.p-again { margin-top: 18px; }
.p-again > summary { cursor: pointer; font-weight: 600; }
.p-again[open] > summary { margin-bottom: 14px; }
.p-check-section { margin-top: 6px; }
.p-foreign-choice { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; font-size: 14px; }
.p-foreign-choice span { display: grid; gap: 2px; }
.p-pub, .p-pub a, .p-hits a, .p-d-main, .p-profile p, .p-warn { overflow-wrap: anywhere; min-width: 0; }  /* a long link never widens a phone's page */
/* references: the new edit's fields, the reading's part about them */
.p-refs { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 10px; }
.p-refs > legend { padding: 0; margin-bottom: 8px; font-weight: 600; }
.p-refs > legend small { font-weight: 400; }
.p-refs .p-link-field { flex: 1 1 220px; }
.p-refs-read { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.p-refs-read a { overflow-wrap: anywhere; }
/* the studio's flow in the cabinet: the reference's chips, the length, what an edit cost (the superadmin's) */
.p-ref-pill { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--text); }
.p-idea .p-chips, .p-profile .p-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.p-profile .p-chips .pill { white-space: normal; overflow-wrap: anywhere; border-radius: 12px; }  /* a long hashtag wraps, as an idea's pill */
.p-length { gap: 10px; }
.p-length input { width: 96px; }
.p-spent { margin-top: 18px; display: grid; gap: 10px; }
.p-spend { width: 100%; border-collapse: collapse; font-size: 14px; }
.p-spend th, .p-spend td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.p-spend th:last-child, .p-spend td:last-child { text-align: right; white-space: nowrap; }
.p-spend tfoot th { border-bottom: 0; }
/* the artists apart from the form under them; the length's hint on its own line; a thumbnail still on its way shimmers */
.p-artists + .p-add-artist, .empty + .p-add-artist { margin-top: 14px; }
.p-steps { grid-template-columns: minmax(0, 1fr); }  /* a long link or a row of numbers never widens a step past the screen */
.p-step > * { min-width: 0; }
.p-length .fine { flex: 1 1 260px; }
.p-thumb.uploading::after, .p-thumb.ready::after { content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-100%);
  background: linear-gradient(100deg, transparent 20%, color-mix(in srgb, var(--text) 9%, transparent) 50%, transparent 80%); }
@media (prefers-reduced-motion: no-preference) { .p-thumb.uploading::after, .p-thumb.ready::after { animation: g-shimmer 1.3s linear infinite; } }
/* the phone: the heading in a column, choices that wrap instead of running off the screen, buttons to the thumb */
@media (max-width: 720px) {
  .head:has(.p-head-side) { flex-direction: column; align-items: stretch; gap: 12px; }
  .p-head-side { justify-content: space-between; }
  .p-head-side .button { height: 40px; }
  .p-howto ol { grid-template-columns: 1fr; gap: 14px; }
  .p-howto li { padding: 0 0 0 36px; }
  .p-howto li::before { top: -1px; }
  .p-go .p-row { align-items: stretch; }
  .p-radio { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(min(100%, 112px), 1fr)); width: 100%; }
  .p-radio legend { grid-column: 1 / -1; }
  .p-radio label { display: grid; }
  .p-radio span { text-align: center; padding: 9px 10px; white-space: normal; display: grid; place-items: center; height: 100%; }
  .p-go .p-link-field { flex: 1 1 100%; }
  .p-nudge { display: grid; grid-template-columns: 1fr 1fr; }
  .p-nudge .button { height: 40px; justify-content: center; }
  .p-variant figcaption .p-row > *, .p-variant figcaption form .button { flex: 1 1 0; justify-content: center; }
  .p-redo > *, .p-publish > *, .p-build { flex: 1 1 100%; }
  .p-redo .button, .p-publish .button, .p-build { justify-content: center; }
}

/* The model picker (Scoute V1 / V2 / V3): cards; V2's fields only when it is chosen (one edit: no count of variants) */
.p-models { border: 0; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.p-models legend { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.p-model { display: flex; cursor: pointer; }
.p-model input { position: absolute; opacity: 0; pointer-events: none; }
.p-model-card { display: grid; gap: 6px; align-content: start; width: 100%; padding: 14px 16px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--surface-2); transition: border-color .15s, background .15s; }
.p-model-card b { font-size: 17px; letter-spacing: -.01em; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.p-model-card small { font-size: 13px; line-height: 1.35; }
.p-model input:checked + .p-model-card { background: var(--accent-soft); border-color: var(--accent); }
.p-model input:focus-visible + .p-model-card { outline: 2px solid var(--accent); outline-offset: 2px; }
.p-model.soon { cursor: default; }
.p-model.soon .p-model-card { opacity: .55; }
@media (max-width: 720px) { .p-models { grid-template-columns: minmax(0, 1fr); } }
.p-custom { display: none; gap: 10px; margin: 0 0 14px; }
.p-custom .fine { margin: 0; }
/* «Как делаем»: Scoute V1 is the cut — the reading's ideas, the found videos, the artist's own; Scoute V2 is motion design
   — graphics over the video or the song in widgets — with its own ideas (asked for), the song's words and a reference.
   The widgets are one vertical video of words: no found footage, variants or captions. */
.p-styles { grid-template-columns: repeat(2, minmax(0, 1fr)); display: none; }
.p-way-ideas, .p-motion-only, .p-widgets-only, .p-widgets-note { display: none; }
.p-steps:has(.p-way input[name=model][value="v2"]:checked) .p-styles { display: grid; }
.p-steps:has(.p-way input[name=model][value="v2"]:checked) .p-custom { display: grid; }
.p-steps:has(.p-way input[name=model][value="v2"]:checked) .p-ideas-cut,
.p-steps:has(.p-way input[name=model][value="v2"]:checked) .p-cut-only,
.p-steps:has(.p-way input[name=model][value="v2"]:checked) .p-variants-count { display: none; }
.p-steps:has(.p-way input[name=model][value="v2"]:checked):has(.p-styles input[value="cut"]:checked) .p-ideas-motion { display: grid; gap: 10px; }
.p-steps:has(.p-way input[name=model][value="v2"]:checked):has(.p-styles input[value="cut"]:checked) .p-motion-only { display: inline; }
.p-steps:has(.p-way input[name=model][value="v2"]:checked):has(.p-styles input[value="widgets"]:checked) .p-ideas-widgets { display: grid; gap: 10px; }
.p-steps:has(.p-way input[name=model][value="v2"]:checked):has(.p-styles input[value="widgets"]:checked) .p-widgets-only { display: inline; }
.p-steps:has(.p-way input[name=model][value="v2"]:checked):has(.p-styles input[value="widgets"]:checked) .p-widgets-note { display: block; }
.p-steps:has(.p-way input[name=model][value="v2"]:checked):has(.p-styles input[value="widgets"]:checked) :is(.p-cut-note, .p-materials, .p-aspect, .p-texts, .p-foreign-choice) { display: none; }
.p-way-ideas { grid-template-columns: minmax(0, 1fr); }  /* Scoute V2's ideas: their spine pill never widens the step */
.p-way-ideas .p-row { align-items: center; }
/* «Анонс релиза»: the cover, the title, the date and the call instead of the song's words and the ideas */
.p-styles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.p-announce, .p-announce-only { display: none; }
.p-announce { gap: 10px; margin: 0 0 14px; }
.p-announce .fine { margin: 0; }
.p-announce select { width: 100%; }
.p-steps:has(.p-way input[name=model][value="v2"]:checked):has(.p-styles input[value="announce"]:checked) .p-announce { display: grid; }
.p-steps:has(.p-way input[name=model][value="v2"]:checked):has(.p-styles input[value="announce"]:checked) .p-announce-only { display: inline; }
.p-steps:has(.p-way input[name=model][value="v2"]:checked):has(.p-styles input[value="announce"]:checked) :is(.p-custom, .p-ideas-motion, .p-motion-only, .p-wishes, .p-aspect, .p-texts, .p-foreign-choice) { display: none; }
/* «Карусель»: the artist's photos are it — no song's words, ideas or found clips */
.p-styles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.p-carousel-note, .p-carousel-only { display: none; }
.p-carousel-note { margin: 0 0 14px; }
.p-steps:has(.p-way input[name=model][value="v2"]:checked):has(.p-styles input[value="carousel"]:checked) .p-carousel-note { display: block; }
.p-steps:has(.p-way input[name=model][value="v2"]:checked):has(.p-styles input[value="carousel"]:checked) .p-carousel-only { display: inline; }
.p-steps:has(.p-way input[name=model][value="v2"]:checked):has(.p-styles input[value="carousel"]:checked) :is(.p-custom, .p-ideas-motion, .p-motion-only, .p-wishes, .p-aspect, .p-texts, .p-foreign-choice) { display: none; }
/* «Опубликовать в TikTok» (promo/tiktok.html): what TikTok asks the page to show before a post */
.p-tt { display: grid; gap: 16px; }
.p-tt h2 { margin: 0; font-size: 18px; }
.p-tt-who { display: flex; align-items: center; gap: 14px; }
.p-tt-who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.p-tt-who div { display: grid; gap: 2px; flex: 1; min-width: 0; }
.p-tt-body { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 24px; align-items: start; }
.p-tt-body video { width: 100%; border-radius: 16px; background: #000; }
.p-tt-form { display: grid; gap: 14px; }
.p-tt-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.p-tt-form legend { font-weight: 600; margin-bottom: 6px; }
.p-tt-direct, .p-tt-brands, .p-tt-bc, .p-tt-pick { display: none; }
.p-tt-form:has(input[name=mode][value=direct]:checked) .p-tt-direct { display: grid; gap: 14px; }
.p-tt-form:has(input[name=disclose]:checked) .p-tt-brands { display: grid; gap: 8px; padding-left: 26px; }
.p-tt-form:has(input[name=branded]:checked) .p-tt-bc { display: block; }
.p-tt-form:has(input[name=branded]:checked) .p-tt-music { display: none; }
.p-tt-form:has(input[name=mode][value=direct]:checked):has(input[name=disclose]:checked):not(:has(input[name=own_brand]:checked)):not(:has(input[name=branded]:checked)) .p-tt-pick { display: block; color: var(--down); }
.p-tt-form:has(input[name=mode][value=direct]:checked):has(input[name=disclose]:checked):not(:has(input[name=own_brand]:checked)):not(:has(input[name=branded]:checked)) .p-tt-send { opacity: .45; pointer-events: none; }
.p-tt-row { margin-top: 10px; }
@media (max-width: 720px) { .p-tt-body { grid-template-columns: minmax(0, 1fr); } .p-tt-body video { max-width: 280px; } }
/* «Звуки переходов»: the rule styles' own (announce, carousel, talk) — the director's styles place no sounds yet */
.p-sounds { display: none; }
.p-steps:has(.p-way input[name=model][value="v2"]:checked):has(.p-styles :is(input[value="announce"], input[value="carousel"], input[value="talk"]):checked) .p-sounds { display: flex; }
/* «Говорящая голова»: the artist's own talk is it — the video and the captions' look are all there is to choose */
.p-talk, .p-talk-only { display: none; }
.p-talk { gap: 10px; margin: 0 0 14px; }
.p-talk .fine { margin: 0; }
.p-talk select { width: 100%; }
.p-steps:has(.p-way input[name=model][value="v2"]:checked):has(.p-styles input[value="talk"]:checked) .p-talk { display: grid; }
.p-steps:has(.p-way input[name=model][value="v2"]:checked):has(.p-styles input[value="talk"]:checked) .p-talk-only { display: inline; }
.p-steps:has(.p-way input[name=model][value="v2"]:checked):has(.p-styles input[value="talk"]:checked) :is(.p-custom, .p-ideas-motion, .p-motion-only, .p-wishes, .p-aspect, .p-texts, .p-foreign-choice) { display: none; }
@media (max-width: 720px) { .p-steps .p-styles { grid-template-columns: minmax(0, 1fr); } }
.p-custom select { width: 100%; }
/* a few seconds of what a model or a style makes: a GIF beside its words (scout/static/previews) */
.p-model-card.p-has-preview { grid-template-columns: 84px minmax(0, 1fr); column-gap: 14px; }
.p-model-card.p-has-preview > * { grid-column: 2; }
.p-model-card.p-has-preview > .p-preview { grid-column: 1; grid-row: 1 / span 4; }
.p-preview { display: block; width: 84px; height: auto; aspect-ratio: 9 / 16; border-radius: 10px; object-fit: cover; background: #000; }
/* Scoute V2 makes one vertical video, whatever the style: no format, no count of variants */
.p-steps:has(.p-way input[name=model][value="v2"]:checked) .p-format { display: none; }
/* «Моушн-графика»: the 3D edit — no footage of its own or found, no ideas to pick, no reference; the texts on the frame
   are asked in the wishes */
.p-wishes-motion { display: none; }
.p-steps:has(.p-way input[name=model][value="v2"]:checked):has(.p-styles input[value="cut"]:checked) :is(.p-ideas-motion, .p-materials, .p-texts, .p-foreign-choice, .p-custom .p-link-field, .p-ref-file) { display: none; }
.p-steps:has(.p-way input[name=model][value="v2"]:checked):has(.p-styles input[value="cut"]:checked) .p-wishes-motion { display: block; margin: -4px 0 0; }
.p-custom-read p { margin: 6px 0 0; white-space: pre-line; }
.p-custom-read { display: block; }
/* «Биты» (promo/beats.html): a beat's order, its takes with their players and stems */
.p-beat-order { display: grid; gap: 14px; }
.p-beat-form { display: grid; gap: 12px; }
.p-beat-vocals { display: none; gap: 12px; }
.p-beat-form:has(input[name=vocals]:checked) .p-beat-vocals { display: grid; }
.p-beats { display: grid; gap: 14px; margin-top: 18px; }
.p-beat { display: grid; gap: 10px; }
.p-beat header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.p-beat p { margin: 0; overflow-wrap: anywhere; }
.p-beat-take { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.p-beat-take audio { width: 100%; }
/* «По референсу» / «По описанию»: the form shows the fields of the way chosen (no script needed); the slider; the quiet offer under a take */
.p-beat-form:not(:has(input[name=mode][value=reference]:checked)) .p-beat-ref-only,
.p-beat-form:has(input[name=mode][value=reference]:checked) .p-beat-desc-only { display: none; }
.p-beat-slider { display: flex; align-items: center; gap: 12px; }
.p-beat-slider input { flex: 1; min-width: 0; accent-color: var(--accent); }
.p-beat-slider output { min-width: 3.6em; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.p-beat-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin: 0; color: var(--muted); }
.p-beat-offer form { margin: 0; display: inline-flex; }
.p-offer-link { font-size: 13px; font-weight: 600; color: var(--accent-text); text-decoration: none; }
.p-offer-link:hover { text-decoration: underline; }
.p-beat-offer .p-file-drop { font-size: 18px; line-height: 1; color: var(--muted); padding: 2px 6px; }
/* «Битмейкеры» (promo/beatmakers.html): the search's channels, the base with its prices */
.p-bm-search { display: grid; gap: 12px; }
.p-bm-search h2, .p-bm-row summary b { margin: 0; }
.p-bm-found, .p-bm-base { display: grid; gap: 12px; margin-top: 18px; }
/* a found beatmaker (the user, 2026-10-25: «после находки битмейкеров… хуевенько выглядит, с кнопками сделай по
   красоте»): a lit face, the name and its sound, «В базу» lit; under them what was found as chips, the contacts as
   glass chips in their services' colours, the prices as tiles, the most heard beat as a row to play */
.p-bm { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px 14px; align-items: start; padding: 16px;
  transition: box-shadow .22s ease, border-color .22s ease; }
@media (hover: hover) and (pointer: fine) {
  .p-bm:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 14%, transparent), 0 16px 40px -22px color-mix(in srgb, var(--accent) 70%, transparent); }
}
.p-bm.aside { opacity: .72; }
.p-bm-face { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; font-weight: 800; font-size: 20px; color: #fff;
  background: radial-gradient(120% 90% at 30% 10%, rgb(255 255 255 / .35), transparent 55%), linear-gradient(140deg, var(--accent), #ff5fa8);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .4), 0 8px 20px -8px color-mix(in srgb, var(--accent) 80%, transparent); }
.p-bm-head { display: grid; gap: 3px; min-width: 0; }
.p-bm-head b { font-size: 16.5px; overflow-wrap: anywhere; }
.p-bm-head b a { color: var(--text); text-decoration: none; }
.p-bm-head b a:hover { color: var(--accent-text); }
.p-bm-head small { font-size: 12.5px; }
.p-bm-act form { margin: 0; }
.p-bm-take { height: 38px; padding: 0 16px; gap: 6px; font-size: 14px; }
.p-bm-take svg { width: 16px; height: 16px; }
.p-bm-have { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 999px; font-weight: 650; font-size: 13.5px;
  color: var(--up); background: color-mix(in srgb, var(--up) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--up) 35%, transparent); }
.p-bm-have svg { width: 15px; height: 15px; }
.p-bm-body { grid-column: 1 / -1; display: grid; gap: 12px; min-width: 0; }
.p-bm-body p { margin: 0; }
.p-bm-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.p-bm-fact { font-style: normal; font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; color: var(--muted);
  background: color-mix(in srgb, var(--surface-2) 80%, transparent); box-shadow: inset 0 0 0 1px var(--line); }
.p-bm-fact.hit { color: var(--accent-text); background: color-mix(in srgb, var(--accent) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent), 0 0 14px -6px color-mix(in srgb, var(--accent) 70%, transparent); }
.p-bm-fact.free { color: var(--up); background: color-mix(in srgb, var(--up) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--up) 35%, transparent); }
.p-bm-fact.warn { color: var(--warn); background: var(--warn-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 35%, transparent); }  /* a re-uploader */
.p-bm-reach { display: flex; flex-wrap: wrap; gap: 8px; }
.p-bm-chip { --mark: var(--accent); display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px 0 9px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: var(--text); text-decoration: none; overflow-wrap: anywhere; max-width: 100%;
  background: var(--lg-glint), var(--lg-fill); box-shadow: var(--lg-shadow), inset 0 0 0 1px var(--glass-line);
  transition: box-shadow .2s ease, transform .12s ease; }
.p-bm-chip svg, .p-bm-chip > b { flex: none; width: 17px; height: 17px; color: var(--mark); }
.p-bm-chip > b { width: auto; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; padding: 2px 4px; border-radius: 5px; color: #fff; background: var(--mark); }
.p-bm-chip.tg { --mark: #2aabee; }
.p-bm-chip.ig { --mark: #e1306c; }
.p-bm-chip.vk { --mark: #0077ff; }
.p-bm-chip.bs { --mark: #ff4b4b; }
.p-bm-chip.mail, .p-bm-chip.site { --mark: var(--accent-text); }
@media (hover: hover) and (pointer: fine) {
  .p-bm-chip:hover { box-shadow: var(--lg-shadow), inset 0 0 0 1px color-mix(in srgb, var(--mark) 55%, transparent),
    0 6px 18px -8px color-mix(in srgb, var(--mark) 75%, transparent); }
}
.p-bm-chip:active { transform: scale(.97); }
.p-bm-prices { display: flex; flex-wrap: wrap; gap: 8px; }
.p-bm-price { display: grid; gap: 1px; min-width: 92px; padding: 8px 12px; border-radius: 14px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, var(--surface-2)), var(--surface-2));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, var(--line)); }
.p-bm-price small { font-size: 11.5px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.p-bm-price b { font-size: 15.5px; }
.p-bm-noprice { color: var(--muted); }
.p-bm-from { margin: -2px 0 0; color: var(--muted); }
.p-bm-lookup { display: grid; gap: 8px; }
.p-bm-lookup p { margin: 0; }
.p-bm-from a { color: var(--accent-text); }
.p-bm-top { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; color: var(--text); text-decoration: none; min-width: 0;
  background: color-mix(in srgb, var(--surface-2) 75%, transparent); box-shadow: inset 0 0 0 1px var(--line); }
.p-bm-top > span:last-child { display: grid; gap: 1px; min-width: 0; font-size: 13.5px; overflow-wrap: anywhere; }
.p-bm-top small { color: var(--muted); font-size: 11.5px; font-weight: 650; }
.p-bm-play { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #ff3d3d;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), 0 6px 16px -6px rgb(255 61 61 / .8); }
.p-bm-play svg { width: 16px; height: 16px; margin-left: 2px; }
@media (hover: hover) and (pointer: fine) { .p-bm-top:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, #ff3d3d 45%, var(--line)); } }
.p-bm-row summary { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; cursor: pointer; }
.p-bm-detail { display: grid; gap: 10px; margin-top: 12px; }
.p-bm-edit { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.p-bm-edit .p-bm-wide { grid-column: 1 / -1; }
.p-bm-edit input, .p-bm-edit select, .p-bm-edit textarea { width: 100%; }
@media (max-width: 720px) {
  .p-bm { grid-template-columns: 44px minmax(0, 1fr); padding: 14px; }
  .p-bm-face { width: 44px; height: 44px; font-size: 18px; border-radius: 14px; }
  .p-bm-act { grid-column: 1 / -1; order: 3; }
  .p-bm-act .p-bm-take { width: 100%; justify-content: center; height: 42px; }
  .p-bm-body { order: 2; }
  .p-bm-edit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* «Эдиты» — one list: the state filters, the artist, the artists' page */
.p-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 14px; }
.p-filters .seg-tabs { margin-bottom: 0; }
.p-filters .p-manage { margin-left: auto; height: 36px; }
.p-empty-start { display: grid; gap: 8px; justify-items: start; padding: 22px; }
.p-empty-start p { margin: 0; color: var(--muted); }

/* «Новый эдит» — the short form */
.p-new { gap: 16px; }
.p-new .field { margin-top: 0; }
.p-new-artist { flex: 1 1 220px; min-width: 0; }
.p-new-artist[hidden] { display: none; }
.p-how { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.p-how legend { font-size: 13px; color: var(--muted); font-weight: 560; margin-bottom: 8px; padding: 0; }
.p-how label { display: flex; }
.p-how input { position: absolute; opacity: 0; pointer-events: none; }
.p-how label > span { flex: 1; display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid transparent; cursor: pointer; }
.p-how b { font-weight: 650; }
.p-how small { color: var(--muted); line-height: 1.4; }
.p-how .p-price { color: var(--faint); }
.p-how input:checked + span { background: var(--accent-soft); border-color: var(--accent); }
.p-how input:checked + span b { color: var(--accent-text); }
.p-how input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.p-how label > span.p-has-preview { grid-template-columns: 72px minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 14px; }
.p-how label > span.p-has-preview > * { grid-column: 2; }
.p-how label > span.p-has-preview > .p-preview { grid-column: 1; grid-row: 1 / span 3; width: 72px; }
.p-new [data-lyrics][hidden] { display: none; }
/* «Загрузить трек файлом» on the new edit's form: our button over the browser's file input */
.p-form-track { align-items: center; gap: 8px 14px; }
.p-file-pick { position: relative; cursor: pointer; }
.p-file-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.p-file-pick:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.p-file-drop { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; color: var(--accent-text); cursor: pointer; }
.p-form-state { color: var(--accent-text); }
.p-how .p-price { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.p-how .p-price .cr { color: var(--text); }
.p-make { display: inline-flex; align-items: center; gap: 10px; }
.p-cost-tag { display: inline-flex; align-items: center; padding: 3px 9px 3px 7px; border-radius: 999px; background: rgba(0, 0, 0, .22); font-size: .92em; }
.p-cost-tag .bolt { fill: #ffd25a; filter: drop-shadow(0 0 5px rgba(255, 210, 90, .55)); }
.p-left .cr { color: var(--text); }
.p-time-cost .cr { margin-left: 6px; color: var(--text); }
/* the edit's page: what Scoute found — the reading, the track — in view; the manual build folded under it */
.p-found { margin-top: 18px; }
.p-more-box > summary { cursor: pointer; color: var(--muted); font-weight: 560; width: fit-content; }
.p-more-body { display: grid; gap: 12px; margin-top: 12px; }
.p-length-field { width: 150px; }

/* an edit's page: where it is, in four steps */
.p-now { display: grid; gap: 14px; margin-bottom: 18px; }
.p-stages { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.p-stages li { display: inline-flex; align-items: center; gap: 8px; color: var(--faint); font-weight: 560; }
.p-stages i { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); font-style: normal; font-size: 12px; }
.p-stages svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.p-stages li.done { color: var(--text); }
.p-stages li.done i { background: var(--accent); color: #fff; }
.p-stages li.now { color: var(--accent-text); }
.p-stages li.now i { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.p-another { margin-top: 10px; }

/* «Для TikTok»: the caption and the hashtags to copy */
/* A finished edit's mark (promo.rate): two tiles — «Нравится» lit green, «Не то» amber — glowing under the pointer, the
   mark given lit; «Не то» opens a box (its checkbox, no script) with «Что не так?», the microphone island and «Отправить». */
.p-rate { display: grid; gap: 14px; margin-top: 18px; padding: 18px; border-radius: calc(var(--radius) + 4px);
          background: radial-gradient(120% 160% at 0% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 55%), var(--surface);
          border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line)); box-shadow: 0 18px 44px -28px color-mix(in srgb, var(--accent) 60%, transparent); }
.p-rate-head { display: flex; align-items: flex-start; gap: 12px; }  /* the icon by the title, not mid-way down a long line under it */
.p-rate-head h3 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--text); }
.p-rate-head p { margin: 3px 0 0; color: var(--muted); font-size: 13px; line-height: 1.35; }
.p-rate-icon { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft);
               box-shadow: 0 0 22px -6px color-mix(in srgb, var(--accent) 70%, transparent); }
.p-rate-icon svg { width: 16px; height: 16px; }
.p-rate-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.p-rate-tile { --tone: var(--up); position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; border-radius: 16px;
               border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; text-align: left; cursor: pointer;
               -webkit-tap-highlight-color: transparent; transition: border-color .2s, box-shadow .25s, background-color .2s, transform .12s; }
.p-rate-tile.bad { --tone: var(--warn); }
.p-rate-tile b { display: block; font-size: 15px; font-weight: 700; }
.p-rate-tile small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.p-rate-glyph { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--tone);
                background: color-mix(in srgb, var(--tone) 14%, transparent); transition: background-color .2s, color .2s, box-shadow .25s; }
.p-rate-glyph svg { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) {
  .p-rate-tile:hover { border-color: color-mix(in srgb, var(--tone) 55%, var(--line));
                       box-shadow: 0 0 0 4px color-mix(in srgb, var(--tone) 12%, transparent), 0 12px 30px -14px color-mix(in srgb, var(--tone) 70%, transparent); }
}
.p-rate-tile:active { transform: scale(.98); }
.p-rate-tile:focus-visible, .p-rate-toggle:focus-visible + .p-rate-choices .bad { outline: 2px solid var(--tone); outline-offset: 3px; }
.p-rate-tile.on, .p-rate-toggle:checked + .p-rate-choices .bad {
  border-color: var(--tone); background: color-mix(in srgb, var(--tone) 10%, var(--surface-2));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--tone) 40%, transparent), 0 14px 34px -14px color-mix(in srgb, var(--tone) 75%, transparent); }
.p-rate-tile.on .p-rate-glyph, .p-rate-toggle:checked + .p-rate-choices .bad .p-rate-glyph {
  color: var(--surface); background: var(--tone); box-shadow: 0 0 18px -2px color-mix(in srgb, var(--tone) 70%, transparent); }
/* «Не то» open: only it is lit, whatever the mark was */
.p-rate-toggle:checked + .p-rate-choices .good { border-color: var(--line); background: var(--surface-2); box-shadow: none; }
.p-rate-toggle:checked + .p-rate-choices .good .p-rate-glyph { color: var(--up); background: color-mix(in srgb, var(--up) 14%, transparent); box-shadow: none; }
.p-rate-box { display: none; gap: 10px; padding: 14px; border-radius: 16px; background: var(--surface-2);
              border: 1px solid color-mix(in srgb, var(--warn) 35%, var(--line)); }
.p-rate-toggle:checked ~ .p-rate-box { display: grid; animation: p-rate-in .28s ease; }
@keyframes p-rate-in { from { opacity: 0; transform: translateY(-6px); } }
.p-rate-box > label { font-weight: 650; font-size: 14px; }
.p-rate-box textarea { width: 100%; min-height: 88px; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
                       color: var(--text); font: inherit; resize: vertical; transition: border-color .2s, box-shadow .2s; }
.p-rate-box textarea:focus { outline: none; border-color: color-mix(in srgb, var(--warn) 60%, var(--line));
                             box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 14%, transparent); }
.p-rate-send { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.p-rated { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 12px; border-radius: 12px; font-weight: 600;
           font-size: 14px; color: var(--up); background: color-mix(in srgb, var(--up) 9%, transparent); }
.p-rated.bad { color: var(--warn); background: color-mix(in srgb, var(--warn) 9%, transparent); }
.p-rated small { color: var(--muted); font-weight: 500; }
@media (max-width: 560px) {
  .p-rate { padding: 14px; }
  .p-rate-tile { min-height: 58px; padding: 10px 12px; gap: 10px; }
  .p-rate-tile small { font-size: 11.5px; }
  .p-rate-glyph { width: 36px; height: 36px; }
}

/* «Собрать ещё раз»: «Переделать» and «По-другому» side by side, each tile saying what it does, lit under the pointer
   and while its field is in use — the mark's look (.p-rate) */
.p-again2 { display: grid; gap: 14px; margin-top: 18px; padding: 18px; border-radius: calc(var(--radius) + 4px);
            background: radial-gradient(120% 160% at 100% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 55%), var(--surface);
            border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line)); }
.p-again-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.p-again-tile { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2);
                transition: border-color .2s, box-shadow .25s; }
.p-again-tile:focus-within { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent); }
@media (hover: hover) and (pointer: fine) {
  .p-again-tile:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
                        box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 10%, transparent), 0 12px 30px -16px color-mix(in srgb, var(--accent) 70%, transparent); }
}
.p-again-top { display: flex; align-items: center; gap: 12px; }
.p-again-top b { display: block; font-size: 15px; font-weight: 700; }
.p-again-top small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.p-again-glyph { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--accent);
                 background: color-mix(in srgb, var(--accent) 14%, transparent); }
.p-again-glyph svg { width: 20px; height: 20px; }
.p-again-tile .p-redo { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 10px; flex: 1; margin: 0; }
.p-again-tile .p-redo > * { flex: none; }
.p-again-tile .p-comment { margin: 0; }
.p-again-tile textarea { width: 100%; min-height: 78px; resize: vertical; }
.p-again-note { margin: 0; flex: 1; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.p-again-tile .p-another { margin: 0; }
/* «Доработать»: the first tile, across both columns — the edit kept, only the note's change; its free ones counted */
.p-tweak-tile { grid-column: 1 / -1; border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
                background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 9%, transparent), transparent 60%), var(--surface-2); }
.p-tweak-tile .p-again-go .fine { color: var(--muted); }
.p-tweak-variant select { width: 100%; }
.p-tweak-tile textarea { min-height: 100px; }
.p-free-tag { margin-left: 8px; padding: 3px 9px; background: color-mix(in srgb, #2fd27a 30%, rgba(0, 0, 0, .2)); font-weight: 600; }
.p-tweak-log { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.p-tweak-log li { display: grid; gap: 2px; font-size: 13.5px; line-height: 1.4; min-width: 0; overflow-wrap: anywhere; }
.p-tweak-log small { color: var(--muted); }
.p-tweak-log .muted { font-size: 12px; }
.p-again-go { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.p-again-go .button { margin-left: auto; }
@media (max-width: 680px) {
  .p-again-choices { grid-template-columns: minmax(0, 1fr); }
  .p-again2 { padding: 14px; }
}

/* «Хэштеги для TikTok»: TikTok's two glows round the block (its pink from above, its cyan from below), the strongest
   three tags lit; the caption and the tips in wells under them */
.p-tiktok-advice { --tt-a: #fe2c55; --tt-b: #25f4ee; display: grid; gap: 14px; margin-top: 18px; padding: 18px; border-radius: calc(var(--radius) + 4px);
  background: radial-gradient(110% 150% at 0% 0%, color-mix(in srgb, var(--tt-a) 13%, transparent), transparent 55%),
              radial-gradient(110% 150% at 100% 100%, color-mix(in srgb, var(--tt-b) 10%, transparent), transparent 55%), var(--surface);
  border: 1px solid color-mix(in srgb, var(--tt-a) 24%, var(--line)); box-shadow: 0 18px 44px -28px color-mix(in srgb, var(--tt-a) 55%, transparent); }
.p-tt-icon { color: var(--tt-a); background: color-mix(in srgb, var(--tt-a) 16%, var(--surface-2));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tt-a) 30%, transparent), 0 0 18px -8px color-mix(in srgb, var(--tt-a) 80%, transparent); }
.p-tt-icon svg { width: 18px; height: 18px; }
/* a link to the block (back from «Подобрать хэштеги», #tiktok) or to the mark (#rate): clear of the sticky header */
.p-tiktok-advice, .p-rate { scroll-margin-top: 84px; }
.p-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.p-tag { font-style: normal; font-weight: 650; font-size: 14.5px; padding: 7px 13px; border-radius: 999px; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line); overflow-wrap: anywhere; }
.p-tag.hot { border-color: color-mix(in srgb, var(--tt-a) 45%, var(--line)); background: color-mix(in srgb, var(--tt-a) 10%, var(--surface-2));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tt-a) 8%, transparent), 0 8px 22px -12px color-mix(in srgb, var(--tt-a) 80%, transparent); }
.p-copy { height: 32px; }
.p-copy.done { color: var(--up); }
.p-tags-why { margin: 0; padding-left: 20px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.p-tags-why b { color: var(--text); font-weight: 650; }
.p-caption { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 14px; border-radius: 14px; font-size: 15px;
  background: var(--surface-2); border: 1px solid var(--line); }
.p-caption > span { flex: 1; min-width: 0; }
.p-caption > small, .p-tt-tips > small { flex-basis: 100%; color: var(--muted); font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; }
.p-tt-tips { display: grid; gap: 6px; }
.p-tips { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.5; color: var(--text); }
.p-tt-ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px;
  background: var(--surface-2); border: 1px dashed color-mix(in srgb, var(--tt-a) 35%, var(--line)); }
.p-tt-ask p { margin: 0; color: var(--muted); font-size: 14px; }

/* «Логотип лейбла» on the new edit's form and the manual steps */
.p-logo-pick { gap: 10px 16px; }
.p-logo-pick img { width: 22px; height: 22px; border-radius: 6px; object-fit: contain; vertical-align: middle; }
.p-logo-select { width: fit-content; }

/* «Сказать голосом» in the corner of the field it fills (voice-field.tsx), as an iPhone's dictation: a round microphone
   lit with the accent (the user, 2026-10-25: «кнопка… сказать голосом… как-то она странно смотрится»); while it
   records, the recording's line — its time, its level, «Готово», «Отмена» — lies across the field's foot, red-lit. */
.p-dictate { position: relative; }
.p-dictate textarea { padding-right: 58px; resize: none; field-sizing: content; min-height: 5.5em; }  /* no grip under the microphone: the field grows with its words */
.p-dictate > [data-voice-for] { position: absolute; right: 9px; bottom: 9px; z-index: 1; }
.p-dictate .vf { margin: 0; display: flex; justify-content: flex-end; }
.p-dictate .vf-mic { width: 40px; height: 40px; padding: 0; gap: 0; justify-content: center; font-size: 0; border-radius: 50%;
  color: var(--accent-text); border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: radial-gradient(120% 100% at 50% -10%, color-mix(in srgb, #fff 18%, transparent), transparent 60%),
              color-mix(in srgb, var(--accent) 18%, var(--surface-2));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 8%, transparent), 0 6px 18px -6px color-mix(in srgb, var(--accent) 80%, transparent);
  transition: box-shadow .2s, transform .12s, background-color .2s; }
.p-dictate .vf-mic svg { width: 19px; height: 19px; }
@media (hover: hover) and (pointer: fine) {
  .p-dictate .vf-mic:hover { border-color: var(--accent);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 14%, transparent), 0 8px 22px -6px color-mix(in srgb, var(--accent) 95%, transparent); }
}
.p-dictate .vf-mic:active { transform: scale(.94); }
.p-dictate > [data-voice-for]:has(.vf-rec, .vf-busy) { left: 9px; }
.p-dictate .vf-rec, .p-dictate .vf-busy { flex: 1; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 5px 0 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 94%, transparent); border: 1px solid color-mix(in srgb, #ff453a 40%, var(--line));
  box-shadow: 0 0 22px -8px color-mix(in srgb, #ff453a 75%, transparent); }
.p-dictate .vf-busy { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: 0 0 22px -8px color-mix(in srgb, var(--accent) 75%, transparent); }
.p-dictate .vf-rec .vf-done { margin-left: auto; color: #fff; background: var(--accent); border-color: transparent; }
.p-dictate .vf-rec .vf-btn { height: 34px; }
.p-dictate .vf-rec .vf-cancel { border-color: transparent; background: none; }
.p-dictate .vf-note { position: absolute; right: 0; bottom: calc(100% + 8px); width: max-content; max-width: min(300px, 80vw); padding: 7px 11px;
  border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.p-rate-send { justify-content: flex-end; }

/* «Битмейкеры»: a search that did not go — why, and the same search again in one press */
.p-bm-again { align-items: center; gap: 10px 14px; }
.p-bm-again .p-warn { margin: 0; flex: 1 1 240px; }

/* «Биты»: how Scoute heard the reference, and what went to the studio */
.p-beat-heard b { display: block; margin-bottom: 2px; }
.p-beat-prompt { margin: 6px 0 0; font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: 12.5px; overflow-wrap: anywhere; }
.p-bm-style { color: var(--accent-text); font-weight: 650; font-size: 14px; }  /* the beatmaker's sound, as Scoute AI read it */
/* «Добавить своего битмейкера»: a link and the button, nothing more; a row being read says so */
.p-bm-add { display: grid; gap: 10px; }
.p-bm-add h2 { margin: 0; }
.p-bm-link { flex-wrap: nowrap; }
.p-bm-link .p-link-field { flex: 1; min-width: 0; }
.p-bm-reading { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--accent-text); }
@media (max-width: 720px) { .p-bm-link { flex-wrap: wrap; } .p-bm-link .button { width: 100%; } }
.p-bm-tools { display: grid; gap: 12px; }
@media (min-width: 980px) { .p-bm-tools { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; } .p-bm-tools .p-bm-link { flex-wrap: wrap; } }
@media (max-width: 720px) { .p-bm-search .p-row .button { width: 100%; } }  /* as «Добавить» under it: both the width of their field */

/* After the read (edit.html): the artist's videos too few for a cut of their own — amber, a hint, not an error; and
   «Добавить референс TikTok», the read once more with it (promo.add_reference) */
.p-warn.p-few { background: var(--warn-soft); color: var(--text); }
.p-warn.p-few b { color: var(--warn); }
.p-add-ref { margin-top: 12px; }
.p-add-ref > summary { cursor: pointer; color: var(--muted); font-weight: 560; width: fit-content; }
.p-add-ref[open] > summary { color: var(--text); }
.p-ref-form { display: grid; gap: 12px; margin-top: 12px; }
.p-ref-form .p-link-field { max-width: 560px; }
.p-ref-form .p-row { align-items: center; }

/* A person's own edits at /me (scout/visitor_pages.py, templates/me): phone first — one column, big taps; the label's
   «Промо» pieces (.p-how, .p-rate, .p-again2, .p-variant, the editor) as they are, a few of its own around them. */
.vs-spark { width: 100%; height: 100%; display: block; }
.vs-hero-mark { flex: none; width: 56px; height: 56px; padding: 13px; box-sizing: border-box; border-radius: 16px; color: #d7ff2e;
  background: radial-gradient(circle at 50% 45%, #4b3aa8, #0a0812 78%); box-shadow: 0 10px 28px -12px rgba(75, 58, 168, .9), inset 0 1px 0 rgba(255, 255, 255, .12); }
.center.vs-center { place-items: start center; padding-top: 28px; }
.vs-hero { width: 100%; max-width: 760px; box-sizing: border-box; display: grid; gap: 18px; padding: 28px; border-radius: 22px;
  background: linear-gradient(180deg, var(--glass-hi), var(--glass)); border: 1px solid var(--glass-line);
  box-shadow: inset 0 1px 0 var(--glass-rim), var(--glass-shadow); }
.page > .vs-hero { margin: 8px auto 0; }
.vs-hero-head { display: flex; align-items: center; gap: 16px; }
.vs-hero-head h1 { font-size: 26px; margin: 0; }
.vs-hero-head .sub { margin-top: 4px; }
.vs-ways { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.vs-way { display: flex; }
.vs-way > span { flex: 1; display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2);
  grid-template-columns: 72px minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 14px; }
.vs-way > span > * { grid-column: 2; }
.vs-way > span > .p-preview { grid-column: 1; grid-row: 1 / span 3; width: 72px; }
.vs-way b { font-weight: 650; }
.vs-way small { color: var(--muted); line-height: 1.4; }
.vs-way .p-price { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--faint); }
.vs-way .p-price .cr { color: var(--text); }
.vs-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: step; }
.vs-steps li { display: grid; gap: 2px; padding-top: 32px; position: relative; counter-increment: step; }
.vs-steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12.5px; font-weight: 700; color: var(--accent-text); background: var(--accent-soft); }
.vs-steps span { color: var(--muted); font-size: 13px; line-height: 1.35; }
.vs-hero > .fine { margin: 0; }
.vs-login { display: grid; gap: 4px; padding: 18px; border-radius: 16px; background: var(--surface-2); }
.vs-terms { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.vs-terms .p-check { flex: 1 1 280px; font-weight: 520; line-height: 1.4; }
.vs-terms .p-check > span { flex: 1; min-width: 0; }
.vs-hold { margin-bottom: 16px; }
.vs-hold-box p { margin: 0 0 12px; }
.vs-edits { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.vs-edit { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 18px;
  color: var(--text); background: linear-gradient(180deg, var(--glass-hi), var(--glass)); border: 1px solid var(--glass-line);
  box-shadow: inset 0 1px 0 var(--glass-rim), var(--glass-shadow); transition: transform .12s, border-color .2s; -webkit-tap-highlight-color: transparent; }
.vs-edit:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) { .vs-edit:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--glass-line)); } }
.vs-poster { width: 76px; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; display: grid; place-items: center; color: #d7ff2e;
  background: radial-gradient(circle at 50% 40%, #3b2f86, #0a0812 80%); }
.vs-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vs-poster .vs-spark { width: 30px; height: 30px; }
.vs-edit-text { display: grid; gap: 3px; min-width: 0; }
.vs-edit-text b { font-size: 16px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-edit-state { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; }
.vs-edit-state small { color: var(--muted); font-size: 12.5px; line-height: 1.35; overflow-wrap: anywhere; }
.vs-empty { display: grid; justify-items: center; gap: 4px; }
.vs-empty h2 { margin: 10px 0 0; }
.vs-form { gap: 16px; }
.vs-form .field { margin-top: 0; }
.vs-form .field input[type="text"] { width: 100%; box-sizing: border-box; }
.vs-track { padding: 14px; border-radius: 14px; border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--line-strong));
  background: color-mix(in srgb, var(--accent) 6%, transparent); }
.vs-track .fine { margin: 0; flex: 1 1 220px; }
.vs-hero .fine a, .vs-form > .fine a, .vs-terms a, .vs-balance .fine a { color: inherit; text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.vs-rights { font-weight: 560; }
.vs-rights > span { flex: 1; min-width: 0; }
.vs-go { align-items: center; }
.vs-form > .fine { margin: 0; }
.vs-short { margin-bottom: 14px; }
.vs-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.vs-lead { margin: 14px 0 12px; line-height: 1.45; }
.vs-piece { margin-top: 4px; }
.vs-make { margin-top: 16px; align-items: center; }
.vs-replace { margin-top: 14px; }
.vs-replace > summary { cursor: pointer; color: var(--muted); font-weight: 560; width: fit-content; }
.vs-replace[open] > summary { margin-bottom: 10px; color: var(--text); }
.vs-result { display: grid; gap: 18px; }
.vs-video { width: 100%; max-width: 360px; justify-self: center; box-sizing: border-box; }
.vs-video .p-row .button { width: 100%; }
.vs-side { display: grid; gap: 16px; min-width: 0; }
.vs-side > .p-rate, .vs-side > .p-again2, .vs-side > .p-tiktok-advice { margin-top: 0; }
.vs-side .p-again-choices { grid-template-columns: minmax(0, 1fr); }  /* «Доработать» over «По-другому»: two, never a half-empty row */
.vs-edits { margin-bottom: 20px; }
.vs-side > .fine { margin: 0; }
.p-rate.vs-ask { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), 0 18px 44px -24px color-mix(in srgb, var(--accent) 80%, transparent); }
@media (min-width: 960px) {
  .vs-result { grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); align-items: start; }
  .vs-video { position: sticky; top: 84px; }
}
.vs-soon { display: grid; gap: 4px; margin-top: 14px; }
.vs-people { display: grid; gap: 12px; margin-top: 16px; }
.vs-person .fine { margin: 4px 0 12px; }
.vs-person h2 small { font-weight: 500; font-size: 14px; }
@media (max-width: 720px) {
  .vs-hero { padding: 20px 16px; border-radius: 20px; gap: 16px; }
  .vs-hero-head { align-items: flex-start; gap: 12px; }
  .vs-hero-head h1 { font-size: 22px; }
  .vs-hero-mark { width: 46px; height: 46px; padding: 11px; border-radius: 14px; }
  .vs-steps { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
  .vs-terms .button, .vs-go .button, .vs-make .button, .vs-track .p-file-pick { width: 100%; }
}
