  :root{
    --ink:#161618; --grey-1:#f2f2f4; --grey-2:#e4e4e8; --grey-3:#76767c; --grey-4:#5c5c63;
    --mark:#c9c9ce; --key:#0aa6e0; --key-soft:#dff4fc;
    --key-deep:#1a7ab5;    /* the blue, deep enough to carry white text (4.7:1) */
    --red:#e5605b; --amber:#fdbb60; --green:#77c47a;    /* the three dots in the logo */
    --mono:'SF Mono',ui-monospace,'Cascadia Mono','Roboto Mono',Menlo,Consolas,monospace;
    --sans:-apple-system,BlinkMacSystemFont,'Helvetica Neue',Helvetica,'Segoe UI',Arial,sans-serif;
    --s1:8px; --s2:14px; --s3:22px; --s4:34px; --s5:52px;
    --rail:74px; --rail-open:216px; --ops:320px;
    --radius:12px;
    /* the page: a touch off white, so the white boxes on it
       (fields, the production and scene, cards, the ticket) lift off it */
    --paper:#f9f9fa;
    --card:#fff;           /* the boxes on the page */
    --on-ink:#fff;         /* words on a black button */
  }
  /* dark mode, switched on from the profile page */
  :root[data-theme="dark"]{
    color-scheme:dark;
    --ink:#ececee; --grey-1:#26262a; --grey-2:#3a3a40; --grey-3:#9a9aa2; --grey-4:#bdbdc4;
    --mark:#56565d; --key-soft:#12313f;
    --paper:#141416; --card:#1d1d20; --on-ink:#141416;
  }
  /* switching it on or off, the new look sweeps across from the left */
  ::view-transition-old(root),::view-transition-new(root){animation:none;mix-blend-mode:normal}
  ::view-transition-new(root){animation:theme-sweep .75s cubic-bezier(.65,0,.35,1)}
  @keyframes theme-sweep{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0)}}
  :root[data-theme="dark"] .prow:hover{background:rgba(255,255,255,.05)}
  :root[data-theme="dark"] .prow.on{background:rgba(255,255,255,.08)}
  :root[data-theme="dark"] .stage-name.needs{color:#b39ddb}
  :root[data-theme="dark"] .tbtn.danger{color:#f2867e}
  *{box-sizing:border-box;margin:0;padding:0}
  body{background:var(--paper);color:var(--ink);font-family:var(--sans);-webkit-font-smoothing:antialiased;
       min-height:100vh;display:flex;flex-direction:column}
  button{font:inherit;cursor:pointer;border:none;background:none;color:inherit;text-align:left}
  input,select,textarea{font:inherit;color:inherit}
  .wrap{width:100%;max-width:820px;margin:0 auto;padding:0 26px}
  /* the header spans the window so log in and join sit in its corner,
     rather than against the right edge of the column below */
  /* far enough in that the rail, open, still does not reach it */
  .topbar{width:100%;padding:0 32px;
          transition:padding-left .2s cubic-bezier(.2,.7,.3,1)}
  /* the logo sits at the left edge, and steps aside while the rail is open
     rather than being read over. the rail is its sibling, and is first in
     the markup, so it can move it on hover. */
  .rail:hover ~ .topbar,.rail:focus-within ~ .topbar{
        padding-left:calc(32px + var(--rail-open) - var(--rail))}
  /* the page sits beside the rail, and centres in what is left */
  body{padding-left:var(--rail)}
  .hide{display:none !important}

  /* ── the rail ───────────────────────────────────────────── */
  /* Collapsed to its icons, and opens over the page on hover rather than
     shoving it sideways, so nothing reflows under the pointer. */
  .rail{position:fixed;left:0;top:0;bottom:0;width:var(--rail);z-index:40;
        background:var(--paper);border-right:1px solid var(--grey-1);
        display:flex;flex-direction:column;justify-content:center;
        padding:30px 0 26px;overflow:hidden;
        transition:width .2s cubic-bezier(.2,.7,.3,1),box-shadow .2s}
  /* out of the flow, so the three above it centre on the rail and not on
     whatever height is left over once this one has taken its share */
  .railbtn.me{position:absolute;left:0;right:0;bottom:26px}
  .rail:hover,.rail:focus-within{width:var(--rail-open);
        box-shadow:1px 0 22px rgba(22,22,24,.07)}
  .rail-set{display:flex;flex-direction:column;gap:4px}
  .railbtn{display:flex;align-items:center;height:50px;padding:0;
           color:var(--grey-4);border-radius:11px;margin:0 9px;
           transition:background .15s,color .15s}
  /* the icon keeps a box the width of the collapsed rail, so it stays on the
     centre line when closed and the label simply follows it when open */
  .railbtn > svg,.railbtn > .rav{margin:0 16px;flex:none}
  .railbtn svg{width:24px;height:24px}
  .railbtn span:not(.rav){font-size:15px;letter-spacing:-.01em;white-space:nowrap;
                          opacity:0;transition:opacity .16s}
  .rail:hover .railbtn span:not(.rav),
  .rail:focus-within .railbtn span:not(.rav){opacity:1}
  .railbtn:hover{background:var(--grey-1);color:var(--ink)}
  .railbtn.on{color:var(--ink);font-weight:700}
  .railbtn.on svg{stroke-width:2.1}
  /* the avatar stands in for an icon on the profile button */
  .rav{width:25px;height:25px;border-radius:999px;flex:none;
       border:1.5px solid currentColor;display:flex;align-items:center;
       justify-content:center;font-family:var(--mono);font-size:11px;
       font-weight:600;text-transform:uppercase;letter-spacing:0}
  .railbtn.on .rav{background:var(--ink);color:var(--on-ink);border-color:var(--ink)}
  .rav.anon{border:none}
  .rav.anon svg{width:24px;height:24px}
  .railbtn.on .rav.anon{background:none;color:var(--ink)}

  /* ── the back office panel ──────────────────────────────── */
  /* Sits in the gap between the rail and the column, which is otherwise
     empty, and only for the team. The page shifts over to make room. */
  .ops{position:fixed;left:var(--rail);top:0;bottom:0;width:var(--ops);z-index:30;
       background:var(--grey-1);border-right:1px solid var(--grey-2);
       overflow-y:auto;padding:26px 20px 40px}
  body.ops-on{padding-left:calc(var(--rail) + var(--ops))}
  /* with the panel up the rail stays shut: opening it would cover the panel */
  body.ops-on .rail:hover,body.ops-on .rail:focus-within{width:var(--rail);box-shadow:none}
  body.ops-on .rail:hover .railbtn span:not(.rav),
  body.ops-on .rail:focus-within .railbtn span:not(.rav){opacity:0}
  body.ops-on .rail:hover ~ .topbar,body.ops-on .rail:focus-within ~ .topbar{padding-left:32px}

  .ops-top{padding-bottom:16px;border-bottom:1px solid var(--grey-2)}
  /* fold: a button in the panel's top right shrinks it to a strip and back */
  .ops-fold{position:absolute;top:14px;right:12px;width:30px;height:30px;border-radius:9px;
            display:flex;align-items:center;justify-content:center;color:var(--grey-4);z-index:1}
  .ops-fold:hover{background:var(--grey-2);color:var(--ink)}
  .ops-fold svg{width:17px;height:17px;transition:transform .2s}
  .ops{transition:width .2s cubic-bezier(.2,.7,.3,1),padding .2s}
  .ops.min{width:54px;padding:0;overflow:hidden}
  .ops.min > :not(.ops-fold){display:none}
  .ops.min .ops-fold{right:12px}
  .ops.min .ops-fold svg{transform:rotate(180deg)}
  body.ops-on.ops-min{padding-left:calc(var(--rail) + 54px)}
  .ops-top{padding-right:30px}
  /* the ranking sits beside what it ranks: recording by the title,
     performer by the name */
  .ops .rk{font-style:normal;font-family:var(--mono);font-size:11.5px;font-weight:400;
           letter-spacing:.06em;color:var(--ink);padding:1px 6px;border-radius:999px;
           border:1px solid var(--grey-2);background:var(--card);margin-left:6px;
           vertical-align:2px;white-space:nowrap}
  .ops .rk:empty{display:none}
  .ops-song{font-size:16px;font-weight:700;letter-spacing:-.02em;margin-top:6px;
            line-height:1.35}
  .ops-song em{display:block;font-style:normal;font-weight:400;color:var(--grey-4);
               font-size:14.5px;margin-top:3px}
  .rank-edit:not(:empty){margin-top:14px}
  /* how the headline got to be the headline, in as few lines as it takes */
  .chain{margin-top:18px}
  .crow{display:flex;justify-content:space-between;gap:12px;padding:6px 0;font-size:12.5px;
        color:var(--grey-4);align-items:baseline}
  .crow b{color:var(--ink);font-weight:600;font-variant-numeric:tabular-nums}
  .crow.sum{padding-top:9px;color:var(--ink)}
  .crow.sum{flex-direction:column;align-items:center;gap:2px;text-align:center}
  .crow.sum b{font-size:22px;font-weight:700;letter-spacing:-.02em}
  .scale{font-family:var(--mono);font-size:10px;letter-spacing:.04em;color:var(--grey-3);
         padding:4px 0}
  .scale span{display:block;color:var(--grey-4);letter-spacing:.09em;margin-bottom:2px}
  .mod{margin-top:14px;padding-top:14px;border-top:1px solid var(--grey-2)}
  .mod summary{font-family:var(--mono);font-size:10px;letter-spacing:.13em;color:var(--grey-4);
          font-weight:400;display:flex;align-items:center;gap:8px;text-transform:uppercase;
          list-style:none;cursor:pointer;user-select:none}
  .mod summary::-webkit-details-marker{display:none}
  .mod summary::after{content:"";margin-left:auto;width:6px;height:6px;
          border-right:1.5px solid var(--grey-3);border-bottom:1.5px solid var(--grey-3);
          transform:rotate(45deg);transition:transform .15s}
  .mod[open] summary::after{transform:rotate(-135deg)}
  .mod summary:hover{color:var(--ink)}
  .mod summary b{width:17px;height:17px;border-radius:5px;background:var(--ink);color:var(--on-ink);
            font-size:9.5px;display:flex;align-items:center;justify-content:center;font-weight:700}
  .mod > div{margin-top:11px;font-size:12.5px;line-height:1.55;color:var(--grey-4)}
  .ops .row{display:flex;justify-content:space-between;gap:10px;padding:5px 0;
            border-bottom:1px solid var(--grey-2)}
  .ops .row:last-child{border-bottom:none}
  .ops .row.tot{border-bottom:1.5px solid var(--grey-2)}
  .ops .row.tot .k{color:var(--ink)}
  /* long option names wrap instead of pushing the figure off the edge */
  #rules-calc .k,#fees-calc .k{white-space:normal;flex:1 1 auto}
  .ops .row.aside .k,.ops .row.aside b{color:var(--grey-3);font-weight:400;font-style:italic}
  #rules-calc .row b,#fees-calc .row b{white-space:nowrap}
  .ops .row b{color:var(--ink);font-weight:600;text-align:right}
  .ops .k{font-family:var(--mono);font-size:10px;letter-spacing:.06em;color:var(--grey-3);
          white-space:nowrap}
  .ops select{width:100%;font-size:12.5px;padding:7px 8px;border:1px solid var(--grey-2);
              border-radius:8px;background:var(--card);margin-top:4px}
  .our-fig:not(:empty){margin-top:16px}
  .ops .our-fig input{display:block;width:100%;font-size:12.5px;padding:7px 8px;
              border:1px solid var(--grey-2);border-radius:8px;background:var(--card);margin-top:4px}
  .ops .two{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:4px}
  .ops .lab{font-family:var(--mono);font-size:9.5px;letter-spacing:.09em;color:var(--grey-3)}
  .ops .save{width:100%;margin-top:11px;padding:9px;border-radius:9px;background:var(--ink);
             color:var(--on-ink);font-size:12.5px;font-weight:600;text-align:center}
  .ops .save:hover{opacity:.85}
  .ops .save[disabled]{opacity:.45}
  .ops select[disabled],.ops .our-fig input[disabled]{background:var(--grey-1, #f4f4f5);color:var(--grey-3);cursor:not-allowed}
  .ops .set-by{margin-top:9px;font-size:11.5px;color:var(--grey-3);line-height:1.5}
  .ops .ladder{margin-top:0}
  .ops .none{color:var(--grey-3)}
  .ops .tag{display:inline-block;font-family:var(--mono);font-size:9.5px;letter-spacing:.08em;
            padding:3px 7px;border-radius:999px;background:var(--card);border:1px solid var(--grey-2);
            color:var(--grey-4)}
  .ops .tag.hit{background:var(--key-soft);border-color:var(--key-soft);color:var(--key-deep)}
  .ops .msg{margin-top:8px;font-size:11.5px;color:var(--key-deep)}

  /* no room beside the column down here, so it goes above it instead */
  @media (max-width:1240px){
    .ops{position:relative;left:auto;width:auto;border-right:none;
         border-bottom:1px solid var(--grey-2);padding:22px 26px 28px}
    body.ops-on{padding-left:var(--rail)}
    .ops.min{width:auto;height:54px}
    body.ops-on.ops-min{padding-left:var(--rail)}
  }

  /* ── masthead ───────────────────────────────────────────── */
  .masthead{padding-top:18px;display:flex;justify-content:space-between;align-items:flex-start;gap:24px}
  .wm{transition:opacity .15s}
  .wm:hover{opacity:.62}
  /* the brand: the wordmark, three dots sitting on its baseline the height
     of its lowercase letters, and the tagline. Sized from the wordmark, so
     the whole thing scales together. */
  .wm{font-size:clamp(31px,4.4vw,44px)}
  .wm .line{display:flex;align-items:baseline}
  .wm .a{font-size:1em;font-weight:800;letter-spacing:-.045em;line-height:1;white-space:nowrap}
  .wm .dots{height:.56em;width:auto;margin-left:.19em;vertical-align:baseline;overflow:visible}
  .wm .dots .g{fill:var(--green)}
  .wm .dots .y{fill:var(--amber)}
  .wm .dots .r{fill:var(--red)}
  .wm .tag{display:block;font-family:var(--sans);font-size:.415em;font-weight:400;
           color:var(--grey-3);letter-spacing:0;line-height:1.2;margin-top:.5em}

  /* top-right controls */
  .top{display:flex;align-items:center;gap:18px;padding-top:8px;flex:none}
  .toplink{font-family:var(--sans);font-size:13.5px;letter-spacing:0;color:var(--grey-4);
           padding-bottom:2px;border-bottom:1px solid transparent;transition:color .15s,border-color .15s}
  .toplink:hover{color:var(--ink);border-color:var(--ink)}
  .toplink.on{color:var(--ink);border-color:var(--ink)}
  .toplink.solid{background:var(--ink);color:var(--on-ink);border:none;border-radius:999px;
                 padding:8px 17px;letter-spacing:.09em;font-weight:600}
  .toplink.solid:hover{opacity:.85;color:var(--on-ink)}
  .toplink.solid.on{color:var(--on-ink)}
  /* signed in: a small log out, then the way to the profile */
  /* same type as log in / join / log out beside it */
  .top-me{display:flex;align-items:center;gap:9px;font-family:var(--sans);font-size:13.5px;
          letter-spacing:0;color:var(--grey-4);padding:4px 12px 4px 4px;border-radius:999px;
          transition:background .15s,color .15s}
  .top-me:hover{background:var(--grey-1);color:var(--ink)}
  .top-me .rav{width:28px;height:28px}
  .who{display:flex;align-items:center;gap:10px;transition:opacity .15s}
  .who:hover{opacity:.7}
  .who .av{width:30px;height:30px;border-radius:999px;background:var(--ink);color:var(--on-ink);flex:none;
           font-family:var(--mono);font-size:12px;font-weight:600;display:flex;
           align-items:center;justify-content:center;text-transform:uppercase}
  .who .n{font-size:13.5px;font-weight:700;letter-spacing:-.02em;white-space:nowrap}
  .who .n em{display:block;font-family:var(--sans);font-style:normal;font-size:11.5px;
             color:var(--grey-3);letter-spacing:0;font-weight:400;margin-top:2px}

  /* ── one step at a time, down a single centred column ───── */
  /* Each step of the flow is its own screenful. Where a step has two parts
     (the figures and then the form, the bill and then the ticket) the second
     part follows underneath, so the page reads top to bottom in one line. */
  .stage{flex:1;display:block;padding:40px 26px 110px}
  /* a line of text stops being easy to read somewhere around 70 characters,
     so the words keep a narrower measure than the forms and figures do */
  .say,.body p,.body li{max-width:62ch}
  .col{min-width:0}
  .col + .col{margin-top:var(--s5);padding-top:var(--s5);
              border-top:1px solid var(--grey-1)}
  /* a new member has no clearances yet, so the panel below the list is empty.
     no rule and no gap for a section that is not there. */
  .col:has(> #acct-detail:empty){display:none}
  .col-right:not(:has(.view.on)){display:none}
  .view{display:none}
  .view.on{display:block}
  /* when we scroll to one of these, stop a little short of it, so the
     heading has air above it rather than sitting on the top edge */
  #use-form,#acct-detail{scroll-margin-top:34px}
  /* Nothing else is on this step, so it is centred rather than tucked into
     the top left of an otherwise empty page. */
  #tool.hero{display:flex;flex-direction:column;justify-content:center;
             padding-top:var(--s5);padding-bottom:156px}
  #tool.bare .col-left{display:none}
  #tool.bare .col-right{margin-top:0;padding-top:0;border-top:none}
  #tool.hero #l-h,#tool.hero #l-say{text-align:center}
  /* alone on the page, so a step up from the other headings */
  #tool.hero #l-h{font-size:clamp(25px,3vw,33px)}
  #tool.hero #l-say{margin-left:auto;margin-right:auto}
  #tool.hero .searchwrap{max-width:560px;margin-left:auto;margin-right:auto}
  /* the kind of production: the song moves up, the question takes the middle */
  #tool.kindstep .col-left{display:flex;flex-direction:column}
  #tool.bare.kindstep .col-left{display:none}     /* a page of its own wins, e.g. request received */
  #tool.kindstep #l-song{order:-1;width:100%;max-width:560px;margin:0 auto var(--s5)}
  #tool.kindstep .kindwrap{width:100%;max-width:560px;margin:var(--s3) auto 0}
  .fade{animation:fade .34s cubic-bezier(.2,.7,.3,1)}
  @keyframes fade{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}

  .soon{margin-top:var(--s4);padding:var(--s3);border:1px dashed var(--grey-2);
        border-radius:var(--radius);color:var(--grey-4);font-size:14.5px;line-height:1.65}
  /* links take the page's own colours rather than the browser's blue */
  .soon a,.note a,.body a{color:var(--ink);text-decoration:none;
                          border-bottom:1px solid var(--grey-2);transition:border-color .15s}
  .soon a:hover,.note a:hover,.body a:hover{border-color:var(--ink)}
  #prof-logout{margin-top:var(--s4)}

  /* ── type ───────────────────────────────────────────────── */
  h1,h2{font-weight:700;letter-spacing:-.03em;line-height:1.16}
  h1{font-size:clamp(22px,2.55vw,27px)}
  h2{font-size:19px;letter-spacing:-.025em}
  .dim{font-weight:400;color:var(--grey-3)}
  .say{font-size:14.5px;color:var(--grey-4);line-height:1.62;margin-top:var(--s1)}
  .lab{display:block;font-family:var(--sans);font-size:13px;letter-spacing:0;
       color:var(--grey-4);margin-bottom:7px}
  .note{font-family:var(--sans);font-size:13px;color:var(--grey-3);letter-spacing:0;line-height:1.8}
  .err{font-family:var(--sans);font-size:13.5px;color:#d1453b;line-height:1.6;
       margin-bottom:var(--s2);display:none}
  .err.on{display:block}

  /* a label with its little note */
  .labrow{display:flex;align-items:center;gap:7px;margin-bottom:7px}
  .labrow .lab{margin-bottom:0}
  .info{position:relative;display:inline-flex;align-items:center;justify-content:center;
        width:14px;height:14px;border-radius:999px;border:1.3px solid var(--grey-3);
        font-family:var(--mono);font-size:9px;font-weight:600;line-height:1;color:var(--grey-3);
        cursor:help;user-select:none;transition:color .15s,border-color .15s}
  .info:hover,.info:focus-visible,.info.show{color:var(--ink);border-color:var(--ink);outline:none}
  .info::after{content:attr(data-tip);position:absolute;left:50%;top:calc(100% + 8px);z-index:30;
               transform:translate(-50%,-3px);width:max-content;max-width:210px;padding:7px 10px;
               border-radius:8px;background:var(--ink);color:var(--on-ink);font-family:var(--sans);
               font-size:12px;font-weight:500;letter-spacing:0;line-height:1.4;text-transform:none;
               white-space:normal;text-align:left;pointer-events:none;opacity:0;visibility:hidden;
               transition:opacity .15s,transform .15s,visibility .15s}
  .info:hover::after,.info:focus-visible::after,.info.show::after{opacity:1;visibility:visible;
               transform:translate(-50%,0)}
  /* a hidden note takes up no room, so it can never widen the page on a phone */
  .info:not(:hover):not(:focus-visible):not(.show)::after{content:none}
  /* in the right-hand box of a pair, the note opens leftwards, inside the page */
  .pair > :nth-child(2) .info::after{left:auto;right:-8px;transform:translate(0,-3px)}
  .pair > :nth-child(2) .info:hover::after,.pair > :nth-child(2) .info:focus-visible::after,
  .pair > :nth-child(2) .info.show::after{transform:translate(0,0)}

  /* a required field left empty */
  .field.missing{border-color:#d1453b}
  .field.missing:focus{border-color:#d1453b;box-shadow:0 0 0 3px rgba(209,69,59,.1)}
  #need-msg{margin:var(--s3) 0 -6px}

  /* ── controls ───────────────────────────────────────────── */
  .field{width:100%;padding:14px 16px;font-size:15.5px;border:1.5px solid var(--grey-2);
         border-radius:var(--radius);outline:none;background:var(--card);transition:border-color .18s}
  .field::placeholder{color:var(--grey-3)}
  .field:focus{border-color:var(--ink)}
  select.field{appearance:none;
    background-image:linear-gradient(45deg,transparent 50%,var(--grey-3) 50%),
                     linear-gradient(135deg,var(--grey-3) 50%,transparent 50%);
    background-position:calc(100% - 19px) 53%,calc(100% - 14px) 53%;
    background-size:5px 5px;background-repeat:no-repeat}
  select.field:invalid{color:var(--grey-3)}
  textarea.field{resize:vertical;min-height:62px;font-family:var(--sans);line-height:1.55}
  .f{margin-bottom:var(--s2)}
  .pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 14px}
  /* a long option (a budget band) is cut short in the box, never widens the page */
  select.field{min-width:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}

  .cta{display:block;width:100%;padding:15px;background:var(--ink);color:var(--on-ink);
       border-radius:var(--radius);font-size:15px;font-weight:600;letter-spacing:-.01em;
       text-align:center;transition:opacity .18s}
  .cta:hover{opacity:.85}
  /* the one step that moves a clearance forward gets the site's blue */
  .cta.go{background:var(--key-deep);color:#fff}
  .cta.go:hover{opacity:1;background:#156a9e}
  .ghost{display:block;width:100%;padding:13px;border:1.5px solid var(--grey-2);
         border-radius:var(--radius);font-family:var(--sans);font-size:13.5px;letter-spacing:0;
         color:var(--grey-4);text-align:center;transition:border-color .15s,color .15s}
  .ghost:hover{border-color:var(--ink);color:var(--ink)}
  .ghost.dark{border-color:var(--ink);color:var(--ink);font-weight:600}
  .act{margin-top:var(--s4)}
  .pair .ghost{margin-top:0}

  /* ── left column ────────────────────────────────────────── */
  .song{display:flex;align-items:center;gap:14px;padding:13px 15px;
        border:1.5px solid var(--grey-2);border-radius:var(--radius);margin-top:var(--s3)}
  .song .art{width:52px;height:52px;border-radius:8px;flex:none;object-fit:cover;background:var(--grey-1)}
  .song .art.ph{display:flex;align-items:center;justify-content:center;
                font-family:var(--mono);font-size:13px;color:var(--grey-3)}
  .song .t{display:block;font-size:15px;font-weight:600;letter-spacing:-.01em}
  .song .y{display:block;font-family:var(--sans);font-size:13px;color:var(--grey-3);margin-top:4px}
  .song .x{margin-left:auto;flex:none;font-family:var(--sans);font-size:13px;
           color:var(--grey-3);letter-spacing:0}
  .song .x:hover{color:var(--ink)}
  .by{font-weight:400;color:var(--grey-3)}

  .searchwrap{position:relative;margin-top:var(--s3)}
  .results{position:absolute;left:0;right:0;top:calc(100% + 7px);z-index:20;background:var(--card);
           border:1.5px solid var(--grey-2);border-radius:var(--radius);overflow:hidden auto;
           max-height:54vh;display:none;box-shadow:0 16px 38px rgba(20,20,24,.11)}
  .results.on{display:block}
  .res{display:flex;align-items:center;gap:13px;width:100%;padding:11px 15px;
       border-bottom:1px solid var(--grey-1)}
  .res:last-child{border-bottom:none}
  .res:hover,.res:focus-visible{background:var(--grey-1);outline:none}
  .res .art{width:42px;height:42px;border-radius:7px;flex:none;object-fit:cover;background:var(--grey-1)}
  .res .art.ph{display:flex;align-items:center;justify-content:center;
               font-family:var(--mono);font-size:12px;color:var(--grey-3)}
  .res .t{display:block;font-size:14.5px;font-weight:600;letter-spacing:-.01em;line-height:1.3}
  .res .m{display:block;font-family:var(--sans);font-size:13px;color:var(--grey-3);margin-top:3px}

  .figures{margin-top:var(--s4)}
  .rangelab{display:block;font-family:var(--sans);font-size:13px;letter-spacing:0;
            color:var(--grey-3);margin-bottom:9px}
  .range{font-size:clamp(29px,4.5vw,44px);font-weight:700;letter-spacing:-.04em;line-height:1.05}
  .range small{font-size:.37em;font-weight:500;color:var(--grey-3);letter-spacing:0}
  .fader{position:relative;height:38px;margin-top:var(--s3)}
  .fader i{position:absolute;top:16px;left:0;right:0;height:5px;border-radius:4px;background:var(--grey-1)}
  .fader b{position:absolute;top:16px;left:0;width:0;height:5px;border-radius:4px;background:var(--key-soft);
           transition:left .7s cubic-bezier(.2,.7,.3,1),width .7s cubic-bezier(.2,.7,.3,1)}
  .fader u{position:absolute;top:6px;left:0;width:3px;height:25px;border-radius:2px;background:var(--key);
           opacity:0;transition:left .7s cubic-bezier(.2,.7,.3,1),opacity .35s .25s}
  .ends{display:flex;justify-content:space-between;font-family:var(--sans);font-size:13px;
        color:var(--grey-3);letter-spacing:0}
  .likely{margin-top:var(--s4);text-align:center;color:var(--key);
          font-size:clamp(24px,3.8vw,37px);font-weight:700;letter-spacing:-.035em;line-height:1.1}
  .likely small{font-size:.42em;font-weight:500;color:var(--grey-3);letter-spacing:0}
  .basis{margin-top:var(--s4);padding-top:var(--s3);border-top:1px solid var(--grey-1)}
  /* busy / error / delta */
  /* the range sits at the two ends of the bar, full size */
  .ends.big{font-family:var(--sans);font-size:clamp(26px,4.2vw,42px);font-weight:700;
            letter-spacing:-.04em;line-height:1.05;color:var(--ink);margin-top:12px;
            font-variant-numeric:tabular-nums}   /* fixed-width digits: no jitter while counting */
  .ends.big .end{display:flex;flex-direction:column;align-items:flex-start}
  .ends.big .end.r{align-items:flex-end}
  .ends.big em{font-style:normal;font-family:var(--sans);font-size:13px;font-weight:400;
               letter-spacing:0;color:var(--grey-3);margin-bottom:7px;line-height:1}
  /* 'around £X' sits between low and high, in the key colour, and fades in
     when the final estimate lands, after the numbers have counted */
  .ends.big .end.m{align-items:center;color:var(--key)}
  /* three figures across a phone: a touch smaller so six figures still fit */
  @media (max-width:430px){ .ends.big{font-size:min(26px,5.8vw);gap:8px} }
  .ends .around{opacity:0;transition:opacity .7s ease}   /* paint() adds .on once low and high have landed */
  .ends .around.on{opacity:1}
  .figures.busy .range,.figures.busy .likely,.figures.busy .ends{opacity:.18}
  .figures .range,.figures .likely,.figures .ends{transition:opacity .3s}
  .working{display:none;align-items:center;gap:11px;margin-top:var(--s3)}
  .figures.busy .working{display:flex}
  /* the first ballpark for a song: nothing but the working line until it lands */
  .figures.first .rangelab,.figures.first .fader,.figures.first .ends,.figures.first .around{display:none}
  .ring{width:15px;height:15px;border-radius:999px;flex:none;
        border:2px solid var(--grey-2);border-top-color:var(--key);
        animation:spin .7s linear infinite}
  @keyframes spin{to{transform:rotate(360deg)}}
  .working span{font-family:var(--sans);font-size:13px;letter-spacing:0;color:var(--grey-3)}
  .oops{margin-top:var(--s3);padding:14px 16px;border:1.5px solid var(--grey-2);
        border-radius:var(--radius);display:flex;align-items:center;
        justify-content:space-between;gap:14px;flex-wrap:wrap}
  .oops p{font-family:var(--sans);font-size:13px;color:var(--grey-4);line-height:1.7}
  .oops button{font-family:var(--sans);font-size:13px;letter-spacing:0;color:var(--ink);
               border-bottom:1px solid var(--ink);padding-bottom:1px;flex:none}

  /* form sections and field hints */

  /* collapsible sections */
  /* the two shutters are cards: quiet when closed, a firmer edge when open,
     dark when you tab onto one. the header sums up what's inside. */
  .fold{border:1.5px solid var(--grey-2);border-radius:14px;background:var(--card);
        margin-top:12px;transition:border-color .2s}
  .fold:first-of-type{margin-top:0}
  .fold:hover{border-color:var(--grey-3)}
  .fold[open]{border-color:var(--grey-3)}
  .fold > summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none;
                  padding:17px 18px;border-radius:12px}
  .fold > summary::-webkit-details-marker{display:none}
  .fold > summary:focus-visible{outline:none}
  .fold:has(> summary:focus-visible){border-color:var(--ink)}
  .fold[open] > summary{border-bottom:1px solid var(--grey-1);border-radius:12px 12px 0 0}
  .fold > summary .n{font-family:var(--sans);font-size:13px;letter-spacing:.07em;color:var(--ink);flex:none}
  .fold > summary .caret{width:7px;height:7px;flex:none;margin-left:auto;
                         border-right:1.5px solid var(--grey-3);border-bottom:1.5px solid var(--grey-3);
                         transform:rotate(45deg) translate(-1px,-1px);transition:transform .25s}
  .fold[open] > summary .caret{transform:rotate(-135deg) translate(-2px,-2px)}
  .fold .inner{padding:18px 18px 4px}
  #update-est{margin-top:var(--s3)}
  @supports not selector(:has(*)){      /* older browsers: keep a visible focus ring */
    .fold > summary:focus-visible{outline:2px solid var(--ink);outline-offset:-2px}
  }

  /* when a shutter is closed, what's inside it is summed up in the header */
  .fold > summary .peek{display:none;flex:1;min-width:0;margin-left:6px;font-size:14px;
                        font-weight:600;letter-spacing:-.01em;color:var(--ink);
                        white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .fold:not([open]) > summary .peek{display:block}
  .fold > summary .peek.none{color:var(--grey-3);font-weight:400}
  /* the final estimate: closed sections read as your use, with "edit" in
     place of the arrow */
  .fold > summary .fold-edit{display:none;margin-left:auto;font-size:13px;color:var(--grey-3);
        border-bottom:1px solid transparent}
  #use-form.final .fold:not([open]) > summary .fold-edit{display:block}
  #use-form.final .fold:not([open]) > summary .caret{display:none}
  #use-form.final .fold > summary:hover .fold-edit{color:var(--ink);border-bottom-color:currentColor}
  .fold > summary .fold-save{display:none;margin-left:auto;padding:7px 16px;border-radius:999px;
        background:var(--ink);color:var(--on-ink);font-size:13px;font-weight:600;transition:opacity .15s}
  .fold > summary .fold-save:hover{opacity:.85}
  #use-form.final .fold[open] > summary .fold-save{display:block}
  #use-form.final .fold[open] > summary .caret{display:none}

  /* search: keyboard selection */
  .res.sel{background:var(--grey-1)}
  .prodwrap{position:relative}
  .searching{position:absolute;right:16px;top:50%;transform:translateY(-50%);
             width:13px;height:13px;border-radius:999px;border:2px solid var(--grey-2);
             border-top-color:var(--key);animation:spin .7s linear infinite;display:none}
  .searching.on{display:block}

  .tiers{display:inline-flex;gap:6px;margin-left:10px;vertical-align:middle}
  .tiers b{font-family:var(--mono);font-size:10px;letter-spacing:.08em;font-weight:600;
           padding:3px 8px;border-radius:999px;background:var(--grey-1);color:var(--grey-4)}
  .tiers b.aaa{background:var(--card)2cc;color:#8a6200}
  .tiers b.aa{background:#eceff1;color:#546e7a}
  .tiers b.a{background:#f6e8d8;color:#8a5a2a}


  /* the ticket: a read-only summary of the use once the estimate is final */
  .saved-to{font-family:var(--sans);font-size:13px;color:var(--grey-3);letter-spacing:0;margin-top:var(--s2)}
  .saved-to:empty{display:none}
  #add-another{margin-top:var(--s3)}
  .ticket{margin-top:var(--s4);border:1.5px solid var(--grey-2);border-radius:16px;
          position:relative;background:var(--card)}
  .ticket .head{padding:20px 22px 18px}
  .ticket .eyebrow{font-family:var(--sans);font-size:12.5px;letter-spacing:.07em;color:var(--grey-3)}
  .ticket .title{font-size:21px;font-weight:700;letter-spacing:-.025em;line-height:1.2;margin-top:7px}
  .ticket .title.none{color:var(--grey-3);font-weight:600}
  .ticket .by{font-size:13.5px;color:var(--grey-4);margin-top:4px;letter-spacing:-.01em}
  .ticket .tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:11px}
  /* the song on the left, the range it was quoted at on the right */
  .ticket .top-row{display:flex;justify-content:space-between;align-items:flex-start;
                   gap:12px 24px;flex-wrap:wrap}
  .ticket .who-song{flex:1 1 200px;min-width:0}
  .ticket .figs{flex:0 1 360px;margin-top:6px}
  .ticket .tbar{position:relative;height:13px;margin-bottom:7px}
  .ticket .tbar i{position:absolute;top:5px;left:0;right:0;height:3px;border-radius:3px;background:var(--key-soft)}
  .ticket .tbar u{position:absolute;top:0;left:var(--at);width:3px;height:13px;margin-left:-1.5px;
                  border-radius:2px;background:var(--key)}
  .ticket .nums{display:flex;justify-content:space-between;gap:16px}
  .ticket .nums .mid{text-align:center}
  .ticket .nums span:last-child{text-align:right}
  .ticket .figs span{font-size:13px;font-weight:700;letter-spacing:-.02em;color:var(--ink)}
  .ticket .figs em{display:block;font-family:var(--sans);font-style:normal;font-size:11.5px;
                   letter-spacing:0;color:var(--grey-3);font-weight:400;margin-bottom:2px}
  .ticket .figs .mid{color:var(--key)}
  .ticket .tags span{font-family:var(--sans);font-size:12.5px;letter-spacing:0;color:var(--grey-4);
                     padding:4px 10px;border-radius:999px;background:var(--grey-1)}
  /* the perforation, with a notch cut from each side */
  .ticket .perf{position:relative;height:0;border-top:1.5px dashed var(--grey-2);margin:0 18px}
  .ticket .perf::before,.ticket .perf::after{content:"";position:absolute;top:-12px;width:22px;height:22px;
     border-radius:999px;background:var(--paper);border:1.5px solid var(--grey-2)}
  .ticket .perf::before{left:-31px;clip-path:inset(0 0 0 50%)}
  .ticket .perf::after{right:-31px;clip-path:inset(0 50% 0 0)}
  .ticket .body{padding:6px 22px 18px}
  .ticket .grp{font-family:var(--sans);font-size:12.5px;letter-spacing:.07em;color:var(--ink);
               margin:18px 0 4px}
  .ticket .kv{display:flex;justify-content:space-between;gap:18px;padding:8px 0;
              border-bottom:1px solid var(--grey-1);font-size:13.5px}
  .ticket .kv:last-child{border-bottom:none}
  .ticket .kv .k{font-family:var(--sans);font-size:12.5px;letter-spacing:0;color:var(--grey-4);
                 padding-top:2px;flex:none}
  .ticket .kv .v{text-align:right;color:var(--ink)}
  .ticket .kv .v.none{color:var(--grey-3)}
  .ticket .kv.long{display:block}
  .ticket .kv.long .v{text-align:left;margin-top:6px;color:var(--grey-4);line-height:1.55}

  /* the fee the rightsholders agreed, once a song is cleared */
  .agreed{display:flex;justify-content:space-between;align-items:baseline;gap:16px;margin-top:14px;
          padding:14px 0;border-top:1px solid var(--grey-2);border-bottom:1px solid var(--grey-2)}
  .agreed span{font-size:14.5px;color:var(--ink)}
  .agreed b{font-size:22px;font-weight:700;letter-spacing:-.02em;font-variant-numeric:tabular-nums}

  /* profile: company and industry edit in place */
  .inline{font:inherit;font-size:14.5px;color:var(--ink);text-align:right;background:none;border:none;
          border-bottom:1px dashed var(--grey-2);padding:2px 0;min-width:0;width:220px;max-width:60%}
  select.inline{width:auto;text-align-last:right;cursor:pointer;padding-right:2px}
  .inline:hover{border-bottom-color:var(--grey-3)}
  .inline:focus{outline:none;border-bottom:1px solid var(--ink)}
  .saved-note{font-size:13px;color:var(--grey-3);margin-top:8px;min-height:1.2em}
  .cleared-songs{margin-top:var(--s5)}
  .cleared-songs h2{font-size:17px;font-weight:700;letter-spacing:-.02em;margin:0 0 12px}
  #cleared-rows{border-top:1px solid var(--grey-2)}
  .cleared-total{display:flex;justify-content:space-between;align-items:baseline;padding:14px 0 0;
                 font-size:14.5px}
  .cleared-total b{font-size:18px;font-weight:700;font-variant-numeric:tabular-nums}

  /* after sending: what happens next */
  .after{margin-top:var(--s4)}
  .after h2{font-size:16px;font-weight:700;letter-spacing:-.015em;margin:0}
  .after ol{margin:10px 0 0;padding-left:20px;font-size:14.5px;line-height:1.6;color:var(--grey-4)}
  .after li{padding-left:4px;margin-top:4px}

  /* the invoice */
  .invoice{max-width:560px}
  .inv{margin-top:var(--s4)}
  .inv .sec{font-family:var(--sans);font-size:12.5px;letter-spacing:.07em;color:var(--grey-3);
            margin-bottom:6px}
  .inv .row{display:flex;justify-content:space-between;gap:16px;align-items:baseline;
            padding:11px 0;border-bottom:1px solid var(--grey-1);font-size:14.5px}
  .inv .row .k{color:var(--ink);flex:1;min-width:0}
  .inv .k small{display:block;font-size:13px;color:var(--grey-3);margin-top:3px}
  .inv .row .v{font-variant-numeric:tabular-nums;font-weight:600;white-space:nowrap}
  .inv .row.sum{border-bottom:none;border-top:1.5px solid var(--ink);margin-top:2px}
  .inv .row.sum .k{color:var(--ink);font-weight:600}
  .inv .gap{height:var(--s4)}
  .inv .due{display:flex;justify-content:space-between;gap:16px;align-items:center;
            padding:18px 0 4px;margin-top:6px;border-top:1.5px solid var(--ink)}
  .inv .due .k{font-weight:700;letter-spacing:-.01em}
  .inv .due .k small{font-weight:400}
  .inv .due .v{white-space:nowrap}
  .inv .due .v.span{font-size:clamp(20px,2.6vw,27px)}
  .inv .due .k{flex:1;min-width:0}
  .inv .row.now{border-bottom:none;margin-top:8px;border-top:1px solid var(--grey-1)}
  .inv .due .v{font-size:clamp(26px,3.2vw,34px);font-weight:700;letter-spacing:-.035em;
               font-variant-numeric:tabular-nums;line-height:1}
  .inv .small{font-family:var(--sans);font-size:13px;color:var(--grey-3);letter-spacing:0;
              line-height:1.8;margin-top:var(--s3)}
  .linkback{display:block;margin:14px auto 0;font-family:var(--sans);font-size:13px;
            letter-spacing:0;color:var(--grey-3);border-bottom:1px solid transparent}
  .linkback:hover{color:var(--ink);border-color:var(--ink)}


  /* ── right column / shared blocks ───────────────────────── */
  .body p{font-size:14.5px;color:var(--grey-4);line-height:1.7;margin-top:11px}
  .body h3{font-family:var(--sans);font-size:13px;letter-spacing:.07em;color:var(--grey-4);
           font-weight:500;margin-top:var(--s3)}
  .body ol{margin:11px 0 0 18px}
  .body li{font-size:14.5px;color:var(--grey-4);line-height:1.7;margin-bottom:6px}
  .block{margin-top:var(--s3)}
  .switch{width:38px;height:22px;border-radius:999px;background:var(--grey-2);position:relative;
          flex:none;align-self:center;transition:background .18s}
  .switch::after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:999px;
                 background:var(--card);box-shadow:0 1px 2px rgba(0,0,0,.2);transition:transform .18s}
  .switch[aria-checked="true"]{background:var(--ink)}
  .switch[aria-checked="true"]::after{transform:translateX(16px)}
  .block-lg{margin-top:var(--s4)}

  .card{border:1.5px solid var(--grey-2);border-radius:14px;padding:4px 18px}
  .row{display:flex;justify-content:space-between;gap:16px;padding:11px 0;
       border-bottom:1px solid var(--grey-1);font-size:14px}
  .row:last-child{border-bottom:none}
  .row .k{font-family:var(--sans);font-size:13px;letter-spacing:0;color:var(--grey-4);
          padding-top:3px;flex:none}
  .row .v{text-align:right}

  .empty{font-family:var(--sans);font-size:14px;color:var(--grey-3);line-height:1.75;padding:4px 0}

  /* ══ account board ══════════════════════════════════════ */
  .page{flex:1;padding:110px 26px 110px}
  .acct-head{display:flex;justify-content:space-between;align-items:flex-start;gap:30px}
  .ghost.auto{width:auto;padding:11px 20px;flex:none}
  #acct-who{margin-top:10px}

  /* the money */
  .spend{margin-top:var(--s5);padding-top:var(--s4);border-top:1px solid var(--grey-2)}
  .spend .range{margin-top:10px}
  .spend .note{margin-top:10px}
  .bar{display:flex;height:7px;border-radius:4px;overflow:hidden;background:var(--grey-1);
       margin-top:var(--s3)}
  .bar span{height:100%;transition:width .8s cubic-bezier(.2,.7,.3,1);width:0}
  .bar span.s0{background:#f4d98b}
  .bar span.s1{background:var(--key)}
  .bar span.s2{background:#b39ddb}
  .bar span.s3{background:#5cbd8c}
  .bar span.s4{background:var(--grey-2)}
  .legend{display:flex;flex-wrap:wrap;gap:6px 20px;margin-top:var(--s2);
          font-family:var(--mono);font-size:10px;letter-spacing:.05em;color:var(--grey-3)}
  .legend b{display:inline-flex;align-items:center;gap:7px;font-weight:400}
  .legend i{width:8px;height:8px;border-radius:2px;display:inline-block}
  .legend em{font-style:normal;color:var(--ink);font-weight:600;
             font-variant-numeric:tabular-nums;margin-left:2px}

  /* filters */
  .filters{display:flex;flex-wrap:wrap;gap:8px;margin-top:var(--s5)}
  .chip{font-family:var(--sans);font-size:13px;letter-spacing:0;color:var(--grey-4);
        padding:8px 15px;border:1.5px solid var(--grey-2);border-radius:999px;
        transition:border-color .15s,color .15s,background .15s;white-space:nowrap}
  .chip:hover{border-color:var(--grey-3);color:var(--ink)}
  .chip.on{background:var(--ink);border-color:var(--ink);color:var(--on-ink)}
  .chip u{text-decoration:none;opacity:.55;margin-left:6px}

  /* production groups */
  .prod{margin-top:var(--s5)}
  .prod-head{display:flex;justify-content:space-between;align-items:baseline;gap:20px;
             padding-bottom:11px;border-bottom:1px solid var(--grey-2)}
  .prod-head .n{font-family:var(--mono);font-size:11px;letter-spacing:.14em;
                text-transform:uppercase;color:var(--ink)}
  .prod-head .n em{font-style:normal;color:var(--grey-3);text-transform:none;
                   letter-spacing:.06em;margin-left:10px}
  .prod-head .sum{font-size:15px;font-weight:700;letter-spacing:-.02em;
                  font-variant-numeric:tabular-nums;white-space:nowrap}

  /* a song */
  .item{border-bottom:1px solid var(--grey-1)}
  .item-btn{display:flex;align-items:center;gap:15px;width:100%;padding:16px 4px;
            transition:background .15s}
  .item-btn:hover{background:var(--grey-1)}
  .item .art{width:44px;height:44px;border-radius:7px;flex:none;object-fit:cover;
             background:var(--grey-1)}
  .item .art.ph{display:flex;align-items:center;justify-content:center;
                font-family:var(--mono);font-size:12px;color:var(--grey-3)}
  .item .mid{flex:1;min-width:0}
  .item .t{display:block;font-size:15px;font-weight:600;letter-spacing:-.01em;
           overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .item .st-line{display:flex;align-items:center;gap:11px;margin-top:8px}
  .item .money{text-align:right;flex:none}
  .item .fee{font-size:15px;font-weight:700;color:var(--key);
             font-variant-numeric:tabular-nums;white-space:nowrap}
  .item .ref{display:block;font-family:var(--mono);font-size:9.5px;color:var(--grey-3);
             letter-spacing:.05em;margin-top:5px}
  .caret{flex:none;width:9px;height:9px;border-right:1.5px solid var(--grey-3);
         border-bottom:1.5px solid var(--grey-3);transform:rotate(45deg) translate(-2px,-2px);
         transition:transform .25s}
  .item.open .caret{transform:rotate(-135deg) translate(-2px,-2px)}

  /* the progress track, same language as the estimate fader */
  .track{display:flex;gap:4px;width:120px;flex:none}
  .track i{height:4px;flex:1;border-radius:2px;background:var(--grey-2);
           transition:background .5s}
  .track i.done{background:var(--key-soft)}
  .track i.now{background:var(--key)}
  .track.closed i{background:var(--grey-2)}
  .stage-name{font-family:var(--sans);font-size:12.5px;letter-spacing:0;color:var(--grey-4);
              white-space:nowrap}

  /* the drawer */
  .drawer{display:grid;grid-template-rows:0fr;transition:grid-template-rows .3s cubic-bezier(.2,.7,.3,1)}
  .item.open .drawer{grid-template-rows:1fr}
  .drawer > div{overflow:hidden}
  .drawer .inner{padding:0 4px 20px 59px}
  .terms{display:flex;flex-wrap:wrap;gap:10px 28px}
  .terms div{min-width:0}
  .terms .k{display:block;font-family:var(--sans);font-size:12px;letter-spacing:.07em;
            color:var(--grey-3);margin-bottom:4px}
  .terms .v{font-size:13.5px;color:var(--ink)}
  .next{margin-top:var(--s3);padding:12px 15px;background:var(--grey-1);border-radius:10px}

  .tuck{margin-top:var(--s5);padding-top:var(--s4);border-top:1px solid var(--grey-2);
        max-width:420px}
  .disclose{font-family:var(--sans);font-size:13.5px;letter-spacing:0;color:var(--grey-4);
            border-bottom:1px solid var(--grey-2);padding-bottom:2px}
  .disclose:hover{color:var(--ink);border-color:var(--ink)}

  @media (max-width:700px){
    .page{padding:52px 26px 72px}
    .acct-head{flex-direction:column;gap:var(--s3)}
    .track{width:76px}
    .item .st-line{flex-wrap:wrap;gap:7px}
    .drawer .inner{padding-left:4px}
  }

  /* ── footer ─────────────────────────────────────────────── */
  footer{padding-bottom:32px;display:flex;flex-wrap:wrap;gap:20px;align-items:center;
         font-family:var(--sans);font-size:12.5px;color:var(--grey-3);letter-spacing:0}
  .foot{font-family:var(--sans);font-size:12.5px;letter-spacing:0;color:var(--grey-4);
        border-bottom:1px solid var(--grey-2);padding-bottom:1px;transition:color .15s}
  .foot:hover{color:var(--ink);border-color:var(--ink)}

  /* Below this the centred column starts before an open rail would end, so
     the labels would be read over the page. The icons stay, and they are the
     part that navigates; the words are the part there is no room for. */
  @media (max-width:1180px){
    .rail:hover,.rail:focus-within{width:var(--rail);box-shadow:none}
    .rail:hover .railbtn span:not(.rav),
    .rail:focus-within .railbtn span:not(.rav){opacity:0}
    /* it does not open down here, so there is nothing to step aside from */
    .rail:hover ~ .topbar,.rail:focus-within ~ .topbar{padding-left:32px}
  }

  @media (max-width:900px){
    /* a 74px column is too much of a phone, so the rail becomes a bottom bar */
    body{padding-left:0;padding-bottom:64px}
    .topbar{padding:0 26px}
    .rail{top:auto;right:0;width:auto;height:64px;flex-direction:row;
          padding:0;border-right:none;border-top:1px solid var(--grey-1)}
    .rail:hover,.rail:focus-within{width:auto;box-shadow:none}
    /* two buttons in this set and profile on its own: weight it 2 to 1 so all
       three sit an equal third apart */
    .rail-set{flex-direction:row;flex:2;gap:0}
    .railbtn{flex:1;justify-content:center;height:100%;padding:0;margin:0;border-radius:0}
    .railbtn:hover{background:none}
    .railbtn span:not(.rav){display:none}
    .railbtn.me{position:static}
    .stage{padding:24px 26px 72px}
    .masthead{padding-top:14px}
    .who .n{display:none}
    .top{gap:14px}
  }
  /* a phone has no room for the tagline beside log in and join */
  @media (max-width:600px){
    .wm .tag{display:none}
  }
  @media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
  /* focus: still visible for anyone on a keyboard, but dark rather than the
     browser's blue, which fought with everything else on the page */
  :focus{outline:none}
  :focus-visible{outline:2px solid var(--ink);outline-offset:3px;border-radius:6px}
  .field:focus{border-color:var(--ink);outline:none}
  .field:focus-visible{outline:none;border-color:var(--ink);
                       box-shadow:0 0 0 3px rgba(22,22,24,.07)}

  /* the shop: who controls the song */
  .holders{margin-top:var(--s4)}
  .checking{display:flex;align-items:center;gap:10px;font-family:var(--sans);font-size:13.5px;
            letter-spacing:0;color:var(--grey-4);padding:14px 0}
  .checking .spin{width:13px;height:13px;border-radius:999px;flex:none;
                  border:1.5px solid var(--grey-2);border-top-color:var(--ink);
                  animation:spin .7s linear infinite}
  .holders .sec{font-family:var(--sans);font-size:12.5px;letter-spacing:.07em;color:var(--grey-3);
                margin-bottom:4px}
  .holder{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:11px 0;
          border-bottom:1px solid var(--grey-1);animation:holderIn .35s ease both}
  .holder .nm{font-size:14.5px;font-weight:600;letter-spacing:-.01em}
  .holder .side{font-family:var(--sans);font-size:12px;letter-spacing:.07em;color:var(--grey-3);
                margin-left:9px}
  .holder .amt{font-variant-numeric:tabular-nums;font-weight:600;white-space:nowrap}
  @keyframes holderIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
  .inv .row.cap .k,.inv .row.cap .v{color:var(--grey-4)}

  /* the sealed ticket, after payment */
  .ticket .head{position:relative}
  .ticket .stamp{position:absolute;top:2px;right:0;transform:rotate(-7deg);
                 font-family:var(--mono);font-size:9.5px;letter-spacing:.14em;
                 color:#1a7ab5;border:1.5px solid #1a7ab5;border-radius:6px;
                 padding:5px 9px;opacity:.85;pointer-events:none}
  .ticket.sealed{border-color:#1a7ab5}
  .ticket .head:has(.stamp) .top-row{margin-top:20px}

  #spend-bar{display:flex;height:5px;border-radius:999px;overflow:hidden;background:var(--grey-1);
             margin-top:12px}
  #spend-bar span{height:100%}
  #spend-legend{display:flex;flex-wrap:wrap;gap:4px 16px;margin-top:10px}
  #spend-legend b{display:flex;align-items:center;gap:7px;font-family:var(--mono);font-size:10px;
                  font-weight:400;letter-spacing:.05em;color:var(--grey-4)}
  #spend-legend i{width:7px;height:7px;border-radius:2px}
  #spend-legend em{font-style:normal;color:var(--ink);font-variant-numeric:tabular-nums}

  /* which level you are on */
  .board-head{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin:var(--s5) 0 var(--s3)}
  .board-head h2{font-size:clamp(19px,2.2vw,23px);font-weight:700;letter-spacing:-.03em;margin:0}
  .board-head .count{font-family:var(--sans);font-size:13px;letter-spacing:0;color:var(--grey-3)}
  .board-head .back{flex-basis:100%;display:inline-flex;align-items:center;gap:7px;
                    font-family:var(--sans);font-size:13px;letter-spacing:0;color:var(--grey-3);
                    margin-bottom:4px}
  .board-head .back::before{content:"";width:6px;height:6px;border-left:1.5px solid currentColor;
                    border-bottom:1.5px solid currentColor;transform:rotate(45deg)}
  .board-head .back:hover{color:var(--ink)}

  /* a production reads as something to open */
  .prod-card,.song-card{display:flex;align-items:center;gap:14px;width:100%;text-align:left;
        padding:14px;border:1px solid var(--grey-1);border-radius:14px;background:var(--card);
        margin-bottom:8px;transition:border-color .15s,transform .15s}
  .prod-card:hover,.song-card:hover{border-color:var(--grey-3)}
  .prod-card:hover{transform:translateX(2px)}
  .song-card.on{border-color:var(--ink)}
  .prod-card .arts{display:flex;flex:none}
  .prod-card .arts img{width:38px;height:38px;border-radius:7px;object-fit:cover;
        border:2px solid var(--card);margin-left:-14px;background:var(--grey-1)}
  .prod-card .arts img:first-child{margin-left:0}
  .prod-card .arts .art.ph{width:38px;height:38px;border-radius:7px;background:var(--grey-1);
        display:flex;align-items:center;justify-content:center;color:var(--grey-3)}
  .prod-card .mid,.song-card .mid{flex:1;min-width:0}
  .prod-card .t{display:block;font-size:16px;font-weight:700;letter-spacing:-.02em}
  .prod-card .m{display:block;font-family:var(--sans);font-size:12.5px;color:var(--grey-3);
        letter-spacing:0;margin-top:6px}
  .prod-card .money{font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
  .prod-card .chev{width:7px;height:7px;flex:none;border-right:1.5px solid var(--grey-3);
        border-bottom:1.5px solid var(--grey-3);transform:rotate(-45deg)}
  .song-card .art{width:42px;height:42px;border-radius:7px;flex:none;object-fit:cover;background:var(--grey-1)}
  .song-card .art.ph{display:flex;align-items:center;justify-content:center;color:var(--grey-3)}
  .song-card .t{display:block;font-size:14.5px;font-weight:600;letter-spacing:-.01em}
  .song-card.on .t{color:var(--key-deep)}
  .song-card .st-line{display:flex;align-items:center;gap:10px;margin-top:7px}
  .song-card .stage-name{font-family:var(--sans);font-size:12px;letter-spacing:0;color:var(--grey-3)}
  .song-card .money{text-align:right}
  .song-card .fee{font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
  .song-card .ref{display:block;font-family:var(--mono);font-size:9px;color:var(--grey-3);margin-top:5px}

  /* ══ productions ═════════════════════════════════════════
     Your productions down the left, the open one on the right. Inside it,
     scenes are headings rather than boxes and songs are rows, the way a
     playlist reads: artwork, title, artist underneath, the figure on the
     right. Things that are used less (edit, remove) stay quiet until you
     reach for them. */
  #account{padding-top:36px}
  .inbox{max-width:1120px;margin:0 auto;display:grid;grid-template-columns:264px minmax(0,1fr);
         column-gap:64px;align-items:start}
  .inbox.none{grid-template-columns:1fr}
  .inbox.none .pane{display:none}
  .plist{position:sticky;top:28px;min-width:0}
  .plist-head h1{font-size:22px;margin:0}
  .plist .summary:empty{display:none}
  .plist-rows{margin:18px -10px 0}
  .plist .empty{padding:4px 10px}
  .prow{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:8px 10px;
        border-radius:10px;transition:background .12s}
  .prow:hover{background:rgba(22,22,24,.04)}
  .prow.on{background:rgba(22,22,24,.07)}
  .prow .mid{flex:1;min-width:0}
  .prow .t{display:block;font-size:14.5px;font-weight:600;letter-spacing:-.01em;
           white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .prow .m{display:block;font-size:12.5px;color:var(--grey-3);margin-top:2px}
  .prow.new{margin-top:6px}
  .prow.new .t{font-weight:500;color:var(--grey-3)}
  .prow.new:hover .t{color:var(--ink)}
  .pdot{width:8px;height:8px;border-radius:999px;background:var(--key);flex:none}

  /* a production's cover: its songs' artwork, four to a square once there are four */
  .cover{width:44px;height:44px;border-radius:6px;overflow:hidden;flex:none;display:grid;
         background:var(--grey-1)}
  .cover.four{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}
  .cover img{width:100%;height:100%;object-fit:cover;display:block}
  .cover.blank{box-shadow:inset 0 0 0 1px var(--grey-2)}
  .cover.add,.art.plus{position:relative;background:none;box-shadow:inset 0 0 0 1px var(--grey-2)}
  .cover.add::before,.cover.add::after,.art.plus::before,.art.plus::after{content:"";position:absolute;
         left:50%;top:50%;background:var(--grey-3);transform:translate(-50%,-50%)}
  .cover.add::before,.art.plus::before{width:13px;height:1.5px}
  .cover.add::after,.art.plus::after{width:1.5px;height:13px}
  .prow.new:hover .cover.add::before,.prow.new:hover .cover.add::after,
  .track-row.add:hover .art.plus::before,.track-row.add:hover .art.plus::after{background:var(--ink)}

  .pane{min-width:0}
  .pane-head{padding-bottom:22px;border-bottom:1px solid var(--grey-2)}
  .pane-head .ph-top{display:flex;align-items:center;gap:16px}
  .pane-head h2{font-size:clamp(25px,2.9vw,32px);font-weight:700;letter-spacing:-.035em;
                line-height:1.12;margin:0;min-width:0}
  .pane-head .head-acts{margin-left:auto;display:flex;align-items:center;gap:18px;flex:none}
  .prod-line{margin:8px 0 0;font-size:14px;color:var(--grey-4)}
  .prod-line:empty{display:none}
  .pane-head .back{display:inline-flex;align-items:center;gap:7px;font-family:var(--sans);font-size:13px;
                   letter-spacing:0;color:var(--grey-3);margin:0 14px 12px 0}
  .pane-head .back::before{content:"";width:6px;height:6px;border-left:1.5px solid currentColor;
                   border-bottom:1.5px solid currentColor;transform:rotate(45deg)}
  .pane-head .back:hover{color:var(--ink)}
  .pane-head .to-list{display:none}
  #acct-detail > h1{margin-top:0}

  .tbtn{font-family:var(--sans);font-size:13px;letter-spacing:0;color:var(--grey-3);
        padding:2px 0;border-bottom:1px solid transparent}
  .tbtn:hover{color:var(--ink);border-bottom-color:currentColor}
  .tbtn.danger{color:#b3261e}
  .pill{padding:9px 16px;border-radius:999px;background:var(--ink);color:var(--on-ink);font-size:13px;
        font-weight:600;letter-spacing:-.005em;white-space:nowrap;transition:opacity .15s}
  .pill:hover{opacity:.85}
  .pill.quiet{background:none;color:var(--ink);padding:6px 13px;font-size:12.5px;
              box-shadow:inset 0 0 0 1.5px var(--grey-2);transition:box-shadow .15s}
  .pill.quiet:hover{opacity:1;box-shadow:inset 0 0 0 1.5px var(--ink)}

  /* a scene: a heading, what happens in it, then its songs */
  .scene{margin-top:40px}
  .scene-head{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
  .scene-head h3{font-size:17px;font-weight:700;letter-spacing:-.02em;margin:0}
  .scene-head .m{font-size:13px;color:var(--grey-3)}
  .scene-head .head-acts{margin-left:auto;display:flex;gap:16px;opacity:0;transition:opacity .15s}
  .scene:hover .scene-head .head-acts,.scene-head .head-acts:focus-within{opacity:1}
  .scene-desc{font-size:14px;line-height:1.55;color:var(--grey-4);margin:5px 0 0;max-width:62ch}
  .songs{margin-top:14px;border-top:1px solid var(--grey-2)}

  .track-row{display:grid;grid-template-columns:44px minmax(0,1fr) auto 136px;column-gap:20px;
             align-items:center;width:100%;text-align:left;padding:11px 0;
             border-bottom:1px solid var(--grey-1)}
  .track-row .art{width:44px;height:44px;border-radius:5px;object-fit:cover;background:var(--grey-1)}
  .track-row .art.ph{display:flex;align-items:center;justify-content:center;color:var(--grey-3)}
  .track-row .mid{min-width:0}
  .track-row .t{display:block;font-size:14.5px;font-weight:600;letter-spacing:-.01em;
                white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .track-row .a{display:block;font-size:13px;color:var(--grey-4);margin-top:2px;
                white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .track-row .state{display:flex;align-items:center;gap:14px;justify-self:end}
  .track-row .track{width:84px}
  .track-row .money{text-align:right}
  .track-row .fee{display:block;font-weight:650;font-variant-numeric:tabular-nums}
  .track-row .fee.off{color:var(--grey-3)}
  .track-row .range{display:block;font-size:11.5px;color:var(--grey-3);margin-top:2px;
                    font-variant-numeric:tabular-nums;white-space:nowrap}
  .track-row.cleared{cursor:pointer}
  .track-row.cleared:hover .t,.track-row.cleared.on .t{color:var(--key-deep)}
  .track-row .rm{opacity:0;transition:opacity .15s}
  .track-row:hover .rm,.track-row .rm:focus,.track-row .rm.danger{opacity:1}
  .track-row.add{grid-template-columns:44px minmax(0,1fr);border-bottom:none;cursor:pointer}
  .track-row.add .t{font-weight:500;color:var(--grey-3)}
  .track-row.add:hover .t{color:var(--ink)}
  .art.plus{display:block;width:44px;height:44px;border-radius:5px}
  @media (hover:none){
    .scene-head .head-acts,.track-row .rm{opacity:1}
  }

  .add-scene{margin-top:40px;font-size:14px;font-weight:500;color:var(--grey-3)}
  .add-scene:hover{color:var(--ink)}
  .editor{border:1px solid var(--grey-2);border-radius:14px;padding:16px 16px 14px;background:var(--card);
          margin:16px 0 0}
  .editor .f:first-of-type{margin-top:0}
  .editor-go{display:flex;justify-content:flex-end;gap:10px;margin-top:var(--s3)}
  .new-scene .editor{margin-top:0}

  @media (max-width:900px){
    #account{padding-top:20px}
    .inbox{display:block}
    .plist{position:static}
    .pane{display:none}
    .inbox.picked .plist{display:none}
    .inbox.picked .pane{display:block}
    .pane-head .to-list{display:inline-flex}
  }
  @media (max-width:600px){
    /* title, then what it is, then what you can do with it */
    .pane-head{display:flex;flex-direction:column;align-items:flex-start}
    .pane-head .ph-top{display:contents}
    .pane-head .prod-line{order:2}
    .pane-head .head-acts{order:3;margin:16px 0 0}
    .track-row{grid-template-columns:44px minmax(0,1fr) auto}
    .track-row .money{grid-column:3;grid-row:1}
    .track-row .state{grid-column:2 / 4;grid-row:2;justify-self:start;margin-top:9px;min-width:0}
    /* the longer stage names wrap rather than run off a phone */
    .track-row .state .stage-name{white-space:normal}
  }

  /* where a song has got to */
  .status{margin-top:var(--s4);padding:18px 0 4px;border-top:1px solid var(--grey-1)}
  .steps{display:flex;flex-direction:column;gap:2px;margin-bottom:var(--s3)}
  .step{display:flex;align-items:center;gap:11px;font-size:14px;color:var(--grey-3);padding:5px 0}
  .step em{font-style:normal;margin-left:auto;font-family:var(--sans);font-size:12px;
           letter-spacing:0;color:var(--grey-3);white-space:nowrap}
  .step.now em{color:var(--grey-4)}
  .step i{width:9px;height:9px;border-radius:999px;flex:none;background:var(--grey-2)}
  .step.done{color:var(--grey-4)}
  .step.now{color:var(--ink);font-weight:600}
  /* a stage reached takes its colour: blue, then the logo's red, amber and green */
  .step.s0 i{--dot:var(--key)}
  .step.s1 i{--dot:var(--red)}
  .step.s2 i{--dot:var(--amber)}
  .step.s3 i{--dot:var(--green)}
  .step.done i, .step.now i{background:var(--dot)}
  .step.now i{box-shadow:0 0 0 4px color-mix(in srgb, var(--dot) 22%, transparent)}
  .step.closed i{background:var(--grey-3)}
  .paidline{font-family:var(--sans);font-size:13px;letter-spacing:0;color:#2f8f5b;margin-top:10px}
  #acct-detail .ticket{margin-top:var(--s4)}

  /* songs waiting on the member */
  .needs{font-family:var(--sans);font-size:12px;letter-spacing:0;color:#5e35b1;
         background:#ede7f6;border-radius:999px;padding:4px 9px;white-space:nowrap}
  .stage-name.needs{background:none;padding:0;color:#5e35b1;font-weight:600}
  .prod-card.loose .t{color:var(--grey-4);font-weight:600}

  /* the right-hand side before you have picked anything */
  .mini{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:12px 0;
        border-bottom:1px solid var(--grey-1)}
  .mini:hover{opacity:.7}
  .mini .art{width:36px;height:36px;border-radius:6px;flex:none;object-fit:cover;background:var(--grey-1)}
  .mini .art.ph{display:flex;align-items:center;justify-content:center;color:var(--grey-3)}
  .mini .mid{flex:1;min-width:0}
  .mini .t{display:block;font-size:14px;font-weight:600;letter-spacing:-.01em}
  .mini .m{display:block;font-family:var(--sans);font-size:12px;color:var(--grey-3);
           letter-spacing:0;margin-top:5px}
  .mini .fee{font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
  #acct-detail .mini:first-of-type{border-top:1px solid var(--grey-1);margin-top:var(--s4)}


  /* ══ chat ══════════════════════════════════════════════
     A messenger window: who you're talking to across the top, the
     conversation scrolling in the middle, the message box docked below. */
  #r-messages{position:relative}
  .rdot{position:absolute;left:46px;top:12px;width:8px;height:8px;border-radius:999px;
        background:var(--key);box-shadow:0 0 0 2px var(--paper)}

  .chat{margin-top:var(--s3);background:var(--card);border:1px solid var(--grey-2);border-radius:20px;
        display:flex;flex-direction:column;overflow:hidden;
        box-shadow:0 1px 2px rgba(20,20,24,.03),0 8px 28px rgba(20,20,24,.05)}
  .chat-top{display:flex;align-items:center;gap:11px;padding:14px 18px;
            border-bottom:1px solid var(--grey-1)}
  .chat-top b{display:block;font-size:14px;font-weight:650;letter-spacing:-.01em}
  .chat-top small{display:block;font-size:12px;color:var(--grey-3);margin-top:1px}
  .chat-av{width:34px;height:34px;border-radius:999px;background:var(--ink);color:var(--on-ink);flex:none;
           display:flex;align-items:center;justify-content:center;font-family:var(--mono);
           font-size:11px;font-weight:600;letter-spacing:.04em}

  .chat-log{display:flex;flex-direction:column;overflow-y:auto;overscroll-behavior:contain;
            scroll-behavior:smooth}
  .chat > .chat-log{height:min(58vh,560px);padding:18px 18px 8px}
  .chat-day{align-self:center;margin:14px 0 10px;font-family:var(--sans);font-size:12.5px;
            letter-spacing:0;color:var(--grey-3)}
  .chat-day:first-child{margin-top:0}
  .grp{display:flex;flex-direction:column;align-items:flex-start;gap:3px;margin-bottom:12px;
       max-width:76%}
  .grp.me{align-self:flex-end;align-items:flex-end}
  .bub{padding:9px 14px;border-radius:19px;font-size:14.5px;line-height:1.45;
       background:var(--grey-1);color:var(--ink);white-space:pre-wrap;overflow-wrap:anywhere;
       animation:bub-in .18s ease-out}
  .grp.me .bub{background:var(--ink);color:var(--on-ink)}
  /* a run of messages reads as one block: the corners on the speaker's side tuck in */
  .grp:not(.me) .bub:not(:first-child){border-top-left-radius:6px}
  .grp:not(.me) .bub:not(:last-of-type){border-bottom-left-radius:6px}
  .grp.me .bub:not(:first-child){border-top-right-radius:6px}
  .grp.me .bub:not(:last-of-type){border-bottom-right-radius:6px}
  .when{font-family:var(--sans);font-size:12px;letter-spacing:0;color:var(--grey-3);
        margin:3px 6px 0}
  @keyframes bub-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
  .chat-empty{margin:auto;max-width:300px;text-align:center;font-size:14px;color:var(--grey-4);
              line-height:1.6}

  .chat-send{display:flex;align-items:flex-end;gap:8px;margin:8px 12px 12px;padding:6px 6px 6px 16px;
             border:1.5px solid var(--grey-2);border-radius:24px;background:var(--card);
             transition:border-color .15s}
  .chat-send:focus-within{border-color:var(--ink)}
  .chat-send textarea{flex:1;border:none;outline:none;resize:none;background:none;font:inherit;
                      font-size:14.5px;line-height:1.45;padding:7px 0;max-height:140px;color:var(--ink)}
  .chat-send textarea::placeholder{color:var(--grey-3)}
  .chat-go{flex:none;width:34px;height:34px;border-radius:999px;background:var(--ink);color:var(--on-ink);
           display:flex;align-items:center;justify-content:center;transition:opacity .15s,transform .15s}
  .chat-go svg{width:17px;height:17px}
  .chat-go:hover{transform:scale(1.05)}
  .chat-go[disabled]{opacity:.18;transform:none;cursor:default}
  .chat-go.retry{background:#d1453b;color:#fff;opacity:1}

  /* the pop-up, bottom right, over whatever page you are on */
  .chatpop{position:fixed;right:24px;bottom:24px;z-index:60;width:min(370px,calc(100vw - 32px));
           background:var(--card);border:1px solid var(--grey-2);border-radius:20px;overflow:hidden;
           display:flex;flex-direction:column;
           box-shadow:0 22px 50px rgba(20,20,24,.16),0 2px 6px rgba(20,20,24,.05);
           animation:cp-in .24s cubic-bezier(.2,.7,.3,1)}
  @keyframes cp-in{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
  .chatpop .chat-top{padding:12px 12px 12px 16px}
  .cp-x{margin-left:auto;width:30px;height:30px;border-radius:999px;font-size:19px;line-height:1;
        color:var(--grey-3);display:flex;align-items:center;justify-content:center}
  .cp-x:hover{color:var(--ink);background:var(--grey-1)}
  .chatpop .chat-log{max-height:300px;padding:14px 14px 4px}
  .chatpop .grp{max-width:84%}
  .chatpop .bub{font-size:13.5px}
  .chatpop .chat-send{margin:6px 10px 10px}
  /* the chat button, bottom right; the box opens above it */
  .chatfab{position:fixed;right:24px;bottom:24px;z-index:61;width:52px;height:52px;border-radius:999px;
           background:var(--ink);color:var(--on-ink);display:flex;align-items:center;justify-content:center;
           box-shadow:0 10px 26px rgba(20,20,24,.22);transition:transform .15s}
  .chatfab:hover{transform:scale(1.06)}
  .chatfab svg{width:23px;height:23px}
  .chatfab .i-x{display:none}
  .chatfab.open .i-chat{display:none}
  .chatfab.open .i-x{display:block}
  .fab-dot{position:absolute;top:2px;right:2px;width:12px;height:12px;border-radius:999px;
           background:var(--key);box-shadow:0 0 0 2.5px var(--paper)}
  .chatpop{bottom:92px}
  @media (prefers-reduced-motion:reduce){.chatpop,.bub{animation:none}.chat-log{scroll-behavior:auto}}
  /* phones: the rail is a bar along the bottom, so sit above it */
  @media (max-width:900px){
    .chatpop{right:16px;bottom:144px}
    .chatfab{right:16px;bottom:80px}
    .rdot{left:calc(50% + 6px);top:16px}
    .chat > .chat-log{height:calc(100vh - 330px);min-height:280px}
  }

  /* password boxes: a show / hide button inside, on the right */
  .pw{position:relative}
  .pw .field{padding-right:64px}
  .pw-show{position:absolute;right:12px;top:50%;transform:translateY(-50%);
           font-family:var(--sans);font-size:13px;letter-spacing:0;color:var(--grey-4);
           padding:4px 6px;border-radius:6px}
  .pw-show:hover{color:var(--ink);background:var(--grey-1)}

  /* the artwork on its way from the search list to the song card */
  .art.fly{position:fixed;z-index:80;margin:0;transform-origin:0 0;pointer-events:none;
           border-radius:8px;object-fit:cover}

  /* search's way out: type the song in yourself */
  /* pinned to the foot of the list, so it is in view however long the list is */
  .res.byhand-row{position:sticky;bottom:0;z-index:1;background:var(--card);
                  border-top:1px solid var(--grey-2);box-shadow:0 -8px 16px -12px rgba(20,20,24,.18)}
  .res.byhand-row:hover,.res.byhand-row:focus-visible{background:var(--grey-1)}
  .res.byhand-row .art.ph{font-size:18px;color:var(--grey-4)}
  .byhand{margin-top:var(--s3);background:var(--card);border:1.5px solid var(--grey-2);border-radius:16px;
          padding:18px 18px 16px}
  .byhand-h{font-family:var(--sans);font-size:13px;letter-spacing:.07em;color:var(--ink);
            margin-bottom:14px;text-transform:uppercase}
  .byhand .two{display:grid;grid-template-columns:1fr 1fr;gap:12px}
  .byhand-go{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:4px}
  .byhand-go .cta{width:auto;padding:13px 26px}
  .byhand-go .linkback{margin:0}
  @media (max-width:700px){.byhand .two{grid-template-columns:1fr}}
  #tool.hero .byhand{max-width:560px;margin-left:auto;margin-right:auto}

  /* the eye in password boxes: a line through it while the password shows */
  .pw-show .eye{width:19px;height:19px;display:block}
  .pw-show.on{color:var(--ink)}
  .pw-show.on::after{content:"";position:absolute;left:50%;top:50%;width:21px;height:1.8px;
                     background:currentColor;border-radius:2px;transform:translate(-50%,-50%) rotate(-45deg)}

  /* back: an arrow in the top bar, away from the page */
  .stage{position:relative}
  .backbtn{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;
           border-radius:999px;color:var(--grey-3);transition:color .15s,background .15s}
  .backbtn svg{width:17px;height:17px}
  .backbtn:hover{color:var(--ink);background:var(--grey-1)}
  /* the way on, above the use it is for */
  #l-proceed{margin:var(--s4) 0 0}
  /* a phone has no room beside the song, so the figures drop below it, from the left */
  @media (max-width:600px){ .ticket .figs{flex-basis:100%} }

/* back from Stripe: nothing shows until the payment has been checked */
body.returning main.stage{visibility:hidden}


/* our fees: the way to pay stays in view at the foot of the screen, however
   tall the two cards get. Above the bottom bar on phones, and the chat
   button lifts clear of it */
#pay-act{position:sticky;bottom:0;z-index:20;background:var(--card);padding:14px 0 6px}
#pay-act::before{content:"";position:absolute;left:0;right:0;top:-24px;height:24px;pointer-events:none;
                 background:linear-gradient(to bottom,transparent,var(--card))}
@media (max-width:900px){
  #pay-act{bottom:64px}
  body.paying .chatfab{bottom:190px}
}

/* ── type sizes (Hamish, Oct 2026) ─────────────────────────────
   A line's breathing room between a page's title and the copy under it,
   and the small supporting copy across the site at one size: the size of
   "by" in the song card. Left as they were: the back office panel, the
   spaced-out capitals labels, references, the chat, and the top bar. */
:root{--small:15px}
h1 + p, h1 + .say, h1 + .note, h1 + .body{margin-top:var(--s3)}
.say, .note, .lab, .err, .rangelab, .ends.big em, .working span, .oops p, .oops button,
.song .y, .song .x, .res .m, .saved-to, .saved-note, .linkback, .checking,
.inv .k small, .inv .small, .inv .row, .after ol, .body p, .body li,
.row .k, .row, .empty, .chip, .board-head .count, .prod-card .m, .prow .m,
.scene-head .m, .scene-desc, .prod-line, .add-scene, .track-row .a, .track-row .range,
.song-card .stage-name, .stage-name, .mini .m, .terms .v, .disclose, .foot,
.paidline, .pane-head .back, .tbtn, .fold > summary .fold-edit, .fold > summary .peek,
.step, .ticket .by, .ticket .kv .k, .ticket .kv, .ticket .tags span, .ticket .figs em,
footer{font-size:var(--small)}
.kind-help{margin-top:var(--s2);text-align:center}
/* the home page as it was: its line sits close under the question */
#l-say{font-size:14.5px;margin-top:var(--s1)}
/* join: a box that must be filled, and a dropdown still on its prompt reads as a prompt */
.lab .req{color:var(--grey-3)}
select.field:has(option[value=""]:checked){color:var(--grey-3)}
/* a label kept for screen readers, the box itself says what goes in it */
.lab.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* job title and industry side by side, one above the other on a phone so neither is cut off */
@media (max-width:520px){ .join-pair{grid-template-columns:minmax(0,1fr)} }
.under-cta{text-align:center;margin-top:var(--s1)}
/* the synopsis and scene boxes open far enough to show their whole example */
textarea.field.tall{min-height:7.2em}
@media (max-width:600px){ textarea.field.tall{min-height:12em} #f-syn{min-height:15em} }
/* the [i] in the figures' line sits on the text, a little lifted */
.rangelab .cost-i{margin-left:2px;vertical-align:1px}
/* the song search is a search box, drawn like the others: no browser clear button */
#q{-webkit-appearance:none;appearance:none}
#q::-webkit-search-cancel-button,#q::-webkit-search-decoration{-webkit-appearance:none;display:none}
#use-safe{margin-top:var(--s1)}

/* our clearance fees: the white box is ours, with the way to pay in it; the
   grey one under it is the licensing cost, which isn't paid here */
.cost{border-radius:16px;padding:20px 22px;margin-top:var(--s3)}
.cost.ours{background:var(--card);border:2px solid var(--ink);padding:6px 21px 16px;margin-top:var(--s4)}
.cost.ours .inv{margin-top:0}
.cost.ours .holders{margin-top:var(--s2)}
/* nobody named yet: no gap or rule above the total */
.cost.ours .holders:empty{display:none}
.cost.ours .holders:empty + #pay-bill .due{border-top:none;margin-top:0;padding-top:12px}
.cost.ours .act{margin-top:var(--s2)}
.cost.lic{background:var(--grey-2)}
.cost.lic h2{font-size:17px;font-weight:700;letter-spacing:-.015em;margin:0;color:var(--grey-4)}
.cost.lic .v{font-size:22px;font-weight:700;letter-spacing:-.02em;color:var(--grey-4);margin-top:6px;
             font-variant-numeric:tabular-nums}
.cost.lic p{font-size:var(--small);line-height:1.65;color:var(--grey-4);margin:8px 0 0}
@media (max-width:600px){ .cost{padding:16px} .cost.ours{padding:4px 15px 14px} }
/* the total's word as big as it needs to be beside the figure */
.cost.ours .inv .due .k{font-size:22px;letter-spacing:-.02em}
/* on a phone the words get their own line, the figure under them, then the note */
@media (max-width:560px){
  .cost.ours .inv .due{flex-direction:column;align-items:flex-start;gap:6px}
  .cost.ours .inv .due .k{display:contents}
  .cost.ours .inv .due .v{order:2}
  .cost.ours .inv .due .k small{order:3;margin-top:2px}
}
/* the deposit lines show with the button, but scroll as normal text under it */
#pay-act.hide + .pay-notes{display:none}
.pay-notes{padding-bottom:4px}
/* on the estimate page, "your use" sits a little closer to the button above it */
#tool .col + .col{margin-top:26px;padding-top:26px}
/* a clearance opens on the song as it looks everywhere else: artwork, title, artist */
.track-row.detail-head{grid-template-columns:56px minmax(0,1fr);border-bottom:none;padding:20px 0 4px}
.track-row.detail-head .art{width:56px;height:56px;border-radius:6px}
.track-row.detail-head .t{font-size:19px;font-weight:700;letter-spacing:-.02em}
.track-row.detail-head .a{font-size:15px;margin-top:3px}
/* the production and scene boxes: a search over what's saved, latest used
   first, and "create" on the right for a new one */
.combo{position:relative}
.combo .field.has-new{padding-right:96px}
.combo-new{position:absolute;right:9px;top:50%;transform:translateY(-50%);
           padding:7px 14px;border-radius:999px;background:var(--ink);color:var(--on-ink);
           font-family:var(--sans);font-size:13px;font-weight:600;letter-spacing:0;line-height:1.2}
.combo-new:hover{opacity:.85}
/* pressed: a quiet tick in place of the black button */
.combo-new.made{background:var(--key-soft);color:var(--key-deep);cursor:default;opacity:1;
                transition:background .25s ease,color .25s ease}
.combo-list{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:40;
            background:var(--card);border:1.5px solid var(--grey-2);border-radius:12px;
            box-shadow:0 12px 32px rgba(22,22,24,.08);padding:6px;max-height:264px;overflow-y:auto}
.combo-opt{display:flex;align-items:baseline;justify-content:space-between;gap:12px;width:100%;
           text-align:left;padding:11px 12px;border-radius:8px;font-family:var(--sans);
           font-size:15px;letter-spacing:0;color:var(--ink)}
.combo-opt .nm{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.combo-opt .sub{flex:none;font-size:13px;color:var(--grey-3)}
.combo-opt:hover,.combo-opt.on{background:var(--grey-1)}
.combo-opt[disabled]{color:var(--grey-3);cursor:default;background:none}

/* join: media / industry, a box like job title that takes several ticks */
.multi{position:relative}
/* Safari draws a button its own way unless told not to, which drops the
   padding and makes it shorter than the boxes around it */
.multi-btn{-webkit-appearance:none;appearance:none;margin:0;box-sizing:border-box;
           padding:14px 40px 14px 16px;font-family:var(--sans);font-size:15.5px;line-height:normal;
           display:block;text-align:left;cursor:pointer;color:var(--ink);
           white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
           background-image:linear-gradient(45deg,transparent 50%,var(--grey-3) 50%),
                            linear-gradient(135deg,var(--grey-3) 50%,transparent 50%);
           background-position:calc(100% - 19px) 53%,calc(100% - 14px) 53%;
           background-size:5px 5px;background-repeat:no-repeat}
.multi-btn.empty{color:var(--grey-3)}
.multi-list{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:40;background:var(--card);
            border:1.5px solid var(--grey-2);border-radius:12px;box-shadow:0 12px 32px rgba(22,22,24,.08);
            padding:6px;display:flex;flex-direction:column}
.multi-list.hide{display:none}
.multi-opt{display:flex;align-items:center;gap:11px;min-height:42px;padding:0 10px;border-radius:8px;
           font-size:15px;color:var(--ink);cursor:pointer}
.multi-opt:hover{background:var(--grey-1)}
.multi-opt input{width:17px;height:17px;margin:0;accent-color:var(--ink);flex:none}
.multi-opt em{font-style:normal;color:var(--grey-3);font-size:13px;margin-left:4px}
.multi-opt.off{color:var(--grey-3);cursor:default}
.multi-opt.off:hover{background:none}

/* profile: the password, closed until "change" is pressed */
.chpw-open{font-family:var(--sans);font-size:14px;color:var(--ink);text-decoration:underline;
           text-underline-offset:3px;min-height:32px;padding:0 2px}
.chpw-open:hover{color:var(--grey-4)}
.chpw{padding:14px 0 6px}
.chpw .cta{margin-top:4px}
#chpw-done{margin:4px 0 4px}

/* test mode: a quiet note over the page while the clearance is booked in */
.testmode{position:fixed;inset:0;z-index:80;display:flex;align-items:center;justify-content:center;
          padding:16px;background:var(--paper);opacity:0;transition:opacity .55s ease}
.testmode.on{opacity:1}
.testmode-card{width:100%;max-width:560px;background:var(--card);border:1.5px solid var(--grey-2);border-radius:20px;
               padding:40px 42px;box-shadow:0 22px 60px rgba(22,22,24,.10);
               transform:translateY(8px);transition:transform .55s ease}
.testmode.on .testmode-card{transform:none}
.testmode-card p{font-size:18px;line-height:1.6;color:var(--grey-4);margin:0}
.testmode-card .testmode-h{font-size:clamp(22px,3vw,28px);font-weight:700;letter-spacing:-.02em;
                           color:var(--ink);margin-bottom:10px}
@media (max-width:520px){ .testmode-card{padding:30px 26px} .testmode-card p{font-size:16.5px} }
@media (prefers-reduced-motion: reduce){ .testmode,.testmode-card{transition:none} }
