/* Made by tools/css.mjs from css/_kit.css and the 68 files beside it. Do not edit: edit those, and run it again. */

/* Voxelmorphism. Everything here works with no script: it is the plain version.
   Where the script runs, each element gets data-vx-live and its painted faces step aside
   for real voxels. Sizes are counted in voxels: 1 voxel is --vx. */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans/ibm-plex-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono/ibm-plex-mono-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
/* Ukrainian for the text face: fetched only by a page that has Cyrillic in it. */
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans/ibm-plex-sans-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 100 700; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono/ibm-plex-mono-cyrillic-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Script faces from IBM/plex at 2e90fe3, licensed in fonts/ibm-plex-sans. */
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("fonts/ibm-plex-sans/IBMPlexSansArabic-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("fonts/ibm-plex-sans/IBMPlexSansArabic-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "IBM Plex Sans Hebrew";
  src: url("fonts/ibm-plex-sans/IBMPlexSansHebrew-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0590-05FF, U+FB1D-FB4F;
}
@font-face {
  font-family: "IBM Plex Sans Hebrew";
  src: url("fonts/ibm-plex-sans/IBMPlexSansHebrew-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0590-05FF, U+FB1D-FB4F;
}
/* Vox Text: the voxel glyphs laid flat, for what is written on a key. Two weights, 4 KB each. */
@font-face {
  font-family: "Vox Text";
  src: url("fonts/vox-text/vox-text-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Vox Text";
  src: url("fonts/vox-text/vox-text-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
/* Vox Zakon: the Zakon glyph sets laid flat (src/core/fonts/zakon.js, zakon-text.js). Vox Zakon Text is
   for keys, as Vox Text is; Vox Zakon is the lettering set. Fetched only by a page that sets them. */
@font-face {
  font-family: "Vox Zakon Text";
  src: url("fonts/vox-zakon/vox-zakon-text-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Vox Zakon Text";
  src: url("fonts/vox-zakon/vox-zakon-text-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Vox Zakon";
  src: url("fonts/vox-zakon/vox-zakon-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
/* The voxel glyph sets as flat fonts, for the plain version of lettering. They are inlined
   (about 2 KB each) because a heading must never be drawn in a fallback of another height: its
   box is the box the voxels will take. Rebuild with tools/vox-text-build.py and
   tools/type-inline.py after changing a glyph. */
@font-face { font-family: "Vox Block"; src: url("data:font/woff2;base64,d09GMgABAAAAAAkAAAsAAAAAH5QAAAiwAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAG4N8BmAAggQKqXCdPwE2AiQDgmQLgTQABCAFZgeHDBvuFzOjpnyOjuT/lJyTqTB1/RXZCLlmIyKmREXXy0ZQlPqwz+bMv7ieH5G1fD/5u0OCoJZu747SylN6VWlVMaU0RVdRLxSD4yWDzngUKoOwBFdlEgb0FqzBiDy+ePq6vb35BGFICVnUdWumWu4CIEUBoE7zI4cQmtqtq5TP+VPpwKJsnDabo82JEy2/cJXh33d+qW0L0OeHdriFiso7UDzmeQiKW4yPYXt8EQyPI8AOR7Fy/jhMBgC4WbXfv2/PVk4HgK9LZIxmJ7MzC9nduzkBekhhvOdSCBS5qBhLIOOAZVSEY8/lv3Di39/bv8fdvO7UVZkyR5CJIono17K/JgJIoRYrNfvE5CJj59PJHhnEAQyHI7a/Hu2RBMAWQRzyIZJCL/r2+bm3ZCcBDwy54HtiJ2+nIIao/VS7Y+Ma7xOIQZCvSpaemTUACIHC4AgkCk0iizi5eEnyGrykEf+fwj8VJ+Rq1vrAXZqujlCCFL57wMJL/oMkqRLPTCpRo3wFISExzCTLktGiLtR7WGaRSKhgzZSvaM0Ult75xJyYtEAjlp/r0B2tQhYhAAECyRKDMJWhJ2QIS70hNGkUWhAEEMAQi02IH0ypp9TFE4dYVtYQE4ewaaOP6bo1EWfC64VMyQugSZESyuXxIPi4DF8fp9pCBkkNBEWhMVh+Hldw4myyB9M6HaO3oAFgaCoOzrhqK9r/Q8D/+H8/u/42CYiMd8lnEFSD0RL0E7NbkRp8GoC78zgCAoOF7s4mAE7gwxyN2+m3N0BxMOJllOFkwpmN3STHvn2WKdPcZsyaMw/Ar4mXY++Q0CmR2Jw4QEy2Q6CgdMKECmGgkoRUY7WhQGJejfw7UPF8kLK08ukeDbNsbbm8+Xpgy2amzbtamm1tZz+blterfSDN7eBxu8stz1++ff68VUMFw66oguvYvm3nzUnK29a02pZ6/vGWm3Xo2iR6v8zVbUvQnnb9MijsudrtrbJ0+9w1B6I6kj4Fn0lQTjd1HLEPLIziH1ygi2Lr7liUjQ1NabKd1dyFXTNh+6FGY8dnCRlIdC7BSQNhkm/+qykjQaN4CZ1lUEYlSmrzVya+og3tZnYiOp5JVwtxiaGgzUHAhtqpc4Dj4UzrDFCgoITrfma9EG5I6ZAxN/rsuU2d3bjOkzANIfOncSzuMA3EoQTkCCfjdOG4kMnprnPUQ7pZA+QgFpoXRyMPI4Yns465lhFhzpJJUhmKxzGVi+/u2T9cEpaMKdmlzlY0MtA+1dITsvqU3E8Jm+ve11NQ1xCncqj4yrHMAFaYw4ICa8v3aacPr952pVzvYizLHyIIJO4dG5jkukN8z3ndHfORAfLhBJxzVH8G5w5ldEPCmf9bxgWQPAw4aB5XAiRvezECMdY7H2EKrLSwL9gRhTsACz1t2rivbFYq2maxDxZKMo9dUNrwXLzNPxn4R5u3SBSCimRQtwbES0PlxY4CZ2A/JO4Jl3aYn3uJ23e3eYSk+dSP2aXL+djSq/t1v6R48y9P6YQrhzTIsy2VGpkd7lfb+lYZMeONGBXj+pPTd/55/rc0n9y+cAQRdb/fwK7gV2qfbw4MRpaJNSccczA/uUSE+lvqpIY+xVvdkRzCjcmBKdo668r0NSeG4u+CrQ0ZCdwtunf1UfWvChXb6pnXddDkBgkNh5oGQrWjID9oahgBlcab7eea+7HiKFc98SxgNPccp283IENKaWud5yqJGUzXbjYWdK5syidsc73KdS6Su2TKxbv9uaXO9qLY2H1sgtqTbe1fsKlA7LZud8+oz+jl7PbrY7q7R0MJe2MXbqVJGE0On+3SGDjtds/Kzku5kXXY/Cm5Y2ItSf465UX7SnEHOx7k0wWL01EIv3mt6RM6mMJxL+CS19dsYp7EN1bnm+9XEQWQ2riy2N1+fQouEdnbARuvNsgALJzjCLT3n2DHogdp7ZAmgYQE0tlp41CkNUi6bgiVb71eDU9uqSJW0Ta/T4n0Jfhlf318tCCnaP3sutdTlWJAeOJPt9+fAk/SsXsll9NeF2n3SX6NvHZSK7iKfXP784wVGrOgaaMFysOK35UFN1t7IVrjJK1nL3yNa5tRRDVpdr93s8sMnjTiWAserBO2Ylax5HUtbFyuX9NBaSVirHX8ArnVlKlHBjS6+AxmnteMFZg8iWd9DksmtuZ4FUMb1LElgDWmWzvQ8UpN3yhd9f4MYswVywNbz1uuQxRrdvVxuIrV7m0A7UacgU7vife/uT22UElE3K1qkrWR1xYt/6y+UzUOwdRO4sOV60Ge4Wxe97O7xRZgYtClsWPb5/9ft/cNxcPNlUbd2LwWq9oRpHoB45z2fum5F3Wm6W29J8h+fbxepCf3tTJCy1oqPsQqSGuqTkoVijN1KdfEpespdm6CnF5/vAq8lhpZFJOrEfMkoVWs2I9Jg5nV4bhoDMb8mTc0qHFc1TKm8gOx1vFU1YDOj5jaT4fqvm7pI5kXxRpC/ZSndZkLu9E3SfU/8LF8W5/nvzGVi14U0lN9c+BrxOdJsDImCMSd/MsH1D2Udq2ngqagZRG619JX65+FTYO18EahK4aYZtCY1S+VQdP7VIXwlmIMp8JzpZzZbrFctAp+2X1aTb2G3DiP+NfA3fxapRELkWyJo1/S2CZIBt4gSeSJOiZuhiBHgx0hyaD62b/4/XH9f85vi8e+CxrXzvWfsGybw6p1p3YsOiIR/+d+CEmlsbByYuNMZzDZuXDHNdnJSW7y3nd7/cFwNJ5MZ/PFcrXeACAEIyiGEyRFMyzHC6IkK6qmG6Zlc7g8vkAoEtva2Ts4Ojm7uLq5e3h6efuk+dP/NAnpYAAChcERyLRGKQMQKAyOQKLw0BgsfnqjjMAABAqDI5Co9I3Cx5hSxYPSXY9mxheHAOLqaY9ComAQdWlRZpbK+iIo1VGkxgcZC4NAp0epWIfCEUgUBj+9UUxAtNRwvDgMGz8DgYHUikypET0A") format("woff2"); font-weight: 400; font-display: block; }
@font-face { font-family: "Vox Sign"; src: url("data:font/woff2;base64,d09GMgABAAAAAAsEAAsAAAAAKawAAAqzAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAG4s+BmAAgmoKsmCjBQE2AiQDg0QLgWQABCAFYweIfBspICMR9oOTapvkvyVoM4ZuHWL1VTBTJylRNprsinviBOSC0VQ/NrsVvVprj76OHqgWpj1c4DR7/6f73QIXGUoL//6v5btJ/swS+SIoIre6qrqs8fgKWSvQSEDhlyYu92OP1pgUxtlSSCCNusAi6+De/dWmgJ81NZt70AZtY3HW5rE0iv7g4e327u+EWy09wThpC7itDA7hDAOM+8O2MS5YRMQ+vlGE2vWSIixTmzy4/TC9+04e5Jb/dQCFw2nVLO3eHam2umedF5qxAKrv7vz8KlssYTEMpYF/34s+Kx9m93ySxrz1XPPEfOp95s1DneeLaKcBgv//c9+rulb2m5zykCywMBX6t5adas7JvXdBzns8lAJDYCBTRKHR1hHIagRXV8e+kl2FqzC6m01rMHule4c4RAEhhCOE8BrHV/qrOaZDd6xndJgNGRJ9QEEqmVYDbV2VCUjPaSkDJEFSdfjO3ZeFDBBJkBCMhAJcwZJWfeKhN+b6I+8EXHT44YeumczkCU8wZsU2aZKGGz8hN0Mz9bMqGV/D9o73+fr7PPRtEGOnd8zjHI8EaRfKKkJVg0pj8cQSklIysnLyCopKyiqq2rp6+gaGRsYm+ITkFJRU1LR0DDwiEpJSsgg6WXIghS7G2OLokaKkPAiX4EDNE8t7RIDYZxzZo3JJHgVUUEUbPfQxwBAjTDD1s+9+J+z9ARzbn+GvjsczoTriIvj2nlEFCkuMeQYIMDiCjaSIaa0PGErH1ix6KSIiIiIiIu7pnh6VCAbBkrqevm4m0nF1MbZM90ywdLvIXZKqepxdJUXbFe/4HQi6dkQT8E3G2M3ocdwtvI4zyvY05iyK3VLGY3R341z1Wzbk6xkw+QOOuZlFt8R4FF3PoS3mSbtOaCkuWzhdIo6LUecPsHRX2nfDWLK1MhUjW4ohA1JEp9A0rSpdETrmFpaakb8SOEo8ChX8kQ+gNfPjcHgLMIEsvyO4EvA53/Y8G7bHA+IOflkHjHAZKcf/jdcEEB1lXRMOTm5eTW1LLz/bBzbyWGjv6jOuaKKFtjqafwSNq+iZEpezaGAeI2usOZ63M3pndPHvz8d1/Wt4GeWDTd8CqV/rV3tvpPfxr/81ARDWADriD+2SOfRexadxC3SNrKplg6mhoqauLS8lK6n8yebznWGYo+i48AvQCNLSCzHKMDGLsIiKibM+v8zGLm2Wd83r0oz09T41efVkv/+N1/8UDkH2U5ikofHpSSZBJoELLheMcwYIYKiE43pmSD6xLEqAh8jyXjQmhc+XWzKLmWPAQNcfB0mCAsSMoMGb88SA1Lg0R4kTYS8HtZ2I1iIihYaYqfWT0Xrfqn72gq4j7bR9xzbXFkKdq+mb9qcyjnFCM/rXDJsct9HauMBkvJ43SUo53xjbV2n4yfJFaDJKG36OOr/lVxH0iigv+GX+oKm4ZZXfNIceT73mLpouenMxBLkjB3ZM9rDSdBhJ10qD7Ng+htDhA7h+usb+hZjsT+wAjZdPx+DSq0M1h45ER3ZDD4MMnPYcl6S8iojkxUXHTBuvNGqktZi8fEYHklmC3+rq8BJdCsCTzngbRfdR+Lnpwk4V3qJEzb4wBsUfuYa3/ZWid9PtWWg1qUkQ66FDlxOi+C8zVGRJsDrZzhGheMKEiDAxkGJ69gPOFk56oquqX4z47rkTtmvX4uttJNx4/hiLPWi5dq2iZ0OvumdTdUsWXkb3z7WqUGSUjrRrSUbuBBPN8RBDuV+oFRfsMugG6ZMJu5/dctE9pjzdw3d0p2ZQoZRDl3lVDF7O3e3Hjs3OX0RB/nloTbpCP+cXY5NNhlEHq9XRtvj7HedY0pLr5eT11WSPKyZDO9w7GU59bnQL8RjeZBp5+YBh446Tdv4DD9aIpVglxiWmplrdoADJc7qtspoCG17yB//sRPYT5/Kwwq6mKfuYVIpDMeEc0aFwmUFelrPBxcegIOmCIh6q5g3X5ckpXhM0g2BF7Hi5lGe8no066/5b5lJr6K+GmyyDsee5u07rjK17HN3ynS77MjRsx6sWPVexh5g4WkUptQGqQDg0NaxDUH4Wnga1sDsoWVMCviY9G6gTDp/+xHgsHT+KF7osNGRk22TmPeQ8AplVLNJuisvirPW/lQz7ubLuKv2cejjSONzqgbH4zG3Vmxj1VGch/qNIKHXB1AJeiUQ9o3OrVfhMpmevvzRqahXmKrG1OtheAV1d3ZbKlx1t7dpq/Wn/5MTU94z/vTO8XSYATV4c/34cXzhxAGuABQ5ljZmdPOO3+574VkHIciDkeB4KCd2ksI27s/Gy3ZScKkQGhS3SJSIufhDCxnYmnzte8bocgOXbCn5JJgXxcBjiYgNmSbTqWhbiEjGOCS7tInpXVibHslBoGZcXTY0MPcrPZIWPXIW78CCH9gNjgBzDFUd377ax8bIwBIDJNxJnw4Cl4qfn4uJarpIecMYmEKVArIRuk5LGvcpoTK208raCGlXB+GmcNA5EMekdj4NAaDAkimfFdq+RpZ1peFzCryAnS0BJgQpMYRajLl/aRyzGhBw1PgcX+sTaUSba3vMwJElGy1m1Sar39qK4efOid9LCz8xmO0O2t6/xSW1iIL1Z4slNOokq13QMgw5yrNxNFkqQmDyOoYpGfnJRHLRXMyD0J9TtTJ+JZU2aKCLyXK7IZeFfGWEkLvdjbrLI0wGbcbsBhH9mKx+jMdtlo3GUcdxW3v94BYs5vbiHVlntnf8me6PUu6l5+hI5lRJTCqJPWrq2elM4USYFbdoIBU4MS1NhEzFvolJuwqVCXGr3RTiV6joQRpLkZGw3sZVMWIbq2JNDdlaslaG7m4S5dscm7zldsxw8hihJF3n9uh+t75yQCnPsha0C1e9oeUr4BgdRlC0kpDtWzCOA05DqgqdTyJPYC5iClDv/pWJzpDFHPrgaY18M+qzfPy14klPMZMwaAy7rzfLDH3ztpTs3qF4qnDuF5LiebHWYJ1yIU3UxdmuebGNRsoA8MiDI83rRjgm2is8GO803vtQYiywd0SofHVZrf4obKLHRNDL5nM3fr/c2fdRo+sjwuLCre/t9vfqRY3uqucsBV4W3p4Ju7uO1zNLsC0C63+TpZFv3POsTsP+L9DfxeIavP5rG3rsC5AzRfSftJQC6iL1A/tKbsAm6CT3cuWZfvT2ufFQW2MJlWiPPheLMsOvLUGyt43HUOq9zLq7AaXNcDpKmhXcnNa7aCNvd46U3y7VnyM9yg4EmScafETbSv4yCgvZ5SPwOtSg08M9vZWrGTl/7r57MHw355wCLrBrESVxUhkFYVFmKXwGa/z91AwicIJGRU6BIiTIVqtSo0wAhm93hdMEIiuEESdEMy/GCKMmKqumGaa0DIMKEMi6kx8vbx9fPHwAhGEExnCApmmE5gVAklkhlcoVSpdZodXqD0WS2WG12h9Pl9nh9vD9O+N0AQ0hIRExCSkZOkea8IBExCSkZOQUlHSpqGrrpzisQEhGTkJKRU1CmZ54utbVKF+oN/9bEXloNDR0tjKWqt0QUlGSkxNYaq1lXgmZIQU2TiuWO5fbZGbdL77xWOuoQeUGcZ2CCIzRSZ+PtHJ0hiC5lpopLRcHNo1FQUqU7T0xCRk5BSU1XNzY5AZGqNDI61DSWU6EhJEo1xQ2qBgAA") format("woff2"); font-weight: 400; font-display: block; }

:root {
  --vx: 4px;
  --vx-theme: day;
  --vx-font: "IBM Plex Sans", "IBM Plex Sans Arabic", "IBM Plex Sans Hebrew", "Avenir Next", "Segoe UI", sans-serif;
  --vx-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  /* the reading face for display words in an article: headings and quotes in an instrument's prose */
  --vx-serif: Georgia, "Times New Roman", serif;
  /* What is written on a key (buttons, tabs, menu items) is cut from the same cells as the key.
     Five voxels to the em, so a cell is half a voxel and every edge lands on a pixel. */
  --vx-key-font: "Vox Text", var(--vx-font);
  --vx-key-size: calc(var(--vx) * 5);
  --vx-link: #0e22ff;

  --vx-ground: #e4e8f4;
  --vx-ink: #0a0f3d;
  --vx-ink-quiet: #474d7a;
  --vx-enamel: #0e22ff;
  --vx-enamel-top: #4a59ff;
  --vx-enamel-side: #0b1bc9;
  --vx-on-enamel: #ffffff;
  --vx-signal: #fff600;
  --vx-signal-top: #fffa73;
  --vx-signal-side: #cfc800;
  --vx-on-signal: #0a0f3d;
  --vx-chalk: #fbfcff;
  --vx-chalk-top: #ffffff;
  --vx-chalk-side: #d0d4e6;
  --vx-slate: #c3c9de;
  --vx-slate-side: #a2a8c0;
  --vx-steel: #aab1c9;
  --vx-walnut: #7c4a29;
  --vx-walnut-top: #9a6238;
  --vx-walnut-side: #5f3920;
  --vx-leaf: #23a84b;
  --vx-brick: #d42c18;
  --vx-on-brick: #ffffff;
  --vx-knob: #fbfcff;
  --vx-danger-text: #d42c18;
  --vx-shadow: rgb(10 18 97 / 0.3);
  --vx-focus: #0e22ff;

  --vx-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --vx-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  /* The press, release and slide springs of src/core/motion.js as CSS (springCurve; tools/feel.mjs checks
     they still agree), so a plain key moves by the same physics as a voxel one. */
  --vx-press-time: 173ms;
  --vx-press-ease: linear(0, 0.035, 0.131, 0.219, 0.34, 0.427, 0.533, 0.602, 0.682, 0.732, 0.789, 0.824, 0.862, 0.886, 0.905, 0.927, 0.94, 0.953, 0.962, 0.97, 0.976, 0.981, 0.985, 0.988, 1);
  --vx-release-time: 271ms;
  --vx-release-ease: linear(0, 0.059, 0.221, 0.393, 0.606, 0.769, 0.929, 1.028, 1.095, 1.138, 1.149, 1.139, 1.12, 1.095, 1.063, 1.038, 1.013, 0.998, 0.986, 0.98, 0.978, 0.979, 0.982, 0.986, 1);
  --vx-slide-time: 317ms;
  --vx-slide-ease: linear(0, 0.034, 0.127, 0.232, 0.346, 0.479, 0.585, 0.68, 0.775, 0.842, 0.896, 0.945, 0.976, 0.998, 1.015, 1.024, 1.029, 1.03, 1.029, 1.027, 1.023, 1.02, 1.017, 1.013, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --vx-theme: night;
    --vx-ground: #080b28;
    --vx-ink: #eceefb;
    --vx-ink-quiet: #c2c7ec;
    --vx-enamel: #2b3dff;
    --vx-enamel-top: #5f6dff;
    --vx-enamel-side: #1c2ac4;
    --vx-chalk: #3a4692;
    --vx-chalk-top: #4854a6;
    --vx-chalk-side: #262f69;
    --vx-slate: #222963;
    --vx-slate-side: #141940;
    --vx-steel: #33375a;
    --vx-walnut: #5a3520;
    --vx-walnut-top: #71452b;
    --vx-walnut-side: #402515;
    --vx-leaf: #2ec25c;
    --vx-brick: #ff5340;
    --vx-on-brick: #0a0f3d;
    --vx-knob: #ccd1f2;
    --vx-danger-text: #ffb3a8;
    --vx-shadow: rgb(0 0 12 / 0.55);
    --vx-focus: #fff600;
    --vx-link: #9aa5ff;
  }
}
:root[data-theme="dark"] {
  --vx-theme: night;
  --vx-ground: #080b28;
  --vx-ink: #eceefb;
  --vx-ink-quiet: #c2c7ec;
  --vx-enamel: #2b3dff;
  --vx-enamel-top: #5f6dff;
  --vx-enamel-side: #1c2ac4;
  --vx-chalk: #3a4692;
  --vx-chalk-top: #4854a6;
  --vx-chalk-side: #262f69;
  --vx-slate: #222963;
  --vx-slate-side: #141940;
  --vx-steel: #33375a;
  --vx-walnut: #5a3520;
  --vx-walnut-top: #71452b;
  --vx-walnut-side: #402515;
  --vx-leaf: #2ec25c;
  --vx-brick: #ff5340;
  --vx-on-brick: #0a0f3d;
  --vx-knob: #ccd1f2;
  --vx-danger-text: #ffb3a8;
  --vx-shadow: rgb(0 0 12 / 0.55);
  --vx-focus: #fff600;
  --vx-link: #9aa5ff;
}

.vx-canvas {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  user-select: none;
}

/* What every part obeys. A part that sets its own display would otherwise undo the hidden attribute. */
[class^="vx-"][hidden], [class*=" vx-"][hidden] { display: none !important; }
/* Words for a screen reader only. */
.vx-aloud { position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Button ---------- */

.vx-button {
  --_face: var(--vx-enamel);
  --_top: var(--vx-enamel-top);
  --_side: var(--vx-enamel-side);
  --_on: var(--vx-on-enamel);
  --_lift: calc(var(--vx) * 1.5);

  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-block-size: calc(var(--vx) * 11);
  min-inline-size: calc(var(--vx) * 11);
  padding: 0 calc(var(--vx) * 5);
  margin: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--_on);
  font: 700 1rem/1 var(--vx-font);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
/* A link made a key keeps its legend: a page's own rule for links (a { color: inherit }) must not reach it. */
.vx-button:any-link { color: var(--_on); text-decoration: none; }
.vx-button[data-vx-material="signal"] { --_face: var(--vx-signal); --_top: var(--vx-signal-top); --_side: var(--vx-signal-side); --_on: var(--vx-on-signal); }
.vx-button[data-vx-material="chalk"] { --_face: var(--vx-chalk); --_top: var(--vx-chalk-top); --_side: var(--vx-chalk-side); --_on: var(--vx-ink); }
.vx-button[data-vx-material="walnut"] { --_face: var(--vx-walnut); --_top: var(--vx-walnut-top); --_side: var(--vx-walnut-side); --_on: #fff; }
.vx-button[data-vx-material="brick"] { --_face: var(--vx-brick); --_top: color-mix(in oklab, var(--vx-brick), #fff 25%); --_side: color-mix(in oklab, var(--vx-brick), #000 22%); --_on: var(--vx-on-brick); }
.vx-button[data-vx-material="leaf"] { --_face: var(--vx-leaf); --_top: color-mix(in oklab, var(--vx-leaf), #fff 25%); --_side: color-mix(in oklab, var(--vx-leaf), #000 22%); --_on: #06260f; }
.vx-button:disabled, .vx-button[aria-disabled="true"] { --_face: var(--vx-steel); --_top: var(--vx-steel); --_side: var(--vx-steel); --_on: var(--vx-ink); --_lift: 0px; cursor: default; }
.vx-button:disabled .vx-label, .vx-button[aria-disabled="true"] .vx-label { opacity: 0.6; }

.vx-button[data-vx-icon] { padding-inline-end: calc(var(--vx) * 15); }
/* A key that is its glyph alone (its name is its aria-label): square, the glyph in its middle. Until the kit draws it,
   a plain sign of the glyph stands in. */
.vx-button[data-vx-icon-only] { padding: 0; min-inline-size: calc(var(--vx) * 15); min-block-size: calc(var(--vx) * 15); justify-content: center; }
.vx-button[data-vx-icon="gear"][data-vx-icon-only]:not([data-vx-live])::after { content: "\2699\FE0E"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--_on); font: 400 calc(var(--vx) * 7)/1 system-ui, sans-serif; }
.vx-button .vx-label { display: inline-flex; align-items: center; gap: calc(var(--vx) * 2); position: relative; }

.vx-button:focus-visible { outline: 2px solid var(--vx-focus); outline-offset: calc(var(--vx) * 1.5); }

/* plain: the face is a painted box; two borders stand in for the top and the side */
.vx-button:not([data-vx-live]) { background: var(--_face); box-shadow: calc(var(--vx) * 0.75) calc(var(--vx) * 1) 0 var(--vx-shadow); }
.vx-button:not([data-vx-live])::before {
  content: "";
  position: absolute;
  --_body: calc(var(--_lift) + var(--_hover));
  inset: calc(var(--_body) * -1) 0 0 calc(var(--_body) * -1);
  border-top: var(--_body) solid var(--_top);
  border-left: var(--_body) solid var(--_side);
  border-right: var(--_body) solid transparent;
  border-bottom: var(--_body) solid transparent;
  box-sizing: border-box;
  z-index: -1;
  pointer-events: none;
}
.vx-button:not([data-vx-live]):is(:active, [aria-expanded="true"], [aria-pressed="true"]):not(:disabled) { --_lift: calc(var(--vx) * 0.5); transform: translate(calc(var(--vx) * -1), calc(var(--vx) * -1)); box-shadow: 0 0 0 var(--vx-shadow); }

/* ---------- How a key answers the hand ----------
   Plain, a key moves by the voxels' own springs: down at contact on the press curve, back up on
   the release curve with the same carry past rest. Its side (--_lift) is a length, so the body
   follows the face. A mouse resting on a key raises it a little, as the voxels do: the body grows
   up and to the left while the face stays under the pointer, so the hit box never moves away
   from it. Touch never hovers. Nothing travels with less motion: states change at once. */
@property --_lift { syntax: "<length>"; inherits: true; initial-value: 0px; }
@property --_hover { syntax: "<length>"; inherits: true; initial-value: 0px; }
:is(.vx-button, .vx-toggle-button):not([data-vx-live], [data-lamp]) {
  transition-property: transform, --_lift, --_hover, box-shadow;
  transition-duration: var(--vx-release-time);
  transition-timing-function: var(--vx-release-ease);
}
:is(.vx-button, .vx-toggle-button):not([data-vx-live], [data-lamp]):is(:active, [aria-expanded="true"], [aria-pressed="true"]) {
  transition-duration: var(--vx-press-time);
  transition-timing-function: var(--vx-press-ease);
}
@media (hover: hover) and (pointer: fine) {
  :is(.vx-button, .vx-toggle-button):not([data-vx-live], [data-lamp], :disabled, [aria-disabled="true"], :active, [aria-expanded="true"], [aria-pressed="true"]):hover {
    --_hover: calc(var(--vx) * 0.5);
  }
}
/* Live, the ring frames the whole solid, not the face alone: the projection draws a key's body
   half its height (--vx-face-z, set as it is built) up and to the left of the face. */
:is(.vx-button, .vx-toggle-button)[data-vx-live]:not([data-lamp]):focus-visible { outline-color: transparent; }
:is(.vx-button, .vx-toggle-button)[data-vx-live]:not([data-lamp]):focus-visible::after {
  --_up: calc(var(--vx) * (var(--vx-face-z, 0) / 2 + 1.5));
  content: ""; position: absolute; z-index: 1; pointer-events: none;
  inset: calc(var(--_up) * -1) calc(var(--vx) * -1.5) calc(var(--vx) * -1.5) calc(var(--_up) * -1);
  outline: 2px solid var(--vx-focus);
}
/* Plain, the body is the side band up and to the left of the face (--_lift): frame it the same way. */
.vx-button:not([data-vx-live], [data-lamp]):focus-visible { outline-color: transparent; }
.vx-button:not([data-vx-live], [data-lamp]):focus-visible::after {
  --_up: calc(var(--_lift) + var(--_hover) + var(--vx) * 1.5);
  content: ""; position: absolute; z-index: 1; pointer-events: none;
  inset: calc(var(--_up) * -1) calc(var(--vx) * -1.5) calc(var(--vx) * -1.5) calc(var(--_up) * -1);
  outline: 2px solid var(--vx-focus);
}
@media (forced-colors: active) {
  .vx-button:not([data-vx-live], [data-lamp]):focus-visible { outline-color: Highlight; }
  .vx-button:not([data-vx-live], [data-lamp]):focus-visible::after { content: none; }
  :is(.vx-button, .vx-toggle-button)[data-vx-live]:not([data-lamp]):focus-visible { outline-color: Highlight; }
  :is(.vx-button, .vx-toggle-button)[data-vx-live]:not([data-lamp]):focus-visible::after { content: none; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.vx-button, .vx-toggle-button):not([data-vx-live]) { transition: none; }
}

/* ---------- Shared ---------- */

:where(.vx-toggle, .vx-field, .vx-card, .vx-list, .vx-tabs, .vx-menu, .vx-dialog, .vx-toast) {
  font-family: var(--vx-font);
  color: var(--vx-ink);
}
:where(.vx-switch, .vx-slider, .vx-well, .vx-card, .vx-list, .vx-tabs, .vx-meter, .vx-toast, .vx-sign, .vx-lettering, .vx-block) {
  position: relative;
  isolation: isolate;
}

/* Physical transforms and inset shadows follow the inline direction. */
:where(.vx-switch, .vx-list > li) { --_inline-sign: 1; }
:where(.vx-switch, .vx-list > li):dir(rtl) { --_inline-sign: -1; }

/* ---------- Toggle ---------- */

.vx-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: calc(var(--vx) * 3);
  min-block-size: calc(var(--vx) * 11);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.3;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.vx-toggle input { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; margin: 0; opacity: 0; cursor: pointer; }
.vx-toggle input:disabled { cursor: default; }
.vx-toggle:has(input:disabled) { color: var(--vx-ink-quiet); cursor: default; }
.vx-switch { flex: none; inline-size: calc(var(--vx) * 16); block-size: calc(var(--vx) * 8); }
.vx-toggle input:focus-visible + .vx-switch { outline: 2px solid var(--vx-focus); outline-offset: calc(var(--vx) * 1.5); }
/* plain: a knob in a channel whose floor fills with signal when on (components/toggle.js) */
.vx-switch:not([data-vx-live]) { background: var(--vx-slate); box-shadow: inset 0 0 0 var(--vx) var(--vx-steel); }
.vx-switch:not([data-vx-live])::after {
  content: ""; position: absolute; inset-block: var(--vx); inset-inline-start: var(--vx);
  inline-size: calc(var(--vx) * 6); background: var(--vx-knob);
  box-shadow: calc(var(--vx) * 0.5) calc(var(--vx) * 0.5) 0 var(--vx-shadow);
  transition: transform var(--vx-slide-time) var(--vx-slide-ease);
}
.vx-toggle input:checked + .vx-switch:not([data-vx-live]) { background: var(--vx-signal); }
.vx-toggle input:checked + .vx-switch:not([data-vx-live])::after { transform: translateX(calc(var(--vx) * 8 * var(--_inline-sign))); }
/* plain, in the lit look: the same slide switch its voxels build (src/looks/lit.js, switchPart). A steel bezel a
   voxel proud round a dark slot whose far walls catch the light; a seven-voxel paddle with a
   raised crest and a grip line; on, the trench behind the paddle fills with light. The paddle
   travels on the SLIDE spring. An instrument's hardware colours come from fittings (--vx-hw-*). */
[data-vx-look="lit"] .vx-switch {
  --_edge: var(--vx-hw-steel, var(--vx-steel));
  --_bezel: var(--vx-hw-slate, var(--vx-slate));
  --_slot: color-mix(in oklab, var(--_bezel), #000 38%);
  --_wall: color-mix(in oklab, var(--_bezel), #fff 12%);
  --_knob: var(--vx-hw-ivory, var(--vx-knob));
  /* the trench's light glows, so it is the go colour lifted toward its light */
  --_glow: color-mix(in oklab, var(--lit-go, var(--vx-leaf)), #fff 30%);
}
[data-vx-look="lit"] .vx-switch:not([data-vx-live]) {
  background:
    linear-gradient(var(--_wall) 0 0) right var(--vx) top var(--vx) / var(--vx) calc(100% - var(--vx) * 2) no-repeat,
    linear-gradient(var(--_wall) 0 0) left var(--vx) bottom var(--vx) / calc(100% - var(--vx) * 2) var(--vx) no-repeat,
    var(--_slot);
  box-shadow: inset 0 0 0 calc(var(--vx) * 0.5) var(--_edge), inset 0 0 0 var(--vx) var(--_bezel), calc(var(--vx) * 0.5) calc(var(--vx) * 0.5) 0 var(--vx-shadow);
}
[data-vx-look="lit"] .vx-switch:not([data-vx-live])::before {
  content: ""; position: absolute; inset-block: calc(var(--vx) * 2) calc(var(--vx) * 4); inset-inline: var(--vx);
  background: var(--_glow); clip-path: inset(0 100% 0 0);
  transition: clip-path var(--vx-slide-time) var(--vx-slide-ease);
}
[data-vx-look="lit"] .vx-switch:not([data-vx-live]):dir(rtl)::before { clip-path: inset(0 0 0 100%); }
[data-vx-look="lit"] .vx-switch:not([data-vx-live])::after {
  content: ""; position: absolute; inset-block-start: var(--vx); inset-inline-start: var(--vx);
  inline-size: calc(var(--vx) * 7); block-size: calc(var(--vx) * 6);
  background:
    linear-gradient(color-mix(in oklab, var(--_knob), #000 14%) 0 0) calc(var(--vx) * 2) var(--vx) / calc(var(--vx) * 3) var(--vx) no-repeat,
    linear-gradient(color-mix(in oklab, var(--_knob), #fff 40%) 0 0) var(--vx) var(--vx) / calc(var(--vx) * 5) calc(var(--vx) * 2) no-repeat,
    var(--_knob);
  box-shadow: inset calc(var(--vx) * 0.5) 0 0 color-mix(in oklab, var(--_knob), #000 20%), calc(var(--vx) * 0.5) calc(var(--vx) * 0.75) 0 rgb(0 0 0 / 0.35);
  transition: transform var(--vx-slide-time) var(--vx-slide-ease);
}
[data-vx-look="lit"] .vx-toggle input:checked + .vx-switch:not([data-vx-live])::before { clip-path: inset(0); }
[data-vx-look="lit"] .vx-toggle input:checked + .vx-switch:not([data-vx-live])::after { transform: translateX(calc(var(--vx) * 7 * var(--_inline-sign))); }
[data-vx-look="lit"] .vx-toggle input:disabled + .vx-switch { --_knob: var(--vx-steel); --_glow: var(--_slot); }

/* ---------- Slider ---------- */

.vx-slider { display: block; block-size: calc(var(--vx) * 11); min-inline-size: calc(var(--vx) * 30); }
.vx-slider input { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; margin: 0; accent-color: var(--vx-enamel); cursor: grab; touch-action: pan-y; }
.vx-slider input:active { cursor: grabbing; }
.vx-slider[data-vx-live] input { opacity: 0; appearance: none; -webkit-appearance: none; }
.vx-slider[data-vx-live] input::-webkit-slider-thumb { -webkit-appearance: none; inline-size: calc(var(--vx) * 5); block-size: calc(var(--vx) * 11); }
.vx-slider[data-vx-live] input::-moz-range-thumb { inline-size: calc(var(--vx) * 5); block-size: calc(var(--vx) * 11); border: 0; }
.vx-slider:has(input:focus-visible) { outline: 2px solid var(--vx-focus); outline-offset: calc(var(--vx) * 1.5); }

/* ---------- Text field ---------- */

.vx-field { display: grid; gap: calc(var(--vx) * 2); }
.vx-field-label { font-weight: 600; font-size: 0.9375rem; line-height: 1.3; }
.vx-field-hint { font-size: 0.875rem; line-height: 1.4; color: var(--vx-ink-quiet); margin-block-start: calc(var(--vx) * 1); }
.vx-well { display: block; }
.vx-well :is(input, textarea) {
  display: block; box-sizing: border-box; inline-size: 100%;
  min-block-size: calc(var(--vx) * 11);
  padding: 0 calc(var(--vx) * 4);
  margin: 0; border: 0; border-radius: 0; background: none; outline: 0;
  color: var(--vx-ink); caret-color: var(--vx-enamel);
  font: 500 1rem/1.5 var(--vx-font);
}
.vx-well textarea { padding-block: calc(var(--vx) * 3); min-block-size: calc(var(--vx) * 24); resize: none; }
.vx-well ::placeholder { color: var(--vx-ink-quiet); opacity: 1; }
.vx-well:has(:focus-visible) { outline: 2px solid var(--vx-focus); outline-offset: calc(var(--vx) * 1); }
.vx-well:not([data-vx-live]) { background: var(--vx-chalk); box-shadow: inset 0 0 0 var(--vx) var(--vx-slate); }
/* invalid: a red line inside the far lower edge, not a ring */
.vx-well:not([data-vx-live]):has([aria-invalid="true"]) { box-shadow: inset 0 calc(var(--vx) * -1) 0 var(--lit-stop, var(--vx-brick)); }

/* ---------- Note card ---------- */

.vx-card { display: block; box-sizing: border-box; padding: calc(var(--vx) * 5) calc(var(--vx) * 6); line-height: 1.5; }
.vx-card[data-vx-edge] { padding-inline-start: calc(var(--vx) * 8); }
.vx-card > :first-child:not(canvas), .vx-card > .vx-canvas + * { margin-block-start: 0; }
.vx-card > :last-child { margin-block-end: 0; }
.vx-card > * + * { margin-block-start: 0.5em; }
.vx-card > :is(p, h3, h4) { margin-block: 0; } /* the card's own words only: a part set on a card keeps its own spacing */
.vx-card:not([data-vx-live]) { background: var(--vx-chalk); box-shadow: calc(var(--vx) * 1) calc(var(--vx) * 1.25) 0 var(--vx-shadow); }
.vx-card:not([data-vx-live])[data-vx-edge] { border-inline-start: calc(var(--vx) * 2) solid var(--vx-steel); padding-inline-start: calc(var(--vx) * 6); }
.vx-card:not([data-vx-live])[data-vx-edge="leaf"] { border-color: var(--vx-leaf); }
.vx-card:not([data-vx-live])[data-vx-edge="brick"] { border-color: var(--vx-brick); }
.vx-card:not([data-vx-live])[data-vx-edge="signal"] { border-color: var(--vx-signal); }
.vx-card:not([data-vx-live])[data-vx-edge="enamel"] { border-color: var(--vx-enamel); }
.vx-card:not([data-vx-live])[data-vx-edge="walnut"] { border-color: var(--vx-walnut); }

/* ---------- List ---------- */

.vx-list { list-style: none; margin: 0; padding: var(--vx); display: grid; gap: var(--vx); }
.vx-list > li { display: flex; min-block-size: calc(var(--vx) * 11); }
.vx-row { position: relative; display: flex; align-items: center; gap: calc(var(--vx) * 3); box-sizing: border-box; inline-size: 100%; padding-block: calc(var(--vx) * 2); padding-inline: calc(var(--vx) * 6) calc(var(--vx) * 4); line-height: 1.35; }
/* With voxels the part wraps each row's content in a .vx-row. A row written without one takes
   the same box, so a list is the same height plain and live. */
.vx-list > li:not(:has(> .vx-row)) { position: relative; align-items: center; gap: calc(var(--vx) * 3); box-sizing: border-box; padding-block: calc(var(--vx) * 2); padding-inline: calc(var(--vx) * 6) calc(var(--vx) * 4); line-height: 1.35; }
/* Its link takes the row's line height too, as it does in a .vx-row. A page that sets a line
   height on every element would otherwise make a wrapped row taller plain than live. */
.vx-list > li:not(:has(> .vx-row)) > :is(a, button) { font: inherit; }
.vx-list > li:is([aria-current="true"], [aria-selected="true"]) { font-weight: 700; }
.vx-row :is(a, button) { color: inherit; font: inherit; text-decoration: none; background: none; border: 0; padding: 0; text-align: start; cursor: pointer; }
.vx-row :is(a, button)::after { content: ""; position: absolute; inset: 0; }
.vx-row :is(a, button):focus-visible { outline: 0; }
.vx-row:has(:focus-visible) { outline: 2px solid var(--vx-focus); outline-offset: calc(var(--vx) * -1); }
.vx-row-meta { margin-inline-start: auto; color: var(--vx-ink-quiet); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.vx-list:not([data-vx-live]) { background: var(--vx-slate); }
.vx-list:not([data-vx-live]) > li { background: var(--vx-chalk); }
.vx-list:not([data-vx-live]) > li:is([aria-current="true"], [aria-selected="true"]) { box-shadow: inset calc(var(--vx) * 2 * var(--_inline-sign)) 0 0 var(--vx-signal); }

/* ---------- Tabs ---------- */

.vx-tabs { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.vx-tabs > [role="tab"] {
  appearance: none; margin: 0; border: 0; border-radius: 0; background: none;
  min-block-size: calc(var(--vx) * 11); padding: 0 calc(var(--vx) * 5);
  font: 600 1rem/1 var(--vx-font); color: var(--vx-ink); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.vx-tabs > [role="tab"] .vx-label { display: inline-block; }
/* For a narrow column (four words in a phone-wide dialog): tighter seats, smaller labels, the same height to hit. */
.vx-tabs[data-vx-size="small"] > [role="tab"] { padding-inline: calc(var(--vx) * 2); font-size: 0.875rem; }
.vx-tabs > [role="tab"][aria-selected="true"] { color: var(--vx-ink); }
.vx-tabs > [role="tab"] .vx-label { padding-block-start: 0.3em; }
.vx-tabs > [role="tab"]:focus-visible { outline: 2px solid var(--vx-focus); outline-offset: calc(var(--vx) * 1); }
.vx-tabs:not([data-vx-live]) { background: var(--vx-slate); }
.vx-tabs:not([data-vx-live]) > [role="tab"][aria-selected="true"] { background: var(--vx-signal); color: var(--vx-on-signal); }

/* ---------- Meter ---------- */

.vx-meter { display: block; block-size: calc(var(--vx) * 7); min-inline-size: calc(var(--vx) * 30); }
.vx-meter[data-vx-kind="growth"] { inline-size: calc(var(--vx) * 26); min-inline-size: 0; block-size: calc(var(--vx) * 36); }
.vx-meter :is(progress, meter) { inline-size: 100%; accent-color: var(--vx-leaf); }
.vx-meter[data-vx-live] :is(progress, meter) { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; pointer-events: none; }

/* ---------- Menu ---------- */

.vx-menu {
  position: fixed; inset: auto; margin: 0; border: 0; overflow: visible; isolation: isolate;
  padding: calc(var(--vx) * 2) 0; background: none;
  min-inline-size: calc(var(--vx) * 44);
}
.vx-menu-rows {
  max-block-size: calc(100dvh - 24px - var(--vx) * 4);
  overflow: hidden auto;
  overscroll-behavior: contain;
}
.vx-menu [role^="menuitem"] {
  display: flex; align-items: center; box-sizing: border-box; inline-size: 100%;
  min-block-size: calc(var(--vx) * 10); padding: 0 calc(var(--vx) * 5);
  margin: 0; border: 0; border-radius: 0; background: none; outline: 0;
  font: 500 1rem/1.2 var(--vx-font); color: inherit; text-align: start; cursor: pointer;
}
.vx-menu [role^="menuitem"][data-vx-kind="danger"] { color: var(--vx-danger-text); }
.vx-menu [role^="menuitem"][data-vx-active] { color: var(--vx-on-enamel); }
.vx-menu:not([data-vx-live]) { background: var(--vx-chalk); box-shadow: calc(var(--vx) * 1.5) calc(var(--vx) * 2) 0 var(--vx-shadow); }
.vx-menu:not([data-vx-live]) [role^="menuitem"]:is(:hover, :focus-visible) { background: var(--vx-enamel); color: var(--vx-on-enamel); }

/* ---------- Dialog ---------- */

dialog.vx-dialog {
  border: 0; padding: 0; background: none; overflow: visible; isolation: isolate;
  inline-size: min(calc(var(--vx) * 112), calc(100vw - 32px));
  max-block-size: calc(100dvh - 64px);
}
/* A page's own rules for header, footer or :focus-visible must not reach in. The dialog itself
   takes focus when it opens with nothing to focus; it shows no ring, its controls show theirs. */
.vx-dialog > :is(header, footer) { margin: 0; border: 0; background: none; }
dialog.vx-dialog:focus-visible { outline: none; }
.vx-dialog::backdrop { background: rgb(10 15 61 / 0.5); transition: opacity 200ms ease-out; }
.vx-dialog[data-vx-native-exit]::backdrop { opacity: 0; }
.vx-dialog > header { padding: calc(var(--vx) * 4) calc(var(--vx) * 6) calc(var(--vx) * 3.5); font-weight: 700; font-size: 1.125rem; line-height: 1.25; color: var(--vx-on-enamel); }
.vx-dialog-body { padding: calc(var(--vx) * 5) calc(var(--vx) * 6); line-height: 1.55; overflow: auto; }
.vx-dialog-body > :first-child { margin-block-start: 0; }
.vx-dialog-body > :last-child { margin-block-end: 0; }
.vx-dialog > footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: calc(var(--vx) * 4); padding: calc(var(--vx) * 1) calc(var(--vx) * 6) calc(var(--vx) * 6); }
[data-vx-surface="courses"] > :not(.vx-canvas) { opacity: var(--vx-surface-ink); transition: none; }
[data-vx-surface="rim"], [popover][data-vx-surface="still"] { opacity: var(--vx-surface-alpha); }
[data-vx-surface="still"]:not([popover]) > * { opacity: var(--vx-surface-alpha); transition: none; }
[popover][data-vx-native-exit], dialog.vx-dialog[data-vx-native-exit] {
  display: var(--vx-exit-display);
  transition: overlay 150ms allow-discrete;
}
dialog.vx-dialog[data-vx-native-exit]:not([open]) {
  position: fixed;
  inset: var(--vx-exit-y) auto auto var(--vx-exit-x);
  margin: 0;
  box-sizing: border-box;
  width: var(--vx-exit-w);
  height: var(--vx-exit-h);
  transition-duration: 240ms;
}
[data-vx-native-exit]::backdrop { pointer-events: none; }
[data-vx-native-exit]:not([open], :popover-open) { pointer-events: none; interactivity: inert; }
.vx-dialog:not([data-vx-live]) { background: var(--vx-chalk); box-shadow: calc(var(--vx) * 2) calc(var(--vx) * 2.5) 0 var(--vx-shadow); }
.vx-dialog:not([data-vx-live]) > header { background: var(--vx-enamel); }

/* ---------- Toast ---------- */

.vx-toasts { position: fixed; inset-inline: 0; inset-block-end: calc(var(--vx) * 8); z-index: 1000; display: grid; justify-items: center; gap: calc(var(--vx) * 4); pointer-events: none; }
.vx-toast { pointer-events: auto; box-sizing: border-box; max-inline-size: min(calc(100vw - 32px), 30rem); padding-block: calc(var(--vx) * 3.5); padding-inline: calc(var(--vx) * 8) calc(var(--vx) * 6); font-weight: 600; line-height: 1.35; }
.vx-menu[data-vx-cover-legends] [role^="menuitem"] { opacity: 0; }
.vx-toast-text { transition: opacity 120ms ease; }
.vx-toast[data-vx-leaving] .vx-toast-text { opacity: 0; }
.vx-toast[data-vx-surface] > .vx-toast-text { opacity: var(--vx-surface-ink); transition: none; }
.vx-toast:not([data-vx-live]) { background: var(--vx-chalk); border-inline-start: calc(var(--vx) * 2) solid var(--vx-signal); padding-inline-start: calc(var(--vx) * 6); box-shadow: calc(var(--vx) * 1) calc(var(--vx) * 1.25) 0 var(--vx-shadow); }
.vx-toast:not([data-vx-live])[data-vx-kind="done"] { border-color: var(--vx-leaf); }
.vx-toast:not([data-vx-live])[data-vx-kind="failed"] { border-color: var(--vx-brick); }

/* ---------- Block ---------- */

.vx-block { display: inline-block; inline-size: calc(var(--vx) * 12); block-size: calc(var(--vx) * 12); }
.vx-block:not([data-vx-live]) { background: var(--vx-chalk); box-shadow: calc(var(--vx) * 1) calc(var(--vx) * 1.25) 0 var(--vx-shadow); }
.vx-block:not([data-vx-live])[data-vx-material="enamel"] { background: var(--vx-enamel); }
.vx-block:not([data-vx-live])[data-vx-material="signal"] { background: var(--vx-signal); }
.vx-block:not([data-vx-live])[data-vx-material="slate"] { background: var(--vx-slate); }
.vx-block:not([data-vx-live])[data-vx-material="steel"] { background: var(--vx-steel); }
.vx-block:not([data-vx-live])[data-vx-material="walnut"] { background: var(--vx-walnut); }
.vx-block:not([data-vx-live])[data-vx-material="leaf"] { background: var(--vx-leaf); }
.vx-block:not([data-vx-live])[data-vx-material="brick"] { background: var(--vx-brick); }

/* ---------- Legends: the words on keys ---------- */

:is(.vx-button, .vx-tabs > [role="tab"], .vx-menu [role^="menuitem"]) {
  font-family: var(--vx-key-font); font-size: var(--vx-key-size); letter-spacing: 0;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
:is(.vx-button, .vx-tabs > [role="tab"]) { line-height: 1; white-space: nowrap; } /* a key carries one line */
.vx-tabs[data-vx-size="small"] > [role="tab"] { font-size: var(--vx-key-size); }

/* ---------- Lettering: a sign, or a heading ---------- */

:is(.vx-sign, .vx-lettering) { display: block; margin: 0; max-inline-size: 100%; -webkit-tap-highlight-color: transparent; }
/* With voxels: a thumb moving up or down still scrolls the page; sideways is left to the part. */
:is(.vx-sign, .vx-lettering)[data-vx-live] { font-size: 0; line-height: 0; color: transparent; cursor: pointer; touch-action: pan-y pinch-zoom; }
/* The words are still text. They sit in a transparent box of the same glyphs, laid over the
   voxel letters, so they can be selected, copied and found. The part sets what it chose: the
   glyph set, the voxels per cell (--_s), the cells between glyphs (--_gap, which a flat line
   carries at its end and the voxels do not), the line height and the board's margin. */
.vx-lettering-text {
  position: absolute; inset-block-start: 0; inset-inline-start: 0; box-sizing: border-box;
  inline-size: calc(100% + var(--vx) * var(--_gap, 0) * var(--_s, 1));
  padding: calc(var(--vx) * var(--_pt, 0)) calc(var(--vx) * var(--_pi, 0)) 0;
  font: 400 calc(var(--vx) * 10 * var(--_s, 1))/var(--_lh, 1.5) "Vox Block", var(--vx-font); font-synthesis: none; letter-spacing: 0;
  text-box: trim-both cap alphabetic; white-space: normal; text-wrap: wrap; color: transparent;
  user-select: text; -webkit-user-select: text;
}
/* While lettering is being brushed nothing on the page can be selected: the same drag would
   otherwise go on selecting, in the lettering's own text too. */
:root[data-vx-brushing], :root[data-vx-brushing] * { user-select: none !important; -webkit-user-select: none !important; }
.vx-lettering-text[data-vx-caps] { text-transform: uppercase; }
.vx-lettering-text[data-vx-set="sign"] { font-family: "Vox Sign", var(--vx-font); }
:is(.vx-sign, .vx-lettering):not([data-vx-board="none"]) > .vx-lettering-text { text-align: center; }
.vx-lettering-text::selection, .vx-lettering-text ::selection { color: transparent; background: color-mix(in oklab, var(--vx-link) 38%, transparent); }
:is(.vx-sign, .vx-lettering):not([data-vx-board="none"]) > .vx-lettering-text::selection, :is(.vx-sign, .vx-lettering):not([data-vx-board="none"]) > .vx-lettering-text ::selection { background: color-mix(in oklab, white 40%, transparent); }
/* The plain version is the same glyphs as a flat font, one voxel per cell: ten cells to the em,
   so the size is ten voxels times the scale, and the box is trimmed to the cap line and the
   baseline, which is exactly the box the voxels are given. Nothing moves when they arrive. */
:is(.vx-sign, .vx-lettering):not([data-vx-live]) {
  --_s: 1; cursor: default; color: var(--vx-ink);
  font: 400 calc(var(--vx) * 10 * var(--_s))/1.5 "Vox Block", var(--vx-font); font-synthesis: none; letter-spacing: 0; text-transform: uppercase; text-wrap: balance;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-box: trim-both cap alphabetic;
}
/* A flat glyph carries the gap that follows it, so a line is one gap wider than its voxels and
   would wrap a word early. The box gives that gap back (two cells in Vox Block, one in Vox Sign). */
:is(.vx-sign, .vx-lettering)[data-vx-board="none"]:not([data-vx-live]) { --_gap: 2; margin-inline-end: calc(var(--vx) * -1 * var(--_gap) * var(--_s)); max-inline-size: none; }
:is(.vx-sign, .vx-lettering)[data-vx-board="none"][data-vx-font^="sign"]:not([data-vx-live]) { --_gap: 1; }
:is(.vx-sign, .vx-lettering)[data-vx-scale="2"]:not([data-vx-live]) { --_s: 2; }
:is(.vx-sign, .vx-lettering)[data-vx-scale="3"]:not([data-vx-live]) { --_s: 3; }
:is(.vx-sign, .vx-lettering)[data-vx-font^="sign"]:not([data-vx-live]) { font-family: "Vox Sign", var(--vx-font); line-height: 1; }
/* A board: the lettering, a margin and a frame one voxel in. Plain, it cannot ask the script which
   glyph set fits its column, so it starts in Vox Sign, which fits a phone. A page that knows its
   own word sets the wider steps itself with a container query (the showcase does). */
:is(.vx-sign, .vx-lettering):not([data-vx-board="none"]):not([data-vx-live]) {
  display: inline-block; inline-size: fit-content; white-space: nowrap; padding: calc(var(--vx) * 4); padding-inline-end: calc(var(--vx) * 3);
  font-family: "Vox Sign", var(--vx-font); line-height: 1;
  background: var(--vx-enamel); color: var(--vx-signal);
  box-shadow: inset 0 0 0 var(--vx) var(--vx-enamel), inset 0 0 0 calc(var(--vx) * 2) var(--vx-signal), calc(var(--vx) * 1.5) calc(var(--vx) * 2) 0 var(--vx-shadow);
}

@media (prefers-reduced-motion: reduce) {
  .vx-switch:not([data-vx-live])::after,
  [data-vx-look="lit"] .vx-switch:not([data-vx-live])::after,
  [data-vx-look="lit"] .vx-switch:not([data-vx-live])::before { transition: none; }
}

/* ============================================================================================
   The lit look: one system of depth and light. Put data-vx-look="lit" on <html> (or on any
   element, for what is inside it). Its parts are drawn in src/looks/lit.js with the tools in
   src/core/light.js. A theme (theme('rose') from the script) sets the --lit-*-day and
   --lit-*-night tokens read here; without one the theme is Bay.
   ============================================================================================ */

[data-vx-look="lit"] {
  --vx-look: lit;
  --vx-bubble-deep: 4;
  --vx-ground: #e9e7e0;
  --vx-ink: #1b1d2a;
  --vx-ink-quiet: #5a5d6e;
  --vx-enamel: var(--lit-cap-day, #174ec6);
  --vx-enamel-top: color-mix(in oklab, var(--vx-enamel), #fff 22%);
  --vx-enamel-side: color-mix(in oklab, var(--vx-enamel), #000 20%);
  --vx-on-enamel: #ffffff;
  --vx-signal: var(--lit-accent-day, #388de6);
  --vx-signal-top: color-mix(in oklab, var(--vx-signal), #fff 22%);
  --vx-signal-side: color-mix(in oklab, var(--vx-signal), #000 20%);
  --vx-on-signal: #101421;
  --vx-chalk: #e9dcc5;
  --vx-chalk-top: #fffdf6;
  --vx-chalk-side: #d5d1c2;
  --vx-slate: #9f998a;
  --vx-slate-side: #bdb9ab;
  --vx-steel: #cfcbbd;
  --vx-key: #f2ebda;
  --vx-floor: #c8bda7;
  --vx-knob: #fffefa;
  --vx-shadow: rgb(41 33 26 / 0.24);
  --vx-focus: var(--lit-cap-day, #174ec6);
  --vx-link: var(--lit-link-day, #1f40c4);
  --vx-danger-text: #9c1f14;
  --lit-accent: var(--lit-accent-day, #388de6);
  --lit-legend: var(--vx-ink);
  --lit-warm: #b97a00;
  --lit-go: #0d7a3a;
  --lit-stop: #c5301c;
  --lit-night: 0; /* 1 at night: what shines only then is multiplied by it */
}
:root[data-theme="dark"]:not([data-shell])[data-vx-look="lit"], :root[data-theme="dark"]:not([data-shell]) [data-vx-look="lit"] {
  --vx-ground: #08090f;
  --vx-ink: #e8eaf4;
  --vx-ink-quiet: #d1d5e3;
  --vx-enamel: var(--lit-cap-night, #315aca);
  --vx-signal: var(--lit-accent-night, #458fe3);
  --vx-chalk: #23313b;
  --vx-chalk-top: #252938;
  --vx-chalk-side: #10121c;
  --vx-slate: #283038;
  --vx-slate-side: #090a12;
  --vx-steel: #262938;
  --vx-key: #505966;
  --vx-floor: #141a1f;
  --vx-knob: #d7dbf0;
  --vx-shadow: rgb(0 0 5 / 0.6);
  --vx-focus: var(--lit-link-night, #9db8ff);
  --vx-link: var(--lit-link-night, #9db8ff);
  --vx-danger-text: #ffb3a8;
  --lit-accent: var(--lit-accent-night, #458fe3);
  --lit-legend: var(--lit-legend-night, #dfe8ff);
  --lit-warm: #c9a264;
  --lit-go: #5fe894;
  --lit-stop: #ff7a66;
  --lit-night: 1;
}
/* an instrument (data-shell) has its own night: its night enclosure, in css/fittings.css */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"], [data-shell])[data-vx-look="lit"], :root:not([data-theme="light"], [data-shell]) [data-vx-look="lit"] {
    --vx-ground: #08090f;
    --vx-ink: #e8eaf4;
    --vx-ink-quiet: #d1d5e3;
    --vx-enamel: var(--lit-cap-night, #315aca);
    --vx-signal: var(--lit-accent-night, #458fe3);
    --vx-chalk: #23313b;
    --vx-chalk-top: #252938;
    --vx-chalk-side: #10121c;
    --vx-slate: #283038;
    --vx-slate-side: #090a12;
    --vx-steel: #262938;
    --vx-key: #505966;
    --vx-floor: #141a1f;
    --vx-knob: #d7dbf0;
    --vx-shadow: rgb(0 0 5 / 0.6);
    --vx-focus: var(--lit-link-night, #9db8ff);
    --vx-link: var(--lit-link-night, #9db8ff);
    --vx-danger-text: #ffb3a8;
    --lit-accent: var(--lit-accent-night, #458fe3);
    --lit-legend: var(--lit-legend-night, #dfe8ff);
    --lit-warm: #c9a264;
    --lit-go: #5fe894;
    --lit-stop: #ff7a66;
    --lit-night: 1;
  }
}

/* The case shoulder occupies its own box above the cover in both rendering modes.
   The canvas is positioned from the inside edge of this border. */
[data-vx-look="lit"] .vx-card { border-top: calc(var(--vx) * 7) solid transparent; }
@media (max-width: 600px) {
  [data-vx-look="lit"] .vx-card { border-top-width: calc(var(--vx) * 4); }
}

/* ---------- lit: keys ---------- */

/* An ordinary key is the colour of the surface's own material; data-vx-kind="main" is the one
   main action of a group (the accent cap); data-vx-kind="danger" destroys something (a red light). */
[data-vx-look="lit"] .vx-button { --_face: var(--vx-key); --_top: var(--vx-chalk-top); --_side: var(--vx-chalk-side); --_on: var(--lit-legend); font-weight: 400; }
[data-vx-look="lit"] .vx-button:is([data-vx-kind="main"], [data-vx-material="enamel"]) { --_face: var(--vx-enamel); --_top: var(--vx-enamel-top); --_side: var(--vx-enamel-side); --_on: var(--vx-on-enamel); }
[data-vx-look="lit"] .vx-button:is([data-vx-kind="danger"], [data-vx-material="brick"]) { --_on: var(--vx-danger-legend, var(--vx-danger-text)); }
[data-vx-look="lit"] .vx-button:is([data-vx-kind="danger"], [data-vx-material="brick"]):not([data-vx-live]) { --_on: var(--vx-danger-legend, var(--vx-danger-text)); }
[data-vx-look="lit"] .vx-button:is(:disabled, [aria-disabled="true"]) { --_face: var(--vx-steel); --_top: var(--vx-steel); --_side: var(--vx-steel); --_on: var(--vx-ink-quiet); }
[data-vx-look="lit"] .vx-button:focus-visible { outline-offset: calc(var(--vx) * 2); }
/* at night the legend shines through, and flares with the light as the key goes down (--lit is
   set by the part, 0 to 1) */
[data-vx-look="lit"] .vx-button[data-vx-live]:not(:disabled) .vx-label {
  text-shadow: 0 0 calc((6px + var(--lit, 0) * 10px) * var(--lit-night)) color-mix(in oklab, var(--lit-accent), transparent calc(100% - var(--lit-night) * (55% + var(--lit, 0) * 40%)));
}
[data-vx-look="lit"] .vx-button[data-vx-live]:is([data-vx-kind="main"], [data-vx-material="enamel"]):not(:disabled) .vx-label {
  text-shadow: 0 0 calc((4px + var(--lit, 0) * 10px) * var(--lit-night)) rgb(255 255 255 / calc(var(--lit-night) * (0.35 + var(--lit, 0) * 0.5)));
}
[data-vx-look="lit"] .vx-tabs > [role="tab"] { color: var(--vx-ink); font-weight: 400; }
/* The short reading face leaves a fixed row for the latch mechanism. */
[data-vx-look="lit"] :is(.vx-tabs[data-vx-live] [role="tab"], .vx-toggle-button[data-vx-live], .vx-toggle-group[data-vx-live] > label, .vx-pagination-pages[data-vx-live] a) > .vx-label { position: relative; top: calc(-1 * var(--vx)); }
[data-vx-look="lit"] .vx-tabs > [role="tab"] .vx-label { padding-block-start: 0; }
[data-vx-look="lit"] .vx-tabs > [role="tab"][aria-selected="true"] { color: var(--lit-legend); }
[data-vx-look="lit"] .vx-tabs:not([data-vx-live]) > [role="tab"][aria-selected="true"] { background: var(--vx-key); color: var(--vx-ink); box-shadow: inset 0 calc(var(--vx) * -0.5) 0 var(--lit-accent); }
/* slim (a page that says data-vx-look="slim"): the lit seat's indicator lens lies three voxels
   above the seat's foot, so the legend sits on a line of its own above that strip, with room
   either side of it. Seats share the tray's width and never push past it: a legend too long
   for its seat ends in an ellipsis. */
[data-vx-look="slim"] .vx-tabs { max-inline-size: 100%; grid-auto-columns: minmax(0, 1fr); }
[data-vx-look="slim"] .vx-tabs > [role="tab"] {
  min-block-size: calc(var(--vx) * 14); min-inline-size: 0;
  padding: calc(var(--vx) * 1) calc(var(--vx) * 5) calc(var(--vx) * 4);
  font-weight: 400; overflow: hidden; text-overflow: ellipsis;
}
[data-vx-look="slim"] .vx-tabs[data-vx-size="small"] > [role="tab"] { padding-inline: calc(var(--vx) * 4); }
[data-vx-look="slim"] .vx-tabs > [role="tab"] .vx-label { padding-block-start: 0; max-inline-size: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: top; }
[data-vx-look="slim"] .vx-tabs > [role="tab"]:not([aria-selected="true"]) { color: var(--vx-ink-quiet); }

/* ---------- lit: groove, lamp, recess, pointer ---------- */

/* Groove: a thin lit channel that parts what is on one surface. data-vx-way="down" stands it up. */
.vx-groove { position: relative; isolation: isolate; display: block; flex: none; block-size: var(--vx); border: 0; margin: 0; overflow: visible; }
.vx-groove[data-vx-way="down"] { block-size: auto; inline-size: var(--vx); align-self: stretch; }
.vx-groove:not([data-vx-live]) { background: color-mix(in oklab, var(--lit-warm, var(--vx-steel)) 55%, transparent); }
.vx-groove[data-vx-light="accent"]:not([data-vx-live]) { background: var(--lit-accent, var(--vx-enamel)); }
/* a row lens: smoked and unlit until its row is the current one */
.vx-groove[data-vx-lens]:not([data-vx-live]) { background: color-mix(in oklab, var(--vx-ink) 62%, var(--vx-slate)); }
:is(li, a, [role="option"], [role="tab"])[aria-current]:not([aria-current="false"]) > .vx-groove[data-vx-lens]:not([data-vx-live]),
[aria-selected="true"] > .vx-groove[data-vx-lens]:not([data-vx-live]) { background: var(--lit-accent, var(--vx-enamel)); }

/* Lamp: a small light that says a state. data-vx-light: go (the default), stop, warm, accent. */
.vx-lamp { position: relative; isolation: isolate; display: inline-block; flex: none; inline-size: calc(var(--vx) * 2); block-size: calc(var(--vx) * 2); }
.vx-lamp:not([data-vx-live]) { background: var(--lit-go, var(--vx-leaf)); }
.vx-lamp[data-vx-light="stop"]:not([data-vx-live]) { background: var(--lit-stop, var(--vx-brick)); }
.vx-lamp[data-vx-light="warm"]:not([data-vx-live]) { background: var(--lit-warm, var(--vx-steel)); }
.vx-lamp[data-vx-light="accent"]:not([data-vx-live]) { background: var(--lit-accent, var(--vx-enamel)); }

/* Recess: a level below the surface for what is read as set apart (a log, code). */
.vx-recess { position: relative; isolation: isolate; display: block; }
.vx-recess:not([data-vx-live]) { background: var(--vx-floor, var(--vx-chalk)); box-shadow: inset 0 0 0 var(--vx) var(--vx-slate); }

/* Pointer: an arrow of the same voxels. Move it with CSS translate; data-on shows it. */
.vx-cursor { position: absolute; z-index: 40; inset-block-start: 0; inset-inline-start: 0; inline-size: calc(var(--vx) * 8); block-size: calc(var(--vx) * 13); pointer-events: none; isolation: isolate; opacity: 0; transition: opacity 240ms var(--vx-ease-out); }
.vx-cursor[data-on] { opacity: 1; }
.vx-cursor:not([data-vx-live]) { display: none; }

/* ---------- lit: wells ---------- */

[data-vx-look="lit"] .vx-well[data-vx-live]:has(:focus-visible) { outline: 0; } /* the rim's own light is the focus */
[data-vx-look="lit"] .vx-well :is(input, textarea) { caret-color: var(--lit-accent); }
[data-vx-look="lit"] .vx-well:not([data-vx-live]) { background: var(--vx-floor); }

@media (prefers-reduced-motion: reduce) {
  .vx-cursor { transition: none; }
}

/* ==== css/accordion.css ==== */

/* ---------- Accordion ---------- */

/* Rows of words with a chevron, parted by grooves; what opens is on the same surface. Each row is
   the browser's own <details>, so it opens with no script, by keyboard, and when find-in-page
   lands on words inside it. The same `name` on every <details> keeps one open at a time.
     <div class="vx-accordion">
       <details name="faq" open><summary>What a deploy does</summary><p>…</p></details>
       <div class="vx-groove"></div>
       <details name="faq"><summary>…</summary><p>…</p></details>
     </div> */
.vx-accordion { position: relative; isolation: isolate; display: grid; font-family: var(--vx-font); color: var(--vx-ink); }
.vx-accordion > details { min-inline-size: 0; interpolate-size: allow-keywords; }
.vx-accordion > details > summary {
  display: flex; align-items: center; justify-content: space-between; gap: calc(var(--vx) * 4);
  box-sizing: border-box; min-block-size: calc(var(--vx) * 11); padding-block: calc(var(--vx) * 2.5);
  font-weight: 600; font-size: 1rem; line-height: calc(var(--vx) * 6); overflow-wrap: anywhere;
  list-style: none; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
}
.vx-accordion > details > summary::-webkit-details-marker { display: none; }
.vx-accordion > details > summary:focus-visible { outline: 2px solid var(--vx-focus); outline-offset: calc(var(--vx) * 0.5); }
/* The chevron: seven cells of half a voxel, lying on the surface. It turns over when the row is open. */
.vx-accordion > details > summary::after {
  --_c: calc(var(--vx) / 2);
  content: ""; flex: none; inline-size: calc(var(--_c) * 7); block-size: calc(var(--_c) * 4);
  color: var(--vx-ink-quiet);
  background:
    linear-gradient(currentColor 0 0) 0 0,
    linear-gradient(currentColor 0 0) calc(var(--_c) * 6) 0,
    linear-gradient(currentColor 0 0) var(--_c) var(--_c),
    linear-gradient(currentColor 0 0) calc(var(--_c) * 5) var(--_c),
    linear-gradient(currentColor 0 0) calc(var(--_c) * 2) calc(var(--_c) * 2),
    linear-gradient(currentColor 0 0) calc(var(--_c) * 4) calc(var(--_c) * 2),
    linear-gradient(currentColor 0 0) calc(var(--_c) * 3) calc(var(--_c) * 3);
  background-size: var(--_c) var(--_c); background-repeat: no-repeat;
  transition: transform 180ms var(--vx-ease-out);
}
.vx-accordion > details > summary:hover::after { color: var(--vx-ink); }
.vx-accordion > details[open] > summary::after { transform: scaleY(-1); }

/* What opens: words on the surface. The space under it is the last thing's own padding, so the
   row closes to exactly its summary. */
.vx-accordion > details > :not(summary) { margin: 0; line-height: calc(var(--vx) * 6); max-inline-size: 68ch; text-wrap: pretty; }
.vx-accordion > details > :not(summary) + :not(summary) { margin-block-start: calc(var(--vx) * 2); }
.vx-accordion > details > :not(summary):last-child { padding-block-end: calc(var(--vx) * 4); }

/* It opens and closes over a fifth of a second where the browser can (the page below slides, it
   does not jump); elsewhere, and under reduced motion, at once. */
.vx-accordion > details::details-content {
  block-size: 0; overflow: clip;
  transition: block-size 220ms var(--vx-ease-out), content-visibility 220ms allow-discrete;
}
.vx-accordion > details[open]::details-content { block-size: auto; }

@media (prefers-reduced-motion: reduce) {
  .vx-accordion > details::details-content, .vx-accordion > details > summary::after { transition: none; }
}

/* ==== css/alert-dialog.css ==== */

/* ---------- Alert dialog ---------- */

/* The kit's dialog (dialog.vx-dialog), asking before something is destroyed. It is drawn and
   behaves as the dialog does: the kit's dialog part adopts it. What makes it an alert dialog is
   in its markup:
     <button class="vx-button" data-vx-kind="danger" id="open-delete">Delete project</button>
     <dialog class="vx-dialog vx-alert-dialog" role="alertdialog" aria-labelledby="h" aria-describedby="p">
       <header id="h">Delete harbor-api?</header>
       <div class="vx-dialog-body"><p id="p">Its deploys go with it. This cannot be undone.</p></div>
       <footer>
         <button class="vx-button" data-vx-close="cancel" autofocus>Keep it</button>
         <button class="vx-button" data-vx-kind="danger" data-vx-close="delete">Delete harbor-api</button>
       </footer>
     </dialog>
   Opened with showModal(). role="alertdialog"; `autofocus` on the key that destroys nothing,
   so the focus starts there (the browser's own, with or without script); the key that
   destroys is data-vx-kind="danger", an ordinary cap on a red light, and stands last. No
   data-vx-light-dismiss: a press outside does nothing, it must be answered. Escape is the
   answer "cancel". Closing, it breaks, as every dialog of the kit does.
   This file only makes it narrower than a dialog with a form in it: it holds a question. */

dialog.vx-alert-dialog { inline-size: min(calc(var(--vx) * 100), calc(100vw - 32px)); }

/* ==== css/aspect-ratio.css ==== */

/* ---------- Aspect ratio ----------
   Layout only: a place that keeps its shape whatever its width, and what is in it fills it.
   Tool: none. No voxels, no script, nothing drawn.
     <div class="vx-ratio" data-vx-ratio="16:9"><img src="…" alt="…"></div>
   data-vx-ratio: 1:1, 4:3, 3:2, 16:9 (the default), 21:9, and the upright 3:4, 2:3, 9:16.
   Any other shape: style="--vx-ratio: 5 / 2".
   An <img> or <video> in it is cropped to fill (object-fit: cover); data-vx-fit="contain" shows
   all of it instead. An inline <svg> fills by its own preserveAspectRatio.
   It is the picture's shape, not its frame: to set a picture in a recess, put the .vx-ratio
   inside the .vx-recess, not on it. */

.vx-ratio {
  position: relative;
  display: block;
  box-sizing: border-box;
  aspect-ratio: var(--vx-ratio, 16 / 9);
  inline-size: 100%; /* as wide as its place: what is in it gives it no width of its own */
  min-inline-size: 0;
  max-inline-size: 100%;
  padding: 0; /* padding would be part of the shape: put it on what is inside */
  line-height: normal;
}
.vx-ratio[data-vx-ratio="1:1"] { --vx-ratio: 1 / 1; }
.vx-ratio[data-vx-ratio="4:3"] { --vx-ratio: 4 / 3; }
.vx-ratio[data-vx-ratio="3:2"] { --vx-ratio: 3 / 2; }
.vx-ratio[data-vx-ratio="16:9"] { --vx-ratio: 16 / 9; }
.vx-ratio[data-vx-ratio="21:9"] { --vx-ratio: 21 / 9; }
.vx-ratio[data-vx-ratio="3:4"] { --vx-ratio: 3 / 4; }
.vx-ratio[data-vx-ratio="2:3"] { --vx-ratio: 2 / 3; }
.vx-ratio[data-vx-ratio="9:16"] { --vx-ratio: 9 / 16; }

/* what is in it is laid over the whole of it, so nothing it holds can change its shape */
.vx-ratio > * { position: absolute; inset: 0; box-sizing: border-box; inline-size: 100%; block-size: 100%; max-inline-size: none; margin: 0; }
.vx-ratio > :is(img, video), .vx-ratio > picture > img { object-fit: cover; object-position: center; }
.vx-ratio[data-vx-fit="contain"] > :is(img, video), .vx-ratio[data-vx-fit="contain"] > picture > img { object-fit: contain; }
.vx-ratio > picture > img { display: block; inline-size: 100%; block-size: 100%; }
.vx-ratio > iframe { border: 0; }

/* ==== css/attachment.css ==== */

/* ---------- Attachment ---------- */

/* A file on a message, or waiting in the composer: a low tile with its name and its size on it,
   and, where it can be taken away, the kit's close key beside it. Removed, it shatters.
   Markup: <ul class="vx-attachments" aria-label="Attached files" data-vx-return="attach">
             <li class="vx-attachment">
               <span class="vx-attachment-tile">
                 <span class="vx-attachment-name">build-214.log</span>
                 <span class="vx-attachment-size">Log, 48 KB</span>
               </span>
               <button class="vx-button vx-close" type="button" aria-label="Remove build-214.log">×</button>
             </li>
           </ul>
   The name and the size are words, and the key is named for what it removes. The second line
   may say a state instead, in words, with a lamp before them:
     <span class="vx-attachment-size"><span class="vx-lamp" data-vx-light="stop" aria-hidden="true"></span>Too large: 31 MB of 25</span>
   A name too long for the tile is cut short with an ellipsis; give the whole of it in title.
   data-vx-return on the list is the id of what takes focus when the last file is removed. */

.vx-attachments { display: flex; flex-wrap: wrap; align-items: center; gap: calc(var(--vx) * 2) calc(var(--vx) * 3); box-sizing: border-box; min-inline-size: 0; margin: 0; padding: 0; list-style: none; }
.vx-attachments:focus-visible { outline: 2px solid var(--vx-focus); outline-offset: calc(var(--vx) * 1); }
.vx-attachment { display: inline-flex; align-items: center; min-inline-size: 0; max-inline-size: 100%; font-family: var(--vx-font); color: var(--vx-ink); }

/* the tile: two lines (five voxels and four) and a voxel above and below: eleven voxels, as
   tall as a key's target, so the key beside it stands level with it */
.vx-attachment-tile {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  box-sizing: border-box;
  min-inline-size: calc(var(--vx) * 20);
  max-inline-size: calc(var(--vx) * 64);
  min-block-size: calc(var(--vx) * 11);
  padding: calc(var(--vx) * 1) calc(var(--vx) * 4);
}
.vx-attachment-name { overflow: hidden; font-size: 0.9375rem; font-weight: 600; line-height: calc(var(--vx) * 5); white-space: nowrap; text-overflow: ellipsis; color: inherit; }
a.vx-attachment-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a.vx-attachment-name:focus-visible { outline: 2px solid var(--vx-focus); outline-offset: -2px; }
.vx-attachment-size { display: flex; align-items: center; gap: calc(var(--vx) * 2); overflow: hidden; font-size: 0.8125rem; line-height: calc(var(--vx) * 4); white-space: nowrap; text-overflow: ellipsis; color: var(--vx-ink-quiet); font-variant-numeric: tabular-nums; }

/* the key stands a voxel from the tile: its own margin is two, and one is taken back */
.vx-attachment > .vx-button.vx-close { margin-inline-start: calc(var(--vx) * 1); }

/* going: its words go at once, and nothing in it answers a press while the bricks fall */
.vx-attachment[data-vx-leaving] { pointer-events: none; }
.vx-attachment[data-vx-leaving] :is(.vx-attachment-name, .vx-attachment-size, .vx-label) { opacity: 0; transition: opacity 100ms ease; }
.vx-attachment[data-vx-leaving] .vx-button:not([data-vx-live]) { visibility: hidden; }

/* plain: a painted plate with its shadow */
.vx-attachment-tile:not([data-vx-live]) { background: var(--vx-reading-plate, var(--vx-key, var(--vx-chalk-top))); box-shadow: calc(var(--vx) * 0.75) calc(var(--vx) * 0.75) 0 var(--vx-shadow); }
.vx-attachment[data-vx-leaving] .vx-attachment-tile:not([data-vx-live]) { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  .vx-attachment[data-vx-leaving] :is(.vx-attachment-name, .vx-attachment-size, .vx-label) { transition: none; }
}

/* ==== css/avatar.css ==== */

/* ---------- Avatar ---------- */

/* A picture or initials set in a small window, lit from its rim.
   Markup: <span class="vx-avatar"><img src="mina.jpg" alt="Mina Okafor"></span>
           <span class="vx-avatar" role="img" aria-label="Ada Lindqvist"><span class="vx-avatar-initials" aria-hidden="true">AL</span></span>
           <span class="vx-avatar"><img src="…" alt="Tomas Reyes"><span class="vx-avatar-initials" aria-hidden="true">TR</span></span>
             a picture with initials behind it: they show if the picture cannot be had
           <span class="vx-avatar-stack" role="group" aria-label="Reviewers">…avatars…<span class="vx-avatar-more">+3<span class="vx-avatar-aloud"> more</span></span></span>
   The name is said once: by the picture's alt, or by the well's own label where there are only
   initials. data-vx-size: small (8 voxels), large (14); 10 without. */

.vx-avatar {
  --_size: calc(var(--vx) * 10);
  /* how much of the opening the wall takes: half a voxel for each voxel the well is deep. The
     part sets --vx-avatar-deep from the look; a well is two deep without it. */
  --_wall: calc(var(--vx) * var(--vx-avatar-deep, 2) / 2);
  position: relative;
  isolation: isolate;
  display: inline-block;
  flex: none;
  box-sizing: border-box;
  inline-size: var(--_size);
  block-size: var(--_size);
  font-family: var(--vx-font);
  font-size: 0.875rem;
  color: var(--vx-ink);
  vertical-align: middle;
  user-select: none;
}
.vx-avatar[data-vx-size="small"] { --_size: calc(var(--vx) * 8); font-size: 0.75rem; }
.vx-avatar[data-vx-size="large"] { --_size: calc(var(--vx) * 14); font-size: 1.125rem; }

/* What is in the well lies on its floor. The floor is seen up and to the left of the opening,
   and the wall shows along the right and the bottom, whichever way the page reads: that is the
   way the kit is looked at, not the way it is written, so these are left, top, right, bottom. */
.vx-avatar > :is(img, svg, .vx-avatar-initials) { position: absolute; top: 0; left: 0; right: var(--_wall); bottom: var(--_wall); }
.vx-avatar > :is(img, svg) { display: block; inline-size: calc(100% - var(--_wall)); block-size: calc(100% - var(--_wall)); object-fit: cover; }
.vx-avatar-initials { display: grid; place-items: center; font-weight: 600; line-height: 1; letter-spacing: 0.02em; }
/* a picture lies over the initials; one that cannot be had is taken away, and they show */
.vx-avatar > img ~ .vx-avatar-initials { visibility: hidden; }
.vx-avatar[data-vx-empty] > img { display: none; }
.vx-avatar[data-vx-empty] > .vx-avatar-initials { visibility: visible; }
/* the rim's shadow lies on a picture as it lies on the floor round initials: the voxels cannot
   draw on what is in front of them, so it is painted here, as wide as theirs */
.vx-avatar[data-vx-live]:has(> :is(img, svg)):not([data-vx-empty])::after { content: ""; position: absolute; top: 0; left: 0; right: var(--_wall); bottom: var(--_wall); box-shadow: inset calc(var(--vx) * 0.5) calc(var(--vx) * 0.5) 0 var(--vx-shadow); pointer-events: none; }

/* plain: a painted floor, and the wall along the right and the bottom */
.vx-avatar:not([data-vx-live]) { background: var(--vx-floor, var(--vx-chalk)); box-shadow: inset calc(var(--_wall) * -1) calc(var(--_wall) * -1) 0 var(--vx-slate); }

/* a short stack: wells side by side, then how many more as words */
.vx-avatar-stack { display: inline-flex; flex-wrap: wrap; align-items: center; gap: calc(var(--vx) * 2); vertical-align: middle; }
.vx-avatar-more { margin-inline-start: calc(var(--vx) * 1); font: 600 0.875rem/1.3 var(--vx-font); color: var(--vx-ink-quiet); font-variant-numeric: tabular-nums; }
.vx-avatar-aloud { position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ==== css/badge.css ==== */

/* ---------- Badge ---------- */

/* A lamp and a word. A count is words. No box: a badge is read, not pressed, so nothing of it
   stands up. The lamp is the kit's own (.vx-lamp); its light says the state (go: done or live,
   stop: failed, accent: at work), and the word says it again, so the colour is never the only
   sign. A state that is none of these (paused, a draft) has no lamp: the warm light is the
   room's own and says nothing.
   Markup: <span class="vx-badge"><span class="vx-lamp" data-vx-light="go"></span>Live</span>
           <span class="vx-badge">12<span class="vx-badge-aloud"> unread</span></span>   a count */

.vx-badge {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--vx) * 2);
  min-inline-size: 0;
  font-family: var(--vx-font);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: calc(var(--vx) * 5);
  font-variant-numeric: tabular-nums;
  color: var(--vx-ink-quiet);
  vertical-align: middle;
  overflow-wrap: anywhere;
}
/* the lamp stays on the first line when a long word wraps under it */
.vx-badge > .vx-lamp { align-self: flex-start; margin-block-start: calc(var(--vx) * 1.5); }
/* beside a title, or wherever it is the thing being read */
.vx-badge[data-vx-size="large"] { font-size: 1rem; line-height: calc(var(--vx) * 6); }
.vx-badge[data-vx-size="large"] > .vx-lamp { margin-block-start: calc(var(--vx) * 2); }
/* words for a screen reader only: what a bare number counts */
.vx-badge-aloud { position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ==== css/breadcrumb.css ==== */

/* ---------- Breadcrumb ---------- */

/* Words parted by chevrons. None of the tools: no box, nothing raised.
   Markup: <nav class="vx-breadcrumb" aria-label="Breadcrumb">
             <ol>
               <li><a href="/">fogline</a></li>
               <li><a href="/projects">Projects</a></li>
               <li><a href="/projects/harbor-api" aria-current="page">harbor-api</a></li>
             </ol>
           </nav>
   The last one is where you are: aria-current="page", on a link or on a plain span.
   A long trail wraps onto more lines; a long name breaks inside itself. To shorten a trail, leave
   the middle out and say so: <li><span class="vx-breadcrumb-more">…</span></li>. */

.vx-breadcrumb {
  display: block;
  min-inline-size: 0;
  font-family: var(--vx-font);
  font-size: 0.9375rem;
  line-height: 1.35;
  color: var(--vx-ink-quiet);
}
.vx-breadcrumb > ol { display: flex; flex-wrap: wrap; align-items: center; column-gap: calc(var(--vx) * 2); margin: 0; padding: 0; list-style: none; }
.vx-breadcrumb li { display: inline-flex; align-items: center; gap: calc(var(--vx) * 2); min-inline-size: 0; }
.vx-breadcrumb li { min-block-size: calc(var(--vx) * 11); }
.vx-breadcrumb :is(a, [aria-current], .vx-breadcrumb-more) { display: inline-flex; align-items: center; min-inline-size: 0; overflow-wrap: anywhere; }
.vx-breadcrumb a { position: relative; color: inherit; font-weight: 500; text-decoration: none; -webkit-tap-highlight-color: transparent; }
/* a link's target is 11 voxels high, whatever the size of its words: it reaches above and below
   them, so the focus ring can keep to the words */
.vx-breadcrumb a::after { content: ""; position: absolute; inset-inline: 0; inset-block: min(0px, calc(50% - var(--vx) * 5.5)); }
.vx-breadcrumb a[href]:hover { color: var(--vx-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.vx-breadcrumb a:focus-visible { outline: 2px solid var(--vx-focus); outline-offset: 2px; }
.vx-breadcrumb [aria-current]:not([aria-current="false"]) { color: var(--vx-ink); font-weight: 650; }
.vx-breadcrumb [aria-current]:not([aria-current="false"]):hover { text-decoration: none; }

/* the chevron: seven half-voxel cells high, cut like the kit's glyphs. It is drawn, not written,
   so nobody hears it read. It points the way the line runs. */
.vx-breadcrumb li + li::before {
  content: "";
  flex: none;
  inline-size: calc(var(--vx) * 2);
  block-size: calc(var(--vx) * 3.5);
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 7' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h1v1H0zM1 1h1v1H1zM2 2h1v1H2zM3 3h1v1H3zM2 4h1v1H2zM1 5h1v1H1zM0 6h1v1H0z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 7' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h1v1H0zM1 1h1v1H1zM2 2h1v1H2zM3 3h1v1H3zM2 4h1v1H2zM1 5h1v1H1zM0 6h1v1H0z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.vx-breadcrumb:dir(rtl) li + li::before { transform: scaleX(-1); }

/* words for a screen reader only: what the "…" stands for */
.vx-breadcrumb-aloud { position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ==== css/bubble.css ==== */

/* ---------- Bubble ---------- */

/* A message set as a bubble. Theirs is set a level into the surface; yours stands a voxel above
   it. No light on either: a bubble is read, not pressed.
   Markup: <div class="vx-bubble"><p>The words.</p></div>                      theirs
           <div class="vx-bubble" data-vx-from="me"><p>The words.</p></div>    yours
   In a message (.vx-message) it stands where the message's text would, and takes its side from
   the message; data-vx-from on the bubble itself wins. It is as wide as its words and no wider
   than its column, so on a phone it takes most of the width. Several in one message stand a
   voxel apart. */

.vx-bubble {
  /* how much of the opening the wall takes: half a voxel for each voxel the hole is deep. The
     part sets --vx-bubble-deep from the look; a well is two deep without it. */
  --_wall: calc(var(--vx) * var(--vx-bubble-deep, 2) / 2);
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  inline-size: fit-content;
  min-inline-size: calc(var(--vx) * 11);
  max-inline-size: min(100%, calc(var(--vx) * 132));
  margin: 0;
  /* Theirs: the floor is seen up and to the left of the opening, and the wall shows along the
     right and the bottom (the way the kit is looked at, whichever way the page reads), so the
     words keep that much further from those two edges. A line is six voxels: a bubble of one
     line is eleven voxels tall, and every edge is on the grid. */
  padding: calc(var(--vx) * 2) calc(var(--vx) * 4 + var(--_wall)) calc(var(--vx) * 2 + var(--_wall)) calc(var(--vx) * 4);
  font-family: var(--vx-font);
  font-size: 1rem;
  line-height: calc(var(--vx) * 6);
  color: var(--vx-ink);
  text-align: start;
  overflow-wrap: anywhere;
  user-select: text;
  -webkit-user-select: text;
}
.vx-bubble > * { margin: 0; }
/* (written this way, not "* + *": a card's own rule for paragraphs is stronger than that, and the
   voxels' canvas is a child of the bubble too) */
.vx-bubble > :not(.vx-canvas) ~ :not(.vx-canvas) { margin-block-start: calc(var(--vx) * 2); }
.vx-bubble a { color: var(--vx-link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.vx-bubble a:focus-visible { outline: 2px solid var(--vx-focus); outline-offset: 2px; }
.vx-bubble code { font: 400 0.875em/1 var(--vx-mono); }

/* yours: a plate a voxel high. Its face is the element's own box, so the words sit in its middle. */
.vx-bubble:is([data-vx-from="me"], .vx-message[data-vx-from="me"] .vx-bubble:not([data-vx-from])) { padding: calc(var(--vx) * 2.5) calc(var(--vx) * 4); }

/* in a message: bubbles one under another, a voxel apart */
.vx-bubble + .vx-bubble { margin-block-start: calc(var(--vx) * 1); }

/* plain: theirs is a painted floor with the wall along the right and the bottom; yours a painted
   plate with its shadow */
.vx-bubble:not([data-vx-live]) { background: var(--vx-floor, var(--vx-chalk)); box-shadow: inset calc(var(--_wall) * -1) calc(var(--_wall) * -1) 0 var(--vx-slate); }
.vx-bubble:is([data-vx-from="me"], .vx-message[data-vx-from="me"] .vx-bubble:not([data-vx-from])):not([data-vx-live]) { background: var(--vx-reading-plate, var(--vx-key, var(--vx-chalk-top))); box-shadow: calc(var(--vx) * 0.5) calc(var(--vx) * 0.5) 0 var(--vx-shadow); }

/* ==== css/button-group.css ==== */

/* ---------- Button group ---------- */

/* A bank of keys, read as one group. The keys are the kit's own (.vx-button); the group is how
   they sit together, and its name. On a narrow page the row wraps; it is never cut.
   They stand three voxels apart, the least that keeps them whole: a keycap is five voxels high,
   and its side and the light at its foot are drawn two and a half voxels left of and above its
   face. Nearer than that, each key would be drawn over the end of the one before it.
   Markup: <div class="vx-button-group" role="group" aria-label="History">
             <button class="vx-button" type="button">Undo</button> ...
           </div>
   data-vx-way="down" stands the keys in a column, all as wide as the widest. */
.vx-button-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: calc(var(--vx) * 3);
  max-inline-size: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  min-inline-size: 0; /* it may be a fieldset */
}
.vx-button-group[data-vx-way="down"] { flex-direction: column; flex-wrap: nowrap; }

/* ==== css/calendar.css ==== */

/* ---------- Calendar ---------- */

/* A month on the surface. The days are words in a grid of eleven-voxel cells; the chosen day is a
   key level with the surface, a range is a trench of light, today has a lamp under its number.
   Markup: <div class="vx-calendar"><input type="date" aria-label="Deploy on" value="2026-11-20"></div>
   The script makes the rest (a head with two keys and the month's name, and a grid of six weeks);
   with no script the input is the browser's own. */
.vx-calendar {
  display: inline-grid;
  max-inline-size: 100%;
  grid-template-columns: minmax(0, calc(var(--vx) * 77));
  gap: calc(var(--vx) * 3);
  font-family: var(--vx-font);
  color: var(--vx-ink);
  vertical-align: top;
}
.vx-calendar > input[type="date"] { justify-self: start; }

/* the head: previous, the month's name, next */
.vx-calendar-head { display: flex; align-items: center; gap: calc(var(--vx) * 2); }
.vx-calendar-head > .vx-button { flex: none; inline-size: calc(var(--vx) * 11); padding: 0; }
.vx-calendar-month { flex: 1; min-inline-size: 0; text-align: center; font-weight: 600; font-size: 1rem; line-height: 1.3; overflow-wrap: anywhere; }
.vx-calendar-chevron {
  display: block;
  inline-size: calc(var(--vx) * 2);
  block-size: calc(var(--vx) * 3.5);
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 7' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h1v1H0zM1 1h1v1H1zM2 2h1v1H2zM3 3h1v1H3zM2 4h1v1H2zM1 5h1v1H1zM0 6h1v1H0z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 7' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h1v1H0zM1 1h1v1H1zM2 2h1v1H2zM3 3h1v1H3zM2 4h1v1H2zM1 5h1v1H1zM0 6h1v1H0z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.vx-calendar-head > [data-vx-step="prev"] .vx-calendar-chevron { transform: scaleX(-1); }
.vx-calendar-head:dir(rtl) > [data-vx-step="prev"] .vx-calendar-chevron { transform: none; }
.vx-calendar-head:dir(rtl) > [data-vx-step="next"] .vx-calendar-chevron { transform: scaleX(-1); }

/* the grid: the names of the days, then six weeks of seven cells */
.vx-calendar-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.vx-calendar-names, .vx-calendar-week { display: flex; }
.vx-calendar-name {
  flex: 1 1 0; min-inline-size: 0; block-size: calc(var(--vx) * 7);
  display: grid; place-items: center;
  font-size: 0.8125rem; line-height: 1; color: var(--vx-ink-quiet);
}
.vx-calendar-week { position: relative; isolation: isolate; }
.vx-calendar-cell { flex: 1 1 0; min-inline-size: 0; display: grid; block-size: calc(var(--vx) * 11); position: relative; }
.vx-calendar-day {
  position: relative;
  margin: 0; padding: 0; border: 0; border-radius: 0;
  background: none;
  color: inherit;
  font: 500 0.9375rem/1 var(--vx-font);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.vx-calendar-cell[data-vx-out] > .vx-calendar-day { color: var(--vx-ink-quiet); }
.vx-calendar-day[aria-disabled="true"] { color: var(--vx-ink-quiet); text-decoration: line-through; text-decoration-thickness: 1px; cursor: default; }
.vx-calendar-day:focus-visible { outline: 2px solid var(--vx-focus); outline-offset: calc(var(--vx) * -0.5); z-index: 1; }

/* With no script there is no month to draw: the browser's own input stands alone. */
@media (scripting: none) {
  .vx-calendar { grid-template-columns: auto; }
}

/* plain: the chosen day is a painted key with a rim of the accent, a range is a band of the
   accent's tint, today is a short warm bar under its number */
.vx-calendar-week:not([data-vx-live]) > [data-vx-mark] { background: linear-gradient(color-mix(in oklab, var(--lit-accent, var(--vx-enamel)) 26%, transparent) 0 0) center / 100% calc(100% - var(--vx) * 2) no-repeat; }
.vx-calendar-week:not([data-vx-live]) > [data-vx-mark="one"] { background: none; }
.vx-calendar-week:not([data-vx-live]) > :is([data-vx-mark="one"], [data-vx-mark="start"], [data-vx-mark="end"]) > .vx-calendar-day {
  background:
    linear-gradient(var(--vx-key) 0 0) center / calc(100% - var(--vx) * 4) calc(100% - var(--vx) * 4) no-repeat,
    linear-gradient(var(--lit-accent, var(--vx-enamel)) 0 0) center / calc(100% - var(--vx) * 2) calc(100% - var(--vx) * 2) no-repeat;
}
.vx-calendar-week:not([data-vx-live]) > [data-vx-mark="mid"] > .vx-calendar-day { background: linear-gradient(var(--vx-floor, var(--vx-chalk)) 0 0) center / calc(100% - var(--vx) * 4) calc(100% - var(--vx) * 4) no-repeat; }
.vx-calendar-week:not([data-vx-live]) .vx-calendar-day[aria-current="date"]::after {
  content: ""; position: absolute;
  inset-block-start: calc(var(--vx) * 8); inset-inline-start: calc(var(--vx) * 4);
  inline-size: calc(var(--vx) * 3); block-size: var(--vx);
  background: var(--lit-warm, var(--vx-steel));
}

/* ==== css/callout.css ==== */

/* ---------- Callout (alert) ---------- */

/* Words on the surface with a standing groove at their start, in the light of its kind. Not a
   card: nothing is raised and nothing is boxed.
   Markup: <div class="vx-callout" data-vx-kind="failed" role="alert">
             <p class="vx-callout-title">The build failed</p>
             <p>Step 3 of 5 ran out of memory.</p>
             <div class="vx-callout-actions"><button class="vx-button">Run it again</button></div>
           </div>
   data-vx-kind: note (the default; the accent), done (green), warning (warm), failed (red).
   The role is yours to write, because it must hold with no script: role="alert" for a failure
   that has just happened, role="status" for the others when they arrive while the page is open,
   and for what is simply part of the page a plain region (<aside aria-labelledby>) with the
   title as its heading. Say the kind in the title's words: a light alone tells nobody. */

.vx-callout {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: calc(var(--vx) * 1);
  box-sizing: border-box;
  min-inline-size: 0;
  padding-block: calc(var(--vx) * 1);
  padding-inline-start: calc(var(--vx) * 5);
  font-family: var(--vx-font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--vx-ink);
  overflow-wrap: anywhere;
}
.vx-callout > :is(p, h2, h3, h4, h5, h6) { margin: 0; }
.vx-callout-title { font-size: 1rem; line-height: 1.5; font-weight: 650; }
.vx-callout-actions { display: flex; flex-wrap: wrap; gap: calc(var(--vx) * 4); margin-block: calc(var(--vx) * 2) calc(var(--vx) * 1); }

/* plain: the groove is a painted line */
.vx-callout:not([data-vx-live])::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  inline-size: var(--vx);
  background: var(--lit-accent, var(--vx-enamel));
}
.vx-callout[data-vx-kind="done"]:not([data-vx-live])::before { background: var(--lit-go, var(--vx-leaf)); }
.vx-callout[data-vx-kind="warning"]:not([data-vx-live])::before { background: var(--lit-warm, var(--vx-walnut)); }
.vx-callout[data-vx-kind="failed"]:not([data-vx-live])::before { background: var(--lit-stop, var(--vx-brick)); }

/* ==== css/carousel.css ==== */

/* ---------- Carousel ---------- */

/* Slides in a window: a recess (the kit's .vx-recess) that holds one slide at a time. Under it,
   previous and next (the kit's keys) and between them a row of lamps in a slot: one a slide.
   Markup: <section class="vx-carousel" aria-roledescription="carousel" aria-label="…">
             <div class="vx-recess vx-carousel-window">
               <div class="vx-carousel-track" tabindex="0">
                 <div class="vx-carousel-slide" role="group" aria-roledescription="slide" aria-label="1 of 3">…</div>
               </div>
             </div>
             <div class="vx-carousel-bar">
               <button class="vx-button" type="button" data-vx-step="prev" aria-label="Previous slide"><span class="vx-carousel-chevron" aria-hidden="true"></span></button>
               <span class="vx-carousel-lamps" aria-hidden="true" style="--vx-carousel-n: 3"></span>
               <button class="vx-button" type="button" data-vx-step="next" aria-label="Next slide"><span class="vx-carousel-chevron" aria-hidden="true"></span></button>
               <button class="vx-button" type="button" data-vx-play>Pause</button>   (only with data-vx-auto on the carousel)
             </div>
           </section>
   --vx-carousel-n on the lamps is the number of slides: written in the page, the lamps take
   their room before the script runs; the script keeps it true. */

.vx-carousel {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: calc(var(--vx) * 5);
  box-sizing: border-box; inline-size: 100%; min-inline-size: 0;
  font-family: var(--vx-font); color: var(--vx-ink);
}
.vx-carousel-window { display: grid; grid-template-columns: minmax(0, 1fr); min-inline-size: 0; }
/* The real scrolling element. It snaps a slide at a time, so a finger swipes it, and with no
   script it is still a carousel. No smooth scrolling here: the part asks for it a move at a
   time, and not at all where less motion is wanted. */
.vx-carousel-track {
  display: flex; min-inline-size: 0;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  outline: 0;
}
.vx-carousel-slide {
  flex: none; box-sizing: border-box; inline-size: 100%; min-inline-size: 0;
  scroll-snap-align: start; scroll-snap-stop: always;
  padding: calc(var(--vx) * 5) calc(var(--vx) * 6);
  line-height: calc(var(--vx) * 6);
  overflow-wrap: anywhere;
}
.vx-carousel-slide > :is(h3, h4, p) { margin: 0; }
.vx-carousel-slide > * + * { margin-block-start: calc(var(--vx) * 2); }
/* focus: the browser's ring, round the recess the track fills */
.vx-carousel-window:has(> .vx-carousel-track:focus-visible) { outline: 2px solid var(--vx-focus); outline-offset: calc(var(--vx) * 1); }
/* once the script has taken over, the browser's own bar steps aside; with no script it stays */
.vx-carousel[data-vx-on] .vx-carousel-track { scrollbar-width: none; }
.vx-carousel[data-vx-on] .vx-carousel-track::-webkit-scrollbar { display: none; }

/* the bar: previous, the lamps, next; then the pause key, if it has one */
.vx-carousel-bar { display: flex; flex-wrap: wrap; align-items: center; gap: calc(var(--vx) * 4); min-inline-size: 0; }
/* previous and next: the smallest key there is, 11 voxels square */
.vx-carousel-bar > [data-vx-step] { flex: none; inline-size: calc(var(--vx) * 11); padding: 0; }
/* the pause key keeps its width when its word changes, and stands a little apart */
.vx-carousel-bar > [data-vx-play] { flex: none; min-inline-size: calc(var(--vx) * 24); margin-inline-start: calc(var(--vx) * 2); }
/* The chevron is cut from half-voxel cells like the kit's glyphs, and is the legend's colour.
   Next points the way the line runs; previous the other way. */
.vx-carousel-chevron {
  display: block;
  inline-size: calc(var(--vx) * 2);
  block-size: calc(var(--vx) * 3.5);
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 7' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h1v1H0zM1 1h1v1H1zM2 2h1v1H2zM3 3h1v1H3zM2 4h1v1H2zM1 5h1v1H1zM0 6h1v1H0z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 7' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h1v1H0zM1 1h1v1H1zM2 2h1v1H2zM3 3h1v1H3zM2 4h1v1H2zM1 5h1v1H1zM0 6h1v1H0z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.vx-carousel-bar > [data-vx-step="prev"] .vx-carousel-chevron { transform: scaleX(-1); }
.vx-carousel-bar:dir(rtl) > [data-vx-step="next"] .vx-carousel-chevron { transform: scaleX(-1); }
.vx-carousel-bar:dir(rtl) > [data-vx-step="prev"] .vx-carousel-chevron { transform: none; }

/* The lamps: a slot four voxels high with a voxel of floor round the row; a lamp is two voxels
   of light each way, the next one a voxel on. They show which slide it is on and are not
   pressed: the keys and the track are. */
.vx-carousel-lamps {
  position: relative; isolation: isolate; display: block; flex: none; box-sizing: border-box;
  inline-size: calc(var(--vx) * (var(--vx-carousel-n, 3) * 3 + 1));
  block-size: calc(var(--vx) * 4);
  padding: var(--vx);
}
/* plain: a painted slot of dark studs, and the accent's colour on the current one (--_at, set by the script) */
.vx-carousel-lamps:not([data-vx-live]) {
  background: repeating-linear-gradient(to right, var(--vx-steel) 0 calc(var(--vx) * 2), var(--vx-slate) 0 calc(var(--vx) * 3)) content-box, var(--vx-slate);
}
.vx-carousel-lamps:not([data-vx-live])::after {
  content: ""; position: absolute; inset-block: var(--vx); inset-inline-start: calc(var(--vx) * (1 + 3 * var(--_at, 0)));
  inline-size: calc(var(--vx) * 2);
  background: var(--lit-accent, var(--vx-enamel));
}

/* With no script at all the keys could do nothing and the lamps would say nothing: they go, and
   the track scrolls under the browser's own bar. */
@media (scripting: none) {
  .vx-carousel-bar { display: none; }
}

/* ==== css/chart.css ==== */

/* ---------- Chart ----------
   A window cut into the panel with the numbers standing in it as light: columns of lamps (a bar
   chart) or a line of lamps (a line chart). The table under it is the chart's numbers, and what
   a screen reader reads; src/components/chart.js draws the window from it and writes the words
   on its axes.
     <figure class="vx-chart" data-vx-kind="bar">
       <figcaption>Deploys a day <small>fogline, the week to 24 May</small></figcaption>
       <div class="vx-chart-window"></div>
       <table>
         <thead><tr><th scope="col">Day</th><th scope="col" data-vx-light="go">Went out</th><th scope="col" data-vx-light="stop">Failed</th></tr></thead>
         <tbody><tr><th scope="row">Mon</th><td>12</td><td>1</td></tr>…</tbody>
       </table>
     </figure>
   The window is a whole number of voxels both ways, with room at its start for the scale's
   numbers and under it for the places' names. --vx-chart-rows on the figure: how many voxels
   tall it is (40; 32 on a phone). With no script there is no window: the table is the chart. */

.vx-chart {
  --_gutter: calc(var(--vx) * 11);
  display: grid; gap: calc(var(--vx) * 3); justify-items: start;
  inline-size: 100%; min-inline-size: 0; max-inline-size: 100%; margin: 0;
  container-type: inline-size;
  font-family: var(--vx-font); color: var(--vx-ink);
}
.vx-chart > figcaption { font-size: 1rem; line-height: calc(var(--vx) * 6); font-weight: 650; text-wrap: balance; }
.vx-chart > figcaption small { display: block; font-size: 0.875rem; line-height: calc(var(--vx) * 5); font-weight: 400; color: var(--vx-ink-quiet); text-wrap: pretty; }

/* the window: a whole number of voxels, past the scale's numbers, a voxel clear of the edge for
   its wall; the places' names stand under it */
.vx-chart-window {
  position: relative; isolation: isolate; display: block; box-sizing: border-box;
  margin-inline-start: var(--_gutter);
  margin-block: calc(var(--vx) * 1) calc(var(--vx) * 8);
  inline-size: round(down, calc(100cqi - var(--_gutter) - var(--vx) * 2), var(--vx));
  block-size: calc(var(--vx) * var(--vx-chart-rows, 40));
}
@media (max-width: 600px) { .vx-chart { --_gutter: calc(var(--vx) * 9); } .vx-chart-window { block-size: calc(var(--vx) * var(--vx-chart-rows, 32)); } }
.vx-chart:not([data-vx-drawn]) > .vx-chart-window { display: none; }

/* the scale's numbers, each on the level it marks; the places' names, each under its place */
.vx-chart-y, .vx-chart-x { position: absolute; inset: 0; pointer-events: none; font-size: 0.75rem; line-height: calc(var(--vx) * 4); color: var(--vx-ink-quiet); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vx-chart-y > span { position: absolute; inset-inline-end: calc(100% + var(--vx) * 3); translate: 0 -50%; }
.vx-chart-x > span { position: absolute; inset-block-start: calc(100% + var(--vx) * 2); translate: -50% 0; } /* set with left: the columns run left to right in any direction of writing */
.vx-chart-x > span[hidden] { display: none; }

/* the series' names, each beside a lamp of its light */
.vx-chart-key { display: flex; flex-wrap: wrap; gap: calc(var(--vx) * 2) calc(var(--vx) * 6); margin: 0; margin-inline-start: var(--_gutter); padding: 0; list-style: none; font-size: 0.875rem; line-height: calc(var(--vx) * 5); color: var(--vx-ink-quiet); }
.vx-chart-key > li { display: inline-flex; align-items: center; gap: calc(var(--vx) * 2); }
.vx-chart-key .vx-lamp { inline-size: calc(var(--vx) * 2); block-size: calc(var(--vx) * 2); }

/* the table: words for a screen reader once the window is drawn, unless it is asked to stay */
.vx-chart[data-vx-drawn]:not([data-vx-table="shown"]) > table { position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.vx-chart > table { border-collapse: collapse; font-size: 0.875rem; line-height: calc(var(--vx) * 5); font-variant-numeric: tabular-nums; }
.vx-chart > table caption { text-align: start; }
.vx-chart > table :is(th, td) { padding: var(--vx) calc(var(--vx) * 3) var(--vx) 0; text-align: start; font-weight: 400; }
.vx-chart > table thead th { color: var(--vx-ink-quiet); font-weight: 600; border-block-end: 1px solid var(--vx-slate); }
.vx-chart > table tbody th { font-weight: 600; }
.vx-chart > table td { text-align: end; }

/* the marks for a page with no voxels: a painted window, painted columns and a line */
.vx-chart-marks { position: absolute; inset: 0; pointer-events: none; }
.vx-chart-window[data-vx-live] > .vx-chart-marks { display: none; }
.vx-chart-window:not([data-vx-live]) { background: var(--vx-floor, var(--vx-chalk)); box-shadow: inset 0 0 0 var(--vx) var(--vx-slate); }
.vx-chart-marks > span { position: absolute; background: var(--_light); }
/* a column of lamps: two voxels of light, a voxel apart, from the bottom up */
.vx-chart-marks > span { -webkit-mask: linear-gradient(to top, #000 0 calc(var(--vx) * 2), transparent 0) bottom / 100% calc(var(--vx) * 3) repeat-y; mask: linear-gradient(to top, #000 0 calc(var(--vx) * 2), transparent 0) bottom / 100% calc(var(--vx) * 3) repeat-y; }
.vx-chart-marks > svg { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; overflow: visible; }
.vx-chart-marks polyline { fill: none; stroke: var(--_light); stroke-width: 2px; vector-effect: non-scaling-stroke; }
.vx-chart-marks rect { fill: var(--_light); }
.vx-chart-marks [data-vx-light] { --_light: var(--lit-accent, var(--vx-enamel)); }
.vx-chart-marks [data-vx-light="go"] { --_light: var(--lit-go, var(--vx-leaf)); }
.vx-chart-marks [data-vx-light="stop"] { --_light: var(--lit-stop, var(--vx-brick)); }
.vx-chart-marks [data-vx-light="warm"] { --_light: var(--lit-warm, var(--vx-steel)); }
.vx-chart-marks [data-vx-light="stud"] { --_light: var(--vx-steel); } /* the studs are steel, as drawn */

/* An optional last-row readout, formatted from the source table. */
.vx-chart-reading:not([hidden]) {
  display: inline-flex; align-items: baseline; gap: 1em;
  margin: 0 0 0 var(--_gutter); padding: .2rem .65rem;
  border-inline-start: 2px solid currentColor; color: var(--vx-ink-quiet);
  font: 400 .8125rem/1.25rem var(--vx-mono); font-variant-numeric: tabular-nums;
}
.vx-chart-reading strong { color: var(--vx-ink); }

/* ==== css/checkbox.css ==== */

/* ---------- Checkbox ---------- */

.vx-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: calc(var(--vx) * 3);
  min-block-size: calc(var(--vx) * 11);
  font-family: var(--vx-font);
  color: var(--vx-ink);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.3;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
/* the real control lies over the whole label, so the whole label is the target */
.vx-check input { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; margin: 0; opacity: 0; cursor: pointer; }
.vx-check input:disabled { cursor: default; }
.vx-check:has(input:disabled) { color: var(--vx-ink-quiet); cursor: default; }
.vx-box { position: relative; isolation: isolate; flex: none; inline-size: calc(var(--vx) * 7); block-size: calc(var(--vx) * 7); }
.vx-check input:focus-visible + .vx-box { outline: 2px solid var(--vx-focus); outline-offset: calc(var(--vx) * 1.5); }

/* plain: a painted well; ticked, it is the accent's colour */
.vx-box:not([data-vx-live]) { background: var(--vx-floor, var(--vx-chalk)); box-shadow: inset 0 0 0 var(--vx) var(--vx-slate); }
.vx-check input:checked + .vx-box:not([data-vx-live]) { background: var(--lit-accent, var(--vx-enamel)); box-shadow: none; }
.vx-check input:indeterminate + .vx-box:not([data-vx-live]) { background: linear-gradient(var(--lit-accent, var(--vx-enamel)), var(--lit-accent, var(--vx-enamel))) center / 60% var(--vx) no-repeat var(--vx-floor, var(--vx-chalk)); }
.vx-check input:disabled + .vx-box:not([data-vx-live]) { background: var(--vx-steel); box-shadow: none; }

/* ==== css/close-button.css ==== */

/* ---------- Close button ---------- */

/* A small ordinary key with a cross on it. The key is the kit's own (.vx-button); what is new
   is its size, its sign, and a target larger than its cap.
   Markup: <button class="vx-button vx-close" type="button" aria-label="Close">×</button>
   The name is the aria-label ("Close", "Dismiss the notice", "Remove report.pdf"): say what it closes. */
.vx-button.vx-close { /* two classes: the kit's rule for a key's legend is that strong */
  /* the cap: seven voxels square */
  inline-size: calc(var(--vx) * 7);
  block-size: calc(var(--vx) * 7);
  min-inline-size: 0;
  min-block-size: 0;
  padding: 0;
  flex: none;
  /* it keeps the room its target takes, so that two targets never lie on each other. Where it
     must sit in a corner, take the margin off there: the target still reaches out. */
  margin: calc(var(--vx) * 2);
  /* The cross is cut a voxel to the cell: three voxels in the middle of a cap of seven. A
     keycap's top is a voxel smaller all round, so on the top, which is five across, one voxel is
     clear on every side of it. A glyph of the key face carries the gap after it and sits high in
     its line; a voxel of indent and a voxel of padding above move it half a voxel each way, to
     the middle. */
  font-size: calc(var(--vx) * 10);
  text-indent: var(--vx);
  padding-block-start: var(--vx);
}
/* the target: two voxels more on every side, 44 px in all */
.vx-button.vx-close::after { content: ""; position: absolute; inset: calc(var(--vx) * -2); }
/* plain: a painted key moves a voxel up and left while it is held. Its target must not move
   from under the pointer with it, or a press at its right or lower edge would come to nothing. */
.vx-button.vx-close:not([data-vx-live]):active::after { right: calc(var(--vx) * -3); bottom: calc(var(--vx) * -3); }

/* ==== css/code-block.css ==== */

/* ---------- Code block ----------
   Code, read as set apart: a recess (the kit's .vx-recess), with the code a level below the
   surface. Tool: well. No script: the text is the page's own, so it selects and copies as written.
     <div class="vx-code vx-recess"><pre tabindex="0" role="region" aria-label="…"><code>…</code></pre></div>
   With a name above it (a file, a shell), which is words on the surface:
     <figure class="vx-code"><figcaption>deploy.sh</figcaption>
       <div class="vx-recess"><pre tabindex="0" role="region" aria-label="deploy.sh"><code>…</code></pre></div></figure>
   A long line scrolls inside the block; the page never moves sideways. The <pre> is what scrolls,
   so it takes focus (tabindex="0") and the arrow keys move it.
   data-vx-wrap on .vx-code wraps long lines instead. data-vx-lines numbers the lines: write each
   line as <span class="vx-line">…</span>; the numbers are not text, and are not copied.
   --vx-code-max is the most it may be tall before it scrolls down as well. */

.vx-code { display: block; min-inline-size: 0; max-inline-size: 100%; margin: 0; }
figure.vx-code { display: grid; gap: calc(var(--vx) * 2); grid-template-columns: minmax(0, 1fr); }
.vx-code figcaption { font: 500 0.8125rem/1.4 var(--vx-mono); line-height: round(up, 1.4em, var(--vx)); color: var(--vx-ink-quiet); overflow-wrap: anywhere; }

/* the recess: its rim is one voxel all round, and the code keeps clear of it */
.vx-code.vx-recess, .vx-code > .vx-recess { box-sizing: border-box; min-inline-size: 0; padding: var(--vx); }

.vx-code pre {
  box-sizing: border-box;
  margin: 0;
  max-block-size: var(--vx-code-max, none);
  overflow: auto;
  color: var(--vx-ink);
  font: 400 0.875rem/1.45 var(--vx-mono);
  line-height: round(up, 1.4em, var(--vx)); /* 20 px: five voxels a line */
  font-variant-ligatures: none;
  tab-size: 2;
  white-space: pre;
  text-align: start;
  direction: ltr; /* code reads left to right whatever the page does */
  unicode-bidi: isolate;
  scrollbar-width: thin;
  scrollbar-color: var(--vx-steel) transparent;
  -webkit-text-size-adjust: 100%;
}
/* the padding is the code's, so the end of the longest line has room when it is scrolled to */
.vx-code pre > code { display: block; inline-size: max-content; min-inline-size: 100%; box-sizing: border-box; padding: calc(var(--vx) * 3) calc(var(--vx) * 4); font: inherit; }
.vx-code[data-vx-wrap] pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.vx-code[data-vx-wrap] pre > code { inline-size: auto; }

/* in focus (it scrolls, so it can be): the ring is drawn round the recess, clear of its light */
.vx-code pre:focus { outline: 0; }
.vx-code.vx-recess:has(pre:focus-visible), .vx-code > .vx-recess:has(pre:focus-visible) { outline: 2px solid var(--vx-focus); outline-offset: calc(var(--vx) * 1); }

/* what is said quietly in code: a comment, a prompt, output */
.vx-code .vx-code-quiet { color: var(--vx-ink-quiet); }

/* numbered lines */
.vx-code[data-vx-lines] pre { counter-reset: vx-line; }
.vx-code[data-vx-lines] .vx-line::before {
  counter-increment: vx-line;
  content: counter(vx-line);
  display: inline-block;
  inline-size: 2ch;
  margin-inline-end: calc(var(--vx) * 4);
  text-align: end;
  color: var(--vx-ink-quiet);
  font-variant-numeric: tabular-nums;
  user-select: none;
  -webkit-user-select: none;
}

/* ==== css/code-input.css ==== */

/* ---------- Code input ---------- */

/* A row of small windows, one a character, with one real input lying over them. Its letter
   spacing puts each character in its own window.
   Markup: <span class="vx-otp" style="--vx-otp-n: 6">
             <input autocomplete="one-time-code" inputmode="numeric" maxlength="6" pattern="[0-9]{6}" aria-label="Code from the email">
           </span>
   A window is nine voxels by thirteen, the next two voxels on. The row is half a window wider
   than its windows: room for the caret after the last character, so the input never scrolls. */
.vx-otp {
  --_w: calc(var(--vx) * 9);
  --_h: calc(var(--vx) * 13);
  --_gap: calc(var(--vx) * 2);
  --_pitch: calc(var(--_w) + var(--_gap));
  position: relative;
  display: inline-flex;
  gap: var(--_gap);
  box-sizing: border-box;
  inline-size: calc(var(--vx-otp-n, 6) * var(--_pitch) + var(--_w) / 2);
  block-size: var(--_h);
  direction: ltr; /* a code reads left to right in every language */
  vertical-align: top;
  font: 500 1.5rem/1 var(--vx-mono);
}
.vx-otp > input {
  position: absolute; inset: 0; z-index: 1;
  box-sizing: border-box; inline-size: 100%; block-size: 100%;
  margin: 0; border: 0; border-radius: 0; outline: 0; background: none;
  padding: 0 0 0 calc((var(--_w) - 1ch) / 2);
  font: inherit;
  letter-spacing: calc(var(--_pitch) - 1ch);
  color: var(--vx-ink);
  caret-color: var(--lit-accent, var(--vx-enamel));
  font-variant-numeric: tabular-nums;
}
.vx-otp > input::selection { background: color-mix(in oklab, var(--lit-accent, var(--vx-enamel)) 30%, transparent); }
.vx-otp > input:disabled { color: var(--vx-ink-quiet); -webkit-text-fill-color: var(--vx-ink-quiet); opacity: 1; }
.vx-otp-cell { position: relative; isolation: isolate; flex: none; inline-size: var(--_w); block-size: var(--_h); }

/* With no script (and until it runs) the windows are painted on the row itself: a slate rim and
   a pale floor, one a character. */
.vx-otp:not([data-vx-on]) {
  background:
    repeating-linear-gradient(to right, var(--vx-floor, var(--vx-chalk)) 0 calc(var(--_w) - var(--vx) * 2), transparent 0 var(--_pitch)) var(--vx) var(--vx) / calc(var(--vx-otp-n, 6) * var(--_pitch) - var(--vx)) calc(var(--_h) - var(--vx) * 2) no-repeat,
    repeating-linear-gradient(to right, var(--vx-slate) 0 var(--_w), transparent 0 var(--_pitch)) 0 0 / calc(var(--vx-otp-n, 6) * var(--_pitch)) var(--_h) no-repeat;
}
.vx-otp:not([data-vx-on]):has(> input:focus-visible) { outline: 2px solid var(--vx-focus); outline-offset: var(--vx); }

/* plain, with the script: a window a cell; the one the next character goes into has the
   accent's rim, and all of them a red one when the code is wrong */
.vx-otp-cell:not([data-vx-live]) { background: var(--vx-floor, var(--vx-chalk)); box-shadow: inset 0 0 0 var(--vx) var(--vx-slate); }
.vx-otp-cell[data-vx-active]:not([data-vx-live]) { box-shadow: inset 0 0 0 var(--vx) var(--lit-accent, var(--vx-enamel)); }
.vx-otp:has(> input[aria-invalid="true"]) > .vx-otp-cell:not([data-vx-live]) { box-shadow: inset 0 0 0 var(--vx) var(--lit-stop, var(--vx-brick)); }
.vx-otp:has(> input:disabled) > .vx-otp-cell:not([data-vx-live]) { background: var(--vx-slate); box-shadow: none; }

/* ==== css/collapsible.css ==== */

/* ---------- Collapsible ---------- */

/* One row of words with a chevron that shows and hides what is under it, on the same surface. It
   is the browser's own <details>: it opens with no script, by keyboard (Enter, Space), and when
   find-in-page lands on words inside it. It needs no script.
     <details class="vx-collapsible"><summary>Older deploys</summary> … </details>
   Words that change with it: <summary><span data-vx-when="closed">Show older deploys</span>
                                       <span data-vx-when="open">Hide older deploys</span></summary> */
.vx-collapsible { min-inline-size: 0; font-family: var(--vx-font); color: var(--vx-ink); interpolate-size: allow-keywords; }
.vx-collapsible > summary {
  position: relative; isolation: isolate; display: flex; align-items: center; gap: calc(var(--vx) * 3);
  box-sizing: border-box; min-block-size: calc(var(--vx) * 11); padding-block: calc(var(--vx) * 2.5);
  font-weight: 600; font-size: 1rem; line-height: calc(var(--vx) * 6); overflow-wrap: anywhere;
  list-style: none; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
}
.vx-collapsible > summary::-webkit-details-marker { display: none; }
.vx-collapsible > summary:focus-visible { outline: 2px solid var(--vx-focus); outline-offset: calc(var(--vx) * 0.5); }
/* The chevron: seven cells of half a voxel, lying on the surface, straight after the words. It
   turns over when the row is open. */
.vx-collapsible > summary::after {
  --_c: calc(var(--vx) / 2);
  content: ""; flex: none; inline-size: calc(var(--_c) * 7); block-size: calc(var(--_c) * 4);
  color: var(--vx-ink-quiet);
  background:
    linear-gradient(currentColor 0 0) 0 0,
    linear-gradient(currentColor 0 0) calc(var(--_c) * 6) 0,
    linear-gradient(currentColor 0 0) var(--_c) var(--_c),
    linear-gradient(currentColor 0 0) calc(var(--_c) * 5) var(--_c),
    linear-gradient(currentColor 0 0) calc(var(--_c) * 2) calc(var(--_c) * 2),
    linear-gradient(currentColor 0 0) calc(var(--_c) * 4) calc(var(--_c) * 2),
    linear-gradient(currentColor 0 0) calc(var(--_c) * 3) calc(var(--_c) * 3);
  background-size: var(--_c) var(--_c); background-repeat: no-repeat;
  transition: transform 180ms var(--vx-ease-out);
}
.vx-collapsible > summary:hover::after { color: var(--vx-ink); }
.vx-collapsible[open] > summary::after { transform: scaleY(-1); }
.vx-collapsible:not([open]) > summary [data-vx-when="open"], .vx-collapsible[open] > summary [data-vx-when="closed"] { display: none; }

/* What opens: words on the surface. The space under it is the last thing's own padding, so the
   row closes to exactly its summary. */
.vx-collapsible > :not(summary) { margin: 0; line-height: calc(var(--vx) * 6); }
.vx-collapsible > :not(summary) + :not(summary) { margin-block-start: calc(var(--vx) * 2); }
.vx-collapsible > :not(summary):last-child { padding-block-end: calc(var(--vx) * 3); }

/* It opens and closes over a fifth of a second where the browser can (the page below slides, it
   does not jump); elsewhere, and under reduced motion, at once. */
.vx-collapsible::details-content {
  block-size: 0; overflow: clip;
  transition: block-size 220ms var(--vx-ease-out), content-visibility 220ms allow-discrete;
}
.vx-collapsible[open]::details-content { block-size: auto; }

@media (prefers-reduced-motion: reduce) {
  .vx-collapsible::details-content, .vx-collapsible > summary::after { transition: none; }
}

/* ==== css/combobox.css ==== */

/* ---------- Combobox ---------- */

/* A field you type in (the kit's well), and under it a float of rows that match. The rows are
   words, in the text face; the marked row has the accent groove at its start.
   Markup: <div class="vx-combobox">
             <label class="vx-field-label" for="p">Project</label>
             <span class="vx-well"><input id="p" role="combobox" aria-autocomplete="list" aria-expanded="false" aria-controls="p-list" autocomplete="off"></span>
             <div class="vx-combobox-float" popover="manual">
               <div role="listbox" id="p-list" aria-labelledby="…"><div role="option">harbor-api</div> …</div>
               <p class="vx-combobox-empty" hidden>No project is called “{q}”.</p>
             </div>
           </div> */

.vx-combobox { display: grid; gap: calc(var(--vx) * 2); min-inline-size: 0; max-inline-size: 100%; inline-size: calc(var(--vx) * 80); }

/* the float: the script makes it as wide as its field and puts it under it */
.vx-combobox-float {
  position: fixed; inset: auto; box-sizing: border-box; margin: 0; border: 0; overflow: visible; isolation: isolate;
  inline-size: calc(var(--vx) * 80); max-inline-size: calc(100vw - var(--vx) * 6);
  padding: calc(var(--vx) * 2) 0; background: none; color: var(--vx-ink);
  font-family: var(--vx-font); font-size: 1rem; line-height: calc(var(--vx) * 6);
}
.vx-combobox-float:is(:popover-open, [data-vx-measure]) { display: block; }
.vx-combobox-float[data-vx-measure] { visibility: hidden; }
.vx-combobox-float::backdrop { background: none; }
/* a long list scrolls inside the float: six rows and a half show, so that it is plain there are more */
.vx-combobox-float [role="listbox"] { max-block-size: calc(var(--vx) * 72); overflow: hidden auto; overscroll-behavior: contain; scrollbar-width: thin; }

/* a row: words, eleven voxels high, the size of anything pressed */
.vx-combobox-float [role="option"] {
  display: flex; align-items: center; gap: calc(var(--vx) * 3); box-sizing: border-box;
  min-block-size: calc(var(--vx) * 11); padding: calc(var(--vx) * 2) calc(var(--vx) * 5) calc(var(--vx) * 2) calc(var(--vx) * 6);
  overflow-wrap: anywhere; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.vx-combobox-float [role="option"][hidden], .vx-combobox-float [role="group"][hidden] { display: none; }
.vx-combobox-float [role="option"][aria-disabled="true"] { color: var(--vx-ink-quiet); cursor: default; }
.vx-option-trail { margin-inline-start: auto; flex: none; color: var(--vx-ink-quiet); font-size: 0.875rem; }
.vx-combobox-title { padding: calc(var(--vx) * 2) calc(var(--vx) * 5) calc(var(--vx) * 1) calc(var(--vx) * 6); font: 600 0.8125rem/calc(var(--vx) * 5) var(--vx-font); color: var(--vx-ink-quiet); }
.vx-combobox-empty { margin: 0; padding: calc(var(--vx) * 2.5) calc(var(--vx) * 5) calc(var(--vx) * 2.5) calc(var(--vx) * 6); color: var(--vx-ink-quiet); }
.vx-combobox-empty[hidden] { display: none; }

/* plain: a painted plate with the accent's line where its light shows, and the mark painted */
.vx-combobox-float:not([data-vx-live]) {
  background: var(--vx-reading-plate, var(--vx-key, var(--vx-chalk)));
  box-shadow: calc(var(--vx) * -0.5) calc(var(--vx) * -0.5) 0 var(--lit-accent, var(--vx-enamel)), calc(var(--vx) * 1.5) calc(var(--vx) * 2) 0 var(--vx-shadow);
}
.vx-combobox-float:not([data-vx-live]) [role="option"][data-vx-active] {
  background: linear-gradient(var(--lit-accent, var(--vx-enamel)), var(--lit-accent, var(--vx-enamel))) no-repeat;
  background-size: var(--vx) calc(100% - var(--vx) * 4); background-position: calc(var(--vx) * 2) 50%;
}
.vx-combobox-float:not([data-vx-live]) [role="option"][data-vx-active]:dir(rtl) { background-position: calc(100% - var(--vx) * 2) 50%; }

/* ==== css/command-palette.css ==== */

/* ---------- Command palette ---------- */

/* The kit's dialog, with a well at its top and rows of words under it. The well is in the
   dialog's header, so the dialog's own groove parts it from the rows. The marked row has the
   accent groove at its start.
   Markup: <dialog class="vx-dialog vx-command-dialog" aria-label="Commands">
             <header class="vx-command-head"><label class="vx-aloud" for="q">…</label><span class="vx-well"><input id="q" role="combobox" aria-controls="cmds" …></span></header>
             <div class="vx-command-scroll"><div class="vx-command" id="cmds" role="listbox" aria-label="Commands" data-vx-chord="mod+k">…</div></div>
             <p class="vx-command-empty" role="status" hidden>Nothing is called “{q}”.</p>
             <div class="vx-command-foot">…</div>
           </dialog> */

dialog.vx-command-dialog { inline-size: min(calc(var(--vx) * 140), calc(100vw - 32px)); margin-block-start: min(16vh, calc(var(--vx) * 30)); }
.vx-command-dialog > header.vx-command-head { padding: calc(var(--vx) * 5) calc(var(--vx) * 4); font: inherit; }
.vx-command-head .vx-well input { font-size: 1.0625rem; }

/* the rows scroll by themselves. The list's own drawing reaches four voxels past its end; the
   room at the scroller's end is that, so it adds nothing to what can be scrolled. */
.vx-command-scroll {
  max-block-size: min(calc(var(--vx) * 92), 52vh); overflow: hidden auto; overscroll-behavior: contain; scrollbar-width: thin;
  padding: calc(var(--vx) * 2) calc(var(--vx) * 4) calc(var(--vx) * 4);
}
.vx-command { position: relative; isolation: isolate; display: block; min-inline-size: 0; font-family: var(--vx-font); font-size: 1rem; line-height: calc(var(--vx) * 6); color: var(--vx-ink); }
.vx-command [role="option"] {
  display: flex; align-items: center; gap: calc(var(--vx) * 3); box-sizing: border-box;
  min-block-size: calc(var(--vx) * 11); padding: calc(var(--vx) * 2) calc(var(--vx) * 2) calc(var(--vx) * 2) calc(var(--vx) * 5);
  overflow-wrap: anywhere; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.vx-command [role="option"][hidden], .vx-command [role="group"][hidden] { display: none; }
.vx-command [role="option"][aria-disabled="true"] { color: var(--vx-ink-quiet); cursor: default; }
.vx-command .vx-option-trail { margin-inline-start: auto; flex: none; color: var(--vx-ink-quiet); font-size: 0.875rem; }
.vx-command-title { padding: calc(var(--vx) * 3) calc(var(--vx) * 2) calc(var(--vx) * 1) calc(var(--vx) * 5); font: 600 0.8125rem/calc(var(--vx) * 5) var(--vx-font); color: var(--vx-ink-quiet); }
.vx-command [role="group"]:first-child > .vx-command-title, .vx-command > .vx-canvas + [role="group"] > .vx-command-title { padding-block-start: calc(var(--vx) * 1); }

.vx-command-empty { margin: 0; padding: calc(var(--vx) * 2) calc(var(--vx) * 9) calc(var(--vx) * 6); color: var(--vx-ink-quiet); }
.vx-command-empty[hidden] { display: none; }
/* how it is used, in words with the names of keys */
.vx-command-foot {
  display: flex; flex-wrap: wrap; gap: calc(var(--vx) * 2) calc(var(--vx) * 5);
  padding: calc(var(--vx) * 4) calc(var(--vx) * 6) calc(var(--vx) * 5); color: var(--vx-ink-quiet); font-size: 0.875rem; line-height: calc(var(--vx) * 6);
}
.vx-command-foot > span { display: inline-flex; align-items: center; gap: calc(var(--vx) * 1.5); }
/* a finger has no arrow keys to be told about */
@media (hover: none) and (pointer: coarse) { .vx-command-foot { display: none; } }

/* plain: the mark painted where its groove is cut */
.vx-command:not([data-vx-live]) [role="option"][data-vx-active] {
  background: linear-gradient(var(--lit-accent, var(--vx-enamel)), var(--lit-accent, var(--vx-enamel))) no-repeat;
  background-size: var(--vx) calc(100% - var(--vx) * 4); background-position: var(--vx) 50%;
}
.vx-command:not([data-vx-live]) [role="option"][data-vx-active]:dir(rtl) { background-position: calc(100% - var(--vx)) 50%; }

/* ==== css/context-menu.css ==== */

/* ---------- Context menu ---------- */

/* The region a right press (or a long press, or the menu key) opens the kit's menu on, and the
   menu while it is open at a point. The menu is the kit's own (.vx-menu); its look is the menu's.
   Markup: see src/components/context-menu.js. */

/* the region: a long press is the menu's, not the phone's own callout over a link or a picture */
[data-vx-contextmenu] { position: relative; -webkit-touch-callout: none; }
/* and on a touch screen not the start of a selection either; a text field in it keeps both */
@media (pointer: coarse) {
  [data-vx-contextmenu] { -webkit-user-select: none; user-select: none; }
  [data-vx-contextmenu] :is(input, textarea, [contenteditable]:not([contenteditable="false"])) { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
}

/* Opened by a hand, the menu itself holds the focus until an arrow goes to a row: it shows no
   ring for that, as a dialog does not; its rows show theirs. */
.vx-menu[data-vx-at]:focus { outline: none; }

/* ==== css/data-table.css ==== */

/* ---------- Data table ----------
   The kit's table (.vx-table: words, one groove under the head), with heads you can press to
   sort, a checkbox a row and one for all of them, and the kit's pagination under it. Nothing of
   its own is drawn: src/components/data-table.js is the behaviour that makes them one thing.
     <div class="vx-data-table" id="deploys" data-vx-rows="5">
       <div class="vx-table"><div class="vx-table-scroll" tabindex="0" role="region" aria-labelledby="cap"><table>
         <caption id="cap">Deploys</caption>
         <thead><tr>
           <th scope="col" class="vx-data-table-pick"><label class="vx-check"><input type="checkbox" aria-label="Choose every row on this page"><span class="vx-box"></span></label></th>
           <th scope="col" aria-sort="ascending"><button type="button" class="vx-data-table-sort">Service</button></th>
           <th scope="col" class="vx-num"><button type="button" class="vx-data-table-sort">Builds</button></th>
         </tr></thead>
         <tbody><tr>
           <td class="vx-data-table-pick"><label class="vx-check"><input type="checkbox" aria-label="Choose harbor-api"><span class="vx-box"></span></label></td>
           <th scope="row">harbor-api</th><td class="vx-num">14</td>
         </tr>…</tbody>
       </table></div></div>
       <div class="vx-data-table-foot">
         <p class="vx-data-table-count" role="status"></p>
         <nav class="vx-pagination" aria-label="Pages of deploys" hidden>…</nav>
       </div>
     </div>
   Every rule here names .vx-data-table, so it holds over the table's, the checkbox's and the
   pagination's own rules whichever file comes first in the kit's stylesheet.
   Rows are whole voxels: the head is 11 voxels (a 44 px target), a body row 11 as well. */

.vx-data-table { display: grid; gap: calc(var(--vx) * 4); inline-size: 100%; min-inline-size: 0; max-inline-size: 100%; font-family: var(--vx-font); }

/* the head: every head is 11 voxels tall, so the sort buttons are 44 px to hit and the groove
   stays on the grid */
.vx-data-table .vx-table thead th { padding-block: calc(var(--vx) * 3); vertical-align: middle; }
.vx-data-table .vx-table thead th:has(> .vx-data-table-sort) { padding-block: 0; }

/* a head you can press: its words, and a mark that says which way it is sorted */
.vx-data-table .vx-data-table-sort {
  display: inline-flex; align-items: center; gap: calc(var(--vx) * 1.5);
  box-sizing: border-box; min-inline-size: calc(var(--vx) * 11); block-size: calc(var(--vx) * 11);
  margin: 0; padding: 0; border: 0; border-radius: 0; background: none;
  font: inherit; line-height: inherit; color: inherit; text-align: inherit; letter-spacing: inherit;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.vx-data-table .vx-num > .vx-data-table-sort { justify-content: flex-end; }
.vx-data-table .vx-data-table-sort:hover, .vx-data-table [aria-sort] > .vx-data-table-sort { color: var(--vx-ink); }
.vx-data-table .vx-data-table-sort:focus-visible { outline: 2px solid var(--vx-focus); outline-offset: calc(var(--vx) * -1); }
/* the mark, cut from half-voxel cells like the kit's glyphs: two quiet points when the column is
   not sorted by; one point, up for ascending and down for descending, when it is */
.vx-data-table .vx-data-table-sort::after {
  content: ""; flex: none;
  inline-size: calc(var(--vx) * 2.5); block-size: calc(var(--vx) * 3.5);
  background: currentColor; opacity: 0.5;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 7' shape-rendering='crispEdges'%3E%3Cpath d='M2 0h1v1H2zM1 1h3v1H1zM0 2h5v1H0zM0 4h5v1H0zM1 5h3v1H1zM2 6h1v1H2z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 7' shape-rendering='crispEdges'%3E%3Cpath d='M2 0h1v1H2zM1 1h3v1H1zM0 2h5v1H0zM0 4h5v1H0zM1 5h3v1H1zM2 6h1v1H2z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.vx-data-table [aria-sort="ascending"] > .vx-data-table-sort::after, .vx-data-table [aria-sort="descending"] > .vx-data-table-sort::after {
  opacity: 1;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 7' shape-rendering='crispEdges'%3E%3Cpath d='M2 2h1v1H2zM1 3h3v1H1zM0 4h5v1H0z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 7' shape-rendering='crispEdges'%3E%3Cpath d='M2 2h1v1H2zM1 3h3v1H1zM0 4h5v1H0z'/%3E%3C/svg%3E");
}
.vx-data-table [aria-sort="descending"] > .vx-data-table-sort::after { transform: scaleY(-1); }
/* with no script a head cannot sort: it is words, and offers nothing */
.vx-data-table:not([data-vx-table]) .vx-data-table-sort { cursor: inherit; pointer-events: none; }
.vx-data-table:not([data-vx-table]) .vx-data-table-sort::after { display: none; }

/* the checkboxes: a column of their own, each 11 voxels square to hit, with no words */
.vx-data-table .vx-table :is(th, td).vx-data-table-pick { inline-size: calc(var(--vx) * 11); padding-block: 0; padding-inline: 0 calc(var(--vx) * 1); vertical-align: middle; }
.vx-data-table .vx-data-table-pick > .vx-check { display: flex; justify-content: center; gap: 0; inline-size: calc(var(--vx) * 11); min-block-size: calc(var(--vx) * 11); }
/* a body row is 11 voxels: its words sit in the middle beside the checkbox */
.vx-data-table .vx-table tbody :is(th, td) { vertical-align: middle; }
.vx-data-table .vx-table tbody :is(th, td):not(.vx-data-table-pick) { padding-block: calc(var(--vx) * 3); }

/* under the table: how many rows, and the pages */
.vx-data-table-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: calc(var(--vx) * 3) calc(var(--vx) * 6); min-inline-size: 0; }
.vx-data-table-count { margin: 0; color: var(--vx-ink-quiet); font-size: 0.875rem; line-height: calc(var(--vx) * 5); font-variant-numeric: tabular-nums; }
.vx-data-table-count:empty { display: none; }
.vx-data-table .vx-pagination[hidden] { display: none; }

/* ==== css/date-picker.css ==== */

/* ---------- Date picker ---------- */

/* A well with the real date input, a small key beside it, and the calendar in a float.
   Markup: <div class="vx-date">
             <span class="vx-well"><input type="date" id="ship" aria-label="Ship on"></span>
             <button class="vx-button" type="button" popovertarget="ship-pick" data-vx-say="Choose the day"><span class="vx-date-glyph" aria-hidden="true"></span></button>
             <div class="vx-popover vx-date-float" id="ship-pick" popover role="dialog" aria-label="Ship on">
               <div class="vx-calendar" data-vx-for="ship"></div>
             </div>
           </div> */
.vx-date { display: inline-flex; flex-wrap: wrap; align-items: center; gap: calc(var(--vx) * 3); max-inline-size: 100%; vertical-align: top; }
/* a width, not a basis: a basis does not count when the row works out how wide it wants to be,
   and the key would go to a line of its own with room to spare */
.vx-date > .vx-well { flex: 0 1 auto; inline-size: calc(var(--vx) * 44); min-inline-size: 0; }
.vx-date > .vx-well + .vx-well { inline-size: calc(var(--vx) * 40); }
.vx-date > [popovertarget] { flex: none; inline-size: calc(var(--vx) * 11); padding: 0; }
/* once the key stands in for it, the browser's own picker steps aside (typing stays the browser's) */
.vx-date[data-vx-on] input::-webkit-calendar-picker-indicator { display: none; }
/* the float is as wide as the month in it */
.vx-popover.vx-date-float {
  inline-size: min(calc(var(--vx) * 87), calc(100vw - var(--vx) * 6));
  inline-size: min(calc(var(--vx) * 87), round(down, calc(100vw - var(--vx) * 6), var(--vx)));
}

/* A small calendar drawn in half-voxel cells: two rings, a bar, and four days. */
.vx-date-glyph {
  display: block;
  inline-size: calc(var(--vx) * 3.5);
  block-size: calc(var(--vx) * 3.5);
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 7' shape-rendering='crispEdges'%3E%3Cpath d='M1 0h1v1H1zM5 0h1v1H5zM0 1h7v2H0zM0 3h1v4H0zM6 3h1v4H6zM1 6h5v1H1zM2 4h1v1H2zM4 4h1v1H4z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 7' shape-rendering='crispEdges'%3E%3Cpath d='M1 0h1v1H1zM5 0h1v1H5zM0 1h7v2H0zM0 3h1v4H0zM6 3h1v4H6zM1 6h5v1H1zM2 4h1v1H2zM4 4h1v1H4z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* With no script the key could open only an empty float: it goes, and the input's own picker stays. */
@media (scripting: none) {
  .vx-date > [popovertarget] { display: none; }
}

/* ==== css/drawer.css ==== */

/* ---------- Drawer ---------- */

/* The sheet (css/sheet.css holds what the two share), made for where the window is: up from the
   bottom on a phone, in from the end on a wide screen. data-vx-side fixes one edge. Its handle
   shows where it comes from the bottom or the top; a hand drags it shut by that.
   Markup: see src/components/drawer.js. */

@media (max-width: 639.98px) {
  dialog.vx-drawer:not([data-vx-side]) {
    --_side: bottom;
    --_out: 0 calc(100% + var(--vx) * 6);
    inset-block: auto 0;
    inset-inline: 0;
    inline-size: auto;
    max-block-size: calc(100% - var(--vx) * 11);
  }
}

/* The handle: a real key at its inner edge, the width of a thumb. The pull drawn on it is voxels
   (drawer.js); its target is eleven voxels high, more than it shows. */
dialog.vx-drawer > .vx-drawer-handle {
  display: none;
  position: relative;
  order: -1; /* it is last in the markup, so that the focus does not land on it first */
  flex: none;
  align-self: center;
  inline-size: calc(var(--vx) * 24);
  block-size: calc(var(--vx) * 6);
  margin: calc(var(--vx) * 2) 0 calc(var(--vx) * -2);
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: grab;
  touch-action: none; /* a finger on it drags the drawer; it does not scroll the page */
  -webkit-tap-highlight-color: transparent;
}
dialog.vx-drawer > .vx-drawer-handle::after { content: ""; position: absolute; inset: calc(var(--vx) * -2.5) calc(var(--vx) * -4); }
dialog.vx-drawer > .vx-drawer-handle:focus-visible { outline: 2px solid var(--vx-focus); outline-offset: calc(var(--vx) * 1); }
dialog.vx-drawer:is([data-vx-side="bottom"], [data-vx-side="top"]) > .vx-drawer-handle { display: block; }
@media (max-width: 639.98px) {
  dialog.vx-drawer:not([data-vx-side]) > .vx-drawer-handle { display: block; }
}
/* from the top, its inner edge is its lowest */
dialog.vx-drawer[data-vx-side="top"] > .vx-drawer-handle { order: 1; margin: calc(var(--vx) * -2) 0 calc(var(--vx) * 3); }
/* a header with a handle over it needs less room above its words */
dialog.vx-drawer[data-vx-side="bottom"]:has(> .vx-drawer-handle) > header { padding-block-start: calc(var(--vx) * 1); }
@media (max-width: 639.98px) {
  dialog.vx-drawer:not([data-vx-side]):has(> .vx-drawer-handle) > header { padding-block-start: calc(var(--vx) * 1); }
}

/* while a hand holds it */
dialog.vx-drawer[data-vx-dragging] { user-select: none; -webkit-user-select: none; }
dialog.vx-drawer[data-vx-dragging] > .vx-drawer-handle { cursor: grabbing; }

/* plain: the pull is painted, steel; held, the accent */
dialog.vx-drawer:not([data-vx-live]) > .vx-drawer-handle::before {
  content: "";
  position: absolute;
  inset: calc(var(--vx) * 2) calc(var(--vx) * 6);
  background: var(--vx-steel);
}
dialog.vx-drawer[data-vx-dragging]:not([data-vx-live]) > .vx-drawer-handle::before { background: var(--lit-accent, var(--vx-enamel)); }

/* ==== css/empty-state.css ==== */

/* ---------- Empty state ---------- */

/* Words and one key, on the surface it belongs to: no box, no picture, no light of its own.
   Markup: <div class="vx-empty">
             <h3 class="vx-empty-title">No deploys yet</h3>
             <p class="vx-empty-text">Push to main, or deploy by hand.</p>
             <button class="vx-button" data-vx-kind="main">Deploy harbor-api</button>
           </div>
   The heading's level is the page's to choose. data-vx-align="start" sets it at the start of its
   column, for a narrow place (a sidebar, a menu). */
.vx-empty {
  display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: calc(var(--vx) * 2);
  box-sizing: border-box; inline-size: 100%; max-inline-size: calc(var(--vx) * 110); margin-inline: auto;
  padding-block: calc(var(--vx) * 10);
  font-family: var(--vx-font); color: var(--vx-ink); text-align: center; overflow-wrap: anywhere;
}
.vx-empty-title { margin: 0; font-size: 1.125rem; line-height: 1.3; font-weight: 650; text-wrap: balance; }
.vx-empty-text { margin: 0; color: var(--vx-ink-quiet); line-height: 1.55; text-wrap: pretty; }
/* the one key stands clear of the words; a long legend may take the whole line and wrap there */
.vx-empty > .vx-button { margin-block-start: calc(var(--vx) * 4); max-inline-size: 100%; }
.vx-empty[data-vx-align="start"] { justify-items: start; text-align: start; margin-inline: 0; padding-block: calc(var(--vx) * 5); }

/* ==== css/existing.css ==== */

/* The lit look for parts the kit already had: slider, list, menu, dialog, toast, lettering.
   Their voxels are in src/looks/lit-existing.js. Link this after voxelmorphism.css. Every rule
   holds only inside data-vx-look="lit". Sizes are in voxels. */

/* ---------- lit: slider ---------- */

/* A fader. Its knob is seven voxels wide and stops a voxel short of each end of the slot. The
   browser's own thumb is made nine wide (and stays unseen), so its middle is always the knob's
   middle and the knob stays under the pointer. */
[data-vx-look="lit"] .vx-slider[data-vx-live] input::-webkit-slider-thumb { inline-size: calc(var(--vx) * 9); }
[data-vx-look="lit"] .vx-slider[data-vx-live] input::-moz-range-thumb { inline-size: calc(var(--vx) * 9); }
[data-vx-look="lit"] .vx-slider input { accent-color: var(--lit-accent); }
[data-vx-look="lit"] .vx-slider input:disabled { cursor: default; }

/* ---------- lit: list ---------- */

/* Rows of words on the surface. No tray, no tiles: a hairline between rows, and an accent groove
   at the start of the current one. The hairline is a shadow, so a row is still a whole number of
   voxels high. */
[data-vx-look="lit"] .vx-list { padding: 0; gap: 0; }
[data-vx-look="lit"] .vx-list > li { position: relative; }
/* a line is six voxels, so a row that wraps is still a whole number of voxels high */
[data-vx-look="lit"] .vx-list .vx-row, [data-vx-look="lit"] .vx-list > li:not(:has(> .vx-row)) { line-height: calc(var(--vx) * 6); }
[data-vx-look="lit"] .vx-list > li + li { box-shadow: inset 0 1px 0 var(--vx-slate); }
[data-vx-look="lit"] .vx-list > li:is([aria-current="true"], [aria-selected="true"]) { font-weight: 650; }
/* a row that holds a link or a button answers the pointer: a tint that keeps clear of the mark */
[data-vx-look="lit"] .vx-list > li:has(a, button) { background: linear-gradient(var(--_tint, transparent), var(--_tint, transparent)) no-repeat; background-size: calc(100% - var(--vx) * 3) 100%; background-position: calc(var(--vx) * 3) 0; }
[data-vx-look="lit"] .vx-list > li:has(a, button):dir(rtl) { background-position: 0 0; }
[data-vx-look="lit"] .vx-list > li:has(a, button):hover { --_tint: color-mix(in oklab, var(--vx-ink) 5%, transparent); }
[data-vx-look="lit"] .vx-list > li:has(a, button):active { --_tint: color-mix(in oklab, var(--vx-ink) 10%, transparent); }
/* A row written without a .vx-row (the part wraps it when it draws) holds its link or button
   bare. It is the row's words, and the whole row is its target, as in a .vx-row. */
[data-vx-look="lit"] .vx-list > li > :is(a, button) { color: inherit; font: inherit; text-decoration: none; background: none; border: 0; padding: 0; margin: 0; text-align: start; cursor: pointer; }
[data-vx-look="lit"] .vx-list > li > :is(a, button)::after { content: ""; position: absolute; inset: 0; }
[data-vx-look="lit"] .vx-list > li > :is(a, button):focus-visible { outline: 0; }
[data-vx-look="lit"] .vx-list > li:has(> :focus-visible) { outline: 2px solid var(--vx-focus); outline-offset: calc(var(--vx) * -1); }
/* plain: the same rows; the mark is painted */
[data-vx-look="lit"] .vx-list:not([data-vx-live]) { background: none; }
[data-vx-look="lit"] .vx-list:not([data-vx-live]) > li:not(:has(a, button)) { background: none; }
[data-vx-look="lit"] .vx-list:not([data-vx-live]) > li:is([aria-current="true"], [aria-selected="true"]) { box-shadow: none; }
[data-vx-look="lit"] .vx-list:not([data-vx-live]) > li + li:is([aria-current="true"], [aria-selected="true"]) { box-shadow: inset 0 1px 0 var(--vx-slate); }
[data-vx-look="lit"] .vx-list:not([data-vx-live]) > li::before {
  content: ""; position: absolute; inset-block: calc(var(--vx) * 2); inset-inline-start: var(--vx); inline-size: var(--vx);
  background: color-mix(in oklab, var(--vx-ink) 62%, var(--vx-slate));
}
[data-vx-look="lit"] .vx-list:not([data-vx-live]) > li:is([aria-current="true"], [aria-selected="true"])::before {
  background: var(--lit-accent);
}

/* ---------- lit: menu ---------- */

/* A float of rows. The rows are words, so they are in the text face, not the key face; a row is
   eleven voxels high, the size of anything pressed. The active row keeps its own colour: its mark
   is the accent groove at its start (voxels), not a coloured tile. */
[data-vx-look="lit"] .vx-menu [role^="menuitem"] {
  min-block-size: calc(var(--vx) * 11); padding-inline: calc(var(--vx) * 6) calc(var(--vx) * 5);
  font: 500 1rem/1.2 var(--vx-font); letter-spacing: normal; color: var(--vx-ink);
  -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto;
}
[data-vx-look="lit"] .vx-menu [role^="menuitem"][data-vx-active] { color: var(--vx-ink); }
[data-vx-look="lit"] .vx-menu [role^="menuitem"][data-vx-kind="danger"],
[data-vx-look="lit"] .vx-menu [role^="menuitem"][data-vx-kind="danger"][data-vx-active] { color: var(--vx-danger-text); }
[data-vx-look="lit"] .vx-menu [role^="menuitem"]:is(:disabled, [aria-disabled="true"]) { color: var(--vx-ink-quiet); cursor: default; }
/* plain: a painted float; the active row has the same mark, painted */
[data-vx-look="lit"] .vx-menu:not([data-vx-live]) {
  background: var(--vx-reading-plate, var(--vx-key));
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--lit-accent) 60%, transparent), calc(var(--vx) * 1.5) calc(var(--vx) * 2) 0 var(--vx-shadow);
}
[data-vx-look="lit"] .vx-menu:not([data-vx-live]) [role^="menuitem"]:is(:hover, :focus-visible, [data-vx-active]) {
  color: var(--vx-ink);
  background: linear-gradient(var(--lit-accent), var(--lit-accent)) no-repeat;
  background-size: var(--vx) calc(100% - var(--vx) * 4); background-position: calc(var(--vx) * 2) 50%;
}
[data-vx-look="lit"] .vx-menu:not([data-vx-live]) [role^="menuitem"]:is(:hover, :focus-visible, [data-vx-active]):dir(rtl) { background-position: calc(100% - var(--vx) * 2) 50%; }
[data-vx-look="lit"] .vx-menu:not([data-vx-live]) [role^="menuitem"][data-vx-kind="danger"]:is(:hover, :focus-visible, [data-vx-active]) { color: var(--vx-danger-text); background-image: linear-gradient(var(--lit-stop), var(--lit-stop)); }

/* ---------- lit: dialog ---------- */

/* A float at dialog height. The header is words, fourteen voxels high; its last row of voxels is
   the groove that parts it from the body. */
[data-vx-look="lit"] .vx-dialog::backdrop { background: rgb(8 9 15 / 0.5); }
[data-vx-look="lit"] .vx-dialog > header {
  padding: calc(var(--vx) * 4) calc(var(--vx) * 6);
  font: 700 1.125rem/calc(var(--vx) * 6) var(--vx-font); color: var(--vx-ink);
}
/* plain: a painted float, and a painted groove under the header */
[data-vx-look="lit"] .vx-dialog:not([data-vx-live]) {
  background: var(--vx-reading-plate, var(--vx-chalk));
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--lit-accent) 60%, transparent), calc(var(--vx) * 2) calc(var(--vx) * 2.5) 0 var(--vx-shadow);
}
[data-vx-look="lit"] .vx-dialog:not([data-vx-live]) > header {
  background: linear-gradient(color-mix(in oklab, var(--lit-warm) 55%, transparent), color-mix(in oklab, var(--lit-warm) 55%, transparent)) no-repeat;
  background-size: calc(100% - var(--vx) * 8) var(--vx); background-position: 50% 100%;
}

/* ---------- lit: notice ---------- */

/* A click dismisses a notice (it shatters under the click), so it says it can be pressed. */
[data-vx-look="lit"] .vx-toast { cursor: pointer; }
/* plain: the light it stands on is a line of its kind's colour round it */
[data-vx-look="lit"] .vx-toast:not([data-vx-live]) {
  background: var(--vx-reading-plate, var(--vx-key)); border: 0; padding-inline-start: calc(var(--vx) * 8);
  box-shadow: 0 0 0 1px var(--lit-accent), calc(var(--vx) * 1) calc(var(--vx) * 1.25) 0 var(--vx-shadow);
}
[data-vx-look="lit"] .vx-toast:not([data-vx-live])[data-vx-kind="done"] { box-shadow: 0 0 0 1px var(--lit-go), calc(var(--vx) * 1) calc(var(--vx) * 1.25) 0 var(--vx-shadow); }
[data-vx-look="lit"] .vx-toast:not([data-vx-live])[data-vx-kind="failed"] { box-shadow: 0 0 0 1px var(--lit-stop), calc(var(--vx) * 1) calc(var(--vx) * 1.25) 0 var(--vx-shadow); }

/* ---------- lit: lettering ---------- */

/* The lit heading is asked for with data attributes on the element (see showcase/parts/lettering.html):
   data-vx-material="key" data-vx-frame="light" data-vx-ink="ink": a board of the key's material,
   a frame of the accent's light, letters of ink. Plain, a board in this look is painted the same,
   whatever it asks for: the kit's own plain board is enamel with signal letters, which in this
   look are one colour. */
[data-vx-look="lit"] :is(.vx-sign, .vx-lettering):not([data-vx-board="none"]):not([data-vx-live]) {
  background: var(--vx-key); color: var(--vx-ink);
  box-shadow: inset 0 0 0 var(--vx) var(--vx-key), inset 0 0 0 calc(var(--vx) * 2) var(--lit-accent), calc(var(--vx) * 1.5) calc(var(--vx) * 2) 0 var(--vx-shadow);
}
[data-vx-look="lit"] :is(.vx-sign, .vx-lettering):not([data-vx-board="none"]) > .vx-lettering-text::selection,
[data-vx-look="lit"] :is(.vx-sign, .vx-lettering):not([data-vx-board="none"]) > .vx-lettering-text ::selection { background: color-mix(in oklab, var(--vx-link) 38%, transparent); }

/* ---------- lit: block ---------- */

/* plain: the look's own materials and lights, which the kit's plain block does not know */
[data-vx-look="lit"] .vx-block:not([data-vx-live])[data-vx-material="key"] { background: var(--vx-key); }
[data-vx-look="lit"] .vx-block:not([data-vx-live])[data-vx-material="floor"] { background: var(--vx-floor); }
[data-vx-look="lit"] .vx-block:not([data-vx-live])[data-vx-material="light"] { background: var(--lit-accent); }
[data-vx-look="lit"] .vx-block:not([data-vx-live])[data-vx-material="light-warm"] { background: var(--lit-warm); }
[data-vx-look="lit"] .vx-block:not([data-vx-live])[data-vx-material="light-go"] { background: var(--lit-go); }
[data-vx-look="lit"] .vx-block:not([data-vx-live])[data-vx-material="light-stop"] { background: var(--lit-stop); }

/* ==== css/figure.css ==== */

/* ---------- Figure and image ----------
   A picture set in a recess (the kit's .vx-recess), with its caption as words under it.
   Tool: well for the picture; none for the caption. No script.
     <figure class="vx-figure">
       <div class="vx-recess"><img src="…" alt="What the picture shows" width="640" height="360"></div>
       <figcaption>What it is. <small>Who made it</small></figcaption>
     </figure>
   The picture may be an <img>, a <picture>, an inline <svg> or a <video>. It is as wide as the
   figure and keeps its own shape; for a shape of your choosing put a .vx-ratio between the
   recess and the picture (css/aspect-ratio.css). An image with no figure round it:
     <span class="vx-figure"><span class="vx-recess"><img …></span></span>
   The figure is as wide as its place; give it an inline-size to make it smaller. */

.vx-figure { display: grid; grid-template-columns: minmax(0, 1fr); gap: calc(var(--vx) * 3); margin: 0; min-inline-size: 0; max-inline-size: 100%; }
span.vx-figure { display: inline-grid; vertical-align: top; }
/* a picture alone in its paragraph (Markdown's ![…](…)) is a block, as wide as its place */
p > span.vx-figure:only-child { display: grid; }

/* the recess: its rim is one voxel all round, and the picture lies on its floor inside the rim */
.vx-figure > .vx-recess { display: block; box-sizing: border-box; min-inline-size: 0; padding: var(--vx); line-height: 0; }
.vx-figure > .vx-recess > :is(img, svg, video), .vx-figure > .vx-recess > picture > img { display: block; inline-size: 100%; block-size: auto; max-inline-size: 100%; }
.vx-figure > .vx-recess > picture { display: block; }
/* a picture that has not come (or never will) shows its words on the floor, not a broken box */
.vx-figure img { color: var(--vx-ink-quiet); font: 400 0.875rem/1.4 var(--vx-font); }

.vx-figure figcaption {
  max-inline-size: 34rem;
  color: var(--vx-ink-quiet);
  font: 400 0.875rem/1.45 var(--vx-font);
  line-height: round(up, 1.4em, var(--vx)); /* 20 px: five voxels a line */
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.vx-figure figcaption :is(strong, b) { color: var(--vx-ink); font-weight: 600; }
/* who made it, after what it is */
.vx-figure figcaption small { display: block; font-size: 0.8125rem; }
.vx-figure figcaption a { color: var(--vx-link); text-underline-offset: 0.2em; }
.vx-figure figcaption a:focus-visible { outline: 2px solid var(--vx-focus); outline-offset: 2px; }

/* ==== css/fittings.css ==== */

/* ---------- Fittings ----------
   Made by tools/fittings-css.mjs from src/looks/fittings.js. Do not edit: edit that, and run it again.
   An instrument named in the page's HTML is fitted before any script runs, and where none runs:
     <html data-vx-look="lit" data-shell="walnut" data-caps="field" data-profile="high">
   At night (the system's dark setting, or data-theme="dark") the same enclosure has its lights
   down; data-theme="light" keeps it by day. The first adopt() reads these attributes and gives
   the voxels the same materials (fitInstrument() called earlier wins). */

:root[data-shell="walnut"] {
  --vx-look: instrument;
  --vx-theme: day;
  --mat: #355347;
  --vx-ground: #efece3;
  --vx-chalk: #b98c65;
  --vx-ink: #262b25;
  --vx-ink-quiet: #3e4037;
  --vx-floor: #d4cbb5;
  --panel: #e3d8be;
  --vx-steel: #a79d88;
  --vx-knob: #d8c5a1;
  --vx-enamel: var(--lit-cap-day,#aa4a27);
  --vx-signal: var(--lit-accent);
  --vx-focus: #b95329;
  --vx-danger-text: #85261c;
  --vx-link: var(--lit-link-day,#1f40c4);
  --vx-on-enamel: #fff8e8;
}
:root[data-shell="alloy"] {
  --vx-look: instrument;
  --vx-theme: day;
  --mat: #253e4e;
  --vx-ground: #26323a;
  --vx-chalk: #445964;
  --vx-ink: #fbf5e9;
  --vx-ink-quiet: #e0e7e5;
  --vx-floor: #313b40;
  --panel: #40545c;
  --vx-steel: #a79d88;
  --vx-knob: #d8c5a1;
  --vx-enamel: var(--lit-cap-day,#aa4a27);
  --vx-signal: var(--lit-accent);
  --vx-focus: #ffb58f;
  --vx-danger-text: #ffd4c9;
  --vx-link: var(--lit-link-night,#9db8ff);
  --vx-on-enamel: #fff8e8;
}
:root[data-shell="smoke"] {
  --vx-look: instrument;
  --vx-theme: day;
  --mat: #433e53;
  --vx-ground: #25242d;
  --vx-chalk: #49505c;
  --vx-ink: #fbf5e9;
  --vx-ink-quiet: #e0e7e5;
  --vx-floor: #313b40;
  --panel: #363b49;
  --vx-steel: #a79d88;
  --vx-knob: #d8c5a1;
  --vx-enamel: var(--lit-cap-day,#aa4a27);
  --vx-signal: var(--lit-accent);
  --vx-focus: #ffb58f;
  --vx-danger-text: #ffd4c9;
  --vx-link: var(--lit-link-night,#9db8ff);
  --vx-on-enamel: #fff8e8;
}
:root[data-shell="frost"] {
  --vx-look: instrument;
  --vx-theme: day;
  --mat: #4c6560;
  --vx-ground: #e5e9e5;
  --vx-chalk: #ece9dd;
  --vx-ink: #262b25;
  --vx-ink-quiet: #3e4037;
  --vx-floor: #d4cbb5;
  --panel: #e3e7dd;
  --vx-steel: #a79d88;
  --vx-knob: #d8c5a1;
  --vx-enamel: var(--lit-cap-day,#aa4a27);
  --vx-signal: var(--lit-accent);
  --vx-focus: #b95329;
  --vx-danger-text: #85261c;
  --vx-link: var(--lit-link-day,#1f40c4);
  --vx-on-enamel: #fff8e8;
}
:root[data-shell="clear"] {
  --vx-look: instrument;
  --vx-theme: day;
  --mat: #365b62;
  --vx-ground: #dfe8e7;
  --vx-chalk: #c4e4df;
  --vx-ink: #262b25;
  --vx-ink-quiet: #3e4037;
  --vx-floor: #d4cbb5;
  --panel: #d2e4dc;
  --vx-steel: #a79d88;
  --vx-knob: #d8c5a1;
  --vx-enamel: var(--lit-cap-day,#aa4a27);
  --vx-signal: var(--lit-accent);
  --vx-focus: #b95329;
  --vx-danger-text: #85261c;
  --vx-link: var(--lit-link-day,#1f40c4);
  --vx-on-enamel: #fff8e8;
}
:root[data-shell] {
  --vx-hw-steel: #9d998a;
  --vx-hw-gasket: #232824;
  --vx-hw-slate: #515754;
  --vx-hw-ivory: #dcd5c1;
}

/* at night */
:root[data-theme="dark"][data-shell="walnut"] {
  --vx-look: instrument;
  --vx-theme: night;
  --mat: #16231d;
  --vx-ground: #151a17;
  --vx-chalk: #b98c65;
  --vx-ink: #ece6d6;
  --vx-ink-quiet: #c9c3b2;
  --vx-floor: #0e110f;
  --panel: #262b26;
  --vx-slate: #3a403b;
  --vx-steel: #5d5b52;
  --vx-knob: #d8c5a1;
  --vx-enamel: var(--lit-cap-night,#b9562f);
  --vx-signal: var(--lit-accent);
  --vx-focus: #ffb58f;
  --vx-shadow: rgb(0 0 0 / 0.55);
  --vx-danger-text: #ffc2b5;
  --vx-link: var(--lit-link-night,#9db8ff);
  --vx-on-enamel: #fff8e8;
  --lit-accent: var(--lit-accent-night,#458fe3);
  --lit-warm: #c9a264;
  --lit-go: #5fe894;
  --lit-stop: #ff7a66;
  --lit-night: 1;
}
:root[data-theme="dark"][data-shell="alloy"] {
  --vx-look: instrument;
  --vx-theme: night;
  --mat: #0f1a21;
  --vx-ground: #10171b;
  --vx-chalk: #445964;
  --vx-ink: #ece6d6;
  --vx-ink-quiet: #c9c3b2;
  --vx-floor: #0e110f;
  --panel: #24323a;
  --vx-slate: #3a403b;
  --vx-steel: #5d5b52;
  --vx-knob: #d8c5a1;
  --vx-enamel: var(--lit-cap-night,#b9562f);
  --vx-signal: var(--lit-accent);
  --vx-focus: #ffb58f;
  --vx-shadow: rgb(0 0 0 / 0.55);
  --vx-danger-text: #ffc2b5;
  --vx-link: var(--lit-link-night,#9db8ff);
  --vx-on-enamel: #fff8e8;
  --lit-accent: var(--lit-accent-night,#458fe3);
  --lit-warm: #c9a264;
  --lit-go: #5fe894;
  --lit-stop: #ff7a66;
  --lit-night: 1;
}
:root[data-theme="dark"][data-shell="smoke"] {
  --vx-look: instrument;
  --vx-theme: night;
  --mat: #1c1a24;
  --vx-ground: #131218;
  --vx-chalk: #49505c;
  --vx-ink: #ece6d6;
  --vx-ink-quiet: #c9c3b2;
  --vx-floor: #0e110f;
  --panel: #272a34;
  --vx-slate: #3a403b;
  --vx-steel: #5d5b52;
  --vx-knob: #d8c5a1;
  --vx-enamel: var(--lit-cap-night,#b9562f);
  --vx-signal: var(--lit-accent);
  --vx-focus: #ffb58f;
  --vx-shadow: rgb(0 0 0 / 0.55);
  --vx-danger-text: #ffc2b5;
  --vx-link: var(--lit-link-night,#9db8ff);
  --vx-on-enamel: #fff8e8;
  --lit-accent: var(--lit-accent-night,#458fe3);
  --lit-warm: #c9a264;
  --lit-go: #5fe894;
  --lit-stop: #ff7a66;
  --lit-night: 1;
}
:root[data-theme="dark"][data-shell="frost"] {
  --vx-look: instrument;
  --vx-theme: night;
  --mat: #1d2a28;
  --vx-ground: #131918;
  --vx-chalk: #ece9dd;
  --vx-ink: #ece6d6;
  --vx-ink-quiet: #c9c3b2;
  --vx-floor: #0e110f;
  --panel: #283130;
  --vx-slate: #3a403b;
  --vx-steel: #5d5b52;
  --vx-knob: #d8c5a1;
  --vx-enamel: var(--lit-cap-night,#b9562f);
  --vx-signal: var(--lit-accent);
  --vx-focus: #ffb58f;
  --vx-shadow: rgb(0 0 0 / 0.55);
  --vx-danger-text: #ffc2b5;
  --vx-link: var(--lit-link-night,#9db8ff);
  --vx-on-enamel: #fff8e8;
  --lit-accent: var(--lit-accent-night,#458fe3);
  --lit-warm: #c9a264;
  --lit-go: #5fe894;
  --lit-stop: #ff7a66;
  --lit-night: 1;
}
:root[data-theme="dark"][data-shell="clear"] {
  --vx-look: instrument;
  --vx-theme: night;
  --mat: #172629;
  --vx-ground: #10191b;
  --vx-chalk: #c4e4df;
  --vx-ink: #ece6d6;
  --vx-ink-quiet: #c9c3b2;
  --vx-floor: #0e110f;
  --panel: #253234;
  --vx-slate: #3a403b;
  --vx-steel: #5d5b52;
  --vx-knob: #d8c5a1;
  --vx-enamel: var(--lit-cap-night,#b9562f);
  --vx-signal: var(--lit-accent);
  --vx-focus: #ffb58f;
  --vx-shadow: rgb(0 0 0 / 0.55);
  --vx-danger-text: #ffc2b5;
  --vx-link: var(--lit-link-night,#9db8ff);
  --vx-on-enamel: #fff8e8;
  --lit-accent: var(--lit-accent-night,#458fe3);
  --lit-warm: #c9a264;
  --lit-go: #5fe894;
  --lit-stop: #ff7a66;
  --lit-night: 1;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"])[data-shell="walnut"] {
    --vx-look: instrument;
    --vx-theme: night;
    --mat: #16231d;
    --vx-ground: #151a17;
    --vx-chalk: #b98c65;
    --vx-ink: #ece6d6;
    --vx-ink-quiet: #c9c3b2;
    --vx-floor: #0e110f;
    --panel: #262b26;
    --vx-slate: #3a403b;
    --vx-steel: #5d5b52;
    --vx-knob: #d8c5a1;
    --vx-enamel: var(--lit-cap-night,#b9562f);
    --vx-signal: var(--lit-accent);
    --vx-focus: #ffb58f;
    --vx-shadow: rgb(0 0 0 / 0.55);
    --vx-danger-text: #ffc2b5;
    --vx-link: var(--lit-link-night,#9db8ff);
    --vx-on-enamel: #fff8e8;
    --lit-accent: var(--lit-accent-night,#458fe3);
    --lit-warm: #c9a264;
    --lit-go: #5fe894;
    --lit-stop: #ff7a66;
    --lit-night: 1;
  }
  :root:not([data-theme="light"])[data-shell="alloy"] {
    --vx-look: instrument;
    --vx-theme: night;
    --mat: #0f1a21;
    --vx-ground: #10171b;
    --vx-chalk: #445964;
    --vx-ink: #ece6d6;
    --vx-ink-quiet: #c9c3b2;
    --vx-floor: #0e110f;
    --panel: #24323a;
    --vx-slate: #3a403b;
    --vx-steel: #5d5b52;
    --vx-knob: #d8c5a1;
    --vx-enamel: var(--lit-cap-night,#b9562f);
    --vx-signal: var(--lit-accent);
    --vx-focus: #ffb58f;
    --vx-shadow: rgb(0 0 0 / 0.55);
    --vx-danger-text: #ffc2b5;
    --vx-link: var(--lit-link-night,#9db8ff);
    --vx-on-enamel: #fff8e8;
    --lit-accent: var(--lit-accent-night,#458fe3);
    --lit-warm: #c9a264;
    --lit-go: #5fe894;
    --lit-stop: #ff7a66;
    --lit-night: 1;
  }
  :root:not([data-theme="light"])[data-shell="smoke"] {
    --vx-look: instrument;
    --vx-theme: night;
    --mat: #1c1a24;
    --vx-ground: #131218;
    --vx-chalk: #49505c;
    --vx-ink: #ece6d6;
    --vx-ink-quiet: #c9c3b2;
    --vx-floor: #0e110f;
    --panel: #272a34;
    --vx-slate: #3a403b;
    --vx-steel: #5d5b52;
    --vx-knob: #d8c5a1;
    --vx-enamel: var(--lit-cap-night,#b9562f);
    --vx-signal: var(--lit-accent);
    --vx-focus: #ffb58f;
    --vx-shadow: rgb(0 0 0 / 0.55);
    --vx-danger-text: #ffc2b5;
    --vx-link: var(--lit-link-night,#9db8ff);
    --vx-on-enamel: #fff8e8;
    --lit-accent: var(--lit-accent-night,#458fe3);
    --lit-warm: #c9a264;
    --lit-go: #5fe894;
    --lit-stop: #ff7a66;
    --lit-night: 1;
  }
  :root:not([data-theme="light"])[data-shell="frost"] {
    --vx-look: instrument;
    --vx-theme: night;
    --mat: #1d2a28;
    --vx-ground: #131918;
    --vx-chalk: #ece9dd;
    --vx-ink: #ece6d6;
    --vx-ink-quiet: #c9c3b2;
    --vx-floor: #0e110f;
    --panel: #283130;
    --vx-slate: #3a403b;
    --vx-steel: #5d5b52;
    --vx-knob: #d8c5a1;
    --vx-enamel: var(--lit-cap-night,#b9562f);
    --vx-signal: var(--lit-accent);
    --vx-focus: #ffb58f;
    --vx-shadow: rgb(0 0 0 / 0.55);
    --vx-danger-text: #ffc2b5;
    --vx-link: var(--lit-link-night,#9db8ff);
    --vx-on-enamel: #fff8e8;
    --lit-accent: var(--lit-accent-night,#458fe3);
    --lit-warm: #c9a264;
    --lit-go: #5fe894;
    --lit-stop: #ff7a66;
    --lit-night: 1;
  }
  :root:not([data-theme="light"])[data-shell="clear"] {
    --vx-look: instrument;
    --vx-theme: night;
    --mat: #172629;
    --vx-ground: #10191b;
    --vx-chalk: #c4e4df;
    --vx-ink: #ece6d6;
    --vx-ink-quiet: #c9c3b2;
    --vx-floor: #0e110f;
    --panel: #253234;
    --vx-slate: #3a403b;
    --vx-steel: #5d5b52;
    --vx-knob: #d8c5a1;
    --vx-enamel: var(--lit-cap-night,#b9562f);
    --vx-signal: var(--lit-accent);
    --vx-focus: #ffb58f;
    --vx-shadow: rgb(0 0 0 / 0.55);
    --vx-danger-text: #ffc2b5;
    --vx-link: var(--lit-link-night,#9db8ff);
    --vx-on-enamel: #fff8e8;
    --lit-accent: var(--lit-accent-night,#458fe3);
    --lit-warm: #c9a264;
    --lit-go: #5fe894;
    --lit-stop: #ff7a66;
    --lit-night: 1;
  }
}

:root[data-caps="field"] {
  --vx-key: #e9dfc5;
  --vx-lamp-resin: #e9dfc5;
  --lit-legend: #352c23;
  --vx-danger-legend: #85261c;
}
:root[data-caps="linen"] {
  --vx-key: #eee4cd;
  --vx-lamp-resin: #eee4cd;
  --lit-legend: #352c23;
  --vx-danger-legend: #85261c;
}
:root[data-caps="carbon"] {
  --vx-key: #393f3f;
  --vx-lamp-resin: #393f3f;
  --lit-legend: #f7ead4;
  --vx-danger-legend: #ffd4c9;
}
:root[data-caps="opal"] {
  --vx-key: #c8dfdf;
  --vx-lamp-resin: #c8dfdf;
  --lit-legend: #152c32;
  --vx-danger-legend: #85261c;
}

/* the Ridgeline print, plain: inlay at the horizon, ridge below it */
[data-caps="field"] {
  --vx-cap-inlay: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 128 100' preserveAspectRatio='none' shape-rendering='crispEdges'%3E%3Cpath fill='%23909b80' d='M0 100V74.0H1V75.7H2V77.3H3V78.8H4V80.1H5V81.1H6V81.9H7V82.3H8V82.4H9V82.3H10V81.9H11V81.3H12V80.6H13V79.8H14V79.1H15V78.4H16V77.8H17V77.4H18V77.2H19V77.2H20V77.3H21V77.7H22V78.1H23V78.6H24V79.1H25V79.5H26V79.8H27V79.9H28V79.8H29V79.4H30V78.8H31V77.9H32V76.7H33V75.3H34V73.8H35V72.2H36V70.5H37V68.9H38V67.4H39V66.1H40V65.1H41V64.4H42V63.9H43V63.8H44V64.1H45V64.6H46V65.3H47V66.2H48V67.2H49V68.3H50V69.3H51V70.3H52V71.1H53V71.8H54V72.2H55V72.4H56V72.5H57V72.4H58V72.1H59V71.8H60V71.5H61V71.2H62V71.1H63V71.1H64V71.3H65V71.8H66V72.5H67V73.4H68V74.6H69V75.9H70V77.4H71V78.8H72V80.3H73V81.7H74V82.9H75V83.8H76V84.5H77V84.9H78V84.9H79V84.6H80V84.0H81V83.2H82V82.1H83V80.8H84V79.5H85V78.1H86V76.8H87V75.6H88V74.6H89V73.8H90V73.2H91V72.9H92V72.8H93V72.8H94V73.0H95V73.3H96V73.5H97V73.8H98V73.9H99V73.9H100V73.7H101V73.3H102V72.7H103V71.8H104V70.8H105V69.7H106V68.4H107V67.2H108V66.0H109V65.0H110V64.2H111V63.6H112V63.3H113V63.3H114V63.7H115V64.4H116V65.4H117V66.6H118V68.0H119V69.5H120V71.1H121V72.7H122V74.1H123V75.4H124V76.5H125V77.3H126V77.9H127V78.2H128V100Z'/%3E%3C/svg%3E");
  --vx-cap-ridge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 128 100' preserveAspectRatio='none' shape-rendering='crispEdges'%3E%3Cpath fill='%23637a6c' d='M0 100V74.0H1V75.7H2V77.3H3V78.8H4V80.1H5V81.1H6V81.9H7V82.3H8V82.4H9V82.3H10V81.9H11V81.3H12V80.6H13V79.8H14V79.1H15V78.4H16V77.8H17V77.4H18V77.2H19V77.2H20V77.3H21V77.7H22V78.1H23V78.6H24V79.1H25V79.5H26V79.8H27V79.9H28V79.8H29V79.4H30V78.8H31V77.9H32V76.7H33V75.3H34V73.8H35V72.2H36V70.5H37V68.9H38V67.4H39V66.1H40V65.1H41V64.4H42V63.9H43V63.8H44V64.1H45V64.6H46V65.3H47V66.2H48V67.2H49V68.3H50V69.3H51V70.3H52V71.1H53V71.8H54V72.2H55V72.4H56V72.5H57V72.4H58V72.1H59V71.8H60V71.5H61V71.2H62V71.1H63V71.1H64V71.3H65V71.8H66V72.5H67V73.4H68V74.6H69V75.9H70V77.4H71V78.8H72V80.3H73V81.7H74V82.9H75V83.8H76V84.5H77V84.9H78V84.9H79V84.6H80V84.0H81V83.2H82V82.1H83V80.8H84V79.5H85V78.1H86V76.8H87V75.6H88V74.6H89V73.8H90V73.2H91V72.9H92V72.8H93V72.8H94V73.0H95V73.3H96V73.5H97V73.8H98V73.9H99V73.9H100V73.7H101V73.3H102V72.7H103V71.8H104V70.8H105V69.7H106V68.4H107V67.2H108V66.0H109V65.0H110V64.2H111V63.6H112V63.3H113V63.3H114V63.7H115V64.4H116V65.4H117V66.6H118V68.0H119V69.5H120V71.1H121V72.7H122V74.1H123V75.4H124V76.5H125V77.3H126V77.9H127V78.2H128V100Z'/%3E%3C/svg%3E");
  --vx-lamp-print: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 100' preserveAspectRatio='none' shape-rendering='crispEdges'%3E%3Cpath fill='%23637a6c' d='M0 100V90.0H1V92.7H2V95.2H3V97.4H4V99.2H5V100.0H6V100.0H7V100.0H8V100.0H9V100.0H10V98.9H11V97.6H12V96.3H13V95.1H14V94.1H15V93.4H16V93.0H17V93.0H18V93.2H19V93.7H20V94.2H21V94.7H22V95.1H23V95.1H24V94.8H25V94.0H26V92.8H27V91.1H28V89.1H29V86.8H30V84.4H31V82.1H32V80.0H33V78.2H34V76.9H35V76.2H36V76.1H37V76.6H38V77.7H39V79.3H40V81.2H41V83.4H42V85.6H43V87.7H44V89.6H45V91.1H46V92.3H47V93.0H48V93.3H49V93.3H50V93.0H51V92.5H52V92.1H53V91.8H54V91.8H55V92.0H56V92.6H57V93.5H58V94.7H59V96.2H60V97.8H61V99.3H62V100.0H63V100.0H64V100Z'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 100' preserveAspectRatio='none' shape-rendering='crispEdges'%3E%3Cpath fill='%23909b80' d='M0 100V82.0H1V84.7H2V87.2H3V89.4H4V91.2H5V92.4H6V93.1H7V93.2H8V92.8H9V92.0H10V90.9H11V89.6H12V88.3H13V87.1H14V86.1H15V85.4H16V85.0H17V85.0H18V85.2H19V85.7H20V86.2H21V86.7H22V87.1H23V87.1H24V86.8H25V86.0H26V84.8H27V83.1H28V81.1H29V78.8H30V76.4H31V74.1H32V72.0H33V70.2H34V68.9H35V68.2H36V68.1H37V68.6H38V69.7H39V71.3H40V73.2H41V75.4H42V77.6H43V79.7H44V81.6H45V83.1H46V84.3H47V85.0H48V85.3H49V85.3H50V85.0H51V84.5H52V84.1H53V83.8H54V83.8H55V84.0H56V84.6H57V85.5H58V86.7H59V88.2H60V89.8H61V91.3H62V92.6H63V93.6H64V100Z'/%3E%3C/svg%3E");
}

/* ==== css/floating-label.css ==== */

/* ---------- Floating label ---------- */

/* Tool: the well. The label is words: they rest inside the well while it is empty, and move above
   it when it has focus or holds something.
   Markup: <div class="vx-field vx-floating">
             <label class="vx-field-label" for="mail">Email</label>
             <span class="vx-well"><input id="mail" placeholder=" "></span>
           </div>
   The placeholder (a space will do) is how CSS knows the field is empty; no script is needed.
   The label's place is above the well, and that is where it is unless the field is known to be
   empty and at rest: a field with no placeholder, one of a kind that shows none, or one the
   browser filled in by itself keeps its label above, so the label never lies on what was typed.
   Its row above the well is kept in both states: nothing else moves when the label does. */

.vx-floating { position: relative; }
.vx-floating > .vx-field-label {
  position: relative; z-index: 1; /* over the well, which is where it rests */
  justify-self: start;
  /* never wider than the room inside the well, in either state, so its lines break the same way */
  max-inline-size: calc(100% - var(--vx) * 8);
  min-block-size: calc(var(--vx) * 5); line-height: calc(var(--vx) * 5);
  transition: translate 180ms var(--vx-ease-out), color 180ms var(--vx-ease-out);
}

/* At rest and empty: down into the well, to where the first words will be typed. It goes down
   its own row and the gap, and is centred on the well (11 voxels) whatever its own height.
   "Empty" leaves out a field the browser filled in by itself: until the page is touched the
   browser may show what it put there and still count the field as empty. That is asked inside
   :is(), which lets a browser that does not know one of the two names keep the rule. */
.vx-floating:has(:is(input, textarea):placeholder-shown:not(:focus):not(:is(:autofill, :-webkit-autofill))) > .vx-field-label {
  translate: calc(var(--vx) * 4) calc(var(--vx) * 7.5 + 50%);
  color: var(--vx-ink-quiet);
}
.vx-floating:has(:is(input, textarea):placeholder-shown:not(:focus):not(:is(:autofill, :-webkit-autofill))) > .vx-field-label:dir(rtl) { translate: calc(var(--vx) * -4) calc(var(--vx) * 7.5 + 50%); }
/* in a taller well it rests on the first line */
.vx-floating:has(textarea:placeholder-shown:not(:focus):not(:is(:autofill, :-webkit-autofill))) > .vx-field-label { translate: calc(var(--vx) * 4) calc(var(--vx) * 5 + 100%); }
.vx-floating:has(textarea:placeholder-shown:not(:focus):not(:is(:autofill, :-webkit-autofill))) > .vx-field-label:dir(rtl) { translate: calc(var(--vx) * -4) calc(var(--vx) * 5 + 100%); }
/* resting in a field that can be typed in, it shows where a press will land */
.vx-floating:has(:is(input, textarea):enabled:placeholder-shown:not(:focus):not(:is(:autofill, :-webkit-autofill))) > .vx-field-label { cursor: text; }

/* a placeholder of real words would lie under the resting label: it shows once the label has moved */
.vx-floating :is(input, textarea):not(:focus)::placeholder { color: transparent; }

.vx-floating:has(:is(input, textarea):disabled) > .vx-field-label { color: var(--vx-ink-quiet); }

@media (prefers-reduced-motion: reduce) {
  .vx-floating > .vx-field-label { transition: none; }
}

/* ==== css/hover-card.css ==== */

/* ---------- Hover card ---------- */

/* A look ahead at what a link leads to. It is a popover (popover="manual"): the part opens it and
   puts it by its link. Its width never depends on where it is. */
.vx-hover-card {
  box-sizing: border-box;
  inline-size: min(calc(var(--vx) * 68), calc(100vw - var(--vx) * 6));
  inline-size: min(calc(var(--vx) * 68), round(down, calc(100vw - var(--vx) * 6), var(--vx)));
  padding: calc(var(--vx) * 4) calc(var(--vx) * 5);
  border: 0;
  overflow: visible;
  isolation: isolate;
  background: none;
  color: var(--vx-ink);
  font-family: var(--vx-font);
  font-size: 0.9375rem;
  line-height: calc(var(--vx) * 6);
  overflow-wrap: anywhere;
}
/* Open, what is in it is a column with a gap: a page's own margins for p and h3 do not reach in.
   (Closed, it has no box at all, so `display` is named only for the open one.) */
.vx-hover-card:is(:popover-open, [data-vx-measure]) { display: grid; gap: calc(var(--vx) * 2); align-content: start; }
/* for the moment the part measures it, just before it opens */
.vx-hover-card[data-vx-measure] { visibility: hidden; }
.vx-hover-card:focus-visible { outline: none; }

.vx-hover-card > :is(h2, h3, h4, p) { margin: 0; min-inline-size: 0; }
.vx-hover-card > :where(h2, h3, h4) { font-size: 1rem; font-weight: 600; line-height: calc(var(--vx) * 6); }
/* the quiet line that follows the heading sits close under it */
.vx-hover-card > :is(h2, h3, h4) + .vx-hover-card-meta { margin-block-start: calc(var(--vx) * -2); }
/* the quiet line: who or what it is, when, how many */
.vx-hover-card-meta { color: var(--vx-ink-quiet); font-size: 0.875rem; }
.vx-hover-card a { color: var(--vx-link); text-underline-offset: 0.15em; }
.vx-hover-card a:focus-visible { outline: 2px solid var(--vx-focus); outline-offset: 2px; }

/* plain: a painted slab; the accent's line is at its left and top, where the light shows */
.vx-hover-card:not([data-vx-live]) {
  background: var(--vx-reading-plate, var(--vx-key, var(--vx-chalk)));
  box-shadow: calc(var(--vx) * -0.5) calc(var(--vx) * -0.5) 0 var(--lit-accent, var(--vx-enamel)), calc(var(--vx) * 1.5) calc(var(--vx) * 2) 0 var(--vx-shadow);
}

/* ==== css/input-group.css ==== */

/* ---------- Input group ---------- */

/* Tool: one well, holding the input and its add-on words. A key that belongs to it stands beside
   the well, not in it: what is pressed stands up, what is typed into is cut in.
   Markup: <div class="vx-field">
             <label class="vx-field-label" for="site">Address</label>
             <div class="vx-input-group">
               <span class="vx-well">
                 <label class="vx-addon" for="site">https://</label>
                 <input id="site">
                 <label class="vx-addon" for="site">.fogline.app</label>
               </span>
               <button class="vx-button">Copy</button>
             </div>
           </div>
   An add-on is a label of the same input: a press on it lands in the input, and it is read out as
   part of the input's name, in order ("Address https:// .fogline.app"). */

/* four voxels between the well and its key, beside it or under it: the key's side and the light
   at its foot are drawn two and a half voxels left of and above its face, and stay clear of the rim */
.vx-input-group { display: flex; flex-wrap: wrap; align-items: center; gap: calc(var(--vx) * 4); min-inline-size: 0; }
/* The well asks for its words and 24 voxels to type in. Where the line cannot give that and the
   key too, the key goes to the next line and the well takes the whole of this one; the well
   itself gives way before the page scrolls sideways. */
.vx-input-group > .vx-well { display: flex; align-items: center; flex: 1 1 auto; min-inline-size: 0; max-inline-size: 100%; }
.vx-input-group > .vx-well > input { flex: 1 1 calc(var(--vx) * 24); inline-size: auto; min-inline-size: calc(var(--vx) * 8); }
.vx-input-group > .vx-button { flex: none; }

.vx-addon {
  /* in a line too short for everything the words give way first, and say so with an ellipsis */
  flex: 0 1 auto; min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding-inline: calc(var(--vx) * 4) 0;
  color: var(--vx-ink-quiet); font: 500 1rem/1.5 var(--vx-font);
  cursor: text; user-select: none; -webkit-user-select: none;
}
.vx-input-group input + .vx-addon { padding-inline: 0 calc(var(--vx) * 4); }
/* the words and what is typed read as one line: a voxel between them, not the well's whole margin */
.vx-input-group .vx-addon + input { padding-inline-start: calc(var(--vx) * 1); }
.vx-input-group input:has(+ .vx-addon) { padding-inline-end: calc(var(--vx) * 1); }
.vx-input-group input:disabled ~ .vx-addon, .vx-input-group .vx-addon:has(~ input:disabled) { cursor: default; }

/* ==== css/instrument-library.css ==== */

[data-shell] .vx-calendar-cell:is([data-vx-mark="one"], [data-vx-mark="start"], [data-vx-mark="end"]) > .vx-calendar-day,
[data-shell] .vx-pagination-pages > li > a { color: var(--lit-legend); }
[data-shell] .vx-pagination-pages:not([data-vx-live]) { background: #414844; }
[data-shell] .vx-pagination-gap { color: #f2eddd; }
[data-shell] .vx-pagination-pages:not([data-vx-live]) > li > a:is(:not([aria-current]), [aria-current="false"]) {
  background: var(--vx-key);
  box-shadow: inset 1px 1px #ffffff52, inset -2px -3px #252c2560, inset -3px -4px #0002;
}

[data-shell] .vx-date-float .vx-calendar-cell[data-vx-mark="mid"] > .vx-calendar-day { color: var(--vx-ink); }

/* Reading. Set the article like the inside of a field manual. Only things
   that actually display machine output get a window. */
[data-shell] .vx-prose :is(h2, h3, blockquote) { font-family: var(--vx-serif); font-weight: 500; }
[data-shell] .vx-prose h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: round(up, 1.12em, var(--vx)); letter-spacing: -.035em; }
[data-shell] .vx-prose blockquote { font-style: italic; max-inline-size: 45ch; }
[data-shell] .vx-prose blockquote footer { font: 400 .8125rem/1.25rem var(--vx-mono); margin-block-start: .5rem; }
[data-shell] .vx-code pre {
  --vx-ink-quiet: #a9bcad;
  color: #e9f0df; background: linear-gradient(150deg, #26322e, #1d2522 68%);
  box-shadow: inset 0 2px 4px #101713a6, inset 0 -1px #808f7c;
}
[data-shell] .vx-code[data-vx-lines] .vx-line::before {
  inline-size: 3ch; padding-inline-end: .6em; margin-inline-end: .85em; border-inline-end: 1px solid #596960;
}
[data-shell] :is(.vx-figure figcaption, .vx-code figcaption) { padding-inline-start: .75rem; border-inline-start: 2px solid currentColor; }
[data-shell] :is(.vx-table thead th, .vx-table .vx-num, .vx-data-table-count, .vx-avatar-initials, .vx-badge) { font-family: var(--vx-mono); }
[data-shell] .vx-table tbody tr + tr > :is(th, td) { border-color: color-mix(in srgb, currentColor 21%, transparent); }
[data-shell] .vx-data-table tbody tr:has(input:checked) { background: color-mix(in srgb, var(--vx-ink) 9%, transparent); }
[data-shell] .vx-breadcrumb [aria-current="page"] { text-decoration: underline; text-underline-offset: .35em; }

[data-shell] .vx-scroll-bar::before {
  background: repeating-linear-gradient(to bottom, currentColor 0 1px, transparent 1px 12.5%) left center / 3px 100% no-repeat;
  opacity: .6;
}
[data-shell] .vx-list-group > li + li { box-shadow: inset 0 1px color-mix(in srgb, currentColor 22%, transparent); }
[data-shell] :is(.vx-item-trail, .vx-separator:not(.vx-groove)) { font-family: var(--vx-mono); }
[data-shell] .vx-callout-title { font-weight: 650; letter-spacing: -.012em; }
[data-shell] .vx-empty-title { font: 500 1.5rem/1.25 Georgia, "Times New Roman", serif; }

/* Navigation. An engraved registration mark stays at each stop on the rail;
   the existing moving indicator identifies the selected stop. */
[data-shell] :is(.vx-nav[data-vx-mark="groove"], .vx-spy) a {
  background: linear-gradient(currentColor, currentColor) left .5rem bottom / 1px .25rem no-repeat;
}
[data-shell] :is(.vx-nav[data-vx-way="down"], .vx-spy:not([data-vx-way="across"])) a {
  background-position: left center; background-size: .25rem 1px;
}
[data-shell] :is(.vx-nav[data-vx-way="down"], .vx-spy:not([data-vx-way="across"])) a:dir(rtl) { background-position: right center; }
[data-shell] .vx-nav[data-vx-mark="seats"]:not([data-vx-live]) { background-color: #505653; }
[data-shell] .vx-nav[data-vx-mark="seats"] a:is(:not([aria-current]), [aria-current="false"]):not([aria-disabled="true"]) { color: #fff9e9; }
[data-shell] :is(.vx-nav-title, .vx-command-title, .vx-combobox-title, .vx-option-trail, .vx-nav-trail) { font-family: var(--vx-mono); }
[data-shell] :is(.vx-menubar, .vx-navigation-menu) { border-block-end: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
[data-shell] :is(.vx-menubar, .vx-navigation-menu) [aria-expanded="true"],
[data-shell] :is(.vx-command, .vx-combobox-float) [role="option"][data-vx-active] { font-weight: 650; }

/* Data. The scale and the readout share a smoked face behind the glass.
   Place every tick on the chart's actual axis label, including sparse axes. */
[data-shell] :is(.vx-chart, .vx-command-scroll) {
  --vx-ink: #eef3e6; --vx-ink-quiet: #c1cfc2;
  background: linear-gradient(135deg, #35433c, #242e2b 62%, #26312e);
}
[data-shell] .vx-command-scroll { box-shadow: inset 0 2px 4px #10171394, inset 0 -1px #8a9587; }
[data-shell] .vx-chart {
  padding: 1rem; border: 1px solid #282e29; border-radius: 4px;
  box-shadow: inset 0 1px #667367, inset 0 0 0 3px #313b36, 0 1px 0 #ffffff45;
}
[data-shell] .vx-chart > figcaption { font-size: 1.125rem; font-weight: 600; }
[data-shell] :is(.vx-chart-x, .vx-chart-y, .vx-chart-key) { font-family: var(--vx-mono); }
[data-shell] .vx-chart-y > span::after {
  content: ""; position: absolute; inset-inline-start: calc(100% + 3px); top: 50%; inline-size: 5px; border-top: 1px solid currentColor;
}
[data-shell] .vx-chart-x > span::before {
  content: ""; position: absolute; left: 50%; bottom: calc(100% + 1px); height: 4px; border-left: 1px solid currentColor;
}
[data-shell] .vx-chart-window:not([data-vx-live]) { background: #232824; box-shadow: inset 1px 2px 4px #101713, inset 0 -1px #708273; }
[data-shell] .vx-chart-marks [data-vx-light="stud"] { --_light: #555d58; }
[data-shell] .vx-calendar-names { border-block: 1px solid color-mix(in srgb, currentColor 25%, transparent); }
[data-shell] :is(.vx-calendar-name, .vx-calendar-day, .vx-theme-picker-name) { font-family: var(--vx-mono); }
[data-shell] .vx-carousel-lamps { outline: 1px solid color-mix(in srgb, currentColor 28%, transparent); outline-offset: 2px; }

[data-shell] .vx-chart-reading { background: #1b2621; box-shadow: inset 0 1px 2px #101811; }
[data-shell] .vx-resizable[data-vx-on] > .vx-resizable-groove:not([aria-disabled="true"])::before {
  content: ""; position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%);
  inline-size: .65rem; block-size: 1.75rem; pointer-events: none;
  border: 1px solid #4e544b; border-radius: 2px;
  background: repeating-linear-gradient(0deg, #bdbbad 0 2px, #787c71 2px 3px, #d3d0bc 3px 4px);
  box-shadow: inset 1px 1px #e9e7d3, 1px 2px 2px #15191180;
}
[data-shell] .vx-resizable[data-vx-way="down"] > .vx-resizable-groove::before { transform: translate(-50%, -50%) rotate(90deg); }
[data-shell] .vx-resizable[data-vx-on] > [data-vx-held]::before { border-color: var(--vx-ink); }

[data-shell] .vx-otp-cell::after {
  content: ""; position: absolute; inset: auto 28% .4rem; height: 1px;
  background: color-mix(in srgb, var(--vx-ink) 40%, transparent); pointer-events: none;
}

/* Conversation. Use one quiet typographic register for time, files and
   machine state. Let people and their words occupy the foreground. */
[data-shell] :is(.vx-message-when, .vx-attachment-size, .vx-marker, .vx-trace-state, .vx-questionnaire-note) {
  font-family: var(--vx-mono); font-variant-numeric: tabular-nums;
}
[data-shell] .vx-message-head { column-gap: .75rem; }
[data-shell] .vx-message-when { border-inline-start: 1px solid color-mix(in srgb, currentColor 40%, transparent); padding-inline-start: .75rem; }
[data-shell] .vx-marker { letter-spacing: .025em; }
[data-shell] .vx-attachment-tile { border-inline-start: 3px double currentColor; }
[data-shell] .vx-trace > li[data-vx-state="failed"] .vx-trace-state { color: color-mix(in srgb, var(--vx-ink) 80%, #cd5430); }

/* ==== css/instrument.css ==== */

/* Material and cap profile remain legible when the blocks cannot draw. */
[data-profile="high"] :is(.vx-button,.vx-toggle-button):not([data-vx-live]):not(:disabled,[aria-disabled="true"]) { --_lift: calc(var(--vx) * 2.25); }
[data-profile="low"] :is(.vx-button,.vx-toggle-button):not([data-vx-live]):not(:disabled,[aria-disabled="true"]) { --_lift: calc(var(--vx) * .75); }
[data-profile] :is(.vx-button,.vx-toggle-button):not([data-vx-live]):not(:disabled,[aria-disabled="true"]):is(:active,[aria-pressed="true"],[aria-expanded="true"]) { --_lift: calc(var(--vx) * .5); }
/* The Ridgeline print as the voxels lay it: low hills along the foot of the cap, inside its
   two-voxel lip and clear of the legend. The strips come from src/looks/fittings.js. */
[data-caps="field"] :is(.vx-button,.vx-toggle-button):not([data-vx-live]):not(:disabled,[aria-disabled="true"]):not([data-vx-kind],[data-vx-step],[data-lamp]) {
 --_lip: calc(var(--vx) * 2); --_art: calc(var(--vx) * 128) 100%;
 background:
  linear-gradient(var(--vx-key),var(--vx-key)) left bottom / 100% var(--_lip) no-repeat,
  linear-gradient(var(--vx-key),var(--vx-key)) left top / var(--_lip) 100% no-repeat,
  linear-gradient(var(--vx-key),var(--vx-key)) right top / var(--_lip) 100% no-repeat,
  var(--vx-cap-ridge) left 0 top var(--_lip) / var(--_art) repeat-x,
  var(--vx-cap-inlay) left top / var(--_art) repeat-x,
  var(--vx-key);
}
[data-caps="opal"] :is(.vx-button,.vx-toggle-button):not([data-vx-live]):not(:disabled,[aria-disabled="true"]) { background-color: color-mix(in srgb,var(--vx-key) 82%,transparent); }
[data-caps="carbon"] :is(.vx-button,.vx-toggle-button):not(:disabled):not([data-vx-kind],[data-lamp]) .vx-label {
 color: color-mix(in srgb,var(--case-lamp) calc(58% * var(--lamp-level)),#eee9de);
 text-shadow: 0 0 calc(4px * var(--lamp-level)) color-mix(in srgb,var(--case-lamp) calc(50% * var(--lamp-level)),transparent);
}
/* The plate lies in the case; the case's shoulder above it (the card's top border in the lit
   look) is the case's own material, as it is with voxels. */
[data-shell] .vx-card:not([data-vx-live]) { background-color: var(--panel); background-clip: padding-box; border-top-color: color-mix(in srgb, var(--vx-chalk) 82%, #000); box-shadow: inset 0 0 0 var(--vx) var(--vx-chalk),2px 4px var(--vx-slate),4px 8px 12px #14181355; }
/* The rubber saddle and its index stripe sit on the native range thumb. */
[data-shell] .vx-slider:not([data-vx-live]) input {
  appearance: none;
  --saddle: linear-gradient(var(--vx-enamel),var(--vx-enamel)) center top / 12% var(--vx) no-repeat,
    linear-gradient(var(--vx-enamel),var(--vx-enamel)) center bottom / 12% var(--vx) no-repeat,
    linear-gradient(90deg,#424641,#222926 15%,#626661 25%,#323732 37% 44%,#e8dfc7 44% 56%,#303531 56% 68%,#60655e 76%,#292e2a 87%,#404440);
  background: transparent;
}
[data-shell] .vx-slider:not([data-vx-live]) input:disabled {
  --saddle: linear-gradient(90deg,#9d998a 44%,#575d55 44% 56%,#aaa698 56%);
}
[data-shell] .vx-slider:not([data-vx-live]) input::-webkit-slider-runnable-track {
  height: calc(var(--vx) * 3); background: #313833; border: 1px solid #837f72;
  box-shadow: inset 1px 2px 2px #171e18, 0 1px #c6bda6;
}
[data-shell] .vx-slider:not([data-vx-live]) input::-moz-range-track {
  height: calc(var(--vx) * 3); background: #313833; border: 1px solid #837f72;
  box-shadow: inset 1px 2px 2px #171e18, 0 1px #c6bda6;
}
[data-shell] .vx-slider:not([data-vx-live]) input::-webkit-slider-thumb {
  appearance: none; margin-top: calc(-2.5 * var(--vx)); width: calc(7 * var(--vx)); height: calc(8 * var(--vx));
  background: var(--saddle); border: 1px solid #484c45; border-radius: 3px;
  box-shadow: inset 0 1px #96988b, 1px 3px 3px #18201b70;
}
[data-shell] .vx-slider:not([data-vx-live]) input:active:not(:disabled)::-webkit-slider-thumb {
  transform: translateY(1px); box-shadow: inset 0 1px #797c72, 0 1px 2px #18201b70;
}
[data-shell] .vx-slider:not([data-vx-live]) input::-moz-range-thumb {
  appearance: none; width: calc(7 * var(--vx)); height: calc(8 * var(--vx));
  background: var(--saddle); border: 1px solid #484c45; border-radius: 3px;
  box-shadow: inset 0 1px #96988b, 1px 3px 3px #18201b70;
}
[data-shell] .vx-slider:not([data-vx-live]) input:active:not(:disabled)::-moz-range-thumb {
  transform: translateY(1px); box-shadow: inset 0 1px #797c72, 0 1px 2px #18201b70;
}
[data-shell] .vx-toggle-group[data-vx-live] > label:not(:has(:disabled)),
[data-shell] .vx-tabs[data-vx-live] > [aria-selected="true"] { color: var(--lit-legend); }

[data-shell] { --vx-reading-plate: var(--panel); }

[data-shell] .vx-nav[data-vx-mark="seats"] { color: #f5f2e5; --vx-slate: #515754; }
[data-shell] .vx-nav[data-vx-mark="seats"] a:hover { color: inherit; }
[data-shell] .vx-nav[data-vx-mark="seats"] a[aria-current]:not([aria-current="false"]) { color: var(--lit-legend); }

/* A flanged liner keeps the floor continuous under the text and caret.
   Focus and fault have independent windows so both can be read together. */
[data-shell] .vx-well:not([data-vx-live]) {
  --rail: #736e62;
  --tell: transparent;
  background: linear-gradient(var(--rail),var(--rail)) left 5px top 2px / 20px 3px no-repeat,
    linear-gradient(var(--tell),var(--tell)) left 5px bottom 2px / 36px 3px no-repeat, var(--vx-floor);
  box-shadow: 0 0 0 2px var(--vx-steel), inset 1px 2px 3px #151b185c;
}
[data-shell] .vx-well:not([data-vx-live]):dir(rtl) { background-position: right 5px top 2px, right 5px bottom 2px; }
[data-shell] .vx-well:has(:focus) { --rail: var(--lit-accent); }
[data-shell] .vx-field:has(.vx-field-error) > .vx-well:not([data-vx-live]) { --tell: #736e62; }
[data-shell] .vx-field > .vx-well:not([data-vx-live]):has([aria-invalid="true"]:enabled) { --tell: var(--lit-stop,var(--vx-brick)); }
[data-shell] .vx-well:has(:disabled) { filter: saturate(.35); }

[data-shell] .vx-stepper {
  border-radius: 3px;
  background: linear-gradient(175deg,#b4b0a0,#8a8676);
  box-shadow: inset 1px 1px #d8d0bc, inset -1px -1px #665f52, 1px 2px 2px #26271f55;
}
[data-shell] .vx-stepper input { font-family: var(--vx-key-font); }

[data-shell] :is(.vx-check,.vx-radio) :is(.vx-box,.vx-dot):not([data-vx-live]) {
  --glass: #53594e;
  --drop: 3px;
  background: var(--vx-key); border: 2px solid #67695e;
  clip-path: none;
  box-shadow: inset 1px 1px #efead8, 0 var(--drop) #888678, 0 0 0 2px #a39a87;
}
[data-shell] .vx-radio .vx-dot:not([data-vx-live]) { --vx-radio-insert: ""; border-radius: 50%; }
[data-shell] :is(.vx-box,.vx-dot):not([data-vx-live])::before {
  content: ""; position: absolute; inset: 29% 10%; border-radius: 2px;
  background: var(--glass); box-shadow: inset 0 1px 2px #1c201c70;
}
[data-shell] .vx-radio input:is(:enabled,:disabled) + .vx-dot:not([data-vx-live])::before {
  content: ""; inset: 18%; border-radius: 50%; background: var(--glass);
}
[data-shell] :is(.vx-check,.vx-radio) input:checked + :is(.vx-box,.vx-dot):not([data-vx-live]) {
  --glass: var(--lit-accent); --drop: 0px; background: var(--vx-key);
}
[data-shell] .vx-check input:indeterminate + .vx-box:not([data-vx-live]) {
  background: var(--vx-key); --glass: linear-gradient(#626459 30%,var(--lit-accent) 30% 70%,#626459 70%); --drop: 1px;
}
[data-shell] :is(.vx-check,.vx-radio):active:has(input:enabled) :is(.vx-box,.vx-dot):not([data-vx-live]) {
  translate: 0 2px; --drop: 0px;
}
[data-shell] :is(.vx-check,.vx-radio) input:disabled + :is(.vx-box,.vx-dot):not([data-vx-live]) {
  --glass: #868578; --drop: 0px; background: var(--vx-steel);
}
[data-shell] :is(.vx-check,.vx-radio) input:disabled:checked + :is(.vx-box,.vx-dot):not([data-vx-live]) { --glass: #414741; }

/* Centre the legend on the usable key face above its lower lamp. */
[data-shell] .vx-toggle-group:not([role="toolbar"], [data-vx-size="small"]) > label {
  padding-block: calc(var(--vx) * 1.5) calc(var(--vx) * 2.5);
}
[data-shell] .vx-toggle-group:not([data-vx-live]) > label {
  border: 0; background: var(--vx-key); color: var(--lit-legend);
  box-shadow: inset 0 0 0 2px #62655b, inset 3px 4px #ffffff65, inset -3px -6px #302d2545;
}
[data-shell] .vx-toggle-group:not([data-vx-live]) > label::after {
  content: ""; position: absolute; pointer-events: none; inset-block-end: 3px; inset-inline: 28%;
  height: 3px; background: #4e534b;
}
[data-shell] .vx-toggle-group:not([data-vx-live]) > label:has(:checked)::after { background: var(--lit-accent); }
[data-shell] .vx-toggle-group:not([data-vx-live]) > label:has(:checked),
[data-shell] .vx-toggle-group:not([data-vx-live]) > label:active:has(:enabled) { box-shadow: inset 1px 2px 3px #34332b55; }
[data-shell] .vx-toggle-group:not([data-vx-live]) > label:has(:disabled) { background: var(--vx-steel); color: #403f39; }
[data-shell] .vx-toggle-group:not([data-vx-live]) > label:has(:disabled)::after { background: #66675e; }

[data-shell] .vx-select:not([data-vx-live]) {
  background: linear-gradient(165deg,#ffffff14 15%,transparent 55%),var(--vx-key);
  box-shadow: inset 1px 1px #fff8, inset -1px -2px #443e382f, 1px 3px #898271, 2px 5px 3px #211e1a55;
}
[data-shell] .vx-select:not([data-vx-live])::before {
  content: ""; position: absolute; pointer-events: none; inset-inline-end: calc(4 * var(--vx));
  inset-block-start: calc(50% - 3 * var(--vx)); width: calc(9 * var(--vx)); height: calc(6 * var(--vx));
  border-radius: 2px; background: #343a34; box-shadow: inset 1px 1px 2px #2229, 0 1px #fff8;
}
[data-shell] .vx-select:not([data-vx-live])::after { color: #e9e4d6; }

[data-shell] .vx-field > .vx-select { margin-block-start: calc(var(--vx) * 3); }
[data-shell] .vx-select:not([data-vx-live]):has(select:open) {
  translate: calc(var(--vx) * -.5) calc(var(--vx) * -.5);
  box-shadow: inset 0 0 0 1px #78796c;
}
[data-shell] .vx-select:not([data-vx-live]):has(select:disabled) { background: var(--vx-steel); box-shadow: inset 0 0 0 1px #77756c; }
[data-shell] .vx-button:not([data-vx-live]), [data-shell] .vx-toggle-button:not([data-vx-live]) {
  --_top: color-mix(in srgb,var(--_face) 82%,white);
  --_side: color-mix(in srgb,var(--_face) 77%,#282b26);
}
[data-shell] .vx-stepper > .vx-button:not([data-vx-live]) {
  --_lift: var(--vx); border-radius: 2px;
}
[data-shell] .vx-stepper > .vx-button[aria-disabled="true"]:not([data-vx-live]) { --_lift: 0px; transform: none; }
[data-shell] .vx-toggle-button:not([data-vx-live])[aria-pressed="true"]:not(:disabled,[aria-disabled="true"]) {
  --_top: var(--vx-steel); --_side: var(--vx-steel);
  box-shadow: 0 0 0 2px #5a5b50;
}
/* A tall cap projects backwards beyond its box. A bank reserves this room
   above the first key as well as between rows. */
[data-shell] .vx-toggle-group[role="toolbar"] { margin-block-start: calc(var(--vx) * 2); row-gap: calc(var(--vx) * 5); }

/* A nested instrument inherits the height of its nearest profile. */
:where([data-profile]) { --vx-lamp-apron: 3; --vx-lamp-throw: 1; }
:where([data-profile="low"]) { --vx-lamp-apron: 1.5; --vx-lamp-throw: .5; }
/* Material settings inherit from the nearest cap set. Compute the powered
   tint at the button, where the local lamp supply and color are available. */
:where([data-caps]) { --vx-lamp-print: none; --vx-lamp-scatter: 0; }
:where([data-caps="opal"]) { --vx-lamp-scatter: 1; }
/* A lamp key includes the floor and flange within the button's hit target. */
.vx-button[data-lamp] {
  aspect-ratio: 1.18; height: auto; min-width: max(44px,calc(16 * var(--vx))); min-height: max(44px,calc(16 * var(--vx)));
  justify-content: start; padding: 0; padding-inline-start: 29%; color: var(--lit-legend,#352c23);
}
.vx-button[data-lamp] i { display: none; }
[data-shell] .vx-button[data-lamp] .vx-label { color: var(--lit-legend,#352c23); text-shadow: none; }
:root .vx-button[data-lamp]:not([data-vx-live]),
:root .vx-button[data-lamp]:not([data-vx-live]):is([aria-pressed],:active):not(:disabled) {
  --_resin: var(--vx-lamp-resin,var(--vx-key,#eee4cd));
  --_apron: color-mix(in srgb,var(--_resin) 77%,#282b26);
  --_shoulder: color-mix(in srgb,var(--_resin) 82%,white);
  --_drop: calc(-1 * var(--vx) * var(--vx-lamp-throw,1));
  isolation: isolate; transform: none;
  background: linear-gradient(var(--_strip,#414a42),var(--_strip,#414a42)) right 6% center / var(--vx) 19% no-repeat,#1c211d;
  box-shadow: inset 0 0 0 var(--vx) #343a34;
}
.vx-button[data-lamp]:not([data-vx-live])::before {
  content: ""; position: absolute; inset: 7% 7% 8%; z-index: -1;
  background: var(--vx-lamp-print,none) var(--_resin); background-size: calc(var(--vx) * 64) 100%; background-repeat: repeat-x; border: 0;
  border-inline: calc(var(--vx) * 1.5) solid var(--_apron);
  border-bottom: calc(var(--vx) * var(--vx-lamp-apron,3)) solid var(--_apron);
  box-shadow: inset 1px 1px 0 var(--_shoulder);
}
.vx-button[data-lamp]:not([data-vx-live])::after {
  content: ""; position: absolute; top: 31%; left: 29%; width: 12%; height: var(--vx);
  background: #414a42; pointer-events: none;
}
.vx-button[data-lamp][aria-pressed="true"]:not(:disabled,[aria-disabled="true"]) {
  --_strip: color-mix(in srgb,var(--case-lamp,#71e2cd) calc(100% * var(--lamp-level,1)),#414a42);
}
.vx-button[data-lamp][aria-pressed="true"]:not([data-vx-live],:disabled,[aria-disabled="true"])::before {
  --_face-wash: calc(24% * var(--vx-lamp-scatter,0) * var(--vx-pilot-level,var(--lamp-level,1)));
  --_side-wash: calc(32% * var(--vx-lamp-scatter,0) * var(--lamp-level,1));
  background-image:
    radial-gradient(ellipse at 28% 27%,color-mix(in srgb,var(--case-lamp,#71e2cd) var(--_face-wash),transparent),transparent 52%),
    radial-gradient(ellipse at right 65%,color-mix(in srgb,var(--case-lamp,#71e2cd) var(--_side-wash),transparent),transparent 44%),
    var(--vx-lamp-print,none);
  /* the washes fill the cap; the print's two strips run along it */
  background-size: 100% 100%, 100% 100%, calc(var(--vx) * 64) 100%, calc(var(--vx) * 64) 100%;
  background-repeat: no-repeat, no-repeat, repeat-x, repeat-x;
}
.vx-button[data-vx-pilot="status"] { --vx-pilot-level: 1; }
.vx-button[data-lamp][aria-pressed="true"]:not([data-vx-live],:disabled,[aria-disabled="true"])::after {
  background: color-mix(in srgb,var(--case-lamp,#71e2cd) calc(100% * var(--vx-pilot-level,var(--lamp-level,1))),#414a42);
}
:root .vx-button[data-lamp]:not([data-vx-live]):active:enabled:not([aria-disabled="true"])::before {
  translate: var(--_drop) var(--_drop); border-bottom-width: var(--vx);
}
.vx-button[data-lamp]:not([data-vx-live]):active:enabled:not([aria-disabled="true"]) .vx-label,
.vx-button[data-lamp]:not([data-vx-live]):active:enabled:not([aria-disabled="true"])::after { translate: var(--_drop) var(--_drop); }
/* A plain lamp key travels on the kit's press and release springs, like every other key. */
.vx-button[data-lamp]:not([data-vx-live])::before,
.vx-button[data-lamp]:not([data-vx-live])::after,
.vx-button[data-lamp]:not([data-vx-live]) .vx-label {
  transition: translate var(--vx-release-time) var(--vx-release-ease), border-bottom-width var(--vx-release-time) var(--vx-release-ease);
}
.vx-button[data-lamp]:not([data-vx-live]):active::before,
.vx-button[data-lamp]:not([data-vx-live]):active::after,
.vx-button[data-lamp]:not([data-vx-live]):active .vx-label { transition-duration: var(--vx-press-time); transition-timing-function: var(--vx-press-ease); }
@media (prefers-reduced-motion: reduce) {
  .vx-button[data-lamp]:not([data-vx-live])::before,
  .vx-button[data-lamp]:not([data-vx-live])::after,
  .vx-button[data-lamp]:not([data-vx-live]) .vx-label { transition: none; }
}

@media (max-width: 400px) {
  .vx-button[data-lamp] { justify-content: center; padding-inline: 0; }
}

/* ==== css/item.css ==== */

/* ---------- Item ---------- */

/* A row of words: a title, a line under it, something trailing, and something leading if you
   like (an avatar, a lamp). None of the tools: no box, nothing raised.
   Markup: <div class="vx-item">
             <span class="vx-item-lead">…</span>                       optional
             <span class="vx-item-text">
               <span class="vx-item-title">harbor-api</span>
               <span class="vx-item-line">Deployed four minutes ago by Mina</span>
             </span>
             <span class="vx-item-trail">…</span>                      optional: words, a badge, a key
           </div>
   A row you can press is the same thing written as a link or a button: <a class="vx-item" href>.
   A long title wraps; data-vx-clip on the item keeps title and line to one line each, cut short
   with an ellipsis (give the full words in a title attribute where they matter). */

.vx-item {
  display: flex;
  align-items: center;
  gap: calc(var(--vx) * 3);
  box-sizing: border-box;
  min-inline-size: 0;
  min-block-size: calc(var(--vx) * 11);
  padding-block: calc(var(--vx) * 2);
  font-family: var(--vx-font);
  font-size: 1rem;
  line-height: 1.375;
  color: var(--vx-ink);
  text-align: start;
  text-decoration: none;
}
.vx-item-lead { flex: none; display: inline-flex; align-items: center; justify-content: center; }
.vx-item-text { flex: 1 1 auto; display: grid; gap: calc(var(--vx) * 0.5); min-inline-size: 0; }
.vx-item-title { font-weight: 600; overflow-wrap: anywhere; }
.vx-item-line { font-size: 0.875rem; line-height: 1.43; color: var(--vx-ink-quiet); overflow-wrap: anywhere; }
.vx-item-trail { flex: none; display: inline-flex; align-items: center; gap: calc(var(--vx) * 3); max-inline-size: 50%; margin-inline-start: auto; font-size: 0.875rem; color: var(--vx-ink-quiet); font-variant-numeric: tabular-nums; }

.vx-item[data-vx-clip] :is(.vx-item-title, .vx-item-line) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* a row that is read (a list of articles): a larger title */
.vx-item[data-vx-size="large"] .vx-item-title { font-size: 1.25rem; line-height: 1.3; }
.vx-item[data-vx-size="large"] .vx-item-line { font-size: 0.9375rem; }
.vx-item[data-vx-size="large"] > .vx-item-trail { align-self: start; padding-block-start: calc(var(--vx) * 1); }

/* where the row is too narrow for both, what trails goes onto a line of its own under the words */
.vx-item:not([data-vx-clip]) { flex-wrap: wrap; }
.vx-item:not([data-vx-clip]) > .vx-item-text { flex: 1 1 calc(var(--vx) * 50); }

/* a row you can press: still words. The title is underlined under the pointer, and the row
   takes the browser's focus ring, since there is no light in it to brighten. */
:is(a, button).vx-item { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button.vx-item { appearance: none; inline-size: 100%; margin: 0; padding-inline: 0; border: 0; border-radius: 0; background: none; }
:is(a, button).vx-item:hover .vx-item-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
:is(a, button).vx-item:focus-visible { outline: 2px solid var(--vx-focus); outline-offset: calc(var(--vx) * 1); }
button.vx-item:disabled { cursor: default; }
button.vx-item:disabled :is(.vx-item-title, .vx-item-line) { color: var(--vx-ink-quiet); text-decoration: none; }

/* ==== css/kbd.css ==== */

/* ---------- Kbd ----------
   The name of a key. A small keycap standing in the line of words, its legend on its top.
     <kbd class="vx-kbd">K</kbd>
     <kbd class="vx-keys"><kbd class="vx-kbd">Ctrl</kbd>+<kbd class="vx-kbd">K</kbd></kbd>   held together
   Its legend is in the key face, as on a key, at the key face's one size. It is seven voxels
   tall and takes no more room in a line of words than the line has. */

.vx-kbd {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  block-size: calc(var(--vx) * 7);
  min-inline-size: calc(var(--vx) * 7);
  padding: 0 calc(var(--vx) * 2);
  /* a line of words is seven voxels tall or less: the cap must not push its line apart */
  margin-block: calc(var(--vx) * -1);
  margin-inline: calc(var(--vx) * 0.5); /* its low side and its shadow keep clear of the next word */
  vertical-align: middle;
  color: var(--lit-legend, var(--vx-ink));
  font: 400 var(--vx-key-size)/1 var(--vx-key-font);
  font-synthesis: none;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: default;
}
.vx-kbd abbr { text-decoration: none; cursor: inherit; }
.vx-kbd > .vx-label { display: inline-block; } /* the script wraps the legend, to keep it on whole pixels */

/* Plain: a cap with a lit top edge and a sidewall below and to the right, as the voxels draw it. */
.vx-kbd:not([data-vx-live]) {
  background: var(--vx-key, var(--vx-chalk));
  box-shadow: inset 1px 1px 0 var(--vx-chalk-top, rgb(255 255 255 / 0.5)), inset -1px -2px 0 var(--vx-chalk-side, rgb(0 0 0 / 0.18)), 1px 2px 0 var(--vx-shadow, rgb(0 0 0 / 0.18));
}

/* keys held together, or pressed one after another: caps a voxel apart, with the word between */
.vx-keys { display: inline-flex; align-items: center; gap: calc(var(--vx) * 1.5); margin-block: calc(var(--vx) * -1); vertical-align: middle; font: 500 0.875em/1 var(--vx-font); color: var(--vx-ink-quiet); white-space: nowrap; }
.vx-keys > .vx-kbd { margin: 0; }

/* ==== css/label.css ==== */

/* ---------- Label ---------- */

/* Tool: none. A label is words on the surface, and always a real <label>: for="…" names the
   control it belongs to, so a press on the words lands in the control and a screen reader says
   them. It builds on .vx-field and .vx-field-label, which the kit's stylesheet has.
   Markup: <div class="vx-field">
             <label class="vx-field-label" for="name">Project name</label>
             <span class="vx-well"><input id="name"></span>
             <p class="vx-field-hint" id="name-hint">…</p>      (the input: aria-describedby="name-hint")
           </div>
   In a label: <span class="vx-field-mark" aria-hidden="true">*</span> after the words of one that
   must be filled (the control carries `required`, which is what is announced), or
   <span class="vx-field-note">optional</span> for the quiet word.
   data-vx-way="across" on the .vx-field lays the label beside its control, the control at the end. */

.vx-field-label { display: block; max-inline-size: 100%; overflow-wrap: anywhere; cursor: default; }
/* the hint keeps its voxel of room above it on a surface too, which resets a paragraph's margins */
.vx-field > .vx-field-hint { margin: calc(var(--vx) * 1) 0 0; overflow-wrap: anywhere; }

/* must be filled: a mark in the words' own ink (red is for what has failed) */
.vx-field-mark { margin-inline-start: 0.2em; font-weight: 700; }
/* a quiet word after the name: "optional", a unit, a count */
.vx-field-note { margin-inline-start: 0.5em; font-weight: 400; color: var(--vx-ink-quiet); }

/* its control is switched off: the label goes quiet with it */
.vx-field:has(:is(input, select, textarea):disabled) > .vx-field-label,
.vx-field-label[data-vx-off] { color: var(--vx-ink-quiet); }

/* across: the label and what it names on one line, the control at the far end; they wrap, label
   first, where the line is too short for both */
.vx-field[data-vx-way="across"] { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: calc(var(--vx) * 2) calc(var(--vx) * 6); }
.vx-field[data-vx-way="across"] > .vx-field-label { flex: 1 1 calc(var(--vx) * 30); min-inline-size: 0; }
.vx-field[data-vx-way="across"] > .vx-field-hint { flex: 0 0 100%; }

/* ==== css/list-group.css ==== */

/* ---------- List group ---------- */

/* Rows of words parted by hairlines. The current row is marked by an accent groove at its start.
   No tray, no tiles: the rows lie on the surface they are on.
   Markup: <ul class="vx-list-group">
             <li><a href="/harbor-api" aria-current="page">harbor-api</a></li>
             <li><a href="/fog-site">fog-site</a></li>
             <li>Words alone are a row too</li>
           </ul>
   The current row is the one with aria-current, on the row or on the link or button in it
   ("page" for a link to where you are, "true" otherwise). Set it from code and the mark follows.
   A row may hold an item (<a class="vx-item">): title, a line under it, something trailing. */

.vx-list-group {
  position: relative;
  isolation: isolate;
  display: grid;
  box-sizing: border-box;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--vx-font);
  font-size: 1rem;
  line-height: 1.375;
  color: var(--vx-ink);
}
.vx-list-group > li {
  position: relative;
  display: flex;
  align-items: center;
  gap: calc(var(--vx) * 3);
  box-sizing: border-box;
  min-inline-size: 0;
  min-block-size: calc(var(--vx) * 11);
  padding: calc(var(--vx) * 2) calc(var(--vx) * 2);
  padding-inline-start: calc(var(--vx) * 5);
  font-weight: 500;
  overflow-wrap: anywhere;
}
/* the hairline is drawn inside the row, so a row stays a whole number of voxels high */
.vx-list-group > li + li { box-shadow: inset 0 1px 0 var(--vx-slate); }
.vx-list-group > li:is([aria-current], :has(> [aria-current])):not([aria-current="false"], :has(> [aria-current="false"])) { font-weight: 650; }

/* a row you can press is a link or a button that fills the row */
.vx-list-group > li > :is(a, button) {
  flex: 1 1 auto; min-inline-size: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: none;
  color: inherit; font: inherit; text-align: start; text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.vx-list-group > li > :is(a, button)::after { content: ""; position: absolute; inset: 0; }
.vx-list-group > li > :is(a, button):hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.vx-list-group > li > :is(a, button):focus-visible { outline: 0; }
.vx-list-group > li:has(> :is(a, button):focus-visible) { outline: 2px solid var(--vx-focus); outline-offset: calc(var(--vx) * -0.5); }
.vx-list-group > li > button:disabled { color: var(--vx-ink-quiet); cursor: default; text-decoration: none; }
/* an item in a row: the row has the padding and the height already; the item's own underline
   (on its title) stands for the row's */
.vx-list-group > li > .vx-item { min-block-size: 0; padding-block: 0; }
.vx-list-group > li > .vx-item:hover { text-decoration: none; }
.vx-list-group > li > .vx-item:focus-visible { outline: 0; }

/* plain: every row has its lens painted where the voxel one will be; the current row's is lit */
.vx-list-group:not([data-vx-live]) > li::before {
  content: "";
  position: absolute;
  inset-block: calc(var(--vx) * 2);
  inset-inline-start: var(--vx);
  inline-size: var(--vx);
  background: color-mix(in oklab, var(--vx-ink) 62%, var(--vx-slate));
}
.vx-list-group:not([data-vx-live]) > li:is([aria-current], :has(> [aria-current])):not([aria-current="false"], :has(> [aria-current="false"]))::before {
  background: var(--lit-accent, var(--vx-enamel));
}

/* ==== css/marker.css ==== */

/* ---------- Marker ---------- */

/* A line across a thread with a word in it: a date, "New". Tool: groove (the kit's .vx-groove),
   one either side of the word. No script.
   Markup: <div class="vx-marker">
             <span class="vx-groove" aria-hidden="true"></span>
             <span class="vx-marker-word"><time datetime="2026-11-17">Today</time></span>
             <span class="vx-groove" aria-hidden="true"></span>
           </div>
   The word is read in its place in the thread; the grooves are only seen.
   data-vx-kind="new"   where what has not been read begins. Its grooves carry the accent's light
                        (a light means something: this marks a state), so write
                        data-vx-light="accent" on both, and say what is new in words:
                        <span class="vx-marker-word">New<span class="vx-aloud"> messages</span></span>
   data-vx-align="start"  the word near the start, a short groove before it
   A date keeps to the room's own warm light: it parts the thread and says nothing more. */

.vx-marker {
  display: flex;
  align-items: center;
  gap: calc(var(--vx) * 3);
  box-sizing: border-box;
  min-inline-size: 0;
  margin: 0;
  /* five voxels a line and a voxel above and below: seven voxels, a groove through the middle */
  padding-block: calc(var(--vx) * 1);
  font: 600 0.8125rem/calc(var(--vx) * 5) var(--vx-font);
  color: var(--vx-ink-quiet);
  text-align: center;
  overflow-wrap: anywhere;
}
.vx-marker > .vx-groove { flex: 1 1 0; min-inline-size: calc(var(--vx) * 4); }
.vx-marker > :not(.vx-groove) { flex: 0 1 auto; min-inline-size: 0; }
.vx-marker[data-vx-align="start"] { text-align: start; }
.vx-marker[data-vx-align="start"] > .vx-groove:first-child { flex: 0 0 calc(var(--vx) * 6); }

/* new: the word is the accent's own colour for words */
.vx-marker[data-vx-kind="new"] { color: var(--vx-link); }
/* plain: its grooves are painted in the accent, whether or not the light was asked for */
.vx-marker[data-vx-kind="new"] > .vx-groove:not([data-vx-live]) { background: var(--lit-accent, var(--vx-enamel)); }

/* in a thread: room above and below, the same as between two people */
:is(.vx-message, .vx-marker) + .vx-marker, .vx-marker + .vx-message { margin-block-start: calc(var(--vx) * 4); }

/* ==== css/menubar.css ==== */

/* ---------- Menubar ---------- */

/* The row of words across the top of an app; each opens the kit's menu. The word whose menu is
   out has the accent groove under it.
   Markup: <ul class="vx-menubar" role="menubar" aria-label="harbor-api">
             <li role="none">
               <button type="button" role="menuitem" id="m-file-k" aria-haspopup="menu" aria-expanded="false" popovertarget="m-file">File</button>
               <div class="vx-menu" id="m-file" popover role="menu" aria-labelledby="m-file-k">…</div>
             </li> …
           </ul> */

.vx-menubar {
  position: relative; isolation: isolate; display: flex; flex-wrap: wrap; align-items: center; gap: 0 calc(var(--vx) * 1);
  box-sizing: border-box; min-inline-size: 0; max-inline-size: 100%; margin: 0; padding: 0; list-style: none;
  font-family: var(--vx-font); font-size: 1rem; line-height: calc(var(--vx) * 6); color: var(--vx-ink-quiet);
}
.vx-menubar > li { display: contents; }
.vx-menubar > li > [role="menuitem"], .vx-menubar > [role="menuitem"] {
  position: relative; display: inline-flex; align-items: center; box-sizing: border-box;
  min-block-size: calc(var(--vx) * 11); min-inline-size: calc(var(--vx) * 11); justify-content: center; padding: calc(var(--vx) * 2) calc(var(--vx) * 3);
  margin: 0; border: 0; border-radius: 0; background: none; color: inherit; font: 500 1rem/calc(var(--vx) * 6) var(--vx-font);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.vx-menubar > li > [role="menuitem"]:hover, .vx-menubar [role="menuitem"][aria-expanded="true"] { color: var(--vx-ink); }
.vx-menubar > li > [role="menuitem"]:focus-visible { outline: 2px solid var(--vx-focus); outline-offset: calc(var(--vx) * -0.5); }

/* plain: the groove is a painted line under the word whose menu is out */
.vx-menubar:not([data-vx-live]) > li > [role="menuitem"][aria-expanded="true"]::before {
  content: ""; position: absolute; inset-inline: calc(var(--vx) * 3); inset-block-end: var(--vx); block-size: var(--vx);
  background: var(--lit-accent, var(--vx-enamel));
}

/* ==== css/message-scroller.css ==== */

/* ---------- Message scroller ---------- */

/* The thread: the kit's scroll area holding messages. It keeps to the newest message while you
   are at its foot, leaves you alone while you read back, and shows a key when something new
   has come below.
   Markup: <div class="vx-scroll vx-thread" style="--vx-scroll-h: 96">
             <div class="vx-recess vx-scroll-well">
               <div class="vx-scroll-view" role="log" aria-label="Deploys, harbor-api" tabindex="0">
                 <article class="vx-message">…</article> …
               </div>
               <span class="vx-thread-new" hidden><button class="vx-button" type="button">New messages</button></span>
             </div>
             <span class="vx-scroll-bar" aria-hidden="true"></span>
           </div>
   Leave .vx-recess off the well and the thread lies on the surface itself (a thread of bubbles
   wants that: theirs are cut into the panel, yours stand on it). The key's slot is hidden
   until the script shows it; with no script it never is, and the log scrolls as any does. */

.vx-thread > .vx-scroll-well { position: relative; }
/* messages one under another; room at the head and the foot for what stands in the thread */
.vx-thread .vx-scroll-view { padding-block: calc(var(--vx) * 5); }
/* a thread on the surface has no wall to keep clear of */
.vx-thread > .vx-scroll-well:not(.vx-recess) > .vx-scroll-view { padding-inline: calc(var(--vx) * 2) calc(var(--vx) * 3); }

/* the key that says something new is below: it stands at the foot of the thread, in the middle,
   over the words. Its slot is as small as the key, so the thread under it can still be pressed. */
.vx-thread-new { position: absolute; z-index: 2; inset-block-end: calc(var(--vx) * 4); inset-inline: calc(var(--vx) * 4); isolation: isolate; display: block; inline-size: fit-content; max-inline-size: calc(100% - var(--vx) * 8); margin-inline: auto; translate: none; }

/* ==== css/message.css ==== */

/* ---------- Message ---------- */

/* One message: who, when, the words. Tool: none. It is words on the surface beside an avatar
   (the kit's .vx-avatar); nothing is boxed and nothing stands up. No script.
   Markup: <article class="vx-message" aria-labelledby="m1-who m1-when">
             <span class="vx-avatar" data-vx-size="small" aria-hidden="true"><span class="vx-avatar-initials">MO</span></span>
             <div class="vx-message-body">
               <header class="vx-message-head">
                 <span class="vx-message-who" id="m1-who">Mina Okafor</span>
                 <time class="vx-message-when" id="m1-when" datetime="2026-11-17T10:42">10:42</time>
               </header>
               <div class="vx-message-text"><p>The words.</p></div>
               <p class="vx-message-foot">Edited</p>                                  (optional: a line about the message)
             </div>
           </article>
   The article is named by who and when (aria-labelledby), so a screen reader that moves from
   message to message hears both; the avatar is then only a picture and is hidden from it.
   data-vx-from="me"   yours: no avatar, set at the far side
   data-vx-run         it follows one from the same person: the avatar and the head are not shown
                       (the head is still written, and still read out)
   What a message holds besides words goes in the body, under the text: a bubble (.vx-bubble, in
   place of the text), attachments, a questionnaire, a trace. A thread of messages is a
   role="log" (see message-scroller). */

.vx-message {
  display: grid;
  grid-template-columns: calc(var(--vx) * 8) minmax(0, 1fr);
  column-gap: calc(var(--vx) * 3);
  align-items: start;
  box-sizing: border-box;
  min-inline-size: 0;
  margin: 0;
  font-family: var(--vx-font);
  font-size: 1rem;
  color: var(--vx-ink);
}
.vx-message > .vx-avatar { grid-column: 1; }
.vx-message-body { grid-column: 2; display: grid; grid-template-columns: minmax(0, 1fr); row-gap: calc(var(--vx) * 1); justify-items: start; min-inline-size: 0; }
.vx-message-body > * { max-inline-size: 100%; }

/* who and when: one line of five voxels, the name first */
.vx-message-head { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: calc(var(--vx) * 2); margin: 0; line-height: calc(var(--vx) * 5); overflow-wrap: anywhere; }
.vx-message-who { font-size: 0.9375rem; font-weight: 650; }
.vx-message-when { font-size: 0.8125rem; color: var(--vx-ink-quiet); font-variant-numeric: tabular-nums; }

/* the words: the text face, six voxels a line. They select and copy as any words do. */
.vx-message-text { font-size: 1rem; line-height: calc(var(--vx) * 6); overflow-wrap: anywhere; text-wrap: pretty; }
.vx-message-text > * { margin: 0; }
.vx-message-text > :not(:first-child) { margin-block-start: calc(var(--vx) * 2); } /* stronger than a card's rule for paragraphs */
.vx-message-text a { color: var(--vx-link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.vx-message-text a:focus-visible { outline: 2px solid var(--vx-focus); outline-offset: 2px; }
.vx-message-text code { font: 400 0.875em/1 var(--vx-mono); }

/* a line about the message: edited, sending, not sent. A lamp (.vx-lamp) may lead it; the words
   say the state, the lamp only repeats it. */
.vx-message-foot { display: flex; flex-wrap: wrap; align-items: center; gap: calc(var(--vx) * 3) calc(var(--vx) * 2); margin: 0; min-block-size: calc(var(--vx) * 5); font-size: 0.8125rem; line-height: calc(var(--vx) * 5); color: var(--vx-ink-quiet); overflow-wrap: anywhere; }
/* a key in it (send again) stands clear of the words, so its light does not lie on them */
.vx-message-foot > .vx-button { margin-inline-start: calc(var(--vx) * 2); }

/* yours: no avatar, and what it holds is set at the far side. The words still start where
   words start. */
.vx-message[data-vx-from="me"] { grid-template-columns: minmax(0, 1fr); }
.vx-message[data-vx-from="me"] > .vx-avatar { display: none; }
.vx-message[data-vx-from="me"] > .vx-message-body { grid-column: 1; justify-items: end; }
.vx-message[data-vx-from="me"] :is(.vx-message-head, .vx-message-foot) { justify-content: flex-end; }

/* it follows one from the same person: only the words are shown. The head keeps its place in
   the markup and is read out; it takes no room. */
.vx-message[data-vx-run] > .vx-avatar { visibility: hidden; block-size: 0; }
.vx-message[data-vx-run] .vx-message-head { position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* messages one under another */
.vx-message + .vx-message { margin-block-start: calc(var(--vx) * 5); }
.vx-message + .vx-message[data-vx-run] { margin-block-start: calc(var(--vx) * 2); }

/* ==== css/navbar.css ==== */

/* ---------- Navbar ---------- */

/* The bar across the top of a site or an app. It lies on a surface; its links are navs with the
   accent groove; it has one key at the end at most, and one more that folds the links away
   where the bar is narrow.
   Markup: <header class="vx-card vx-navbar-surface" data-vx-bolts="none">
             <div class="vx-navbar">
               <a class="vx-navbar-brand" href="/">fogline</a>
               <button class="vx-button vx-navbar-key" type="button" aria-expanded="false" aria-controls="top">Menu</button>
               <div class="vx-navbar-fold" id="top">
                 <nav class="vx-nav" data-vx-mark="groove" aria-label="Main">…</nav>
                 <a class="vx-button" data-vx-kind="main" href="/new">New project</a>
               </div>
             </div>
           </header>
   The bar folds by its own width (160 voxels), so one in a narrow column folds on a wide screen
   too. Folding needs the script: without it (no data-vx-on) the links wrap and are never hidden. */

/* a surface that is only a bar: three voxels above and below what is on it, room for a key's sides */
.vx-card.vx-navbar-surface { padding: calc(var(--vx) * 3) calc(var(--vx) * 6); }

.vx-navbar {
  container: vx-navbar / inline-size;
  position: relative; display: flex; flex-wrap: wrap; align-items: center;
  column-gap: calc(var(--vx) * 6); box-sizing: border-box; min-inline-size: 0;
  font-family: var(--vx-font); color: var(--vx-ink);
}
.vx-card > .vx-navbar { margin-block-start: 0; }
.vx-navbar-brand {
  display: inline-flex; align-items: center; gap: calc(var(--vx) * 2); box-sizing: border-box;
  min-block-size: calc(var(--vx) * 11); margin: 0;
  font: 700 1.0625rem/calc(var(--vx) * 6) var(--vx-font); letter-spacing: -0.005em; color: var(--vx-ink); text-decoration: none; overflow-wrap: anywhere;
}
a.vx-navbar-brand:focus-visible { outline: 2px solid var(--vx-focus); outline-offset: calc(var(--vx) * 0.5); }
.vx-navbar-fold { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: center; column-gap: calc(var(--vx) * 6); min-inline-size: 0; }
.vx-navbar-fold > .vx-nav { flex: 0 1 auto; }
/* the one key at the end: a key, or a key that latches (a theme's night, a mute) */
.vx-navbar-fold > :is(.vx-button, .vx-toggle-button) { margin-inline-start: auto; }
/* the key that folds the links away: only where the bar is narrow, and only with the script */
.vx-navbar-key { display: none; margin-inline-start: auto; }

@container vx-navbar (max-width: 639.98px) {
  .vx-navbar[data-vx-on] > .vx-navbar-key { display: inline-flex; }
  .vx-navbar[data-vx-on] > .vx-navbar-key[aria-expanded="false"] ~ .vx-navbar-fold { display: none; }
  /* out: a column under the bar, on the same surface */
  .vx-navbar[data-vx-on] > .vx-navbar-fold { flex: 1 0 100%; flex-direction: column; flex-wrap: nowrap; align-items: stretch; row-gap: calc(var(--vx) * 3); padding-block: calc(var(--vx) * 2) calc(var(--vx) * 3); }
  .vx-navbar[data-vx-on] > .vx-navbar-fold > .vx-nav { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .vx-navbar[data-vx-on] > .vx-navbar-fold > .vx-nav[data-vx-mark="groove"] a { padding-inline-start: calc(var(--vx) * 5); }
  .vx-navbar[data-vx-on] > .vx-navbar-fold > :is(.vx-button, .vx-toggle-button) { margin-inline-start: 0; align-self: start; }
  /* plain: the groove stands at the start of the current link, as in any column */
  .vx-navbar[data-vx-on] > .vx-navbar-fold > .vx-nav[data-vx-mark="groove"]:not([data-vx-live]) a[aria-current]:not([aria-current="false"])::before {
    inset-block: calc(var(--vx) * 2); inset-inline: var(--vx) auto; inline-size: var(--vx); block-size: auto;
  }
}

/* ==== css/navigation-menu.css ==== */

/* ---------- Navigation menu ---------- */

/* A site's top links; some open a float of more links under them, each with a line saying where
   it leads. Words on the surface; what opens is a float. The current page has the accent groove
   under its word on the bar, and at its start in the float.
   Markup: <nav class="vx-navigation-menu" aria-label="fogline"><ul>
             <li><button type="button" aria-expanded="false" popovertarget="nm-product">Product</button>
               <div class="vx-navigation-menu-float" id="nm-product" popover><ul>
                 <li><a href="/deploys"><span class="vx-nm-name">Deploys</span><span class="vx-nm-about">Ship a branch in one press.</span></a></li>
               </ul></div></li>
             <li><a href="/pricing">Pricing</a></li>
           </ul></nav> */

.vx-navigation-menu {
  position: relative; isolation: isolate; box-sizing: border-box; min-inline-size: 0; max-inline-size: 100%;
  font-family: var(--vx-font); font-size: 1rem; line-height: calc(var(--vx) * 6); color: var(--vx-ink-quiet);
}
.vx-navigation-menu > ul { display: flex; flex-wrap: wrap; align-items: center; gap: 0 calc(var(--vx) * 1); margin: 0; padding: 0; list-style: none; }
.vx-navigation-menu > ul > li { display: contents; }
/* the words of the bar: its links and the buttons that open a float */
.vx-navigation-menu > ul > li > :is(a, button) {
  position: relative; display: inline-flex; align-items: center; gap: calc(var(--vx) * 2); box-sizing: border-box;
  min-block-size: calc(var(--vx) * 11); padding: calc(var(--vx) * 2) calc(var(--vx) * 3);
  margin: 0; border: 0; border-radius: 0; background: none; color: inherit; font: 500 1rem/calc(var(--vx) * 6) var(--vx-font);
  text-decoration: none; cursor: pointer; overflow-wrap: anywhere; -webkit-tap-highlight-color: transparent;
}
.vx-navigation-menu > ul > li > :is(a, button):hover,
.vx-navigation-menu > ul > li > button[aria-expanded="true"],
.vx-navigation-menu > ul > li > a[aria-current]:not([aria-current="false"]) { color: var(--vx-ink); }
.vx-navigation-menu > ul > li > :is(a, button):focus-visible { outline: 2px solid var(--vx-focus); outline-offset: calc(var(--vx) * -0.5); }
/* a chevron of cubes, turned over while its float is out */
.vx-navigation-menu > ul > li > button::after {
  content: ""; flex: none; inline-size: calc(var(--vx) * 2.5); block-size: calc(var(--vx) * 1.5); background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 3' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h1v1H0zM4 0h1v1H4zM1 1h1v1H1zM3 1h1v1H3zM2 2h1v1H2z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 3' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h1v1H0zM4 0h1v1H4zM1 1h1v1H1zM3 1h1v1H3zM2 2h1v1H2z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.vx-navigation-menu > ul > li > button[aria-expanded="true"]::after { scale: 1 -1; }

/* the float: the browser's own popover. With no script it opens in the middle of the window;
   the part puts it under its word. Its width never depends on where it is. */
.vx-navigation-menu-float {
  box-sizing: border-box; margin: auto; border: 0; overflow: visible; isolation: isolate; background: none; color: var(--vx-ink);
  inline-size: min(calc(var(--vx) * 132), calc(100vw - var(--vx) * 6));
  inline-size: min(calc(var(--vx) * 132), round(down, calc(100vw - var(--vx) * 6), var(--vx)));
  padding: calc(var(--vx) * 3);
  font-family: var(--vx-font); font-size: 1rem; line-height: calc(var(--vx) * 6); overflow-wrap: anywhere;
}
.vx-navigation-menu-float:is(:popover-open, [data-vx-measure]) { display: block; }
.vx-navigation-menu-float[data-vx-measure] { visibility: hidden; }
.vx-navigation-menu-float:focus-visible { outline: none; }
.vx-navigation-menu-float::backdrop { background: none; }
.vx-navigation-menu-float[data-vx-narrow] { inline-size: min(calc(var(--vx) * 76), calc(100vw - var(--vx) * 6)); }
.vx-navigation-menu-float ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, calc(var(--vx) * 60)), 1fr)); gap: 0 calc(var(--vx) * 2); margin: 0; padding: 0; list-style: none; }
.vx-navigation-menu-float a {
  display: grid; gap: calc(var(--vx) * 0.5); box-sizing: border-box; min-block-size: calc(var(--vx) * 11);
  padding: calc(var(--vx) * 3) calc(var(--vx) * 3) calc(var(--vx) * 3) calc(var(--vx) * 6);
  color: var(--vx-ink); text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.vx-navigation-menu-float a:focus-visible { outline: 2px solid var(--vx-focus); outline-offset: calc(var(--vx) * -0.5); }
.vx-nm-name { font-weight: 600; }
.vx-nm-about { color: var(--vx-ink-quiet); font-size: 0.9375rem; line-height: calc(var(--vx) * 5.5); }
.vx-navigation-menu-float a:hover .vx-nm-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* plain: the groove is a painted line under the current word, and at the start of the current
   link in a float; the float is a painted plate */
.vx-navigation-menu:not([data-vx-live]) > ul > li > :is(a[aria-current]:not([aria-current="false"]), button[data-vx-current])::before {
  content: ""; position: absolute; inset-inline: calc(var(--vx) * 3); inset-block-end: var(--vx); block-size: var(--vx);
  background: var(--lit-accent, var(--vx-enamel));
}
.vx-navigation-menu-float:not([data-vx-live]) {
  background: var(--vx-reading-plate, var(--vx-key, var(--vx-chalk)));
  box-shadow: calc(var(--vx) * -0.5) calc(var(--vx) * -0.5) 0 var(--lit-accent, var(--vx-enamel)), calc(var(--vx) * 1.5) calc(var(--vx) * 2) 0 var(--vx-shadow);
}
.vx-navigation-menu-float:not([data-vx-live]) a[aria-current]:not([aria-current="false"]) {
  background: linear-gradient(var(--lit-accent, var(--vx-enamel)), var(--lit-accent, var(--vx-enamel))) no-repeat;
  background-size: var(--vx) calc(100% - var(--vx) * 4); background-position: calc(var(--vx) * 2) 50%;
}
.vx-navigation-menu-float:not([data-vx-live]) a[aria-current]:not([aria-current="false"]):dir(rtl) { background-position: calc(100% - var(--vx) * 2) 50%; }

/* ==== css/navs.css ==== */

/* ---------- Navs ---------- */

/* A row or a column of links to places. Words on the surface they are on: no box, nothing raised.
   Markup: <nav class="vx-nav" data-vx-mark="groove" aria-label="harbor-api">
             <a href="/overview">Overview</a>
             <a href="/deploys" aria-current="page">Deploys</a>
             <a role="link" aria-disabled="true">Billing</a>
           </nav>
   data-vx-mark: leave it out (the current link is heavier), "groove" (an accent groove under it,
   or at its start in a column) or "seats" (a trench; the current link is the key in it).
   data-vx-way="down" stacks the links. They may stand in a list, under titles (.vx-nav-title). */

.vx-nav {
  position: relative; isolation: isolate; display: flex; flex-wrap: wrap; align-items: center;
  column-gap: calc(var(--vx) * 2); box-sizing: border-box; min-inline-size: 0; max-inline-size: 100%;
  margin: 0; padding: 0;
  font-family: var(--vx-font); font-size: 1rem; font-weight: 500; line-height: calc(var(--vx) * 6);
  color: var(--vx-ink-quiet);
}
.vx-nav :is(ul, ol) { display: contents; margin: 0; padding: 0; list-style: none; }
.vx-nav li { display: contents; }
.vx-nav a {
  position: relative; display: inline-flex; align-items: center; gap: calc(var(--vx) * 3); box-sizing: border-box;
  min-inline-size: 0; min-block-size: calc(var(--vx) * 11); padding: calc(var(--vx) * 2) calc(var(--vx) * 2);
  color: inherit; font: inherit; text-decoration: none; overflow-wrap: anywhere; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.vx-nav a:hover, .vx-nav a[aria-current]:not([aria-current="false"]) { color: var(--vx-ink); }
/* no light in a word to brighten: the browser's ring, just inside the link */
.vx-nav a:focus-visible { outline: 2px solid var(--vx-focus); outline-offset: calc(var(--vx) * -0.5); }
/* one that leads nowhere yet */
.vx-nav a[aria-disabled="true"] { color: color-mix(in oklab, var(--vx-ink-quiet) 60%, transparent); cursor: default; }
/* plain: nothing is drawn, so the current link says so with its weight */
.vx-nav:not([data-vx-mark]) a[aria-current]:not([aria-current="false"]) { font-weight: 650; }

/* a column */
.vx-nav[data-vx-way="down"] { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
.vx-nav[data-vx-way="down"][data-vx-mark="groove"] a { padding-inline-start: calc(var(--vx) * 5); }
.vx-nav[data-vx-way="down"] a[data-vx-level="2"] { padding-inline-start: calc(var(--vx) * 9); }
.vx-nav-trail { margin-inline-start: auto; color: var(--vx-ink-quiet); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
/* a title over a group of links: words, smaller and quiet */
.vx-nav-title {
  box-sizing: border-box; margin: 0; padding: calc(var(--vx) * 4) calc(var(--vx) * 2) calc(var(--vx) * 1);
  font: 600 0.8125rem/calc(var(--vx) * 5) var(--vx-font); color: var(--vx-ink-quiet);
}
.vx-nav[data-vx-mark="groove"] .vx-nav-title { padding-inline-start: calc(var(--vx) * 5); }
.vx-nav-title:first-child, .vx-canvas + .vx-nav-title { padding-block-start: calc(var(--vx) * 1); }

/* seats: a trench as wide as its links; the legends are in the key face, as on tabs */
.vx-nav[data-vx-mark="seats"] { display: inline-flex; gap: 0; }
.vx-nav[data-vx-mark="seats"] a {
  justify-content: center; padding: calc(var(--vx) * 2) calc(var(--vx) * 5);
  font: 400 var(--vx-key-size)/calc(var(--vx) * 6) var(--vx-key-font); letter-spacing: 0; text-align: center;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.vx-nav[data-vx-mark="seats"] a:hover, .vx-nav[data-vx-mark="seats"] a[aria-current]:not([aria-current="false"]) { color: var(--lit-legend, var(--vx-ink)); }
.vx-nav[data-vx-mark="seats"] a[aria-disabled="true"] { color: color-mix(in oklab, var(--vx-ink-quiet) 60%, transparent); }
.vx-nav[data-vx-mark="seats"] a:focus-visible { outline-offset: calc(var(--vx) * -1); }

/* plain: the groove is a painted line where it will be cut */
.vx-nav[data-vx-mark="groove"]:not([data-vx-live]) a[aria-current]:not([aria-current="false"])::before {
  content: ""; position: absolute; inset-inline: calc(var(--vx) * 2); inset-block-end: var(--vx); block-size: var(--vx);
  background: var(--lit-accent, var(--vx-enamel));
}
.vx-nav[data-vx-mark="groove"][data-vx-way="down"]:not([data-vx-live]) a[aria-current]:not([aria-current="false"])::before {
  inset-block: calc(var(--vx) * 2); inset-inline: var(--vx) auto; inline-size: var(--vx); block-size: auto;
}
/* plain: a painted trench; the current seat is a painted key with the accent under it */
.vx-nav[data-vx-mark="seats"]:not([data-vx-live]) { background: var(--vx-slate); }
.vx-nav[data-vx-mark="seats"]:not([data-vx-live]) a[aria-current]:not([aria-current="false"]) {
  background: var(--vx-key, var(--vx-chalk));
  box-shadow: inset 0 calc(var(--vx) * -0.5) 0 var(--lit-accent, var(--vx-signal)), inset 0 0 0 var(--vx) var(--vx-slate);
}

/* ==== css/page.css ==== */

/* ---------- Page ----------
   The page itself: the ground every part stands on, and the column a site is laid out in.
   Tool: none. Most of a page is words on the ground; parts stand on it where they belong.
     <body class="vx-page">
       <div class="vx-page-column">
         <header class="vx-card vx-navbar-surface" data-vx-bolts="none">…the navbar…</header>
         <main>…</main>
         <footer class="vx-page-foot">…words and links…</footer>
       </div>
     </body>
   --vx-page-width is the widest the column grows. The page clips sideways (overflow-x: clip),
   so a part's shadow and light may pass its edge without the page scrolling. */

html:has(> body.vx-page) { background: var(--vx-ground); overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.vx-page {
  margin: 0;
  min-block-size: 100dvh;
  overflow-x: clip;
  background: var(--vx-ground);
  color: var(--vx-ink);
  font: 400 1rem/1.55 var(--vx-font);
  -webkit-tap-highlight-color: transparent;
}

.vx-page-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: calc(var(--vx) * 10);
  box-sizing: border-box;
  inline-size: 100%;
  max-inline-size: var(--vx-page-width, calc(var(--vx) * 280));
  min-block-size: 100dvh;
  margin-inline: auto;
  padding: calc(var(--vx) * 4) clamp(16px, 4vw, calc(var(--vx) * 10)) calc(var(--vx) * 8);
}
/* the foot keeps to the bottom of a short page */
.vx-page-column > .vx-page-foot { align-self: end; }

/* the foot: words and links on the ground, parted from what is above by a groove when it has one */
.vx-page-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: calc(var(--vx) * 1) calc(var(--vx) * 8);
  font-size: 0.875rem; color: var(--vx-ink-quiet);
}
.vx-page-foot :is(ul, ol) { display: flex; flex-wrap: wrap; gap: 0 calc(var(--vx) * 6); margin: 0; padding: 0; list-style: none; }
/* a standalone link down here is still a 44 px target, though its words are small */
.vx-page-foot a { display: inline-flex; align-items: center; min-block-size: calc(var(--vx) * 11); color: inherit; text-underline-offset: 0.22em; }
.vx-page-foot a:hover { color: var(--vx-ink); text-decoration-thickness: 2px; }
.vx-page-foot a:focus-visible { outline: 2px solid var(--vx-focus); outline-offset: 2px; }

@media (max-width: 35rem) {
  .vx-page-column { gap: calc(var(--vx) * 8); }
}

/* ==== css/pagination.css ==== */

/* ---------- Pagination ---------- */

/* A bank of latching buttons in a slot: every page is a keycap, and the current page is the one
   that is down, level with the surface, on its light. Previous and next are small keys beside
   the slot.
   Markup: <nav class="vx-pagination" aria-label="Pages of deploys">
             <a class="vx-button" rel="prev" href="?page=4" aria-label="Previous page"><span class="vx-pagination-chevron" aria-hidden="true"></span></a>
             <ol class="vx-pagination-pages">
               <li><a href="?page=1" aria-label="Page 1">1</a></li>
               <li class="vx-pagination-gap"><span aria-hidden="true">…</span><span class="vx-pagination-aloud">More pages</span></li>
               <li data-vx-when="wide"><a href="?page=4" aria-label="Page 4">4</a></li>
               <li><a href="?page=5" aria-label="Page 5" aria-current="page">5</a></li>
               …
             </ol>
             <a class="vx-button" rel="next" href="?page=6" aria-label="Next page"><span class="vx-pagination-chevron" aria-hidden="true"></span></a>
           </nav>
   Every seat is a real link. The gap that says "many more" is not one. At the first page the
   previous key has no href and says so: <a class="vx-button" role="link" aria-disabled="true">.
   A seat with data-vx-when="wide" is left out on a narrow screen, for a server that cannot know
   the width; if the row still does not fit, it wraps. */

.vx-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: calc(var(--vx) * 2); min-inline-size: 0; font-family: var(--vx-font); }

/* previous and next: the smallest key there is, 11 voxels square */
.vx-pagination > .vx-button { inline-size: calc(var(--vx) * 11); padding: 0; }
/* the chevron is cut from half-voxel cells like the kit's glyphs, and is the legend's colour.
   Next points the way the line runs; previous the other way. */
.vx-pagination-chevron {
  display: block;
  inline-size: calc(var(--vx) * 2);
  block-size: calc(var(--vx) * 3.5);
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 7' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h1v1H0zM1 1h1v1H1zM2 2h1v1H2zM3 3h1v1H3zM2 4h1v1H2zM1 5h1v1H1zM0 6h1v1H0z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 7' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h1v1H0zM1 1h1v1H1zM2 2h1v1H2zM3 3h1v1H3zM2 4h1v1H2zM1 5h1v1H1zM0 6h1v1H0z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.vx-pagination > [rel~="prev"] .vx-pagination-chevron { transform: scaleX(-1); }
.vx-pagination:dir(rtl) > [rel~="next"] .vx-pagination-chevron { transform: scaleX(-1); }
.vx-pagination:dir(rtl) > [rel~="prev"] .vx-pagination-chevron { transform: none; }

/* the slot, and the buttons in it */
.vx-pagination-pages { position: relative; isolation: isolate; display: flex; box-sizing: border-box; block-size: calc(var(--vx) * 11); margin: 0; padding: 0; list-style: none; }
.vx-pagination-pages > li { display: flex; }
.vx-pagination-pages > li > a, .vx-pagination-gap {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  min-inline-size: calc(var(--vx) * 11); padding-inline: calc(var(--vx) * 2);
  font: 400 var(--vx-key-size)/1 var(--vx-key-font); letter-spacing: 0; white-space: nowrap;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  color: var(--vx-ink-quiet); text-decoration: none;
}
.vx-pagination-pages > li > a { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.vx-pagination-pages > li > a:hover { color: var(--lit-legend, var(--vx-ink)); }
.vx-pagination-pages > li > a[aria-current]:not([aria-current="false"]) { color: var(--lit-legend, var(--vx-ink)); cursor: default; }
/* a button in the bank has no light of its own to brighten: the browser's ring, inside its seat */
.vx-pagination-pages > li > a:focus-visible { outline: 2px solid var(--vx-focus); outline-offset: calc(var(--vx) * -1); }
/* the gap is not pressed, so it need not be as wide as a seat */
.vx-pagination-gap { min-inline-size: calc(var(--vx) * 6); padding-inline: calc(var(--vx) * 1); }
.vx-pagination-aloud { position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 600px) {
  .vx-pagination-pages > li[data-vx-when="wide"] { display: none; }
}

/* plain: a painted slot; the current seat is a painted key with the accent under it */
.vx-pagination-pages:not([data-vx-live]) { background: var(--vx-slate); }
.vx-pagination-pages:not([data-vx-live]) > li > a[aria-current]:not([aria-current="false"]) { background: var(--vx-key, var(--vx-chalk)); box-shadow: inset 0 calc(var(--vx) * -0.5) 0 var(--lit-accent, var(--vx-signal)), inset 0 0 0 var(--vx) var(--vx-slate); }

/* ==== css/popover.css ==== */

/* ---------- Popover ---------- */

/* The browser's own popover. With no script it opens in the middle of the window (the browser's
   own place for one); the part puts it by its key. Its width never depends on where it is, so it
   can be measured before it is placed. */
.vx-popover {
  box-sizing: border-box;
  inline-size: min(calc(var(--vx) * 76), calc(100vw - var(--vx) * 6));
  inline-size: min(calc(var(--vx) * 76), round(down, calc(100vw - var(--vx) * 6), var(--vx)));
  padding: calc(var(--vx) * 5);
  border: 0;
  overflow: visible;
  isolation: isolate;
  background: none;
  color: var(--vx-ink);
  font-family: var(--vx-font);
  font-size: 1rem;
  line-height: calc(var(--vx) * 6);
  overflow-wrap: anywhere;
}
/* Open, what is in it is a column with a gap: a page's own margins for p and h3 do not reach in.
   (Closed, it has no box at all, so `display` is named only for the open one.) */
.vx-popover:is(:popover-open, [data-vx-measure]) { display: grid; gap: calc(var(--vx) * 3); align-content: start; }
/* for the moment the part measures it, just before it opens */
.vx-popover[data-vx-measure] { visibility: hidden; }
.vx-popover:focus-visible { outline: none; } /* what is in it shows the focus */
.vx-popover::backdrop { background: none; }

.vx-popover > :is(h2, h3, h4, p) { margin: 0; min-inline-size: 0; }
.vx-popover > :where(h2, h3, h4) { font-size: 1rem; font-weight: 600; line-height: calc(var(--vx) * 6); }
.vx-popover > :where(p) { color: var(--vx-ink-quiet); font-size: 0.9375rem; text-wrap: pretty; }
/* the words that follow the heading sit close under it */
.vx-popover > :is(h2, h3, h4) + p { margin-block-start: calc(var(--vx) * -2); }
/* its keys: at the end, a little further from what is above them */
.vx-popover-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: calc(var(--vx) * 4); margin-block-start: calc(var(--vx) * 2); }

/* plain: a painted slab; the accent's line is at its left and top, where the light shows */
.vx-popover:not([data-vx-live]) {
  background: var(--vx-reading-plate, var(--vx-key, var(--vx-chalk)));
  box-shadow: calc(var(--vx) * -0.5) calc(var(--vx) * -0.5) 0 var(--lit-accent, var(--vx-enamel)), calc(var(--vx) * 1.5) calc(var(--vx) * 2) 0 var(--vx-shadow);
}

/* ==== css/prose.css ==== */

/* ---------- Prose ----------
   What an article is set in. One class on a container; everything inside is plain HTML:
     <article class="vx-prose"> h2 h3 h4, p, a, ul ol dl, blockquote, small, code, hr … </article>
   Tool: none. Words on the surface, in the text face. The one exception is a quote's rule, which
   is a standing groove (src/components/prose.js draws it; with no script it is a painted line in
   the same place).
   Every line is a whole number of voxels tall, so what follows a paragraph lands on the grid. */

.vx-prose {
  --vx-measure: 33rem; /* about 65 characters of the text face at this size */
  max-inline-size: var(--vx-measure);
  color: var(--vx-ink);
  font-family: var(--vx-font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  line-height: round(up, 1.6em, var(--vx)); /* 28 px: seven voxels */
  min-inline-size: 0;
  /* a long word or address wraps, and counts as able to wrap when a grid or a row measures the
     article: it never pushes the page sideways */
  overflow-wrap: anywhere;
  text-wrap: pretty;
  -webkit-text-size-adjust: 100%;
}

/* ---- rhythm: space above a block, by what the block is ---- */

.vx-prose :is(h2, h3, h4, p, ul, ol, dl, dd, blockquote, pre, figure, table, hr) { margin: 0; }
.vx-prose :not(.vx-canvas) + :is(p, ul, ol, dl, blockquote, pre, table) { margin-block-start: calc(var(--vx) * 5); }
/* what is set apart from the words (code, a picture, a table, a rule) gets more room */
.vx-prose :not(.vx-canvas) + :is(figure, hr) { margin-block-start: calc(var(--vx) * 7); }
.vx-prose :not(.vx-canvas) + :where(.vx-code, .vx-figure, .vx-table, .vx-separator, .vx-groove) { margin-block-start: calc(var(--vx) * 7); }
.vx-prose :is(figure, hr) + :not(.vx-canvas) { margin-block-start: calc(var(--vx) * 7); }
.vx-prose :is(.vx-code, .vx-figure, .vx-table, .vx-separator, .vx-groove) + :is(p, ul, ol, dl, blockquote, pre, table) { margin-block-start: calc(var(--vx) * 7); }
.vx-prose :not(.vx-canvas) + h2 { margin-block-start: calc(var(--vx) * 12); }
.vx-prose :not(.vx-canvas) + h3 { margin-block-start: calc(var(--vx) * 9); }
.vx-prose :not(.vx-canvas) + h4 { margin-block-start: calc(var(--vx) * 7); }
/* a heading belongs to what follows it */
.vx-prose h2 + :not(.vx-canvas) { margin-block-start: calc(var(--vx) * 3); }
.vx-prose h3 + :not(.vx-canvas) { margin-block-start: calc(var(--vx) * 2); }
.vx-prose h4 + :not(.vx-canvas) { margin-block-start: calc(var(--vx) * 1); }

/* ---- headings: real h2 to h4 (the page's h1 is the page's own) ---- */

.vx-prose :is(h2, h3, h4) { color: var(--vx-ink); font-family: var(--vx-font); text-wrap: balance; }
.vx-prose h2 { font-size: 1.625rem; line-height: 1.25; line-height: round(up, 1.2em, var(--vx)); font-weight: 700; letter-spacing: -0.02em; }
.vx-prose h3 { font-size: 1.3125rem; line-height: 1.3; line-height: round(up, 1.25em, var(--vx)); font-weight: 700; letter-spacing: -0.012em; }
.vx-prose h4 { font-size: 1.0625rem; line-height: 1.6; line-height: round(up, 1.4em, var(--vx)); font-weight: 700; letter-spacing: 0; }

/* ---- words ---- */

.vx-prose :is(strong, b) { font-weight: 650; }
.vx-prose a { color: var(--vx-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-skip-ink: auto; }
.vx-prose a:hover { text-decoration-thickness: 2px; }
.vx-prose a:focus-visible { outline: 2px solid var(--vx-focus); outline-offset: 2px; text-decoration-thickness: 2px; }
/* code in a line of words is words too: the mono face, no box */
.vx-prose :not(pre) > code { font-family: var(--vx-mono); font-size: 0.9em; overflow-wrap: anywhere; }
.vx-prose :is(sup, sub) { font-size: 0.75em; line-height: 0; }
.vx-prose abbr[title] { text-decoration: underline dotted; text-underline-offset: 0.2em; cursor: help; }
.vx-prose :is(img, svg, video) { max-inline-size: 100%; block-size: auto; }

/* small print: <small>, alone in a paragraph or among other words */
.vx-prose small { font-size: 0.875rem; color: var(--vx-ink-quiet); }
.vx-prose p:has(> small:only-child) { max-inline-size: 29rem; font-size: 0.875rem; line-height: 1.5; line-height: round(up, 1.5em, var(--vx)); }
.vx-prose p:has(> small:only-child) > small { font-size: inherit; }

/* ---- lists ---- */

.vx-prose :is(ul, ol) { padding-inline-start: calc(var(--vx) * 6); }
.vx-prose ul { list-style: square; }
.vx-prose li { padding-inline-start: calc(var(--vx) * 1); }
.vx-prose li::marker { color: var(--vx-ink-quiet); font-variant-numeric: tabular-nums; }
.vx-prose li + li { margin-block-start: calc(var(--vx) * 2); }
.vx-prose li > :is(ul, ol) { margin-block-start: calc(var(--vx) * 2); }
.vx-prose dt { font-weight: 650; }
.vx-prose dd { color: var(--vx-ink-quiet); }
.vx-prose dd + dt { margin-block-start: calc(var(--vx) * 3); }

/* ---- a quote: larger words beside a standing groove ---- */

.vx-prose blockquote {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  padding-block: calc(var(--vx) * 1);
  padding-inline: calc(var(--vx) * 5) 0;
  /* the rule, where the groove is cut: the same colour as a groove with no voxels */
  border-inline-start: var(--vx) solid color-mix(in oklab, var(--lit-warm, var(--vx-steel)) 55%, transparent);
  font-size: 1.1875rem;
  line-height: 1.5;
  line-height: round(up, 1.45em, var(--vx));
  font-weight: 500;
}
.vx-prose blockquote[data-vx-live] { border-inline-start-color: transparent; }
.vx-prose blockquote > :not(.vx-canvas) + p { margin-block-start: calc(var(--vx) * 3); }
/* who said it */
.vx-prose blockquote > :is(footer, cite) { display: block; font-size: 0.9375rem; line-height: 1.5; line-height: round(up, 1.5em, var(--vx)); font-weight: 400; font-style: normal; color: var(--vx-ink-quiet); }
.vx-prose blockquote > :not(.vx-canvas) + footer { margin-block-start: calc(var(--vx) * 2); }

/* ---- a rule: write <hr class="vx-groove"> for the groove itself; a bare <hr> is the painted line ---- */

.vx-prose hr { block-size: var(--vx); border: 0; overflow: visible; /* a browser clips an hr: the groove's light must not be cut */ }
.vx-prose hr:not(.vx-groove) { background: color-mix(in oklab, var(--lit-warm, var(--vx-steel)) 55%, transparent); }

/* a bare <pre> (no code block round it) still keeps to the page: it scrolls inside itself */
.vx-prose > pre { overflow-x: auto; font: 400 0.875rem/1.45 var(--vx-mono); }

/* ==== css/questionnaire.css ==== */

/* ---------- Questionnaire ---------- */

/* A question inside a message with a few answers to press, one or several. It is a fieldset
   with a legend; the answers are the kit's own parts over real radio buttons or checkboxes;
   once answered it stays, disabled, as the record.
   Markup: <fieldset class="vx-questionnaire">
             <legend>When should harbor-api go out?</legend>
             <div class="vx-toggle-group" data-vx-way="down">                     one of many
               <label><input type="radio" name="when" value="now">Now</label> …
             </div>
             <button class="vx-button vx-questionnaire-send" data-vx-kind="main" type="button">Answer</button>
             <p class="vx-questionnaire-note" role="status"></p>
           </fieldset>
           <div class="vx-questionnaire-answers">                                 several of many
             <label class="vx-check"><input type="checkbox" name="tell" value="team"><span class="vx-box"></span>The team channel</label> …
           </div>
   Answered: disabled on the fieldset and on each input, data-vx-answered on the fieldset, no
   key, and the note says what was answered. The script does this when the key is pressed. */

.vx-questionnaire {
  position: relative;
  box-sizing: border-box;
  min-inline-size: 0;
  max-inline-size: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  font-family: var(--vx-font);
  color: var(--vx-ink);
}
/* the question: words, a little heavier than the message round it */
.vx-questionnaire > legend { position: relative; isolation: isolate; display: block; box-sizing: border-box; max-inline-size: 100%; margin: 0; padding: 0 0 calc(var(--vx) * 3); float: none; font-size: 1rem; font-weight: 600; line-height: calc(var(--vx) * 6); overflow-wrap: anywhere; }
.vx-questionnaire-hint { display: block; font-size: 0.875rem; font-weight: 400; line-height: calc(var(--vx) * 5); color: var(--vx-ink-quiet); }

/* one of many: the kit's toggle group, standing. Its seats start their words at the start. */
/* The slot's bezel stands two voxels out from its box: the group is set in by that much, so the
   bezel's edge lines up with the question's words. */
.vx-questionnaire > .vx-toggle-group[role="radiogroup"], .vx-questionnaire > .vx-toggle-group:not([role]) { margin-inline-start: calc(var(--vx) * 2); }
.vx-questionnaire > .vx-toggle-group > label { justify-items: start; text-align: start; }
/* several of many: the kit's checkboxes one under another, or its toggle buttons side by side */
.vx-questionnaire-answers { display: grid; justify-items: start; min-inline-size: 0; padding-inline-start: var(--vx); } /* a checkbox's collar stands a voxel out */
.vx-questionnaire-answers > .vx-check { max-inline-size: 100%; overflow-wrap: anywhere; }

/* the key that sends the answer, and under it the line that speaks: it keeps its line while
   there is nothing to say, so nothing below moves when it does */
/* (a fieldset lays its own things out in a line: the key is made a block, so it stands under the answers) */
fieldset.vx-questionnaire > .vx-questionnaire-send { display: flex; inline-size: fit-content; margin-block-start: calc(var(--vx) * 4); }
/* (written as a child of the fieldset: a card's own rule for paragraphs is stronger than a class) */
.vx-questionnaire > .vx-questionnaire-note { margin: calc(var(--vx) * 2) 0 0; }
/* straight under the answers, with no key between (answered): clear of the slot's bezel */
.vx-questionnaire > :is(.vx-toggle-group, .vx-questionnaire-answers) + .vx-questionnaire-note { margin-block-start: calc(var(--vx) * 4); }
.vx-questionnaire-note { min-block-size: calc(var(--vx) * 5); font-size: 0.875rem; line-height: calc(var(--vx) * 5); color: var(--vx-ink-quiet); overflow-wrap: anywhere; }
.vx-questionnaire-note:focus-visible { outline: 2px solid var(--vx-focus); outline-offset: calc(var(--vx) * 1); }
/* asked to choose: the words are the page's own ink, so they are not missed */
.vx-questionnaire[data-vx-asking] > .vx-questionnaire-note { color: var(--vx-ink); font-weight: 600; }
/* answered: the record. The words of the answer that was given keep their ink. */
.vx-questionnaire[data-vx-answered] > .vx-questionnaire-note { color: var(--vx-ink); }
.vx-questionnaire[data-vx-answered] .vx-check:has(input:checked) { color: var(--vx-ink); }

/* ==== css/radio.css ==== */

/* ---------- Radio group ---------- */

/* Tool: small wells with a one-voxel corner step; the chosen one is full of light.
   Markup: <fieldset class="vx-radios" role="radiogroup">
             <legend>Deploy to</legend>
             <label class="vx-radio"><input type="radio" name="where" value="fra" checked><span class="vx-dot"></span>Frankfurt</label>
             <label class="vx-radio"><input type="radio" name="where" value="iad"><span class="vx-dot"></span>Virginia</label>
           </fieldset>
   Real radios of one name: the browser gives the group one tab stop and its arrow keys.
   data-vx-way="across" on the fieldset lays the choices in a row. A <small> in a choice is a
   quiet line under its words. */

.vx-radios {
  display: grid; justify-items: start;
  margin: 0; padding: 0; border: 0; min-inline-size: 0;
  font-family: var(--vx-font); color: var(--vx-ink);
}
.vx-radios > legend { padding: 0; margin-block-end: calc(var(--vx) * 1); max-inline-size: 100%; font-weight: 600; font-size: 0.9375rem; line-height: 1.3; overflow-wrap: anywhere; }
.vx-radios[data-vx-way="across"] { display: flex; flex-wrap: wrap; gap: 0 calc(var(--vx) * 7); }
.vx-radios:disabled > legend { color: var(--vx-ink-quiet); }

.vx-radio {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: calc(var(--vx) * 3);
  min-block-size: calc(var(--vx) * 11);
  max-inline-size: 100%;
  padding-block: calc(var(--vx) * 1.5);
  box-sizing: border-box;
  font-family: var(--vx-font);
  color: var(--vx-ink);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.vx-radio small { display: block; margin-block-start: calc(var(--vx) * 0.5); font-size: 0.875rem; font-weight: 400; color: var(--vx-ink-quiet); }
/* the real control lies over the whole label, so the whole label is the target */
.vx-radio input { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; margin: 0; opacity: 0; cursor: pointer; }
.vx-radio input:disabled { cursor: default; }
.vx-radio:has(input:disabled) { color: var(--vx-ink-quiet); cursor: default; }
.vx-dot { position: relative; isolation: isolate; flex: none; inline-size: calc(var(--vx) * 7); block-size: calc(var(--vx) * 7); }
.vx-radio input:focus-visible + .vx-dot { outline: 2px solid var(--vx-focus); outline-offset: calc(var(--vx) * 1.5); }

/* plain: a painted well with its corners stepped; chosen, it is the accent's colour */
.vx-dot:not([data-vx-live]) {
  --_c: var(--vx);
  --_d: calc(100% - var(--vx));
  background: var(--vx-steel);
  clip-path: polygon(var(--_c) 0, var(--_d) 0, var(--_d) var(--_c), 100% var(--_c), 100% var(--_d), var(--_d) var(--_d), var(--_d) 100%, var(--_c) 100%, var(--_c) var(--_d), 0 var(--_d), 0 var(--_c), var(--_c) var(--_c));
}
.vx-dot:not([data-vx-live])::before { content: ""; position: absolute; inset: var(--vx); background: var(--vx-floor, var(--vx-chalk)); }
.vx-radio input:checked + .vx-dot:not([data-vx-live]) { background: var(--lit-accent, var(--vx-enamel)); }
.vx-radio input:checked + .vx-dot:not([data-vx-live])::before { content: var(--vx-radio-insert, none); }
.vx-radio input:disabled + .vx-dot:not([data-vx-live]) { background: var(--vx-steel); }
.vx-radio input:disabled + .vx-dot:not([data-vx-live])::before { background: var(--vx-slate); }
.vx-radio input:disabled:checked + .vx-dot:not([data-vx-live])::before { content: var(--vx-radio-insert, none); }

/* ==== css/resizable.css ==== */

/* ---------- Resizable panels ---------- */

/* Regions of one surface parted by a groove that can be dragged. No box round a region: a pane
   is words on the surface. --vx-split is the size of a pane that has a groove after it (halves
   without it); the last pane takes the rest. With no script the groove is a still divider there.
   Markup: <div class="vx-resizable" style="--vx-split: 32%">
             <div class="vx-resizable-pane" id="files" data-vx-min="20">…</div>
             <div class="vx-resizable-groove" role="separator" aria-controls="files" aria-label="Width of the file list" aria-valuenow="32"></div>
             <div class="vx-resizable-pane" data-vx-min="24">…</div>
           </div>
   data-vx-way="down" stacks the panes; the container then has a height (15rem unless it is given one). */
.vx-resizable {
  position: relative;
  display: flex;
  align-items: stretch;
  box-sizing: border-box;
  inline-size: 100%;
  min-inline-size: 0;
  font-family: var(--vx-font);
  color: var(--vx-ink);
}
.vx-resizable[data-vx-way="down"] { flex-direction: column; block-size: calc(var(--vx) * 60); }

/* A pane keeps clear of the groove beside it: three voxels, which is how far the groove's
   target reaches over it. A long word wraps, so a narrow pane grows down, never sideways. */
.vx-resizable-pane { box-sizing: border-box; flex: 0 0 var(--vx-split, 50%); min-inline-size: 0; min-block-size: 0; overflow-wrap: anywhere; }
.vx-resizable > .vx-resizable-pane:last-child { flex: 1 1 0; }
.vx-resizable:not([data-vx-way="down"]) > .vx-resizable-pane:has(+ .vx-resizable-groove) { padding-inline-end: calc(var(--vx) * 3); }
.vx-resizable:not([data-vx-way="down"]) > .vx-resizable-groove + .vx-resizable-pane { padding-inline-start: calc(var(--vx) * 3); }
/* stacked, a pane has only the height it is given: what does not fit scrolls */
.vx-resizable[data-vx-way="down"] > .vx-resizable-pane { overflow: auto; }
.vx-resizable[data-vx-way="down"] > .vx-resizable-pane:has(+ .vx-resizable-groove) { padding-block-end: calc(var(--vx) * 3); }
.vx-resizable[data-vx-way="down"] > .vx-resizable-groove + .vx-resizable-pane { padding-block-start: calc(var(--vx) * 3); }

/* The groove: five voxels of the surface, the channel its middle one. */
.vx-resizable-groove {
  position: relative;
  isolation: isolate;
  flex: none;
  box-sizing: border-box;
  inline-size: calc(var(--vx) * 5);
  user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.vx-resizable[data-vx-way="down"] > .vx-resizable-groove { inline-size: auto; block-size: calc(var(--vx) * 5); }
/* its target is a whole one, eleven voxels: three more on each side */
.vx-resizable-groove::after { content: ""; position: absolute; inset-block: 0; inset-inline: calc(var(--vx) * -3); }
.vx-resizable[data-vx-way="down"] > .vx-resizable-groove::after { inset-inline: 0; inset-block: calc(var(--vx) * -3); }
/* once the script runs it can be taken hold of: a finger on it drags it, and does not scroll the page */
.vx-resizable[data-vx-on] > .vx-resizable-groove:not([aria-disabled="true"]) { cursor: col-resize; touch-action: none; }
.vx-resizable[data-vx-on][data-vx-way="down"] > .vx-resizable-groove:not([aria-disabled="true"]) { cursor: row-resize; }
/* while it is dragged nothing in the panes is selected */
.vx-resizable:has(> .vx-resizable-groove[data-vx-held]) { user-select: none; -webkit-user-select: none; }
/* focus: the browser's ring round the groove's own box. Its light is brighter too, but by day a
   brighter warm line is too little to find. */
.vx-resizable-groove:focus-visible { outline: 2px solid var(--vx-focus); outline-offset: 0; }

/* plain: a painted line, a voxel wide; the accent's while it is held */
.vx-resizable-groove:not([data-vx-live]) {
  --_line: color-mix(in oklab, var(--lit-warm, var(--vx-steel)) 55%, transparent);
  background: linear-gradient(var(--_line), var(--_line)) center / var(--vx) 100% no-repeat;
}
.vx-resizable[data-vx-way="down"] > .vx-resizable-groove:not([data-vx-live]) { background-size: 100% var(--vx); }
.vx-resizable[data-vx-on] > .vx-resizable-groove:not([data-vx-live]):not([aria-disabled="true"]):not([data-vx-held]):is(:hover, :focus-visible) { --_line: var(--lit-warm, var(--vx-steel)); }
.vx-resizable-groove[data-vx-held]:not([data-vx-live]) { --_line: var(--lit-accent, var(--vx-enamel)); }

/* ==== css/rotary.css ==== */

.vx-rotary { position: relative; display: inline-block; isolation: isolate; width: 5rem; height: 5rem; --vx: 2px; }
.vx-rotary input { position: absolute; inset: 0; z-index: 1; opacity: 0; width: 100%; height: 100%; margin: 0; touch-action: none; cursor: grab; }
.vx-rotary input:active { cursor: grabbing; }
.vx-rotary:has(:focus-visible) { outline: 2px solid var(--vx-focus); outline-offset: 5px; border-radius: 50%; }
.vx-rotary:not([data-vx-live])::before { content: ""; position: absolute; inset: 4%; border-radius: 50%; background: repeating-radial-gradient(circle at center,transparent 0 1px,#7f613117 1.5px 2px),conic-gradient(from 60deg,#b49263,#efdaa7 58deg,#a08057 120deg,#ad8a5a 172deg,#f4deb2 235deg,#ac895e 290deg,#b49263); border: 4px solid #655747; box-shadow: inset 0 1px 2px #ffedcc, 0 3px 0 2px #35352e, 0 8px 10px #0007; }
.vx-rotary:not([data-vx-live])::after { content: ""; position: absolute; inset: 10%; border-radius: 50%; background: linear-gradient(#24281f,#24281f) center 7% / 3px 25% no-repeat; transform: rotate(var(--angle,0rad)); }

/* ==== css/scroll-area.css ==== */

/* ---------- Scroll area ---------- */

/* A recess that scrolls, and beside it a thin slot in a steel bezel for the bar, with a small knob in it. --vx-scroll-h is its height in voxels.
   The trench's column is always there, so nothing moves when the bar appears. */
.vx-scroll {
  display: grid; grid-template-columns: minmax(0, 1fr) calc(var(--vx) * 4); column-gap: calc(var(--vx) * 2);
  box-sizing: border-box; inline-size: 100%; block-size: calc(var(--vx) * var(--vx-scroll-h, 48)); min-inline-size: 0;
  font-family: var(--vx-font); color: var(--vx-ink);
}
.vx-scroll-well { display: grid; grid-template-columns: minmax(0, 1fr); min-block-size: 0; min-inline-size: 0; }
/* the real scrolling element: the wheel, a finger and the keys are the browser's own */
.vx-scroll-view {
  box-sizing: border-box; min-block-size: 0; overflow-y: auto; overflow-x: hidden;
  padding: calc(var(--vx) * 3) calc(var(--vx) * 5); outline: 0; overflow-wrap: anywhere;
}
/* focus: the browser's ring, round the recess the view fills */
.vx-scroll-well:has(> .vx-scroll-view:focus-visible) { outline: 2px solid var(--vx-focus); outline-offset: calc(var(--vx) * 1); }
/* once the script has taken the bar over, the browser's own steps aside; with no script it stays */
.vx-scroll[data-vx-on] .vx-scroll-view { scrollbar-width: none; }
.vx-scroll[data-vx-on] .vx-scroll-view::-webkit-scrollbar { display: none; }

/* the bar: shown only when the script runs and there is something to scroll */
.vx-scroll-bar { position: relative; isolation: isolate; display: block; visibility: hidden; user-select: none; -webkit-user-select: none; touch-action: none; }
.vx-scroll[data-vx-on] .vx-scroll-bar:not([data-vx-idle]) { visibility: visible; }
/* easier to take hold of than it is wide: two voxels more on each side */
.vx-scroll-bar::before { content: ""; position: absolute; inset-block: 0; inset-inline: calc(var(--vx) * -2); }
/* a finger scrolls the view itself; the bar only shows where it is */
@media (pointer: coarse) { .vx-scroll-bar { pointer-events: none; } }

/* plain: a painted trench and a painted key, placed by the script (--_len, --_at) */
.vx-scroll-bar:not([data-vx-live]) { background: var(--vx-slate); }
.vx-scroll-bar:not([data-vx-live])::after {
  content: ""; position: absolute; inset-block-start: 0; inset-inline: var(--vx);
  block-size: var(--_len, 0px); translate: 0 var(--_at, 0px);
  background: var(--vx-key, var(--vx-chalk));
  box-shadow: calc(var(--vx) * -0.5) calc(var(--vx) * -0.5) 0 var(--lit-accent, var(--vx-enamel));
}

/* ==== css/scroll-spy.css ==== */

/* ---------- Scroll spy ---------- */

/* Words that lead to the sections of a page. The one being read is marked with aria-current, and
   an accent groove stands beside it (in a column) or lies under it (in a row). */
.vx-spy {
  position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start;
  margin: 0; padding: 0; list-style: none;
  font-family: var(--vx-font); color: var(--vx-ink-quiet); font-weight: 500; line-height: 1.3;
}
.vx-spy :is(ul, ol) { display: contents; margin: 0; padding: 0; list-style: none; }
.vx-spy li { display: contents; }
.vx-spy a {
  position: relative; display: flex; align-items: center; box-sizing: border-box;
  min-block-size: calc(var(--vx) * 11); padding-block: calc(var(--vx) * 2); padding-inline: calc(var(--vx) * 4) calc(var(--vx) * 2);
  color: inherit; text-decoration: none; overflow-wrap: anywhere; -webkit-tap-highlight-color: transparent;
}
.vx-spy a:hover, .vx-spy a[aria-current]:not([aria-current="false"]) { color: var(--vx-ink); }
.vx-spy a:focus-visible { outline: 2px solid var(--vx-focus); outline-offset: calc(var(--vx) * -0.5); }
/* a deeper level: set in by its place in the list */
.vx-spy a[data-vx-level="2"] { padding-inline-start: calc(var(--vx) * 8); }

/* in a row: the links side by side, the groove under the current one */
.vx-spy[data-vx-way="across"] { display: flex; flex-wrap: wrap; column-gap: calc(var(--vx) * 2); }
.vx-spy[data-vx-way="across"] a { padding-inline: calc(var(--vx) * 2); }

/* the groove: placed and sized by the script, moved only by translate (its size changes at once,
   so it is rebuilt once and not on every frame of the way) */
.vx-spy .vx-spy-mark {
  position: absolute; inset-block-start: 0; left: 0; z-index: 1; pointer-events: none;
  inline-size: var(--_w, var(--vx)); block-size: var(--_h, var(--vx));
  translate: var(--_x, 0px) var(--_y, 0px);
  transition: translate 220ms var(--vx-ease-out), opacity 160ms var(--vx-ease-out);
}
/* before the script has placed it, and when no section is being read, it is not there */
.vx-spy:not([data-vx-on]) .vx-spy-mark { visibility: hidden; }
.vx-spy[data-vx-none] .vx-spy-mark { opacity: 0; }
/* no script: the link marked in the markup carries a painted mark of the same size */
.vx-spy:not([data-vx-on]) a[aria-current]:not([aria-current="false"])::before {
  content: ""; position: absolute; inset-block: calc(var(--vx) * 2); inset-inline-start: 0; inline-size: var(--vx);
  background: var(--lit-accent, var(--vx-enamel));
}
.vx-spy[data-vx-way="across"]:not([data-vx-on]) a[aria-current]:not([aria-current="false"])::before { inset-block: auto 0; inset-inline: 0; inline-size: auto; block-size: var(--vx); }

@media (prefers-reduced-motion: reduce) {
  .vx-spy .vx-spy-mark { transition: none; }
}

/* ==== css/select.css ==== */

/* ---------- Select (native) ---------- */

/* Tool: a key with a chevron. It opens the browser's own picker.
   Markup: <span class="vx-select"><select id="region">…</select></span>
           with a real <label for="region"> beside or above it.
   The key is as wide as its longest choice; give .vx-select an inline-size to make it wider, and
   a choice too long for it ends in an ellipsis. */

.vx-select {
  position: relative; isolation: isolate;
  display: inline-flex; vertical-align: middle;
  box-sizing: border-box; max-inline-size: 100%; justify-self: start;
  min-block-size: calc(var(--vx) * 11); min-inline-size: min(calc(var(--vx) * 22), 100%);
  color: var(--lit-legend, var(--vx-ink));
}
/* with voxels the part wraps the select in this span, which goes down with the cap */
.vx-select-face { display: flex; flex: 1 1 auto; min-inline-size: 0; }
.vx-select select {
  appearance: none; -webkit-appearance: none;
  box-sizing: border-box; flex: 1 1 auto; inline-size: 100%; min-inline-size: 0; max-inline-size: 100%;
  /* WebKit sizes a select by its longest choice even with appearance: none; this keeps that width
     from blowing out a grid cell or a phone-wide column (the choice ends in an ellipsis instead) */
  overflow: hidden;
  min-block-size: calc(var(--vx) * 11);
  /* The words start five voxels in: four from the edge of the cap's top, which is a voxel
     smaller all round. The far end keeps room for the chevron: five voxels (four on the top),
     its 7, and 3 before it. */
  padding: 0; padding-inline: calc(var(--vx) * 5) calc(var(--vx) * 15);
  margin: 0; border: 0; border-radius: 0; background: none; outline: 0;
  color: inherit;
  /* a legend on a key: the key face */
  font: 400 var(--vx-key-size)/1 var(--vx-key-font); letter-spacing: 0;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-overflow: ellipsis; white-space: nowrap;
  cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
/* the rows of the picker are read, not pressed: the text face, in the page's ink on its surface
   (where the browser draws the picker itself; a system picker keeps its own look) */
.vx-select option, .vx-select optgroup { font: 500 1rem var(--vx-font); color: var(--vx-ink); background: var(--vx-chalk); }
.vx-select select:disabled { cursor: default; color: var(--vx-ink-quiet); opacity: 1; }
/* under its label in a field it stands two voxels further down than a well would: a keycap's
   side and the light at its foot are drawn two and a half voxels above its face, and must not
   lie on the label's words */
.vx-field > .vx-select { margin-block-start: calc(var(--vx) * 2); }
.vx-select:has(select:focus-visible) { outline: 2px solid var(--vx-focus); outline-offset: calc(var(--vx) * 2); }

/* at night the legend shines through, and flares with the light as the key goes down (--lit is
   set by the part, 0 to 1), as on the look's other keys */
[data-vx-look="lit"] .vx-select[data-vx-live] select:not(:disabled) {
  text-shadow: 0 0 calc((6px + var(--lit, 0) * 10px) * var(--lit-night)) color-mix(in oklab, var(--lit-accent), transparent calc(100% - var(--lit-night) * (55% + var(--lit, 0) * 40%)));
}

/* plain: a painted cap with a painted chevron, the same box */
.vx-select:not([data-vx-live]) { background: var(--vx-key, var(--vx-chalk)); box-shadow: calc(var(--vx) * 0.75) calc(var(--vx) * 1) 0 var(--vx-shadow), inset 0 0 0 1px var(--vx-chalk-side); }
.vx-select:not([data-vx-live]):has(select:disabled) { background: var(--vx-steel); box-shadow: none; }
.vx-select:not([data-vx-live])::after {
  content: ""; position: absolute; pointer-events: none;
  inset-inline-end: calc(var(--vx) * 5); inset-block-start: calc(50% - var(--vx) * 2);
  inline-size: calc(var(--vx) * 7); block-size: calc(var(--vx) * 4);
  background: currentColor;
  --_u: var(--vx);
  clip-path: polygon(
    0 0, var(--_u) 0, var(--_u) var(--_u), calc(var(--_u) * 2) var(--_u), calc(var(--_u) * 2) calc(var(--_u) * 2), calc(var(--_u) * 3) calc(var(--_u) * 2), calc(var(--_u) * 3) calc(var(--_u) * 3),
    calc(var(--_u) * 4) calc(var(--_u) * 3), calc(var(--_u) * 4) calc(var(--_u) * 2), calc(var(--_u) * 5) calc(var(--_u) * 2), calc(var(--_u) * 5) var(--_u), calc(var(--_u) * 6) var(--_u), calc(var(--_u) * 6) 0, calc(var(--_u) * 7) 0,
    calc(var(--_u) * 7) var(--_u), calc(var(--_u) * 6) var(--_u), calc(var(--_u) * 6) calc(var(--_u) * 2), calc(var(--_u) * 5) calc(var(--_u) * 2), calc(var(--_u) * 5) calc(var(--_u) * 3), calc(var(--_u) * 4) calc(var(--_u) * 3), calc(var(--_u) * 4) calc(var(--_u) * 4),
    calc(var(--_u) * 3) calc(var(--_u) * 4), calc(var(--_u) * 3) calc(var(--_u) * 3), calc(var(--_u) * 2) calc(var(--_u) * 3), calc(var(--_u) * 2) calc(var(--_u) * 2), var(--_u) calc(var(--_u) * 2), var(--_u) var(--_u), 0 var(--_u));
}
.vx-select:not([data-vx-live]):has(select:disabled)::after { color: var(--vx-ink-quiet); }
.vx-select:not([data-vx-live]):has(select:active:not(:disabled)) { translate: calc(var(--vx) * 0.5) calc(var(--vx) * 0.5); box-shadow: inset 0 0 0 1px var(--vx-chalk-side); }

/* ==== css/separator.css ==== */

/* ---------- Separator ----------
   The groove (the kit's .vx-groove), used to part things. Tool: groove. No script.
   Lying, between blocks (this exists already):
     <div class="vx-groove" role="separator"></div>          or <hr class="vx-groove">
   Standing, in a row of things. .vx-separator on a standing groove gives it a height of its
   own, so it does not depend on the row stretching it, and room on either side:
     <span class="vx-groove vx-separator" data-vx-way="down" role="separator" aria-orientation="vertical"></span>
     data-vx-size="small"  between words (5 voxels)
     (none)                between things a line tall, and beside low things (7 voxels)
     data-vx-size="key"    between keys (11 voxels, as tall as a key)
   With a word in its middle. The word is read; the grooves either side are only seen:
     <div class="vx-separator"><span class="vx-groove" aria-hidden="true"></span><span>or</span><span class="vx-groove" aria-hidden="true"></span></div>
     data-vx-align="start"  the word near the start, a short groove before it
   data-vx-light on a groove (accent, go, stop) is the kit's: a light means something, so a
   separator keeps to the room's own warm light unless it marks a state. */

/* an <hr> is clipped by the browser; a groove's light must not be */
hr.vx-groove { overflow: visible; block-size: var(--vx); }

/* ---- standing, in a row ---- */
.vx-groove.vx-separator[data-vx-way="down"] {
  display: inline-block;
  flex: none;
  align-self: center;
  vertical-align: middle;
  inline-size: var(--vx);
  block-size: calc(var(--vx) * 7);
  margin-inline: calc(var(--vx) * 1);
}
.vx-groove.vx-separator[data-vx-way="down"][data-vx-size="small"] { block-size: calc(var(--vx) * 5); }
.vx-groove.vx-separator[data-vx-way="down"][data-vx-size="key"] { block-size: calc(var(--vx) * 11); }

/* ---- with a word in its middle ---- */
.vx-separator:not(.vx-groove) {
  display: flex;
  align-items: center;
  gap: calc(var(--vx) * 3);
  min-inline-size: 0;
  color: var(--vx-ink-quiet);
  font: 500 0.875rem/1.45 var(--vx-font);
  line-height: round(up, 1.4em, var(--vx)); /* 20 px: five voxels a line */
  text-align: center;
  overflow-wrap: anywhere;
}
.vx-separator:not(.vx-groove) > .vx-groove { flex: 1 1 0; min-inline-size: calc(var(--vx) * 4); }
.vx-separator:not(.vx-groove) > :not(.vx-groove) { flex: 0 1 auto; min-inline-size: 0; }
.vx-separator[data-vx-align="start"] > .vx-groove:first-child { flex: 0 0 calc(var(--vx) * 6); }
.vx-separator[data-vx-align="start"] { text-align: start; }

/* ==== css/sheet.css ==== */

/* ---------- Sheet ---------- */

/* A surface that comes in from an edge of the window, a level above the page, over a scrim. It
   is the browser's own <dialog>, shown with showModal(): focus stays inside, Escape closes it,
   focus goes back to what opened it. data-vx-side says which edge: "end" (the default), "start",
   "top" or "bottom". It slides only where motion is allowed, and the slide is CSS, so it is the
   same with no script.
   Markup: see src/components/sheet.js.
   The drawer (css/drawer.css) is the same thing and shares these rules: what is written here
   for both is written with :where(), so that a rule of the drawer's own always wins. */

dialog:where(.vx-sheet, .vx-drawer) {
  --_side: end; /* the edge it is on: the part reads this */
  --_dir: 1;
  --_w: min(calc(var(--vx) * 96), calc(100vw - var(--vx) * 11));
  --_w: min(calc(var(--vx) * 96), round(down, calc(100vw - var(--vx) * 11), var(--vx)));
  /* where it waits, out of the window: its own size and the room its side and shadow take */
  --_out: calc((100% + var(--vx) * 6) * var(--_dir)) 0;
  position: fixed;
  inset-block: 0;
  inset-inline: auto 0;
  box-sizing: border-box;
  inline-size: var(--_w);
  block-size: auto;
  max-inline-size: none;
  max-block-size: none;
  margin: 0;
  border: 0;
  padding: 0;
  background: none;
  overflow: visible;
  isolation: isolate;
  color: var(--vx-ink);
  font-family: var(--vx-font);
  font-size: 1rem;
  line-height: calc(var(--vx) * 6);
}
dialog:where(.vx-sheet, .vx-drawer):dir(rtl) { --_dir: -1; }
/* only while it is open: closed, a dialog has no box at all */
dialog:where(.vx-sheet, .vx-drawer)[open] { display: flex; flex-direction: column; }
dialog:where(.vx-sheet, .vx-drawer):focus-visible { outline: none; } /* what is in it shows the focus */

dialog:where(.vx-sheet, .vx-drawer)[data-vx-side="start"] {
  --_side: start;
  --_out: calc((-100% - var(--vx) * 6) * var(--_dir)) 0;
  inset-inline: 0 auto;
}
/* from the top or the bottom it is as wide as the window and as high as what it holds; a strip
   of the scrim, the height of a key, is always left to press */
dialog:where(.vx-sheet, .vx-drawer)[data-vx-side="top"] {
  --_side: top;
  --_out: 0 calc(-100% - var(--vx) * 6);
  inset-block: 0 auto;
  inset-inline: 0;
  inline-size: auto;
  max-block-size: calc(100% - var(--vx) * 11);
}
dialog:where(.vx-sheet, .vx-drawer)[data-vx-side="bottom"] {
  --_side: bottom;
  --_out: 0 calc(100% + var(--vx) * 6);
  inset-block: auto 0;
  inset-inline: 0;
  inline-size: auto;
  max-block-size: calc(100% - var(--vx) * 11);
}

/* the scrim; a drawer that is being dragged shut lets the page show through as it goes */
dialog:where(.vx-sheet, .vx-drawer)::backdrop { background: rgb(8 9 15 / 0.5); opacity: calc(1 - var(--_drag, 0) * 0.7); }

/* the page behind does not scroll while one is open over it */
:root:has(dialog:where(.vx-sheet, .vx-drawer):modal) { overflow: hidden; }

/* It slides in and out, where motion is allowed. Closed, it waits outside the window; the
   browser keeps it on top until it has got there. */
@media (prefers-reduced-motion: no-preference) {
  dialog:where(.vx-sheet, .vx-drawer) {
    translate: var(--_out);
    transition: translate 200ms cubic-bezier(0.4, 0, 0.9, 0.6), overlay 200ms allow-discrete, display 200ms allow-discrete;
  }
  dialog:where(.vx-sheet, .vx-drawer)[open] {
    translate: 0 0;
    transition: translate 280ms cubic-bezier(0.2, 0.75, 0.2, 1), overlay 280ms allow-discrete, display 280ms allow-discrete;
  }
  @starting-style { dialog:where(.vx-sheet, .vx-drawer)[open] { translate: var(--_out); } }
  dialog:where(.vx-sheet, .vx-drawer)::backdrop { opacity: 0; transition: opacity 200ms linear, overlay 200ms allow-discrete, display 200ms allow-discrete; }
  dialog:where(.vx-sheet, .vx-drawer)[open]::backdrop { opacity: calc(1 - var(--_drag, 0) * 0.7); transition-duration: 280ms; }
  @starting-style { dialog:where(.vx-sheet, .vx-drawer)[open]::backdrop { opacity: 0; } }
}

/* What is in it: a header of words (and a close key), what it holds, and its keys. A page's own
   rules for header and footer must not reach in. */
dialog:where(.vx-sheet, .vx-drawer) > :is(header, footer) { margin: 0; border: 0; background: none; flex: none; }
dialog:where(.vx-sheet, .vx-drawer) > header {
  display: flex;
  align-items: center;
  gap: calc(var(--vx) * 3);
  box-sizing: border-box;
  /* fifteen voxels: a close key (eleven with its target) sits in it on whole voxels. Its last
     row of voxels is the groove that parts it from what is below. */
  min-block-size: calc(var(--vx) * 15);
  padding: calc(var(--vx) * 2) calc(var(--vx) * 6);
}
dialog:where(.vx-sheet, .vx-drawer) > header:has(> .vx-close) { padding-inline-end: calc(var(--vx) * 4); }
dialog:where(.vx-sheet, .vx-drawer) > header > :where(h2, h3) {
  flex: 1 1 auto;
  min-inline-size: 0;
  margin: 0;
  font: 700 1.125rem/calc(var(--vx) * 6) var(--vx-font);
  color: var(--vx-ink);
  overflow-wrap: anywhere;
}
/* what it holds scrolls by itself, and does not hand the scroll on to the page */
:where(.vx-sheet-body, .vx-drawer-body) {
  flex: 1 1 auto;
  min-block-size: 0;
  overflow: hidden auto;
  overscroll-behavior: contain;
  padding: calc(var(--vx) * 5) calc(var(--vx) * 6);
}
:where(.vx-sheet-body, .vx-drawer-body) > :first-child { margin-block-start: 0; }
:where(.vx-sheet-body, .vx-drawer-body) > :last-child { margin-block-end: 0; }
dialog:where(.vx-sheet, .vx-drawer) > footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: calc(var(--vx) * 4);
  padding: calc(var(--vx) * 2) calc(var(--vx) * 6) calc(var(--vx) * 6);
}

/* plain: a painted panel, and a painted groove under the header */
dialog:where(.vx-sheet, .vx-drawer):not([data-vx-live]) {
  background: var(--vx-reading-plate, var(--vx-chalk));
  box-shadow: 0 0 0 1px var(--vx-chalk-side), calc(var(--vx) * 1) calc(var(--vx) * 1.25) 0 var(--vx-shadow);
}
dialog:where(.vx-sheet, .vx-drawer):not([data-vx-live]) > header {
  background: linear-gradient(color-mix(in oklab, var(--lit-warm, var(--vx-slate)) 55%, transparent), color-mix(in oklab, var(--lit-warm, var(--vx-slate)) 55%, transparent)) no-repeat;
  background-size: calc(100% - var(--vx) * 8) var(--vx);
  background-position: 50% 100%;
}

/* ==== css/sidebar.css ==== */

/* ---------- Sidebar ---------- */

/* A column of links and groups beside the content: part of the window's surface, parted from the
   rest by a standing groove. Its rows are navs (.vx-nav, a column with the accent groove).
   Markup: <button class="vx-button" type="button" aria-controls="side" aria-expanded="true">Projects</button>
           <div class="vx-sidebar" id="side">
             <nav class="vx-nav" data-vx-mark="groove" data-vx-way="down" aria-label="Workspace">
               <p class="vx-nav-title">Projects</p>
               <ul><li><a href="/harbor-api" aria-current="page">harbor-api</a></li> …</ul>
             </nav>
             <span class="vx-groove" data-vx-way="down" aria-hidden="true"></span>
           </div>
   Put it first in a row with the content (a flex or a grid row): it is 52 voxels wide
   (--vx-sidebar-w) and as tall as the row. Folded away it has the hidden attribute. Under 768 px
   it is not beside the content: its key brings it in over the page. A page that wants another
   width for that sets --vx-sidebar-over to 1 or 0 on it by its own rule. */

.vx-sidebar {
  position: relative; isolation: isolate; display: flex; align-items: stretch; flex: none; box-sizing: border-box;
  inline-size: calc(var(--vx) * var(--vx-sidebar-w, 52)); min-inline-size: 0; max-inline-size: 100%;
  font-family: var(--vx-font); color: var(--vx-ink);
}
.vx-sidebar > .vx-nav, .vx-sidebar-scroll { flex: 1 1 auto; min-inline-size: 0; }
.vx-sidebar > .vx-nav, .vx-sidebar-scroll > .vx-nav { align-content: start; justify-content: flex-start; padding-inline-end: calc(var(--vx) * 3); padding-block: calc(var(--vx) * 2) calc(var(--vx) * 4); }
/* a long one scrolls by itself. The room at its end is what the nav's own drawing reaches into,
   so that it adds nothing to what can be scrolled. */
.vx-sidebar-scroll { overflow: hidden auto; overscroll-behavior: contain; padding-block-end: calc(var(--vx) * 7); }
.vx-sidebar-scroll > .vx-nav { padding-block-end: 0; }
.vx-sidebar > .vx-groove { flex: none; }

/* where it comes in over the page */
@media (max-width: 767.98px) {
  .vx-sidebar[data-vx-on] { --vx-sidebar-over: 1; }
}

/* over the page: the browser's own popover, at the edge the page starts from, as tall as the window */
.vx-sidebar[popover] {
  position: fixed; inset: 0 auto 0 0; margin: 0; border: 0; overflow: visible; background: none; color: var(--vx-ink);
  block-size: 100dvh; max-block-size: none;
  inline-size: min(calc(var(--vx) * 72), calc(100vw - var(--vx) * 14));
  inline-size: min(calc(var(--vx) * 72), round(down, calc(100vw - var(--vx) * 14), var(--vx)));
  padding: calc(var(--vx) * 4) calc(var(--vx) * 3) calc(var(--vx) * 4) calc(var(--vx) * 4);
}
.vx-sidebar[popover]:dir(rtl) { inset: 0 0 0 auto; }
.vx-sidebar[popover]:not(:popover-open, [data-vx-measure]) { display: none; }
.vx-sidebar[popover][data-vx-measure] { visibility: hidden; }
.vx-sidebar[popover]:focus-visible { outline: none; }
.vx-sidebar[popover] > .vx-groove { display: none; } /* it is a surface of its own there: no edge to part */
.vx-sidebar[popover]::backdrop { background: rgb(8 9 15 / 0.5); }
/* it comes in from the edge, and goes the same way */
.vx-sidebar[popover] { translate: -100% 0; transition: translate 200ms var(--vx-ease-out), overlay 200ms allow-discrete, display 200ms allow-discrete; }
.vx-sidebar[popover]:dir(rtl) { translate: 100% 0; }
.vx-sidebar[popover]:popover-open { translate: 0 0; }
@starting-style {
  .vx-sidebar[popover]:popover-open { translate: -100% 0; }
  .vx-sidebar[popover]:popover-open:dir(rtl) { translate: 100% 0; }
}
.vx-sidebar[popover]::backdrop { opacity: 0; transition: opacity 200ms var(--vx-ease-out), overlay 200ms allow-discrete, display 200ms allow-discrete; }
.vx-sidebar[popover]:popover-open::backdrop { opacity: 1; }
@starting-style { .vx-sidebar[popover]:popover-open::backdrop { opacity: 0; } }
/* plain: a painted surface */
.vx-sidebar[popover]:not([data-vx-live]) { background: var(--vx-chalk); box-shadow: calc(var(--vx) * 1.5) 0 0 var(--vx-shadow); }

@media (prefers-reduced-motion: reduce) {
  .vx-sidebar[popover], .vx-sidebar[popover]::backdrop { transition: none; }
}

/* ==== css/skeleton.css ==== */

/* ---------- Skeleton ---------- */

/* The region that is loading. Its shallow slots (.vx-bone) take the size of what is coming:
   --vx-bone-w and --vx-bone-h are in voxels, so every edge lands on the grid. */
.vx-skeleton { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; min-inline-size: 0; }
.vx-bone {
  position: relative; isolation: isolate; display: block; flex: none;
  /* a line of words: a trench two voxels high in a line six voxels high */
  inline-size: calc(var(--vx) * var(--vx-bone-w, 60)); max-inline-size: 100%;
  block-size: calc(var(--vx) * var(--vx-bone-h, 2));
  margin-block: calc(var(--vx) * 2);
}
/* a heading */
.vx-bone[data-vx-bone="title"] { block-size: calc(var(--vx) * var(--vx-bone-h, 4)); margin-block: calc(var(--vx) * 2) calc(var(--vx) * 3); }
/* a picture, an avatar, a key: its own size, no line round it */
.vx-bone[data-vx-bone="box"] { inline-size: calc(var(--vx) * var(--vx-bone-w, 10)); block-size: calc(var(--vx) * var(--vx-bone-h, 10)); margin-block: 0; }

:is(.vx-skeleton, .vx-bone)[hidden] { display: none; } /* the class would otherwise undo the attribute */

/* the words that say it is loading: read out, not shown */
.vx-skeleton-word { position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* plain: a painted trench, and a painted light that crosses it */
.vx-bone:not([data-vx-live]) {
  background-color: var(--vx-slate);
  background-image: linear-gradient(90deg, transparent, color-mix(in oklab, var(--lit-warm, var(--vx-steel)) 60%, transparent), transparent);
  background-repeat: no-repeat; background-size: calc(var(--vx) * 14) 100%; background-position: calc(var(--vx) * -14) 0;
  animation: vx-bone 2.1s linear infinite;
}
.vx-bone:not([data-vx-live]):dir(rtl) { animation-direction: reverse; }
[aria-busy="false"] .vx-bone:not([data-vx-live]) { animation: none; }
@keyframes vx-bone {
  0% { background-position: calc(var(--vx) * -14) 0; }
  72%, 100% { background-position: calc(100% + var(--vx) * 14) 0; }
}
@media (prefers-reduced-motion: reduce) {
  .vx-bone:not([data-vx-live]) { animation: none; }
}

/* ==== css/spinner.css ==== */

/* ---------- Spinner ---------- */

/* A ring of lamps (a stud with a cube of light on it), five voxels across (nine with data-vx-size="large"): an odd number, so a
   cube stands at every corner and at every second voxel between. */
.vx-spinner { position: relative; isolation: isolate; display: inline-block; flex: none; inline-size: calc(var(--vx) * 5); block-size: calc(var(--vx) * 5); vertical-align: middle; }
.vx-spinner[data-vx-size="large"] { inline-size: calc(var(--vx) * 9); block-size: calc(var(--vx) * 9); }
.vx-spinner[hidden] { display: none; } /* the class would otherwise undo the attribute */

/* the words that say what is being waited for: read out, not shown */
.vx-spinner-word { position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* plain: the same ring painted, one corner cube and one side cube repeated; the turn is a step
   round the ring, a cube at a time */
.vx-spinner:not([data-vx-live]) { --_c: var(--lit-accent, var(--vx-enamel)); --_n: 8; }
.vx-spinner:not([data-vx-live])[data-vx-size="large"] { --_n: 16; }
.vx-spinner:not([data-vx-live])[data-vx-light="go"] { --_c: var(--lit-go, var(--vx-leaf)); }
.vx-spinner:not([data-vx-live])[data-vx-light="stop"] { --_c: var(--lit-stop, var(--vx-brick)); }
.vx-spinner:not([data-vx-live])[data-vx-light="warm"] { --_c: var(--lit-warm, var(--vx-steel)); }
.vx-spinner:not([data-vx-live])::before {
  content: ""; position: absolute; inset: 0; opacity: 0.45;
  background:
    repeating-linear-gradient(90deg, var(--_c) 0 var(--vx), transparent 0 calc(var(--vx) * 2)) 0 0 / 100% var(--vx) no-repeat,
    repeating-linear-gradient(90deg, var(--_c) 0 var(--vx), transparent 0 calc(var(--vx) * 2)) 0 100% / 100% var(--vx) no-repeat,
    repeating-linear-gradient(180deg, var(--_c) 0 var(--vx), transparent 0 calc(var(--vx) * 2)) 0 0 / var(--vx) 100% no-repeat,
    repeating-linear-gradient(180deg, var(--_c) 0 var(--vx), transparent 0 calc(var(--vx) * 2)) 100% 0 / var(--vx) 100% no-repeat;
}
/* the cube whose turn it is: one full cube that steps from seat to seat round the edge */
.vx-spinner:not([data-vx-live])::after {
  content: ""; position: absolute; inset-block-start: 0; inset-inline-start: 0; inline-size: var(--vx); block-size: var(--vx); background: var(--_c);
  offset-path: inset(calc(var(--vx) * 0.5)); offset-rotate: 0deg; offset-anchor: center;
  animation: vx-spinner 0.8s steps(var(--_n)) infinite;
}
@keyframes vx-spinner { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .vx-spinner:not([data-vx-live])::before { opacity: 0.75; }
  .vx-spinner:not([data-vx-live])::after { animation: none; display: none; }
}

/* ==== css/stepper.css ==== */

/* ---------- Number stepper ---------- */

/* A window for the number, a small keycap each side of it. The window and the keys are the
   kit's own (.vx-well, .vx-button); this is how they sit together. */
.vx-stepper {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  /* with the room each key keeps round its cap, a cap is four voxels from the window: clear of
     its rim by more than a voxel, with the cap's side and its light between */
  gap: calc(var(--vx) * 2);
  max-inline-size: 100%;
}
.vx-stepper > .vx-well { flex: none; inline-size: calc(var(--vx) * 18); }
.vx-stepper[data-vx-size="wide"] > .vx-well { inline-size: calc(var(--vx) * 28); }
.vx-stepper input {
  padding-inline: calc(var(--vx) * 2);
  text-align: center;
  font-variant-numeric: tabular-nums;
  /* the keys beside it are its spin buttons: the browser's own are put away */
  appearance: textfield; -moz-appearance: textfield;
}
.vx-stepper input::-webkit-inner-spin-button, .vx-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; appearance: none; margin: 0; }

/* The keys are the kit's small key, as the close button is: a cap seven voxels square, in a
   target of eleven. A cap that small beside a window eleven tall reads as the window's own. */
.vx-stepper > .vx-button {
  flex: none;
  inline-size: calc(var(--vx) * 7); block-size: calc(var(--vx) * 7);
  min-inline-size: 0; min-block-size: 0;
  padding: 0;
  /* it keeps the room its target takes */
  margin: calc(var(--vx) * 2);
  /* The sign is cut a voxel to the cell: three voxels on the cap's top, which is five across
     (a keycap's top is a voxel smaller all round): one clear on every side. A glyph of the key
     face carries the gap after it and sits high in its line; a voxel of indent and a voxel of
     padding above move it half a voxel each way, to the middle. */
  font-size: calc(var(--vx) * 10);
  text-indent: var(--vx); padding-block-start: var(--vx);
}
/* the target: two voxels more on every side, 44 px in all */
.vx-stepper > .vx-button::after { content: ""; position: absolute; inset: calc(var(--vx) * -2); }
/* plain: a painted key moves a voxel up and left while it is held; its target stays under the pointer */
.vx-stepper > .vx-button:not([data-vx-live]):active::after { right: calc(var(--vx) * -3); bottom: calc(var(--vx) * -3); }

/* With no script at all the keys could do nothing: they go, and the browser's spin buttons come back. */
@media (scripting: none) {
  .vx-stepper > .vx-button { display: none; }
  .vx-stepper input { appearance: auto; -moz-appearance: auto; }
  .vx-stepper input::-webkit-inner-spin-button, .vx-stepper input::-webkit-outer-spin-button { -webkit-appearance: auto; appearance: auto; }
}

/* ==== css/table.css ==== */

/* ---------- Table ----------
   Words on the surface, in rows and columns. Tool: none. One groove between the head and the
   body (src/components/table.js cuts it; with no script it is the head's own bottom border, in
   the same place). Rows are parted by a hairline in --vx-slate. No box round it, no stripes.
     <div class="vx-table">
       <div class="vx-table-scroll" tabindex="0" role="region" aria-labelledby="deploys-caption">
         <table>
           <caption id="deploys-caption">Deploys this week <small>What it is, said quietly</small></caption>
           <thead><tr><th scope="col">Service</th><th scope="col" class="vx-num">Builds</th></tr></thead>
           <tbody><tr><th scope="row">harbor-api</th><td class="vx-num">14</td></tr></tbody>
           <tfoot>…</tfoot>
         </table>
       </div>
     </div>
   A table wider than its place scrolls inside .vx-table-scroll, which takes focus so the arrow
   keys can move it; the page never moves sideways. A cell keeps to one line, so a table too wide
   for its place scrolls before its words are broken up; .vx-wrap on a cell lets a sentence in it
   wrap. .vx-num on a cell: a number, set to the end. data-vx-size="small" on .vx-table: rows
   closer together.
   Every row of the caption and the head is a whole number of voxels tall, so the groove lands on
   the grid. */

/* as wide as its place: it is a container (the caption is sized by it), so it has no width of its
   own to fall back on in a row or a grid */
.vx-table { position: relative; isolation: isolate; display: block; box-sizing: border-box; inline-size: 100%; min-inline-size: 0; max-inline-size: 100%; container-type: inline-size; --_pad: calc(var(--vx) * 3); }
.vx-table[data-vx-size="small"] { --_pad: calc(var(--vx) * 2); }
.vx-table-scroll { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--vx-steel) transparent; }
.vx-table-scroll:focus { outline: 0; }
.vx-table:has(.vx-table-scroll:focus-visible) { outline: 2px solid var(--vx-focus); outline-offset: calc(var(--vx) * 1); }

.vx-table table {
  inline-size: 100%;
  border-collapse: separate; /* each cell's border is its own: the head's is where the groove is cut */
  border-spacing: 0;
  color: var(--vx-ink);
  font: 400 0.9375rem/1.4 var(--vx-font);
  line-height: round(up, 1.3em, var(--vx)); /* 20 px: five voxels a line */
  font-variant-numeric: tabular-nums;
  text-align: start;
  white-space: nowrap; /* a cell is one line; the table scrolls before its words are broken up */
  overflow-wrap: normal;
}

.vx-table caption {
  caption-side: top;
  padding: 0 0 calc(var(--vx) * 2);
  text-align: start;
  font-size: 1rem;
  line-height: 1.5;
  line-height: round(up, 1.5em, var(--vx)); /* 24 px: six voxels a line */
  font-weight: 650;
  color: var(--vx-ink);
  white-space: normal;
  overflow-wrap: break-word;
  text-wrap: balance;
  /* the caption keeps to the place the table is shown in, and stays put while the table scrolls */
  position: sticky;
  inset-inline-start: 0;
  max-inline-size: 100cqi;
}
/* what the table is, said quietly under its name */
.vx-table caption small { display: block; font-size: 0.875rem; line-height: 1.4; line-height: round(up, 1.4em, var(--vx)); font-weight: 400; color: var(--vx-ink-quiet); text-wrap: pretty; }

.vx-table :is(th, td) { padding: var(--_pad) calc(var(--vx) * 3); text-align: start; vertical-align: top; font-weight: 400; }
/* with no box round the table, the first and last columns stand on the edge of the words above */
.vx-table :is(th, td):first-child { padding-inline-start: 0; }
.vx-table :is(th, td):last-child { padding-inline-end: 0; }
.vx-table .vx-num { text-align: end; }
.vx-table .vx-wrap { white-space: normal; min-inline-size: calc(var(--vx) * 50); text-wrap: pretty; }

/* the head: quiet words, then the groove */
.vx-table thead th {
  padding-block: calc(var(--vx) * 2);
  vertical-align: bottom;
  font-size: 0.8125rem;
  line-height: 1.5;
  line-height: round(up, 1.5em, var(--vx)); /* 20 px */
  font-weight: 600;
  color: var(--vx-ink-quiet);
}
.vx-table thead tr:last-child th { border-block-end: var(--vx) solid color-mix(in oklab, var(--lit-warm, var(--vx-steel)) 55%, transparent); }
.vx-table[data-vx-live] thead tr:last-child th { border-block-end-color: transparent; }

/* the body: the first cell of a row names it; rows are parted by a hairline */
.vx-table tbody th { font-weight: 600; }
.vx-table tbody tr + tr > :is(th, td) { border-block-start: 1px solid var(--vx-slate); }
.vx-table td small, .vx-table tbody th small { display: block; font-size: 0.8125rem; font-weight: 400; color: var(--vx-ink-quiet); }

/* the foot: what the rows come to, under a hairline of its own */
.vx-table tfoot :is(th, td) { border-block-start: 1px solid var(--vx-steel); font-weight: 600; }

/* ==== css/theme-picker.css ==== */

/* ---------- Theme picker ----------
   The one place a site's theme is set from: a bank of seats for the theme, each with a lamp of
   that theme's own accent, and a bank for the time of day. The banks are the kit's trench of
   seats (.vx-toggle-group, one of many); this file lays the two side by side and sets the lamp
   in its seat. src/components/theme-picker.js fills the theme bank from THEMES and does the
   choosing.
     <div class="vx-theme-picker">
       <div class="vx-toggle-group" role="radiogroup" aria-label="Theme" data-vx-pick="theme" data-vx-size="small"></div>
       <div class="vx-toggle-group" role="radiogroup" aria-label="Time of day" data-vx-pick="time" data-vx-size="small">
         <label><input type="radio" name="time" value="light">Day</label>
         <label><input type="radio" name="time" value="dark">Night</label>
         <label><input type="radio" name="time" value="system" checked>System</label>
       </div>
     </div>
   A seat written out by the site (its own words, and no change of width when the script arrives):
     <label><input type="radio" value="rose"><span class="vx-theme-lamp"></span><span class="vx-label">Rose</span></label>
   In a settings page each bank may have its name before it, as words:
     <div class="vx-theme-picker" data-vx-way="down">
       <span class="vx-theme-picker-name" id="t">Theme</span><div class="vx-toggle-group" role="radiogroup" aria-labelledby="t" data-vx-pick="theme"></div> …
   Without the script it can do nothing, so it is not shown; the page then follows the system. */

.vx-theme-picker {
  position: relative; isolation: isolate;
  display: inline-flex; flex-wrap: wrap; align-items: center;
  gap: calc(var(--vx) * 3) calc(var(--vx) * 4);
  min-inline-size: 0; max-inline-size: 100%;
  font-family: var(--vx-font); color: var(--vx-ink);
}
/* it keeps its place while the script is on its way, and for good if there is none */
.vx-theme-picker:not([data-vx-picker]) { visibility: hidden; }

/* in a settings page: a name, then its bank, one under the other */
.vx-theme-picker[data-vx-way="down"] { display: grid; grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; gap: calc(var(--vx) * 3) calc(var(--vx) * 5); }
.vx-theme-picker-name { font-weight: 600; font-size: 0.9375rem; line-height: 1.3; }
@media (max-width: 600px) {
  .vx-theme-picker[data-vx-way="down"] { grid-template-columns: minmax(0, 1fr); gap: calc(var(--vx) * 2); }
  .vx-theme-picker[data-vx-way="down"] > .vx-toggle-group { margin-block-end: calc(var(--vx) * 2); }
}

/* The theme bank: equal seats, each as wide as the widest, as many to a row as fit, so a
   theme's name is never broken up (the part measures them and writes the columns on the bank).
   These rules name the trench's own class as well, so that they hold whichever file comes
   first in the stylesheet. */
/* a seat of it: the lamp, then the words, side by side */
.vx-theme-picker .vx-toggle-group[data-vx-pick="theme"] > label { grid-auto-flow: column; column-gap: calc(var(--vx) * 2); padding-inline: calc(var(--vx) * 3); }
.vx-theme-picker .vx-toggle-group[data-vx-pick="theme"] > label > .vx-label { white-space: nowrap; }
/* the words stand over the lamp's light, never under it */
.vx-theme-picker .vx-toggle-group[data-vx-pick] > label > .vx-label { position: relative; }

/* the lamp: two voxels square, in a collar a voxel wide that reaches past its box */
.vx-theme-lamp { position: relative; isolation: isolate; display: block; flex: none; inline-size: calc(var(--vx) * 2); block-size: calc(var(--vx) * 2); pointer-events: none; }

/* plain: a painted lamp of the theme's accent (the part writes --_day and --_night on it) in a painted collar */
.vx-theme-lamp:not([data-vx-live]) { background: var(--_day, var(--vx-steel)); box-shadow: 0 0 0 var(--vx) var(--vx-steel); }
:root[data-theme="dark"] .vx-theme-lamp:not([data-vx-live]) { background: var(--_night, var(--vx-steel)); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .vx-theme-lamp:not([data-vx-live]) { background: var(--_night, var(--vx-steel)); }
}

/* ==== css/toggle-button.css ==== */

/* ---------- Toggle button ---------- */

/* The latch uses the same cap profile and switch travel as a momentary key. */
.vx-toggle-button {
  --_face: var(--vx-key, var(--vx-chalk));
  --_top: var(--vx-chalk-top);
  --_side: var(--vx-chalk-side);
  --_on: var(--lit-legend, var(--vx-ink));
  --_lift: calc(var(--vx) * 1.5);

  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-block-size: calc(var(--vx) * 11);
  min-inline-size: calc(var(--vx) * 11);
  padding: 0 calc(var(--vx) * 5);
  margin: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--_on);
  font: 400 var(--vx-key-size)/1 var(--vx-key-font);
  letter-spacing: 0;
  white-space: nowrap; /* a key carries one line */
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.vx-toggle-button:is(:disabled, [aria-disabled="true"]) { --_face: var(--vx-steel); --_top: var(--vx-steel); --_side: var(--vx-steel); --_on: var(--vx-ink-quiet); --_lift: 0px; cursor: default; }
.vx-toggle-button:is(:disabled, [aria-disabled="true"]) .vx-label { opacity: 0.6; }
.vx-toggle-button .vx-label { display: inline-flex; align-items: center; gap: calc(var(--vx) * 2); position: relative; }
.vx-toggle-button:focus-visible { outline: 2px solid var(--vx-focus); outline-offset: calc(var(--vx) * 2); }

/* at night the legend shines through, as a key's does; --lit is set by the part, and is held
   above nothing while the key is on */
[data-vx-look="lit"] .vx-toggle-button[data-vx-live]:not(:disabled, [aria-disabled="true"]) .vx-label {
  text-shadow: 0 0 calc((6px + var(--lit, 0) * 10px) * var(--lit-night)) color-mix(in oklab, var(--lit-accent), transparent calc(100% - var(--lit-night) * (55% + var(--lit, 0) * 40%)));
}

/* plain: the face is a painted box; two borders stand in for the top and the side */
.vx-toggle-button:not([data-vx-live]) { background: var(--_face); box-shadow: calc(var(--vx) * 0.75) calc(var(--vx) * 1) 0 var(--vx-shadow); }
.vx-toggle-button:not([data-vx-live])::before {
  content: "";
  position: absolute;
  --_body: calc(var(--_lift) + var(--_hover));
  inset: calc(var(--_body) * -1) 0 0 calc(var(--_body) * -1);
  border-top: var(--_body) solid var(--_top);
  border-left: var(--_body) solid var(--_side);
  border-right: var(--_body) solid transparent;
  border-bottom: var(--_body) solid transparent;
  box-sizing: border-box;
  z-index: -1;
  pointer-events: none;
}
/* The shutter is a dark, unlit slit until the switch latches. */
.vx-toggle-button:not([data-vx-live]):not(:disabled, [aria-disabled="true"])::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(#545951, #343a33) center calc(100% - var(--vx)) / calc(var(--vx) * 4) var(--vx) no-repeat;
}
/* plain, down: while it is held, and for as long as it is on */
.vx-toggle-button:not([data-vx-live]):is(:active, [aria-pressed="true"]):not(:disabled, [aria-disabled="true"]) { --_lift: calc(var(--vx) * 0.5); transform: translate(calc(var(--vx) * -1), calc(var(--vx) * -1)); box-shadow: 0 0 0 var(--vx-shadow); }
/* plain: painted down, it lies a voxel up and left of its own box. What can be hit stays where the box is. */
.vx-toggle-button:not([data-vx-live]):is(:active, [aria-pressed="true"]):not(:disabled, [aria-disabled="true"])::after { content: ""; position: absolute; inset: 0 calc(var(--vx) * -1) calc(var(--vx) * -1) 0; }
/* plain, on: the accent's light all round its foot */
.vx-toggle-button:not([data-vx-live])[aria-pressed="true"]:not(:disabled, [aria-disabled="true"]) { --_top: var(--lit-accent, var(--vx-enamel)); --_side: var(--lit-accent, var(--vx-enamel)); box-shadow: 0 0 0 calc(var(--vx) * 0.5) var(--lit-accent, var(--vx-enamel)); }
.vx-toggle-button:not([data-vx-live])[aria-pressed="true"]:not(:disabled, [aria-disabled="true"])::after {
  background: linear-gradient(var(--lit-accent), var(--lit-accent)) center calc(100% - var(--vx) * 2) / calc(var(--vx) * 4) var(--vx) no-repeat;
}
/* plain, off while on: a dent, no light */
.vx-toggle-button:not([data-vx-live])[aria-pressed="true"]:is(:disabled, [aria-disabled="true"]) { box-shadow: inset 0 0 0 calc(var(--vx) * 0.5) var(--vx-slate); }

/* ==== css/toggle-group.css ==== */

/* ---------- Toggle group ---------- */

.vx-toggle-group { position: relative; isolation: isolate; max-inline-size: 100%; box-sizing: border-box; }

/* Several of many: a bank of toggle buttons, three voxels apart as the keys of a button group
   are (nearer, each cap's side would be drawn over the one before it). On a narrow page they wrap. */
.vx-toggle-group[role="toolbar"] { display: inline-flex; flex-wrap: wrap; gap: calc(var(--vx) * 3); }
.vx-toggle-group[role="toolbar"][data-vx-way="down"] { flex-direction: column; align-items: stretch; }

/* One of many: a slot of equal seats over real radio buttons, a latching keycap in each; the
   chosen one is latched down. In voxels the slot has a bezel, which reaches two voxels past this
   box on every side. */
.vx-toggle-group:not([role="toolbar"]) { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.vx-toggle-group:not([role="toolbar"])[data-vx-way="down"] { grid-auto-flow: row; grid-auto-columns: auto; }
.vx-toggle-group > label {
  position: relative;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  min-block-size: calc(var(--vx) * 11);
  /* Two voxels above and below the words and a line of six: a seat of one line is 11 voxels
     (its words where a key's and a tab's are, measured), one of two lines is 16. On the grid. */
  padding: calc(var(--vx) * 2) calc(var(--vx) * 5);
  color: var(--vx-ink-quiet);
  font: 400 var(--vx-key-size)/calc(var(--vx) * 6) var(--vx-key-font);
  letter-spacing: 0;
  text-align: center;
  overflow-wrap: anywhere; /* a seat is narrower than its words on a phone: they wrap */
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.vx-toggle-group[data-vx-size="small"] > label { padding-inline: calc(var(--vx) * 2); }
.vx-toggle-group > label > .vx-label { display: inline-block; }
/* the real control lies over the whole seat, so the whole seat is the target */
.vx-toggle-group > label > input { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; margin: 0; opacity: 0; cursor: pointer; }
.vx-toggle-group > label:has(input:checked) { color: var(--lit-legend, var(--vx-ink)); }
.vx-toggle-group > label:has(input:disabled) { cursor: default; }
.vx-toggle-group > label:has(input:disabled) > input { cursor: default; }
.vx-toggle-group > label:has(input:disabled) { color: color-mix(in oklab, var(--vx-ink-quiet) 60%, transparent); }
.vx-toggle-group > label:has(input:focus-visible) { outline: 2px solid var(--vx-focus); outline-offset: calc(var(--vx) * 1); }

/* plain: a painted slot; the chosen seat is a key in it with the accent under it */
.vx-toggle-group:not([role="toolbar"]):not([data-vx-live]) { background: var(--vx-slate); }
.vx-toggle-group:not([data-vx-live]) > label:has(input:checked) { background: var(--vx-key, var(--vx-chalk)); box-shadow: inset 0 calc(var(--vx) * -0.5) 0 var(--lit-accent, var(--vx-enamel)); }
.vx-toggle-group:not([data-vx-live]) > label:has(input:checked:disabled) { background: var(--vx-steel); box-shadow: none; }

/* ==== css/tooltip.css ==== */

/* ---------- Tooltip ---------- */

/* A few words on a small low slab. It is a popover (popover="manual"), so nothing clips it and it
   lies above everything; the part shows it and puts it by its trigger. Its width is its words',
   up to a limit, wherever it is. */
.vx-tooltip {
  box-sizing: border-box;
  inline-size: max-content;
  max-inline-size: min(calc(var(--vx) * 64), calc(100vw - var(--vx) * 6));
  min-block-size: calc(var(--vx) * 8);
  padding: calc(var(--vx) * 1.5) calc(var(--vx) * 3);
  border: 0;
  overflow: visible;
  isolation: isolate;
  background: none;
  color: var(--vx-ink);
  font: 500 0.875rem/calc(var(--vx) * 5) var(--vx-font);
  overflow-wrap: anywhere;
  text-wrap: pretty;
  user-select: none;
}
/* for the moment the part measures it, just before it shows */
.vx-tooltip[data-vx-measure] { display: block; visibility: hidden; }

/* plain: a painted slab */
.vx-tooltip:not([data-vx-live]) {
  background: var(--vx-reading-plate, var(--vx-key, var(--vx-chalk)));
  box-shadow: inset 0 0 0 1px var(--vx-slate), calc(var(--vx) * 0.75) calc(var(--vx) * 1) 0 var(--vx-shadow);
}

/* ==== css/trace.css ==== */

/* ---------- Trace ---------- */

/* What an agent did, step by step: a standing groove with a lamp at each step (green done, the
   accent in progress, red failed, dark not begun). Each step is a line of words; one with more
   to show opens, and is the kit's collapsible.
   Markup: <ol class="vx-trace" aria-label="What the agent did" aria-live="off">
             <li data-vx-state="done">
               <span class="vx-lamp" data-vx-light="go" aria-hidden="true"></span>
               <details class="vx-collapsible">
                 <summary><span class="vx-trace-what">Read build-214.log</span><span class="vx-trace-state">Done, 2 s</span></summary>
                 <p>What it found.</p>            or <pre class="vx-trace-out">what it printed</pre>
               </details>
             </li>
             <li data-vx-state="running">
               <span class="vx-lamp" data-vx-light="accent" aria-hidden="true"></span>
               <p class="vx-trace-line"><span class="vx-trace-what">Building the image</span><span class="vx-trace-state">In progress</span></p>
             </li>
           </ol>
   data-vx-state: done, running, failed, waiting. The state is always said in words
   (.vx-trace-state); the lamp repeats it. */

.vx-trace { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr); box-sizing: border-box; min-inline-size: 0; max-inline-size: 100%; margin: 0; padding: 0; list-style: none; font-family: var(--vx-font); font-size: 1rem; color: var(--vx-ink); }
/* a step: the lamp's column (a lamp is two voxels, its collar four), then the words */
.vx-trace > li { position: relative; display: grid; grid-template-columns: calc(var(--vx) * 4) minmax(0, 1fr); column-gap: calc(var(--vx) * 3); align-items: start; min-inline-size: 0; }
/* the lamp stands level with the middle of the step's first line (a row is eleven voxels) */
.vx-trace > li > .vx-lamp { grid-column: 1; margin-block-start: calc(var(--vx) * 4.5); margin-inline-start: calc(var(--vx) * 1); }
.vx-trace > li > :not(.vx-lamp) { grid-column: 2; min-inline-size: 0; }

/* a step that does not open: one row of words, as tall as one that does */
.vx-trace-line { display: flex; flex-wrap: wrap; align-items: center; column-gap: calc(var(--vx) * 3); box-sizing: border-box; min-block-size: calc(var(--vx) * 11); margin: 0; padding-block: calc(var(--vx) * 2.5); line-height: calc(var(--vx) * 6); overflow-wrap: anywhere; }
/* one that opens is the kit's collapsible; a step's words are lighter than a heading's */
.vx-trace .vx-collapsible > summary { flex-wrap: wrap; row-gap: 0; font-weight: 400; }
.vx-trace-what { min-inline-size: 0; font-weight: 500; }
.vx-trace-state { font-size: 0.875rem; font-weight: 400; color: var(--vx-ink-quiet); font-variant-numeric: tabular-nums; }
/* failed: said in words, and the words are in the colour for what went wrong */
.vx-trace > li[data-vx-state="failed"] .vx-trace-state { color: var(--vx-danger-text); font-weight: 600; }
/* not begun: quieter words, and a dark lamp (the part draws it; the kit's lamp has no dark) */
.vx-trace > li:not([data-vx-state="done"], [data-vx-state="running"], [data-vx-state="failed"]) .vx-trace-what { color: var(--vx-ink-quiet); }
.vx-trace > li:not([data-vx-state="done"], [data-vx-state="running"], [data-vx-state="failed"]) > .vx-lamp > .vx-canvas { visibility: hidden; }

/* what a step shows when it is open: words, or what was printed */
.vx-trace .vx-collapsible > :not(summary) { font-size: 0.9375rem; color: var(--vx-ink-quiet); overflow-wrap: anywhere; }
.vx-trace .vx-trace-out { margin: 0; font: 400 0.8125rem/calc(var(--vx) * 5) var(--vx-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.vx-trace-status { margin: 0; }

/* plain: the rail is painted from each lamp to the next, and a dark lamp is painted steel */
.vx-trace:not([data-vx-live]) > li:not(:last-child)::before { content: ""; position: absolute; inset-block: calc(var(--vx) * 6.5) calc(var(--vx) * -4.5); inset-inline-start: calc(var(--vx) * 1); inline-size: calc(var(--vx) * 2); background: color-mix(in oklab, var(--lit-warm, var(--vx-steel)) 55%, transparent); }
.vx-trace > li:not([data-vx-state="done"], [data-vx-state="running"], [data-vx-state="failed"]) > .vx-lamp:not([data-vx-live]) { background: var(--vx-steel); }

/* ==== css/validation.css ==== */

/* ---------- Field with error and validation ---------- */

/* Tool: the well. Invalid (aria-invalid="true" on the control): a red tube lies along the far lower
   inside edge of the well, its light kept in the hole, and the
   message below it is words beside a red lamp. Valid needs nothing.
   Markup: <div class="vx-field">
             <label class="vx-field-label" for="mail">Email</label>
             <span class="vx-well"><input id="mail" type="email" required></span>
             <p class="vx-field-hint" id="mail-hint">…</p>                          (optional)
             <p class="vx-field-error" id="mail-error"><span class="vx-lamp" data-vx-light="stop"></span><span class="vx-field-error-text">…</span></p>
           </div>
   The message keeps its line while there is nothing to say, so nothing below moves when it
   speaks. Where the field has a hint, the hint holds that line and the message takes its place. */

/* (.vx-field > …: a surface resets the margins of the paragraphs on it, and this must hold there) */
.vx-field > .vx-field-error {
  position: relative; isolation: isolate;
  display: flex; align-items: flex-start; gap: calc(var(--vx) * 2);
  margin: calc(var(--vx) * 1) 0 0; min-block-size: calc(var(--vx) * 5);
  /* the words are the page's own ink: the lamp and the rim carry the red */
  color: var(--vx-ink); font: 500 0.875rem/calc(var(--vx) * 5) var(--vx-font);
  overflow-wrap: anywhere;
  visibility: hidden;
}
.vx-field-error-text { min-inline-size: 0; }
/* the lamp stands level with the middle of the first line */
.vx-field-error > .vx-lamp { margin-block-start: calc(var(--vx) * 1.5); }

/* a hint and a message share one line, of one height */
.vx-field:has(> .vx-field-error) > .vx-field-hint { margin: calc(var(--vx) * 1) 0 0; min-block-size: calc(var(--vx) * 5); line-height: calc(var(--vx) * 5); overflow-wrap: anywhere; }
.vx-field:has(> .vx-field-hint) > .vx-field-error { display: none; }

.vx-field:has([aria-invalid="true"]) > .vx-field-error { display: flex; visibility: visible; }
.vx-field:has([aria-invalid="true"]) > .vx-field-hint { display: none; }
