/* Glass and motion over the cabinet (app.css, promo.css): iOS-like translucent surfaces — a light rim, a highlight,
   a soft coloured backdrop showing through — and the real blur (backdrop-filter) only on what floats over the page:
   the header, the phone's dock, the menus, the toast; a phone then scrolls a long list without redrawing a blur under
   every card. Motion moves only transform and opacity, and none of it with «reduce motion» on. */
:root {
  --glass: rgba(255, 255, 255, .58); --glass-hi: rgba(255, 255, 255, .82);
  --glass-rim: rgba(255, 255, 255, .95); --glass-line: rgba(28, 26, 60, .09);
  --glass-shadow: 0 1px 1px rgba(30, 28, 70, .04), 0 10px 30px -10px rgba(40, 36, 90, .16);
  --glass-blur: saturate(180%) blur(22px);
  --glow-1: rgba(91, 75, 255, .15); --glow-2: rgba(0, 180, 255, .10); --glow-3: rgba(255, 96, 160, .09);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --stars-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='340'%3E%3Ccircle cx='112' cy='54' r='1.3' fill='%236a5cff' fill-opacity='0.38'/%3E%3Ccircle cx='35' cy='197' r='1.1' fill='%233a3290' fill-opacity='0.48'/%3E%3Ccircle cx='143' cy='84' r='1.1' fill='%236a5cff' fill-opacity='0.60'/%3E%3Ccircle cx='45' cy='78' r='1.3' fill='%233a3290' fill-opacity='0.70'/%3E%3Ccircle cx='198' cy='20' r='0.8' fill='%236a5cff' fill-opacity='0.38'/%3E%3Ccircle cx='100' cy='52' r='0.7' fill='%233a3290' fill-opacity='0.69'/%3E%3Ccircle cx='230' cy='38' r='1.1' fill='%233a3290' fill-opacity='0.73'/%3E%3Ccircle cx='186' cy='25' r='0.7' fill='%233a3290' fill-opacity='0.72'/%3E%3Ccircle cx='181' cy='262' r='1' fill='%233a3290' fill-opacity='0.70'/%3E%3Ccircle cx='104' cy='268' r='1.3' fill='%233a3290' fill-opacity='0.82'/%3E%3Ccircle cx='104' cy='168' r='0.9' fill='%233a3290' fill-opacity='0.79'/%3E%3Ccircle cx='329' cy='43' r='1' fill='%233a3290' fill-opacity='0.45'/%3E%3Ccircle cx='314' cy='144' r='1.3' fill='%233a3290' fill-opacity='0.40'/%3E%3Ccircle cx='266' cy='276' r='0.9' fill='%233a3290' fill-opacity='0.77'/%3E%3Ccircle cx='197' cy='155' r='1.5' fill='%233a3290' fill-opacity='0.41'/%3E%3Ccircle cx='235' cy='26' r='1.3' fill='%233a3290' fill-opacity='0.77'/%3E%3Ccircle cx='334' cy='277' r='0.9' fill='%236a5cff' fill-opacity='0.78'/%3E%3Ccircle cx='119' cy='316' r='0.9' fill='%233a3290' fill-opacity='0.45'/%3E%3Ccircle cx='24' cy='259' r='0.8' fill='%233a3290' fill-opacity='0.79'/%3E%3Ccircle cx='308' cy='169' r='0.8' fill='%233a3290' fill-opacity='0.62'/%3E%3Ccircle cx='297' cy='276' r='1.5' fill='%233a3290' fill-opacity='0.68'/%3E%3Ccircle cx='332' cy='231' r='1' fill='%233a3290' fill-opacity='0.92'/%3E%3Ccircle cx='63' cy='81' r='0.8' fill='%236a5cff' fill-opacity='0.36'/%3E%3Ccircle cx='65' cy='98' r='0.8' fill='%233a3290' fill-opacity='0.60'/%3E%3Ccircle cx='192' cy='320' r='1.3' fill='%236a5cff' fill-opacity='0.87'/%3E%3Ccircle cx='221' cy='250' r='1' fill='%236a5cff' fill-opacity='0.89'/%3E%3Ccircle cx='294' cy='269' r='1' fill='%233a3290' fill-opacity='0.59'/%3E%3Ccircle cx='164' cy='137' r='0.8' fill='%233a3290' fill-opacity='0.39'/%3E%3Ccircle cx='58' cy='117' r='0.7' fill='%233a3290' fill-opacity='0.41'/%3E%3Ccircle cx='182' cy='319' r='1.1' fill='%236a5cff' fill-opacity='0.37'/%3E%3Ccircle cx='208' cy='53' r='0.9' fill='%233a3290' fill-opacity='0.92'/%3E%3Ccircle cx='161' cy='42' r='1' fill='%233a3290' fill-opacity='0.95'/%3E%3Cpath d='M165.2 41.5C165.5 44.8 166.1 45.4 169.5 45.8C166.1 46.1 165.5 46.7 165.2 50.1C164.8 46.7 164.2 46.1 160.8 45.8C164.2 45.4 164.8 44.8 165.2 41.5Z' fill='%236a5cff' fill-opacity='0.69'/%3E%3Cpath d='M99.4 264.2C99.8 267.7 100.4 268.3 103.9 268.7C100.4 269.0 99.8 269.6 99.4 273.1C99.1 269.6 98.4 269.0 94.9 268.7C98.4 268.3 99.1 267.7 99.4 264.2Z' fill='%236a5cff' fill-opacity='0.61'/%3E%3C/svg%3E");
  --stars-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='610' height='610'%3E%3Ccircle cx='561' cy='575' r='1.5' fill='%233a3290' fill-opacity='0.40'/%3E%3Ccircle cx='259' cy='323' r='0.8' fill='%233a3290' fill-opacity='0.79'/%3E%3Ccircle cx='12' cy='377' r='0.7' fill='%236a5cff' fill-opacity='0.41'/%3E%3Ccircle cx='304' cy='16' r='1.3' fill='%233a3290' fill-opacity='0.79'/%3E%3Ccircle cx='39' cy='475' r='1.1' fill='%233a3290' fill-opacity='0.57'/%3E%3Ccircle cx='134' cy='447' r='1.1' fill='%233a3290' fill-opacity='0.81'/%3E%3Ccircle cx='348' cy='402' r='0.9' fill='%236a5cff' fill-opacity='0.69'/%3E%3Ccircle cx='111' cy='295' r='1.5' fill='%233a3290' fill-opacity='0.62'/%3E%3Ccircle cx='114' cy='111' r='0.9' fill='%233a3290' fill-opacity='0.75'/%3E%3Ccircle cx='355' cy='54' r='1' fill='%233a3290' fill-opacity='0.37'/%3E%3Ccircle cx='349' cy='498' r='0.9' fill='%236a5cff' fill-opacity='0.42'/%3E%3Ccircle cx='330' cy='543' r='1' fill='%233a3290' fill-opacity='0.68'/%3E%3Ccircle cx='68' cy='476' r='1.3' fill='%233a3290' fill-opacity='0.83'/%3E%3Ccircle cx='202' cy='90' r='1.3' fill='%236a5cff' fill-opacity='0.71'/%3E%3Ccircle cx='105' cy='591' r='0.7' fill='%233a3290' fill-opacity='0.73'/%3E%3Ccircle cx='102' cy='140' r='0.7' fill='%236a5cff' fill-opacity='0.93'/%3E%3Ccircle cx='575' cy='328' r='1' fill='%233a3290' fill-opacity='0.80'/%3E%3Ccircle cx='591' cy='231' r='0.8' fill='%233a3290' fill-opacity='0.37'/%3E%3Ccircle cx='334' cy='458' r='1' fill='%233a3290' fill-opacity='0.92'/%3E%3Ccircle cx='66' cy='322' r='0.8' fill='%233a3290' fill-opacity='0.76'/%3E%3Ccircle cx='148' cy='64' r='0.8' fill='%233a3290' fill-opacity='0.89'/%3E%3Ccircle cx='210' cy='541' r='1.5' fill='%233a3290' fill-opacity='0.45'/%3E%3Ccircle cx='492' cy='46' r='1.5' fill='%233a3290' fill-opacity='0.89'/%3E%3Ccircle cx='333' cy='260' r='0.9' fill='%233a3290' fill-opacity='0.81'/%3E%3Cpath d='M333.5 486.8C333.8 490.2 334.4 490.8 337.8 491.1C334.4 491.5 333.8 492.1 333.5 495.5C333.1 492.1 332.5 491.5 329.1 491.1C332.5 490.8 333.1 490.2 333.5 486.8Z' fill='%236a5cff' fill-opacity='0.76'/%3E%3Cpath d='M209.5 332.3C210.0 337.4 211.0 338.3 216.0 338.8C211.0 339.3 210.0 340.3 209.5 345.3C209.0 340.3 208.1 339.3 203.0 338.8C208.1 338.3 209.0 337.4 209.5 332.3Z' fill='%236a5cff' fill-opacity='0.66'/%3E%3Cpath d='M562.4 59.1C562.8 63.5 563.6 64.4 568.1 64.8C563.6 65.2 562.8 66.0 562.4 70.5C561.9 66.0 561.1 65.2 556.7 64.8C561.1 64.4 561.9 63.5 562.4 59.1Z' fill='%236a5cff' fill-opacity='0.74'/%3E%3C/svg%3E");
  --stars-opacity: .4; --twinkle: #5b4bff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --glass: rgba(28, 28, 38, .55); --glass-hi: rgba(40, 40, 54, .72);
    --glass-rim: rgba(255, 255, 255, .09); --glass-line: rgba(255, 255, 255, .07);
    --glass-shadow: 0 1px 1px rgba(0, 0, 0, .3), 0 14px 34px -12px rgba(0, 0, 0, .65);
    --glow-1: rgba(143, 132, 255, .20); --glow-2: rgba(0, 160, 255, .10); --glow-3: rgba(255, 80, 150, .09);
    --stars-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='340'%3E%3Ccircle cx='112' cy='54' r='1.3' fill='%23b4abff' fill-opacity='0.38'/%3E%3Ccircle cx='35' cy='197' r='1.1' fill='%23ffffff' fill-opacity='0.48'/%3E%3Ccircle cx='143' cy='84' r='1.1' fill='%23b4abff' fill-opacity='0.60'/%3E%3Ccircle cx='45' cy='78' r='1.3' fill='%23ffffff' fill-opacity='0.70'/%3E%3Ccircle cx='198' cy='20' r='0.8' fill='%23b4abff' fill-opacity='0.38'/%3E%3Ccircle cx='100' cy='52' r='0.7' fill='%23ffffff' fill-opacity='0.69'/%3E%3Ccircle cx='230' cy='38' r='1.1' fill='%23ffffff' fill-opacity='0.73'/%3E%3Ccircle cx='186' cy='25' r='0.7' fill='%23ffffff' fill-opacity='0.72'/%3E%3Ccircle cx='181' cy='262' r='1' fill='%23ffffff' fill-opacity='0.70'/%3E%3Ccircle cx='104' cy='268' r='1.3' fill='%23ffffff' fill-opacity='0.82'/%3E%3Ccircle cx='104' cy='168' r='0.9' fill='%23ffffff' fill-opacity='0.79'/%3E%3Ccircle cx='329' cy='43' r='1' fill='%23ffffff' fill-opacity='0.45'/%3E%3Ccircle cx='314' cy='144' r='1.3' fill='%23ffffff' fill-opacity='0.40'/%3E%3Ccircle cx='266' cy='276' r='0.9' fill='%23ffffff' fill-opacity='0.77'/%3E%3Ccircle cx='197' cy='155' r='1.5' fill='%23ffffff' fill-opacity='0.41'/%3E%3Ccircle cx='235' cy='26' r='1.3' fill='%23ffffff' fill-opacity='0.77'/%3E%3Ccircle cx='334' cy='277' r='0.9' fill='%23b4abff' fill-opacity='0.78'/%3E%3Ccircle cx='119' cy='316' r='0.9' fill='%23ffffff' fill-opacity='0.45'/%3E%3Ccircle cx='24' cy='259' r='0.8' fill='%23ffffff' fill-opacity='0.79'/%3E%3Ccircle cx='308' cy='169' r='0.8' fill='%23ffffff' fill-opacity='0.62'/%3E%3Ccircle cx='297' cy='276' r='1.5' fill='%23ffffff' fill-opacity='0.68'/%3E%3Ccircle cx='332' cy='231' r='1' fill='%23ffffff' fill-opacity='0.92'/%3E%3Ccircle cx='63' cy='81' r='0.8' fill='%23b4abff' fill-opacity='0.36'/%3E%3Ccircle cx='65' cy='98' r='0.8' fill='%23ffffff' fill-opacity='0.60'/%3E%3Ccircle cx='192' cy='320' r='1.3' fill='%23b4abff' fill-opacity='0.87'/%3E%3Ccircle cx='221' cy='250' r='1' fill='%23b4abff' fill-opacity='0.89'/%3E%3Ccircle cx='294' cy='269' r='1' fill='%23ffffff' fill-opacity='0.59'/%3E%3Ccircle cx='164' cy='137' r='0.8' fill='%23ffffff' fill-opacity='0.39'/%3E%3Ccircle cx='58' cy='117' r='0.7' fill='%23ffffff' fill-opacity='0.41'/%3E%3Ccircle cx='182' cy='319' r='1.1' fill='%23b4abff' fill-opacity='0.37'/%3E%3Ccircle cx='208' cy='53' r='0.9' fill='%23ffffff' fill-opacity='0.92'/%3E%3Ccircle cx='161' cy='42' r='1' fill='%23ffffff' fill-opacity='0.95'/%3E%3Cpath d='M165.2 41.5C165.5 44.8 166.1 45.4 169.5 45.8C166.1 46.1 165.5 46.7 165.2 50.1C164.8 46.7 164.2 46.1 160.8 45.8C164.2 45.4 164.8 44.8 165.2 41.5Z' fill='%23b4abff' fill-opacity='0.69'/%3E%3Cpath d='M99.4 264.2C99.8 267.7 100.4 268.3 103.9 268.7C100.4 269.0 99.8 269.6 99.4 273.1C99.1 269.6 98.4 269.0 94.9 268.7C98.4 268.3 99.1 267.7 99.4 264.2Z' fill='%23b4abff' fill-opacity='0.61'/%3E%3C/svg%3E");
    --stars-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='610' height='610'%3E%3Ccircle cx='561' cy='575' r='1.5' fill='%23ffffff' fill-opacity='0.40'/%3E%3Ccircle cx='259' cy='323' r='0.8' fill='%23ffffff' fill-opacity='0.79'/%3E%3Ccircle cx='12' cy='377' r='0.7' fill='%23b4abff' fill-opacity='0.41'/%3E%3Ccircle cx='304' cy='16' r='1.3' fill='%23ffffff' fill-opacity='0.79'/%3E%3Ccircle cx='39' cy='475' r='1.1' fill='%23ffffff' fill-opacity='0.57'/%3E%3Ccircle cx='134' cy='447' r='1.1' fill='%23ffffff' fill-opacity='0.81'/%3E%3Ccircle cx='348' cy='402' r='0.9' fill='%23b4abff' fill-opacity='0.69'/%3E%3Ccircle cx='111' cy='295' r='1.5' fill='%23ffffff' fill-opacity='0.62'/%3E%3Ccircle cx='114' cy='111' r='0.9' fill='%23ffffff' fill-opacity='0.75'/%3E%3Ccircle cx='355' cy='54' r='1' fill='%23ffffff' fill-opacity='0.37'/%3E%3Ccircle cx='349' cy='498' r='0.9' fill='%23b4abff' fill-opacity='0.42'/%3E%3Ccircle cx='330' cy='543' r='1' fill='%23ffffff' fill-opacity='0.68'/%3E%3Ccircle cx='68' cy='476' r='1.3' fill='%23ffffff' fill-opacity='0.83'/%3E%3Ccircle cx='202' cy='90' r='1.3' fill='%23b4abff' fill-opacity='0.71'/%3E%3Ccircle cx='105' cy='591' r='0.7' fill='%23ffffff' fill-opacity='0.73'/%3E%3Ccircle cx='102' cy='140' r='0.7' fill='%23b4abff' fill-opacity='0.93'/%3E%3Ccircle cx='575' cy='328' r='1' fill='%23ffffff' fill-opacity='0.80'/%3E%3Ccircle cx='591' cy='231' r='0.8' fill='%23ffffff' fill-opacity='0.37'/%3E%3Ccircle cx='334' cy='458' r='1' fill='%23ffffff' fill-opacity='0.92'/%3E%3Ccircle cx='66' cy='322' r='0.8' fill='%23ffffff' fill-opacity='0.76'/%3E%3Ccircle cx='148' cy='64' r='0.8' fill='%23ffffff' fill-opacity='0.89'/%3E%3Ccircle cx='210' cy='541' r='1.5' fill='%23ffffff' fill-opacity='0.45'/%3E%3Ccircle cx='492' cy='46' r='1.5' fill='%23ffffff' fill-opacity='0.89'/%3E%3Ccircle cx='333' cy='260' r='0.9' fill='%23ffffff' fill-opacity='0.81'/%3E%3Cpath d='M333.5 486.8C333.8 490.2 334.4 490.8 337.8 491.1C334.4 491.5 333.8 492.1 333.5 495.5C333.1 492.1 332.5 491.5 329.1 491.1C332.5 490.8 333.1 490.2 333.5 486.8Z' fill='%23b4abff' fill-opacity='0.76'/%3E%3Cpath d='M209.5 332.3C210.0 337.4 211.0 338.3 216.0 338.8C211.0 339.3 210.0 340.3 209.5 345.3C209.0 340.3 208.1 339.3 203.0 338.8C208.1 338.3 209.0 337.4 209.5 332.3Z' fill='%23b4abff' fill-opacity='0.66'/%3E%3Cpath d='M562.4 59.1C562.8 63.5 563.6 64.4 568.1 64.8C563.6 65.2 562.8 66.0 562.4 70.5C561.9 66.0 561.1 65.2 556.7 64.8C561.1 64.4 561.9 63.5 562.4 59.1Z' fill='%23b4abff' fill-opacity='0.74'/%3E%3C/svg%3E");
    --stars-opacity: .7; --twinkle: #f1eeff;
  }
}
:root[data-theme="dark"] {
  --glass: rgba(28, 28, 38, .55); --glass-hi: rgba(40, 40, 54, .72);
  --glass-rim: rgba(255, 255, 255, .09); --glass-line: rgba(255, 255, 255, .07);
  --glass-shadow: 0 1px 1px rgba(0, 0, 0, .3), 0 14px 34px -12px rgba(0, 0, 0, .65);
  --glow-1: rgba(143, 132, 255, .20); --glow-2: rgba(0, 160, 255, .10); --glow-3: rgba(255, 80, 150, .09);
  --stars-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='340'%3E%3Ccircle cx='112' cy='54' r='1.3' fill='%23b4abff' fill-opacity='0.38'/%3E%3Ccircle cx='35' cy='197' r='1.1' fill='%23ffffff' fill-opacity='0.48'/%3E%3Ccircle cx='143' cy='84' r='1.1' fill='%23b4abff' fill-opacity='0.60'/%3E%3Ccircle cx='45' cy='78' r='1.3' fill='%23ffffff' fill-opacity='0.70'/%3E%3Ccircle cx='198' cy='20' r='0.8' fill='%23b4abff' fill-opacity='0.38'/%3E%3Ccircle cx='100' cy='52' r='0.7' fill='%23ffffff' fill-opacity='0.69'/%3E%3Ccircle cx='230' cy='38' r='1.1' fill='%23ffffff' fill-opacity='0.73'/%3E%3Ccircle cx='186' cy='25' r='0.7' fill='%23ffffff' fill-opacity='0.72'/%3E%3Ccircle cx='181' cy='262' r='1' fill='%23ffffff' fill-opacity='0.70'/%3E%3Ccircle cx='104' cy='268' r='1.3' fill='%23ffffff' fill-opacity='0.82'/%3E%3Ccircle cx='104' cy='168' r='0.9' fill='%23ffffff' fill-opacity='0.79'/%3E%3Ccircle cx='329' cy='43' r='1' fill='%23ffffff' fill-opacity='0.45'/%3E%3Ccircle cx='314' cy='144' r='1.3' fill='%23ffffff' fill-opacity='0.40'/%3E%3Ccircle cx='266' cy='276' r='0.9' fill='%23ffffff' fill-opacity='0.77'/%3E%3Ccircle cx='197' cy='155' r='1.5' fill='%23ffffff' fill-opacity='0.41'/%3E%3Ccircle cx='235' cy='26' r='1.3' fill='%23ffffff' fill-opacity='0.77'/%3E%3Ccircle cx='334' cy='277' r='0.9' fill='%23b4abff' fill-opacity='0.78'/%3E%3Ccircle cx='119' cy='316' r='0.9' fill='%23ffffff' fill-opacity='0.45'/%3E%3Ccircle cx='24' cy='259' r='0.8' fill='%23ffffff' fill-opacity='0.79'/%3E%3Ccircle cx='308' cy='169' r='0.8' fill='%23ffffff' fill-opacity='0.62'/%3E%3Ccircle cx='297' cy='276' r='1.5' fill='%23ffffff' fill-opacity='0.68'/%3E%3Ccircle cx='332' cy='231' r='1' fill='%23ffffff' fill-opacity='0.92'/%3E%3Ccircle cx='63' cy='81' r='0.8' fill='%23b4abff' fill-opacity='0.36'/%3E%3Ccircle cx='65' cy='98' r='0.8' fill='%23ffffff' fill-opacity='0.60'/%3E%3Ccircle cx='192' cy='320' r='1.3' fill='%23b4abff' fill-opacity='0.87'/%3E%3Ccircle cx='221' cy='250' r='1' fill='%23b4abff' fill-opacity='0.89'/%3E%3Ccircle cx='294' cy='269' r='1' fill='%23ffffff' fill-opacity='0.59'/%3E%3Ccircle cx='164' cy='137' r='0.8' fill='%23ffffff' fill-opacity='0.39'/%3E%3Ccircle cx='58' cy='117' r='0.7' fill='%23ffffff' fill-opacity='0.41'/%3E%3Ccircle cx='182' cy='319' r='1.1' fill='%23b4abff' fill-opacity='0.37'/%3E%3Ccircle cx='208' cy='53' r='0.9' fill='%23ffffff' fill-opacity='0.92'/%3E%3Ccircle cx='161' cy='42' r='1' fill='%23ffffff' fill-opacity='0.95'/%3E%3Cpath d='M165.2 41.5C165.5 44.8 166.1 45.4 169.5 45.8C166.1 46.1 165.5 46.7 165.2 50.1C164.8 46.7 164.2 46.1 160.8 45.8C164.2 45.4 164.8 44.8 165.2 41.5Z' fill='%23b4abff' fill-opacity='0.69'/%3E%3Cpath d='M99.4 264.2C99.8 267.7 100.4 268.3 103.9 268.7C100.4 269.0 99.8 269.6 99.4 273.1C99.1 269.6 98.4 269.0 94.9 268.7C98.4 268.3 99.1 267.7 99.4 264.2Z' fill='%23b4abff' fill-opacity='0.61'/%3E%3C/svg%3E");
  --stars-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='610' height='610'%3E%3Ccircle cx='561' cy='575' r='1.5' fill='%23ffffff' fill-opacity='0.40'/%3E%3Ccircle cx='259' cy='323' r='0.8' fill='%23ffffff' fill-opacity='0.79'/%3E%3Ccircle cx='12' cy='377' r='0.7' fill='%23b4abff' fill-opacity='0.41'/%3E%3Ccircle cx='304' cy='16' r='1.3' fill='%23ffffff' fill-opacity='0.79'/%3E%3Ccircle cx='39' cy='475' r='1.1' fill='%23ffffff' fill-opacity='0.57'/%3E%3Ccircle cx='134' cy='447' r='1.1' fill='%23ffffff' fill-opacity='0.81'/%3E%3Ccircle cx='348' cy='402' r='0.9' fill='%23b4abff' fill-opacity='0.69'/%3E%3Ccircle cx='111' cy='295' r='1.5' fill='%23ffffff' fill-opacity='0.62'/%3E%3Ccircle cx='114' cy='111' r='0.9' fill='%23ffffff' fill-opacity='0.75'/%3E%3Ccircle cx='355' cy='54' r='1' fill='%23ffffff' fill-opacity='0.37'/%3E%3Ccircle cx='349' cy='498' r='0.9' fill='%23b4abff' fill-opacity='0.42'/%3E%3Ccircle cx='330' cy='543' r='1' fill='%23ffffff' fill-opacity='0.68'/%3E%3Ccircle cx='68' cy='476' r='1.3' fill='%23ffffff' fill-opacity='0.83'/%3E%3Ccircle cx='202' cy='90' r='1.3' fill='%23b4abff' fill-opacity='0.71'/%3E%3Ccircle cx='105' cy='591' r='0.7' fill='%23ffffff' fill-opacity='0.73'/%3E%3Ccircle cx='102' cy='140' r='0.7' fill='%23b4abff' fill-opacity='0.93'/%3E%3Ccircle cx='575' cy='328' r='1' fill='%23ffffff' fill-opacity='0.80'/%3E%3Ccircle cx='591' cy='231' r='0.8' fill='%23ffffff' fill-opacity='0.37'/%3E%3Ccircle cx='334' cy='458' r='1' fill='%23ffffff' fill-opacity='0.92'/%3E%3Ccircle cx='66' cy='322' r='0.8' fill='%23ffffff' fill-opacity='0.76'/%3E%3Ccircle cx='148' cy='64' r='0.8' fill='%23ffffff' fill-opacity='0.89'/%3E%3Ccircle cx='210' cy='541' r='1.5' fill='%23ffffff' fill-opacity='0.45'/%3E%3Ccircle cx='492' cy='46' r='1.5' fill='%23ffffff' fill-opacity='0.89'/%3E%3Ccircle cx='333' cy='260' r='0.9' fill='%23ffffff' fill-opacity='0.81'/%3E%3Cpath d='M333.5 486.8C333.8 490.2 334.4 490.8 337.8 491.1C334.4 491.5 333.8 492.1 333.5 495.5C333.1 492.1 332.5 491.5 329.1 491.1C332.5 490.8 333.1 490.2 333.5 486.8Z' fill='%23b4abff' fill-opacity='0.76'/%3E%3Cpath d='M209.5 332.3C210.0 337.4 211.0 338.3 216.0 338.8C211.0 339.3 210.0 340.3 209.5 345.3C209.0 340.3 208.1 339.3 203.0 338.8C208.1 338.3 209.0 337.4 209.5 332.3Z' fill='%23b4abff' fill-opacity='0.66'/%3E%3Cpath d='M562.4 59.1C562.8 63.5 563.6 64.4 568.1 64.8C563.6 65.2 562.8 66.0 562.4 70.5C561.9 66.0 561.1 65.2 556.7 64.8C561.1 64.4 561.9 63.5 562.4 59.1Z' fill='%23b4abff' fill-opacity='0.74'/%3E%3C/svg%3E");
  --stars-opacity: .7; --twinkle: #f1eeff;
}

/* --- what the glass stands on: soft colour, fixed, no blur needed (gradients are cheap). It reaches past the screen's
   bottom: on an iPhone the page goes on under Safari's bar and the home indicator, and a layer that stopped at the
   viewport's edge left a plain strip there with a hard edge. --- */
/* html keeps the page's colour (app.css) and body none: a body with its own background painted over these fixed layers
   (z-index -1 lies under the body's box), so the glow and the stars showed only below the content */
body { background: transparent; }
body::before { content: ""; position: fixed; inset: 0 0 -30vh; z-index: -1; pointer-events: none;
  background: radial-gradient(62vmax 52vmax at 6% -12%, var(--glow-1), transparent 62%),
              radial-gradient(52vmax 46vmax at 108% 8%, var(--glow-2), transparent 62%),
              radial-gradient(64vmax 52vmax at 58% 118%, var(--glow-3), transparent 62%); }
/* the Scoute night over it (.sky in base.html): small stars and a few four-pointed sparkles (Scoute Searching's), two
   tiles of different sizes so no pattern shows, faint enough to stay behind the cards (the user, 2026-10-23: «звёзды… чтобы
   фон пизже был, но не сильно выделялось»). Alive since 2026-10-24 («звёздочки на фоне должны быть анимированными, чтобы
   приятнее было смотреть»): the two tiles drift at two speeds (depth), three thin layers of brighter stars twinkle out of
   step, and now and then a faint shooting star crosses. Only transform and opacity move — the compositor's work, nothing
   repainted, the header's blur over it stays cheap; each tile moves by exactly its own size, so the loop has no seam.
   «Reduce motion» keeps the night still. */
.sky { position: fixed; inset: 0 0 -30vh; z-index: -1; pointer-events: none; overflow: hidden; opacity: var(--stars-opacity, .5);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .75) 55%, rgba(0, 0, 0, .45) 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .75) 55%, rgba(0, 0, 0, .45) 100%); }
.sky > i { position: absolute; display: block; }
.sky-a { inset: -340px 0 0 -340px; background: var(--stars-a) 0 0 / 340px 340px; }
.sky-b { inset: -610px 0 0 -610px; background: var(--stars-b) 170px 90px / 610px 610px; }
.sky-t { inset: 0; background: var(--twinkle, #f1eeff); opacity: .5; }
.sky-t1 { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='470' height='470'%3E%3Ccircle cx='213' cy='262' r='1.8' fill='white' fill-opacity='0.84'/%3E%3Ccircle cx='239' cy='275' r='1.2' fill='white' fill-opacity='0.85'/%3E%3Ccircle cx='294' cy='368' r='1.2' fill='white' fill-opacity='0.79'/%3E%3Ccircle cx='49' cy='376' r='1.7' fill='white' fill-opacity='0.71'/%3E%3Ccircle cx='454' cy='446' r='1.6' fill='white' fill-opacity='0.88'/%3E%3Ccircle cx='80' cy='15' r='1.5' fill='white' fill-opacity='0.72'/%3E%3Cpath d='M98.1 116.4C98.7 120.3 98.7 120.3 102.6 120.9C98.7 121.6 98.7 121.6 98.1 125.5C97.4 121.6 97.4 121.6 93.5 120.9C97.4 120.3 97.4 120.3 98.1 116.4Z' fill='white'/%3E%3C/svg%3E") 0 0 / 470px 470px repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='470' height='470'%3E%3Ccircle cx='213' cy='262' r='1.8' fill='white' fill-opacity='0.84'/%3E%3Ccircle cx='239' cy='275' r='1.2' fill='white' fill-opacity='0.85'/%3E%3Ccircle cx='294' cy='368' r='1.2' fill='white' fill-opacity='0.79'/%3E%3Ccircle cx='49' cy='376' r='1.7' fill='white' fill-opacity='0.71'/%3E%3Ccircle cx='454' cy='446' r='1.6' fill='white' fill-opacity='0.88'/%3E%3Ccircle cx='80' cy='15' r='1.5' fill='white' fill-opacity='0.72'/%3E%3Cpath d='M98.1 116.4C98.7 120.3 98.7 120.3 102.6 120.9C98.7 121.6 98.7 121.6 98.1 125.5C97.4 121.6 97.4 121.6 93.5 120.9C97.4 120.3 97.4 120.3 98.1 116.4Z' fill='white'/%3E%3C/svg%3E") 0 0 / 470px 470px repeat; }
.sky-t2 { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='530' height='530'%3E%3Ccircle cx='483' cy='496' r='1.8' fill='white' fill-opacity='0.73'/%3E%3Ccircle cx='312' cy='226' r='1.5' fill='white' fill-opacity='0.74'/%3E%3Ccircle cx='107' cy='237' r='1.3' fill='white' fill-opacity='0.84'/%3E%3Ccircle cx='21' cy='52' r='1.7' fill='white' fill-opacity='0.83'/%3E%3Ccircle cx='271' cy='385' r='1.4' fill='white' fill-opacity='0.72'/%3E%3Cpath d='M407.1 303.9C407.9 308.9 407.9 308.9 412.9 309.7C407.9 310.6 407.9 310.6 407.1 315.6C406.3 310.6 406.3 310.6 401.3 309.7C406.3 308.9 406.3 308.9 407.1 303.9Z' fill='white'/%3E%3Cpath d='M325.7 496.1C326.5 500.6 326.5 500.6 331.0 501.3C326.5 502.1 326.5 502.1 325.7 506.5C325.0 502.1 325.0 502.1 320.5 501.3C325.0 500.6 325.0 500.6 325.7 496.1Z' fill='white'/%3E%3C/svg%3E") 120px 260px / 530px 530px repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='530' height='530'%3E%3Ccircle cx='483' cy='496' r='1.8' fill='white' fill-opacity='0.73'/%3E%3Ccircle cx='312' cy='226' r='1.5' fill='white' fill-opacity='0.74'/%3E%3Ccircle cx='107' cy='237' r='1.3' fill='white' fill-opacity='0.84'/%3E%3Ccircle cx='21' cy='52' r='1.7' fill='white' fill-opacity='0.83'/%3E%3Ccircle cx='271' cy='385' r='1.4' fill='white' fill-opacity='0.72'/%3E%3Cpath d='M407.1 303.9C407.9 308.9 407.9 308.9 412.9 309.7C407.9 310.6 407.9 310.6 407.1 315.6C406.3 310.6 406.3 310.6 401.3 309.7C406.3 308.9 406.3 308.9 407.1 303.9Z' fill='white'/%3E%3Cpath d='M325.7 496.1C326.5 500.6 326.5 500.6 331.0 501.3C326.5 502.1 326.5 502.1 325.7 506.5C325.0 502.1 325.0 502.1 320.5 501.3C325.0 500.6 325.0 500.6 325.7 496.1Z' fill='white'/%3E%3C/svg%3E") 120px 260px / 530px 530px repeat; }
.sky-t3 { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='690' height='690'%3E%3Ccircle cx='468' cy='70' r='1.6' fill='white' fill-opacity='0.95'/%3E%3Ccircle cx='570' cy='355' r='1.6' fill='white' fill-opacity='0.81'/%3E%3Ccircle cx='364' cy='81' r='1.6' fill='white' fill-opacity='0.88'/%3E%3Ccircle cx='198' cy='263' r='1.7' fill='white' fill-opacity='0.83'/%3E%3Ccircle cx='655' cy='663' r='1.8' fill='white' fill-opacity='0.73'/%3E%3Ccircle cx='59' cy='203' r='1.4' fill='white' fill-opacity='0.91'/%3E%3Ccircle cx='565' cy='387' r='1.6' fill='white' fill-opacity='0.87'/%3E%3Cpath d='M36.5 357.7C37.2 361.9 37.2 361.9 41.5 362.7C37.2 363.4 37.2 363.4 36.5 367.6C35.8 363.4 35.8 363.4 31.6 362.7C35.8 361.9 35.8 361.9 36.5 357.7Z' fill='white'/%3E%3C/svg%3E") 300px 40px / 690px 690px repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='690' height='690'%3E%3Ccircle cx='468' cy='70' r='1.6' fill='white' fill-opacity='0.95'/%3E%3Ccircle cx='570' cy='355' r='1.6' fill='white' fill-opacity='0.81'/%3E%3Ccircle cx='364' cy='81' r='1.6' fill='white' fill-opacity='0.88'/%3E%3Ccircle cx='198' cy='263' r='1.7' fill='white' fill-opacity='0.83'/%3E%3Ccircle cx='655' cy='663' r='1.8' fill='white' fill-opacity='0.73'/%3E%3Ccircle cx='59' cy='203' r='1.4' fill='white' fill-opacity='0.91'/%3E%3Ccircle cx='565' cy='387' r='1.6' fill='white' fill-opacity='0.87'/%3E%3Cpath d='M36.5 357.7C37.2 361.9 37.2 361.9 41.5 362.7C37.2 363.4 37.2 363.4 36.5 367.6C35.8 363.4 35.8 363.4 31.6 362.7C35.8 361.9 35.8 361.9 36.5 357.7Z' fill='white'/%3E%3C/svg%3E") 300px 40px / 690px 690px repeat; }
.sky-shoot { width: 150px; height: 1.5px; border-radius: 1px; opacity: 0;
  background: linear-gradient(90deg, var(--twinkle, #f1eeff), transparent); }
.sky-shoot.one { top: 14%; left: 72%; }
.sky-shoot.two { top: 36%; left: 46%; }
/* The drift and the twinkle in steps, eight a second, all on the same beat (every step a multiple of 1/8 s from the
   page's start, so their changes come together): as slow as they are, that looks the same as sixty — and between the
   steps nothing on the screen changes, where smooth animations had an iPhone redraw the whole night and the
   glass's blur over it sixty times a second while one only looked (the user, 2026-10-25: «приложение… лагает»). A
   tile moves by its own size in 2240 and 2000 steps; a twinkle keeps its ease-in-out, sampled on that beat (the
   keyframes below, each held till the next; its cycles 6.25, 7.875 and 9.75 s for 6.2, 7.9 and 9.7 s, to fall on it).
   A shooting star is an animation only for the second and a bit it flies (.fly, started by app.js every 29 s and
   41 s), not a cycle that runs on unseen. */
@media (prefers-reduced-motion: no-preference) {
  .sky-a, .sky-b { will-change: transform; }
  .sky-t { will-change: opacity; }
  .sky-a { animation: sky-drift-a 280s steps(2240) infinite; }
  .sky-b { animation: sky-drift-b 250s steps(2000) infinite; }
  .sky-t1 { animation: sky-twinkle-50 6.25s steps(1) infinite; }
  .sky-t2 { animation: sky-twinkle-63 7.875s steps(1) -2.625s infinite; }
  .sky-t3 { animation: sky-twinkle-78 9.75s steps(1) -5.125s infinite; }
  .sky-shoot.one.fly { animation: sky-shoot 1.16s linear; }
  .sky-shoot.two.fly { animation: sky-shoot 1.64s linear; }
}
@keyframes sky-drift-a { to { transform: translate3d(340px, 340px, 0); } }
@keyframes sky-drift-b { to { transform: translate3d(610px, 610px, 0); } }
/* ease-in-out from .12 up to 1 and back, one held sample every 1/8 s of its cycle (6.25 s: 50, 7.875 s: 63, 9.75 s: 78) */
@keyframes sky-twinkle-50 { 0% { opacity: 0.120; } 2% { opacity: 0.123; } 4% { opacity: 0.131; } 6% { opacity: 0.145; } 8% { opacity: 0.165; } 10% { opacity: 0.192; } 12% { opacity: 0.225; } 14% { opacity: 0.263; } 16% { opacity: 0.308; } 18% { opacity: 0.358; } 20% { opacity: 0.412; } 22% { opacity: 0.470; } 24% { opacity: 0.530; } 26% { opacity: 0.590; } 28% { opacity: 0.650; } 30% { opacity: 0.708; } 32% { opacity: 0.762; } 34% { opacity: 0.812; } 36% { opacity: 0.857; } 38% { opacity: 0.895; } 40% { opacity: 0.928; } 42% { opacity: 0.955; } 44% { opacity: 0.975; } 46% { opacity: 0.989; } 48% { opacity: 0.997; } 50% { opacity: 1.000; } 52% { opacity: 0.997; } 54% { opacity: 0.989; } 56% { opacity: 0.975; } 58% { opacity: 0.955; } 60% { opacity: 0.928; } 62% { opacity: 0.895; } 64% { opacity: 0.857; } 66% { opacity: 0.812; } 68% { opacity: 0.762; } 70% { opacity: 0.708; } 72% { opacity: 0.650; } 74% { opacity: 0.590; } 76% { opacity: 0.530; } 78% { opacity: 0.470; } 80% { opacity: 0.412; } 82% { opacity: 0.358; } 84% { opacity: 0.308; } 86% { opacity: 0.263; } 88% { opacity: 0.225; } 90% { opacity: 0.192; } 92% { opacity: 0.165; } 94% { opacity: 0.145; } 96% { opacity: 0.131; } 98% { opacity: 0.123; } 100% { opacity: 0.120; } }
@keyframes sky-twinkle-63 { 0% { opacity: 0.120; } 1.587% { opacity: 0.122; } 3.175% { opacity: 0.127; } 4.762% { opacity: 0.136; } 6.349% { opacity: 0.148; } 7.937% { opacity: 0.165; } 9.524% { opacity: 0.185; } 11.11% { opacity: 0.209; } 12.7% { opacity: 0.237; } 14.29% { opacity: 0.269; } 15.87% { opacity: 0.305; } 17.46% { opacity: 0.344; } 19.05% { opacity: 0.386; } 20.63% { opacity: 0.430; } 22.22% { opacity: 0.476; } 23.81% { opacity: 0.524; } 25.4% { opacity: 0.572; } 26.98% { opacity: 0.620; } 28.57% { opacity: 0.667; } 30.16% { opacity: 0.712; } 31.75% { opacity: 0.756; } 33.33% { opacity: 0.796; } 34.92% { opacity: 0.833; } 36.51% { opacity: 0.867; } 38.1% { opacity: 0.897; } 39.68% { opacity: 0.923; } 41.27% { opacity: 0.946; } 42.86% { opacity: 0.964; } 44.44% { opacity: 0.978; } 46.03% { opacity: 0.989; } 47.62% { opacity: 0.996; } 49.21% { opacity: 1.000; } 50.79% { opacity: 1.000; } 52.38% { opacity: 0.996; } 53.97% { opacity: 0.989; } 55.56% { opacity: 0.978; } 57.14% { opacity: 0.964; } 58.73% { opacity: 0.946; } 60.32% { opacity: 0.923; } 61.9% { opacity: 0.897; } 63.49% { opacity: 0.867; } 65.08% { opacity: 0.833; } 66.67% { opacity: 0.796; } 68.25% { opacity: 0.756; } 69.84% { opacity: 0.712; } 71.43% { opacity: 0.667; } 73.02% { opacity: 0.620; } 74.6% { opacity: 0.572; } 76.19% { opacity: 0.524; } 77.78% { opacity: 0.476; } 79.37% { opacity: 0.430; } 80.95% { opacity: 0.386; } 82.54% { opacity: 0.344; } 84.13% { opacity: 0.305; } 85.71% { opacity: 0.269; } 87.3% { opacity: 0.237; } 88.89% { opacity: 0.209; } 90.48% { opacity: 0.185; } 92.06% { opacity: 0.165; } 93.65% { opacity: 0.148; } 95.24% { opacity: 0.136; } 96.83% { opacity: 0.127; } 98.41% { opacity: 0.122; } 100% { opacity: 0.120; } }
@keyframes sky-twinkle-78 { 0% { opacity: 0.120; } 1.282% { opacity: 0.121; } 2.564% { opacity: 0.124; } 3.846% { opacity: 0.130; } 5.128% { opacity: 0.138; } 6.41% { opacity: 0.149; } 7.692% { opacity: 0.162; } 8.974% { opacity: 0.178; } 10.26% { opacity: 0.196; } 11.54% { opacity: 0.216; } 12.82% { opacity: 0.240; } 14.1% { opacity: 0.265; } 15.38% { opacity: 0.294; } 16.67% { opacity: 0.324; } 17.95% { opacity: 0.356; } 19.23% { opacity: 0.391; } 20.51% { opacity: 0.427; } 21.79% { opacity: 0.464; } 23.08% { opacity: 0.502; } 24.36% { opacity: 0.541; } 25.64% { opacity: 0.579; } 26.92% { opacity: 0.618; } 28.21% { opacity: 0.656; } 29.49% { opacity: 0.693; } 30.77% { opacity: 0.729; } 32.05% { opacity: 0.764; } 33.33% { opacity: 0.796; } 34.62% { opacity: 0.826; } 35.9% { opacity: 0.855; } 37.18% { opacity: 0.880; } 38.46% { opacity: 0.904; } 39.74% { opacity: 0.924; } 41.03% { opacity: 0.942; } 42.31% { opacity: 0.958; } 43.59% { opacity: 0.971; } 44.87% { opacity: 0.982; } 46.15% { opacity: 0.990; } 47.44% { opacity: 0.996; } 48.72% { opacity: 0.999; } 50% { opacity: 1.000; } 51.28% { opacity: 0.999; } 52.56% { opacity: 0.996; } 53.85% { opacity: 0.990; } 55.13% { opacity: 0.982; } 56.41% { opacity: 0.971; } 57.69% { opacity: 0.958; } 58.97% { opacity: 0.942; } 60.26% { opacity: 0.924; } 61.54% { opacity: 0.904; } 62.82% { opacity: 0.880; } 64.1% { opacity: 0.855; } 65.38% { opacity: 0.826; } 66.67% { opacity: 0.796; } 67.95% { opacity: 0.764; } 69.23% { opacity: 0.729; } 70.51% { opacity: 0.693; } 71.79% { opacity: 0.656; } 73.08% { opacity: 0.618; } 74.36% { opacity: 0.579; } 75.64% { opacity: 0.541; } 76.92% { opacity: 0.502; } 78.21% { opacity: 0.464; } 79.49% { opacity: 0.427; } 80.77% { opacity: 0.391; } 82.05% { opacity: 0.356; } 83.33% { opacity: 0.324; } 84.62% { opacity: 0.294; } 85.9% { opacity: 0.265; } 87.18% { opacity: 0.240; } 88.46% { opacity: 0.216; } 89.74% { opacity: 0.196; } 91.03% { opacity: 0.178; } 92.31% { opacity: 0.162; } 93.59% { opacity: 0.149; } 94.87% { opacity: 0.138; } 96.15% { opacity: 0.130; } 97.44% { opacity: 0.124; } 98.72% { opacity: 0.121; } 100% { opacity: 0.120; } }
/* a streak with its bright head first, down and to the left */
@keyframes sky-shoot { 0% { opacity: 0; transform: rotate(-30deg) translateX(0); } 25% { opacity: .85; }
  100% { opacity: 0; transform: rotate(-30deg) translateX(-420px); } }
@media print { .sky { display: none; } }

/* --- surfaces: cards, panels, lists --- */
.box, .tile, .hero, .kpi, .chart-card, .list, .sign, .empty, .p-artist, .p-step, .p-track, .p-q, .p-d, .p-idea, .p-profile, .p-progress-box, .genre {
  background: linear-gradient(180deg, var(--glass-hi), var(--glass));
  border-color: var(--glass-line);
  box-shadow: inset 0 1px 0 var(--glass-rim), var(--glass-shadow);
}
.p-profile, .p-progress-box, .p-idea { box-shadow: inset 0 1px 0 var(--glass-rim), inset 0 0 0 1px var(--glass-line); }
.list-head { background: transparent; border-color: var(--glass-line); }
.row { border-color: var(--glass-line); }
.p-drop, .p-note { background: color-mix(in srgb, var(--glass) 70%, transparent); }
.p-variant { background: linear-gradient(180deg, var(--glass-hi), var(--glass));
  box-shadow: inset 0 0 0 1px var(--glass-line), inset 0 1px 0 var(--glass-rim), var(--glass-shadow); }
.p-variant.chosen { box-shadow: inset 0 0 0 2px var(--accent), var(--glass-shadow); }
.p-idea { position: relative; cursor: pointer; }
.p-idea input { position: absolute; opacity: 0; pointer-events: none; }  /* the card itself is the choice */
.p-idea:has(input:checked), .p-idea.chosen {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 16%, var(--glass-hi)), color-mix(in srgb, var(--accent) 10%, var(--glass)));
  box-shadow: inset 0 0 0 1.5px var(--accent), inset 0 1px 0 var(--glass-rim); }
.p-idea:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- what floats: the real blur. Literal values only: Safari drops a -webkit-backdrop-filter that holds a var().
   Small radii: a blur costs with its radius on every frame the page moves under it, and a nearly opaque fill (a menu,
   a toast) shows none of a big one. --- */
/* The header's glass is a layer under it, not the header itself: a backdrop-filter makes its element the backdrop
   root, and the tabs' droplet inside (ui/) would refract only the header's own fill instead of the page. */
.top { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; isolation: isolate;
  border-bottom-color: var(--glass-line); box-shadow: inset 0 -1px 0 var(--glass-rim); }
.top::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: color-mix(in srgb, var(--bg) 55%, transparent); -webkit-backdrop-filter: saturate(170%) blur(16px); backdrop-filter: saturate(170%) blur(16px); }
.menu { background: var(--glass-hi); -webkit-backdrop-filter: saturate(170%) blur(14px); backdrop-filter: saturate(170%) blur(14px);
  border-color: var(--glass-line); box-shadow: inset 0 1px 0 var(--glass-rim), 0 18px 40px -12px rgba(0, 0, 0, .35); }
.toast, .hello { background: color-mix(in srgb, var(--text) 82%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* --- controls: inputs, segments, pills (the buttons are maydm-site's: ui/src/buttons.css) --- */
/* Buttons as iOS 26 glass: a capsule of light with a bright rim from above (::before, so it follows any radius) and a
   glint on top; the chosen one is tinted glass of its colour with its own glow, and a press lights it up. No backdrop
   blur here: a list would redraw one under every row's buttons. */
:root {
  --lg-fill: linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .56));
  --lg-fill-hover: linear-gradient(180deg, #fff, rgba(255, 255, 255, .78));
  --lg-rim: linear-gradient(170deg, #fff, rgba(255, 255, 255, .55) 35%, rgba(30, 28, 70, .1) 70%, rgba(30, 28, 70, .16));
  --lg-glint: radial-gradient(130% 100% at 50% -25%, rgba(255, 255, 255, .9), transparent 55%);
  --lg-glint-tint: radial-gradient(130% 100% at 50% -25%, rgba(255, 255, 255, .42), transparent 58%);
  --lg-shadow: 0 1px 1px rgba(30, 28, 70, .06), 0 4px 14px -6px rgba(40, 36, 90, .24);
  --lg-well: rgba(28, 26, 60, .06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --lg-fill: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .05));
    --lg-fill-hover: linear-gradient(180deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .08));
    --lg-rim: linear-gradient(170deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, .1) 35%, rgba(255, 255, 255, .03) 65%, rgba(255, 255, 255, .14));
    --lg-glint: radial-gradient(130% 100% at 50% -25%, rgba(255, 255, 255, .16), transparent 55%);
    --lg-shadow: 0 1px 1px rgba(0, 0, 0, .35), 0 6px 16px -8px rgba(0, 0, 0, .75);
    --lg-well: rgba(0, 0, 0, .28);
  }
}
:root[data-theme="dark"] {
  --lg-fill: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .05));
  --lg-fill-hover: linear-gradient(180deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .08));
  --lg-rim: linear-gradient(170deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, .1) 35%, rgba(255, 255, 255, .03) 65%, rgba(255, 255, 255, .14));
  --lg-glint: radial-gradient(130% 100% at 50% -25%, rgba(255, 255, 255, .16), transparent 55%);
  --lg-shadow: 0 1px 1px rgba(0, 0, 0, .35), 0 6px 16px -8px rgba(0, 0, 0, .75);
  --lg-well: rgba(0, 0, 0, .28);
}
.st, .contacts-now, .pager a, .p-chip, .chip, .p-tool, .select {
  position: relative; border-color: transparent; border-radius: 999px; background: var(--lg-glint), var(--lg-fill); box-shadow: var(--lg-shadow); }
.st::before, .contacts-now::before, .pager a::before, .p-chip::before, .chip::before, .p-tool::before, .select::before {
  content: ""; position: absolute; inset: -1px; padding: 1px; border-radius: inherit; pointer-events: none; background: var(--lg-rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
@media (hover: hover) {
  .st:hover, .contacts-now:hover:not([disabled]), .pager a:hover, .p-chip:hover, .p-tool:hover, .select:hover {
    background: var(--lg-glint), var(--lg-fill-hover); color: var(--text); }
}
.status:not(.full) .st { width: 32px; height: 32px; min-width: 0; padding: 0; }  /* a row's: round */
.status .st.work[aria-pressed="true"], .status .st.stage[aria-pressed="true"], .pager a[aria-current], .p-tool.p-tool-ok { --tint: var(--accent); }
.status .st.sent[aria-pressed="true"]:not(.stage), .status .st.signed[aria-pressed="true"] { --tint: var(--up); }
.status .st.work[aria-pressed="true"], .status .st.sent[aria-pressed="true"], .status .st.stage[aria-pressed="true"],
.status .st.signed[aria-pressed="true"], .pager a[aria-current], .p-tool.p-tool-ok {
  color: #fff; background: var(--lg-glint-tint), linear-gradient(180deg, color-mix(in srgb, var(--tint) 76%, #fff), var(--tint) 72%);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .14), 0 8px 18px -8px color-mix(in srgb, var(--tint) 85%, transparent), inset 0 -1px 0 rgba(0, 0, 0, .16); }
.status .st.no[aria-pressed="true"] { color: var(--down);
  background: var(--lg-glint), linear-gradient(180deg, color-mix(in srgb, var(--down) 26%, transparent), color-mix(in srgb, var(--down) 13%, transparent)); }
.p-chip.on, .select.on {
  background: var(--lg-glint), linear-gradient(180deg, color-mix(in srgb, var(--accent) 26%, transparent), color-mix(in srgb, var(--accent) 12%, transparent)); }
/* the segmented capsule on the artist's page: a well; the chosen one is the glass thumb, the others plain text */
.status-track { background: var(--lg-well); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .14), inset 0 0 0 1px var(--glass-line); }
.status-track .st:not([aria-pressed="true"]) { background: none; box-shadow: none; }
.status-track .st:not([aria-pressed="true"])::before { opacity: 0; }
@media (hover: hover) { .status-track .st:not([aria-pressed="true"]):hover { background: color-mix(in srgb, var(--text) 7%, transparent); } }
.status.full:not(:has([aria-pressed="true"])) .st.clear { opacity: .5; }  /* nothing to clear */
.st:active, .contacts-now:active, .pager a:active, .p-chip:active, .chip:active, .p-tool:active, .select:active { filter: brightness(1.12) saturate(1.1); }
.seg, .seg button { border-radius: 999px; }
.search, .field input, .field select, .field textarea {
  background: color-mix(in srgb, var(--glass-hi) 85%, transparent); border-color: var(--glass-line);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .04); }
.seg-tabs, .seg { background: color-mix(in srgb, var(--glass) 80%, transparent); box-shadow: inset 0 0 0 1px var(--glass-line); }
.p-radio { background: color-mix(in srgb, var(--text) 6%, transparent); }  /* no rim: a fieldset's legend sits on its top edge */
.seg-tabs a[aria-current], .seg button[aria-pressed="true"], .p-radio input:checked + span, .tabs a[aria-current] {
  background: var(--glass-hi); box-shadow: inset 0 1px 0 var(--glass-rim), 0 1px 3px rgba(0, 0, 0, .1), inset 0 0 0 1px var(--glass-line); }
.pill, .badge { box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 22%, transparent); }

/* --- the buttons (maydm-site's, ui/src/buttons.css) lit a little more (the user, 2026-10-25: «Улучши… кнопки. Сделай
   круче с подсветками»): the main one's own light spills round it and brightens under the pointer; the quiet ones are
   the cabinet's glass — a glint from above, a rim of light — and take the accent's light under the pointer. Shadows
   and the rim only: nothing moves, nothing is blurred. :root for the weight — the islands' sheet comes after this one. --- */
:root .button:not(.ghost) {
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .42), inset 0 -1px 0 rgb(0 0 0 / .22), 0 1px 2px rgb(2 4 10 / .3),
    0 10px 26px -10px color-mix(in srgb, var(--accent) 75%, transparent), 0 0 22px -8px color-mix(in srgb, var(--accent) 55%, transparent);
  transition: transform var(--dur-press, .12s) ease, box-shadow .22s ease, background-color .15s ease; }
:root .button.ghost, :root .icon {
  --rim: var(--lg-rim);
  background: var(--lg-glint), var(--lg-fill), color-mix(in srgb, var(--btn-surface, var(--surface-2)) 70%, transparent);
  box-shadow: var(--lg-shadow);
  transition: transform var(--dur-press, .12s) ease, box-shadow .22s ease; }
@media (hover: hover) and (pointer: fine) {
  :root .button:not(.ghost):hover:not(:disabled, [aria-disabled="true"], [data-loading]) {
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .5), inset 0 -1px 0 rgb(0 0 0 / .2), 0 1px 2px rgb(2 4 10 / .3),
      0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent), 0 14px 34px -10px color-mix(in srgb, var(--accent) 90%, transparent); }
  :root .button.ghost:hover:not(:disabled, [aria-disabled="true"]), :root .icon:hover:not(:disabled, [aria-disabled="true"]) {
    --rim: linear-gradient(170deg, color-mix(in srgb, var(--accent) 85%, #fff), color-mix(in srgb, var(--accent) 30%, transparent) 45%,
      transparent 70%, color-mix(in srgb, var(--accent) 35%, transparent));
    background: var(--lg-glint), var(--lg-fill-hover), color-mix(in srgb, var(--btn-surface, var(--surface-2)) 70%, transparent);
    box-shadow: var(--lg-shadow), 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent),
      0 8px 22px -10px color-mix(in srgb, var(--accent) 65%, transparent); }
}
:root .button.ghost:active:not(:disabled), :root .icon:active:not(:disabled) {
  box-shadow: var(--lg-shadow), 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }

/* --- what opens (details): the browser's own «▶» was the one dated thing left (the user, 2026-10-25: «кнопки устаревшие
   какие-то… чтобы всё было ровно и красиво») — a chevron in a small lit circle instead, turning down as it opens --- */
:is(.deals-ended, .task-done, .p-hidden, .p-add-artist, .p-again, .p-more-box, .p-bm-add, .p-add-ref) > summary {
  list-style: none; display: flex; align-items: center; gap: 10px; }
:is(.deals-ended, .task-done, .p-hidden, .p-add-artist, .p-again, .p-more-box, .p-bm-add, .p-add-ref) > summary::-webkit-details-marker { display: none; }
:is(.deals-ended, .task-done, .p-hidden, .p-add-artist, .p-again, .p-more-box, .p-bm-add, .p-add-ref) > summary::before {
  content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f84ff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 7l5 5-5 5'/%3E%3C/svg%3E") center / 15px no-repeat, color-mix(in srgb, var(--accent) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent), 0 0 14px -4px color-mix(in srgb, var(--accent) 60%, transparent);
  transition: transform .22s ease; }
.task-done > summary::before { width: 20px; height: 20px; background-size: 13px, auto; }
:is(.deals-ended, .task-done, .p-hidden, .p-add-artist, .p-again, .p-more-box, .p-bm-add, .p-add-ref)[open] > summary::before { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { :is(.deals-ended, .task-done, .p-hidden, .p-add-artist, .p-again, .p-more-box, .p-bm-add, .p-add-ref) > summary::before { transition: none; } }
/* a form's list (the deal's «Ответственный»): the fields' own glass and height, its own chevron — not the system's thin button */
.field select { -webkit-appearance: none; appearance: none; height: 40px; padding: 0 36px 0 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b8b99' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E") right 12px center / 16px no-repeat, color-mix(in srgb, var(--glass-hi) 85%, transparent); }

/* --- statuses that are alive: a breathing dot --- */
.pill.reading::before, .pill.building::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; margin-right: 6px; vertical-align: 1px; }

/* --- the build's progress: the fill slides (transform), stripes run over it --- */
.p-meter { position: relative; }
.p-meter i { width: 100% !important; transform: translateX(calc(var(--p, 0%) - 100%)); position: relative; overflow: hidden;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 70%, #fff), var(--accent)); }
.p-meter i::after { content: ""; position: absolute; inset: 0 -24px 0 0;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .22) 0 6px, transparent 6px 12px); }

/* --- a picture not here yet: a shimmer, then the picture fades in --- */
.skel { position: relative; overflow: hidden; }
.skel > img { opacity: 0; }
.skel::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%); }
img { transition: opacity .35s var(--ease); }

/* --- the phone's dock: the cabinet's sections at the thumb --- */
.dock { display: none; }
@media (max-width: 720px) {
  .dock { display: flex; position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); }
  /* Until ui/islands.js puts maydm-site's tab bar in (.lq-dock), or without it: the dock's own glass. */
  .dock:not(.lq-dock) { height: 62px; padding: 6px; gap: 4px; border-radius: 24px; background: color-mix(in srgb, var(--glass) 45%, transparent);
    -webkit-backdrop-filter: saturate(190%) blur(10px); backdrop-filter: saturate(190%) blur(10px);
    box-shadow: inset 0 1px 0 var(--glass-rim), inset 0 0 0 1px var(--glass-line); }  /* no shadow round it: the page shows as it is */
  .dock:not(.lq-dock) a { flex: 1; display: grid; place-items: center; align-content: center; gap: 3px; border-radius: 18px; color: var(--muted);
    font-size: 11.5px; font-weight: 620; min-width: 0; }
  .dock:not(.lq-dock) a svg { width: 22px; height: 22px; }
  .dock:not(.lq-dock) a[aria-current] { color: var(--accent-text); background: var(--glass-hi);
    box-shadow: inset 0 1px 0 var(--glass-rim), inset 0 0 0 1px var(--glass-line), 0 4px 12px -4px rgba(0, 0, 0, .25); }
  .page { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .list { background: none; box-shadow: none; }  /* on a phone the rows are the cards */
  .row { background: linear-gradient(180deg, var(--glass-hi), var(--glass)); border-color: var(--glass-line);
    box-shadow: inset 0 1px 0 var(--glass-rim), var(--glass-shadow); }
  .p-variant figcaption form .button { width: 100%; }
  .hello, .toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
  /* The header's glass on a phone: a smaller blur (the list scrolls under it all the time). */
  .top::before { -webkit-backdrop-filter: saturate(170%) blur(12px); backdrop-filter: saturate(170%) blur(12px); }
  .seg-tabs { mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
    padding-right: 32px; }
}

/* --- motion: presses, hovers, live statuses; transform and opacity only. No View Transition: it freezes the screen on
   a snapshot of the old page until the new one is in (the droplet stops mid-glide), and capturing a page full of glass
   costs a long frame on a phone. The page changes in place instead (app.js), at once: no fade between the two pages,
   the new one's cards rise in. --- */
/* A page's entrance: its cards rise in, the first screenful one after another; further down they are simply there.
   CSS, not script: it plays from the first paint (no page standing empty while islands.js loads), once per card
   (nothing the islands, a picture or new data do starts it again) and on the compositor. Not on a page reloaded as it
   was (html.still, app.js), nor on one drawn again in place (main[data-still]: the build's progress). A card holding a
   droplet rises without the fade: an opacity there would make it the backdrop root of the droplet's glass. */
@media (prefers-reduced-motion: no-preference) {
  :root:not(.still) main:not([data-still]) :is(.list > .row, .tiles > .tile, .hero, .kpis > .kpi, .main-col > *, .side > .box, .p-artists > .p-artist,
  .p-add-artist, .p-how, .p-howto, .p-start, .p-steps > .p-step, .p-variants > .p-variant, .p-queue > *, .p-done > *, .p-media > *,
  .section-head, .empty, .box.new-link, .page > .box, .genres-row > .genre) {
    animation: g-rise .5s var(--ease) calc(var(--i, 0) * 45ms) backwards; }
  :root:not(.still) main:not([data-still]) :is(.list > .row, .tiles > .tile, .hero, .kpis > .kpi, .main-col > *, .side > .box, .p-artists > .p-artist,
  .p-add-artist, .p-how, .p-howto, .p-start, .p-steps > .p-step, .p-variants > .p-variant, .p-queue > *, .p-done > *, .p-media > *,
  .section-head, .empty, .box.new-link, .page > .box, .genres-row > .genre):has(fieldset.p-radio, .seg[role=group], .seg-tabs, .lq-host, [data-liquid]) { animation-name: g-lift; }
  :root:not(.still) main:not([data-still]) :is(.list > .row, .tiles > .tile, .hero, .kpis > .kpi, .main-col > *, .side > .box, .p-artists > .p-artist,
  .p-add-artist, .p-how, .p-howto, .p-start, .p-steps > .p-step, .p-variants > .p-variant, .p-queue > *, .p-done > *, .p-media > *,
  .section-head, .empty, .box.new-link, .page > .box, .genres-row > .genre) :is(.list > .row, .tiles > .tile, .hero, .kpis > .kpi, .main-col > *, .side > .box, .p-artists > .p-artist,
  .p-add-artist, .p-how, .p-howto, .p-start, .p-steps > .p-step, .p-variants > .p-variant, .p-queue > *, .p-done > *, .p-media > *,
  .section-head, .empty, .box.new-link, .page > .box, .genres-row > .genre),
  :root:not(.still) main:not([data-still]) :is(.list > .row, .tiles > .tile, .hero, .kpis > .kpi, .main-col > *, .side > .box, .p-artists > .p-artist,
  .p-add-artist, .p-how, .p-howto, .p-start, .p-steps > .p-step, .p-variants > .p-variant, .p-queue > *, .p-done > *, .p-media > *,
  .section-head, .empty, .box.new-link, .page > .box, .genres-row > .genre):nth-child(n+15) { animation: none; }
}
:is(.list > .row, .tiles > .tile, .hero, .kpis > .kpi, .main-col > *, .side > .box, .p-artists > .p-artist,
  .p-add-artist, .p-how, .p-howto, .p-start, .p-steps > .p-step, .p-variants > .p-variant, .p-queue > *, .p-done > *, .p-media > *,
  .section-head, .empty, .box.new-link, .page > .box, .genres-row > .genre):nth-child(2) { --i: 1; }
:is(.list > .row, .tiles > .tile, .hero, .kpis > .kpi, .main-col > *, .side > .box, .p-artists > .p-artist,
  .p-add-artist, .p-how, .p-howto, .p-start, .p-steps > .p-step, .p-variants > .p-variant, .p-queue > *, .p-done > *, .p-media > *,
  .section-head, .empty, .box.new-link, .page > .box, .genres-row > .genre):nth-child(3) { --i: 2; }
:is(.list > .row, .tiles > .tile, .hero, .kpis > .kpi, .main-col > *, .side > .box, .p-artists > .p-artist,
  .p-add-artist, .p-how, .p-howto, .p-start, .p-steps > .p-step, .p-variants > .p-variant, .p-queue > *, .p-done > *, .p-media > *,
  .section-head, .empty, .box.new-link, .page > .box, .genres-row > .genre):nth-child(4) { --i: 3; }
:is(.list > .row, .tiles > .tile, .hero, .kpis > .kpi, .main-col > *, .side > .box, .p-artists > .p-artist,
  .p-add-artist, .p-how, .p-howto, .p-start, .p-steps > .p-step, .p-variants > .p-variant, .p-queue > *, .p-done > *, .p-media > *,
  .section-head, .empty, .box.new-link, .page > .box, .genres-row > .genre):nth-child(5) { --i: 4; }
:is(.list > .row, .tiles > .tile, .hero, .kpis > .kpi, .main-col > *, .side > .box, .p-artists > .p-artist,
  .p-add-artist, .p-how, .p-howto, .p-start, .p-steps > .p-step, .p-variants > .p-variant, .p-queue > *, .p-done > *, .p-media > *,
  .section-head, .empty, .box.new-link, .page > .box, .genres-row > .genre):nth-child(6) { --i: 5; }
:is(.list > .row, .tiles > .tile, .hero, .kpis > .kpi, .main-col > *, .side > .box, .p-artists > .p-artist,
  .p-add-artist, .p-how, .p-howto, .p-start, .p-steps > .p-step, .p-variants > .p-variant, .p-queue > *, .p-done > *, .p-media > *,
  .section-head, .empty, .box.new-link, .page > .box, .genres-row > .genre):nth-child(7) { --i: 6; }
:is(.list > .row, .tiles > .tile, .hero, .kpis > .kpi, .main-col > *, .side > .box, .p-artists > .p-artist,
  .p-add-artist, .p-how, .p-howto, .p-start, .p-steps > .p-step, .p-variants > .p-variant, .p-queue > *, .p-done > *, .p-media > *,
  .section-head, .empty, .box.new-link, .page > .box, .genres-row > .genre):nth-child(8) { --i: 7; }
:is(.list > .row, .tiles > .tile, .hero, .kpis > .kpi, .main-col > *, .side > .box, .p-artists > .p-artist,
  .p-add-artist, .p-how, .p-howto, .p-start, .p-steps > .p-step, .p-variants > .p-variant, .p-queue > *, .p-done > *, .p-media > *,
  .section-head, .empty, .box.new-link, .page > .box, .genres-row > .genre):nth-child(n+9) { --i: 8; }
/* A long list: rows off the screen are neither laid out nor painted until scrolled near — a page's first paint and a
   page brought in lay out one screenful; each row's size is kept once it has been seen, so the scrollbar holds still. */
.list > .row { content-visibility: auto; contain-intrinsic-size: auto 63px; }
@media (max-width: 720px) { .list > .row { contain-intrinsic-size: auto 172px; } }
/* A page with a scrollbar and one without: the same width, nothing slides sideways between them. */
html { scrollbar-gutter: stable; }
@media (prefers-reduced-motion: no-preference) {
  .st, .seg-tabs a, .tabs a, .dock:not(.lq-dock) a, .p-radio span, .pager a, .select, .p-chip, .p-artist, .p-q, .p-d, .tile, .p-idea, .p-drop,
  .contacts-now, .chip, .p-tool {
    transition: transform .18s var(--ease), opacity .18s var(--ease), filter .18s var(--ease); }
  .st:active, .seg-tabs a:active, .tabs a:active, .dock:not(.lq-dock) a:active, .p-radio span:active, .pager a:active,
  .select:active, .p-chip:active, .contacts-now:active, .chip:active, .p-tool:active { transform: scale(.95); }
  .p-artist:active, .p-q:active, .p-d:active, .tile:active, .p-idea:active, .p-drop:active { transform: scale(.985); }
  .p-artist:hover, .p-q:hover, .p-d:hover, .tile:hover { transform: translateY(-2px); }
  .skel::after { animation: g-shimmer 1.3s linear infinite; }
  .pill.reading::before, .pill.building::before { animation: g-breathe 1.4s ease-in-out infinite; }
  .p-meter i { transition: transform .8s var(--ease); }
  .p-meter i::after { animation: g-stripes .9s linear infinite; }
  .menu { transform-origin: top right; animation: g-pop .18s var(--ease) both; }
}
@keyframes g-rise { from { opacity: 0; transform: translateY(14px) scale(.985); } }
@keyframes g-lift { from { transform: translateY(14px) scale(.985); } }
@keyframes g-fade-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes g-fade-out { to { opacity: 0; } }
@keyframes g-shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes g-breathe { 50% { opacity: .25; } }
@keyframes g-stripes { from { transform: translateX(-12px); } to { transform: translateX(0); } }
@keyframes g-pop { from { opacity: 0; transform: translateY(-4px) scale(.97); } }

/* --- the logo: «home» glows when a pointer comes to it — a halo breathing round the dot, light running through the word --- */
.brand { position: relative; border-radius: 12px; transition: transform .15s var(--ease); -webkit-tap-highlight-color: transparent; }
.brand:active { transform: scale(.96); }
.brand .dot { position: relative; }
.brand .dot::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; pointer-events: none; opacity: 0; transform: scale(.4);
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 70%, transparent) 0%, color-mix(in srgb, var(--accent) 25%, transparent) 45%, transparent 70%);
  transition: opacity .35s var(--ease), transform .45s var(--ease); }
.brand:hover .dot::after, .brand:focus-visible .dot::after { opacity: 1; transform: scale(1.35); }
.brand .word { background: linear-gradient(100deg, var(--text) 0 40%, var(--accent) 50%, var(--text) 60% 100%) 100% 0 / 260% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-reduced-motion: no-preference) {
  .brand:hover .dot::after, .brand:focus-visible .dot::after { animation: g-halo 1.8s ease-in-out .45s infinite; }
  .brand:hover .word, .brand:focus-visible .word { animation: g-shine 1.1s var(--ease) both; }
}
@keyframes g-halo { 50% { opacity: .55; transform: scale(1.7); } }
@keyframes g-shine { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* --- the phone: the header tucks away while one reads down, back on the way up (with the dock, ui/islands.tsx) --- */
@media (max-width: 720px) {
  .top { transition: transform .32s cubic-bezier(.32, .72, 0, 1); }
  .top[data-hidden] { transform: translateY(calc(-100% - 2px)); }
}

/* --- a page brought in under the same header (app.js): a thin line while a slow one is on its way --- */
main:focus { outline: none; }
.nav-progress { position: fixed; z-index: 40; left: 0; right: 0; top: 0; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 60%, #fff), var(--accent));
  transform-origin: 0 50%; transform: scaleX(0); opacity: 0; }
.nav-progress[data-state="loading"] { opacity: 1; transform: scaleX(.8); transition: transform 2.4s cubic-bezier(.1, .7, .2, 1), opacity .1s; }
.nav-progress[data-state="done"] { opacity: 0; transform: scaleX(1); transition: transform .18s ease-out, opacity .3s .15s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* --- Scoute as an app: the card that tells how to put it on the home screen (install.js) — glass over the page, the
   spark's violet glow under it; on a phone over the dock. --- */
.app-hint { position: fixed; z-index: 80; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); width: min(420px, calc(100vw - 24px));
  display: grid; gap: 14px; padding: 16px; border-radius: 24px; color: var(--text);
  background: linear-gradient(180deg, var(--glass-hi), var(--glass)), color-mix(in srgb, var(--bg) 94%, transparent);  /* the glass tones are see-through: the ground under them is not */
  -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  box-shadow: inset 0 1px 0 var(--glass-rim), inset 0 0 0 1px var(--glass-line), 0 0 0 1px color-mix(in srgb, var(--accent) 16%, transparent),
    0 26px 60px -22px rgba(0, 0, 0, .6), 0 18px 54px -24px color-mix(in srgb, var(--accent) 75%, transparent);
  transform: translateX(-50%); animation: app-hint-in .45s cubic-bezier(.2, .9, .25, 1.12) both; }
.app-hint.out { animation: app-hint-out .24s ease both; }
@keyframes app-hint-in { from { opacity: 0; transform: translate(-50%, 26px) scale(.97); } }
@keyframes app-hint-out { to { opacity: 0; transform: translate(-50%, 16px) scale(.98); } }
@media (max-width: 720px) { .app-hint { bottom: calc(84px + env(safe-area-inset-bottom)); } }
.app-hint-head { display: flex; align-items: center; gap: 13px; padding-right: 28px; }
.app-hint-head img { flex: none; width: 52px; height: 52px; border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 10px 26px -8px color-mix(in srgb, var(--accent) 85%, transparent); }
.app-hint-head b { display: block; font-size: 16px; font-weight: 700; }
.app-hint-head small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.35; }
.app-hint-x { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; display: grid;
  place-items: center; background: var(--surface-2); color: var(--muted); cursor: pointer; }
.app-hint-x svg { width: 15px; height: 15px; }
.app-hint-x:hover { color: var(--text); }
.app-hint-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 8px; }
.app-hint-steps li { counter-increment: step; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 14px;
  background: var(--surface-2); font-size: 14px; line-height: 1.4; }
.app-hint-steps li::before { content: counter(step); flex: none; 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); }
.app-hint-steps svg { width: 18px; height: 18px; vertical-align: -4px; color: var(--accent); }
.app-hint-steps b { font-weight: 650; }
.app-hint-note { margin: -4px 2px 0; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.app-hint-go { display: flex; gap: 8px; }
.app-hint-go .button { flex: 1; }
@media (prefers-reduced-motion: reduce) { .app-hint, .app-hint.out { animation: none; } }
.menu-app[hidden], .widget[hidden] { display: none !important; }
.menu .menu-app { white-space: nowrap; }  /* «Включить уведомления» on one line: the menu grows to it */
/* a notice while Scoute is on the screen (push.js): a banner at the top, as the phone's own, in the hint card's glass;
   a tap opens what it names */
.push-toast { position: fixed; z-index: 90; left: 50%; top: calc(10px + env(safe-area-inset-top)); width: min(420px, calc(100vw - 24px));
  display: flex; align-items: center; border-radius: 22px; color: var(--text);
  background: linear-gradient(180deg, var(--glass-hi), var(--glass)), color-mix(in srgb, var(--bg) 94%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  box-shadow: inset 0 1px 0 var(--glass-rim), inset 0 0 0 1px var(--glass-line), 0 0 0 1px color-mix(in srgb, var(--accent) 16%, transparent),
    0 22px 50px -20px rgba(0, 0, 0, .6), 0 14px 44px -22px color-mix(in srgb, var(--accent) 75%, transparent);
  transform: translateX(-50%); animation: push-toast-in .42s cubic-bezier(.2, .9, .25, 1.12) both; }
.push-toast.out { animation: push-toast-out .24s ease both; }
@keyframes push-toast-in { from { opacity: 0; transform: translate(-50%, -22px) scale(.97); } }
@keyframes push-toast-out { to { opacity: 0; transform: translate(-50%, -14px) scale(.98); } }
.push-toast-go { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 12px 6px 12px 12px; color: inherit; text-decoration: none; }
.push-toast-go img { flex: none; width: 40px; height: 40px; border-radius: 11px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 8px 20px -8px color-mix(in srgb, var(--accent) 85%, transparent); }
.push-toast-go span { min-width: 0; display: grid; gap: 2px; }
.push-toast-go b { font-size: 15px; font-weight: 700; line-height: 1.25; }
.push-toast-go small { color: var(--muted); font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.push-toast-x { flex: none; width: 30px; height: 30px; margin-right: 10px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); color: var(--muted); cursor: pointer; }
.push-toast-x svg { width: 14px; height: 14px; }
.push-toast-x:hover { color: var(--text); }
@media (min-width: 900px) { .push-toast { left: auto; right: 20px; top: 78px; transform: none; }
  @keyframes push-toast-in { from { opacity: 0; transform: translateY(-16px) scale(.97); } }
  @keyframes push-toast-out { to { opacity: 0; transform: translateY(-10px) scale(.98); } } }
@media (prefers-reduced-motion: reduce) { .push-toast, .push-toast.out { animation: none; } }
/* the sign-in inside the app: the bot's way is the button (install.js) */
.bot-login a.bot-login-main { display: flex; width: 100%; height: 48px; justify-content: center; font-size: 15px; text-decoration: none; }
.bot-login a.bot-login-main, .bot-login a.bot-login-main:hover { color: var(--brand-accent-foreground); }
