/**
 * Design tokens — "Rehearsal & Stage"
 *
 * The single source of truth for the redesign's palette and type. Tokens are
 * consumed three ways:
 *   1. Directly in CSS as `var(--pj-*)`.
 *   2. Through the Tailwind theme (see web/config/tailwind.config.js), which
 *      aliases utilities like `bg-paper`, `text-ink`, `font-display` to these.
 *   3. By the legacy button classes in practice-journal.css, re-pointed here so
 *      every existing screen improves before it is rewritten.
 *
 * Light is Rehearsal (engraving paper + marking-pencil ultramarine). Dark is
 * Stage (champagne on black). Themes flip once, at the root: prefers-color-scheme
 * sets the default, and a `data-theme` attribute lets the app force one.
 */

:root {
  /* Surfaces */
  --pj-paper: #fbfaf7; /* app background — engraving paper, not cream */
  --pj-card: #ffffff; /* raised surfaces: cards, nav, modals */
  --pj-code-bg: #efeee8; /* inline mono / code chips */
  --pj-line: #e7e5df; /* hairlines and borders */

  /* Ink */
  --pj-ink: #191b20; /* primary text */
  --pj-muted: #5c616d; /* secondary text (graphite) — >= 4.5:1 on paper */

  /* Working accent — the conductor's ultramarine marking pencil */
  --pj-accent: #2743c8;
  --pj-accent-ink: #ffffff; /* text on a filled accent surface */

  /* Earned tones — reserved for stars, streaks, practice heat */
  --pj-brass: #8a671b;
  --pj-star: #c9a03c;

  /* The director's red pencil — flags and destruction, nothing else */
  --pj-red: #b23a31;

  /* Confirmation green — the Folder's "safely stored offline" */
  --pj-good: #2b6e4f;

  /* Practice heat — an ultramarine alpha ramp; used as rgb(var(--pj-heat)/a) */
  --pj-heat: 39 67 200;

  /*
   * Part identity — stable hues for the slice board's parts, by position
   * (cycling past six). Identity only: selection state stays the accent
   * (the marking pencil), so "what I'm choosing" never blends with "what's
   * already claimed".
   */
  --pj-part-1: #8a5a10;
  --pj-part-2: #0f6f6a;
  --pj-part-3: #8a2f7d;
  --pj-part-4: #4d7c2a;
  --pj-part-5: #08718f;
  --pj-part-6: #715aa8;

  /* Type roles: display (score title page), UI (operable), data (counted) */
  --pj-font-display: 'Fraunces', Didot, 'Bodoni MT', 'Playfair Display',
    Georgia, 'Times New Roman', serif;
  --pj-font-ui: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system,
    'Helvetica Neue', Arial, sans-serif;
  --pj-font-mono: 'JetBrains Mono', 'Cascadia Mono', Consolas, 'SF Mono',
    'Roboto Mono', 'Courier New', monospace;

  /* Motion — state changes only; honored against prefers-reduced-motion */
  --pj-transition: 175ms ease-out;

  /* Radii */
  --pj-radius: 10px;
  --pj-radius-sm: 8px;
}

/* Stage — the dark theme. prefers-color-scheme provides the default. */
@media (prefers-color-scheme: dark) {
  :root {
    --pj-paper: #141416;
    --pj-card: #17171b;
    --pj-code-bg: #222227;
    --pj-line: #2b2b31;

    --pj-ink: #eceae4;
    --pj-muted: #a19fa8;

    --pj-accent: #97a9ff;
    --pj-accent-ink: #141416;

    --pj-brass: #d8b159;
    --pj-star: #e4b54a;

    --pj-red: #f08a7e;
    --pj-good: #6fbf97;

    --pj-heat: 151 169 255;

    --pj-part-1: #d8b159;
    --pj-part-2: #58c7bd;
    --pj-part-3: #dd9ad2;
    --pj-part-4: #9cc86f;
    --pj-part-5: #6cc8e8;
    --pj-part-6: #b3a2e8;
  }
}

/* Explicit overrides win over the media default in both directions. */
:root[data-theme='light'] {
  --pj-paper: #fbfaf7;
  --pj-card: #ffffff;
  --pj-code-bg: #efeee8;
  --pj-line: #e7e5df;
  --pj-ink: #191b20;
  --pj-muted: #5c616d;
  --pj-accent: #2743c8;
  --pj-accent-ink: #ffffff;
  --pj-brass: #8a671b;
  --pj-star: #c9a03c;
  --pj-red: #b23a31;
  --pj-good: #2b6e4f;
  --pj-heat: 39 67 200;
  --pj-part-1: #8a5a10;
  --pj-part-2: #0f6f6a;
  --pj-part-3: #8a2f7d;
  --pj-part-4: #4d7c2a;
  --pj-part-5: #08718f;
  --pj-part-6: #715aa8;
}

:root[data-theme='dark'] {
  --pj-paper: #141416;
  --pj-card: #17171b;
  --pj-code-bg: #222227;
  --pj-line: #2b2b31;
  --pj-ink: #eceae4;
  --pj-muted: #a19fa8;
  --pj-accent: #97a9ff;
  --pj-accent-ink: #141416;
  --pj-brass: #d8b159;
  --pj-star: #e4b54a;
  --pj-red: #f08a7e;
  --pj-good: #6fbf97;
  --pj-heat: 151 169 255;
  --pj-part-1: #d8b159;
  --pj-part-2: #58c7bd;
  --pj-part-3: #dd9ad2;
  --pj-part-4: #9cc86f;
  --pj-part-5: #6cc8e8;
  --pj-part-6: #b3a2e8;
}

/**
 * Stage mode — the performance surface. Not a preference: it ships dark,
 * champagne-on-black, regardless of the ambient theme. Scope any subtree with
 * `data-stage` (e.g. the fullscreen set-list runner).
 */
[data-stage] {
  --pj-paper: #101013;
  --pj-card: #17171b;
  --pj-code-bg: #1c1c20;
  --pj-line: #26262c;
  --pj-ink: #f2efe7;
  --pj-muted: #a5a2aa;
  --pj-accent: #e9dcae; /* stand-light champagne — warm, not orange */
  --pj-accent-ink: #2a2410;
  --pj-brass: #e4b54a;
  --pj-star: #e4b54a;
  --pj-red: #ff8a7a;
  --pj-good: #7fca9f;
  --pj-heat: 233 220 174;
  background: var(--pj-paper);
  color: var(--pj-ink);
}
/**
 * START --- SETUP TAILWINDCSS EDIT
 *
 * `yarn rw setup ui tailwindcss` placed these directives here
 * to inject Tailwind's styles into your CSS.
 * For more information, see: https://tailwindcss.com/docs/installation
 */
*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}
::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}
/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com
 */
/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/
*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: var(--pj-line); /* 2 */
}
::before,
::after {
  --tw-content: '';
}
/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/
html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -moz-tab-size: 4; /* 3 */
  -o-tab-size: 4;
     tab-size: 4; /* 3 */
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}
/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/
body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}
/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/
hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}
/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/
abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}
/*
Remove the default font size and weight for headings.
*/
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}
/*
Reset links to optimize for opt-in styling instead of opt-out.
*/
a {
  color: inherit;
  text-decoration: inherit;
}
/*
Add the correct font weight in Edge and Safari.
*/
b,
strong {
  font-weight: bolder;
}
/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/
code,
kbd,
samp,
pre {
  font-family: var(--pj-font-mono); /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}
/*
Add the correct font size in all browsers.
*/
small {
  font-size: 80%;
}
/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/
table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}
/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/
button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}
/*
Remove the inheritance of text transform in Edge and Firefox.
*/
button,
select {
  text-transform: none;
}
/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/
button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}
/*
Use the modern Firefox focus style for all focusable elements.
*/
:-moz-focusring {
  outline: auto;
}
/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/
:-moz-ui-invalid {
  box-shadow: none;
}
/*
Add the correct vertical alignment in Chrome and Firefox.
*/
progress {
  vertical-align: baseline;
}
/*
Correct the cursor style of increment and decrement buttons in Safari.
*/
::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}
/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/
[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}
/*
Remove the inner padding in Chrome and Safari on macOS.
*/
::-webkit-search-decoration {
  -webkit-appearance: none;
}
/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/
::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}
/*
Add the correct display in Chrome and Safari.
*/
summary {
  display: list-item;
}
/*
Removes the default spacing and border for appropriate elements.
*/
blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}
fieldset {
  margin: 0;
  padding: 0;
}
legend {
  padding: 0;
}
ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
/*
Reset default styling for dialogs.
*/
dialog {
  padding: 0;
}
/*
Prevent resizing textareas horizontally by default.
*/
textarea {
  resize: vertical;
}
/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/
input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}
input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}
/*
Set the default cursor for buttons.
*/
button,
[role="button"] {
  cursor: pointer;
}
/*
Make sure disabled buttons don't get the pointer cursor.
*/
:disabled {
  cursor: default;
}
/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/
img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}
/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/
img,
video {
  max-width: 100%;
  height: auto;
}
/* Make elements with the HTML hidden attribute stay hidden by default */
[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}
.container {
  width: 100%;
}
@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}
@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}
@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}
@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}
@media (min-width: 1536px) {
  .container {
    max-width: 1536px;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.visible {
  visibility: visible;
}
.invisible {
  visibility: hidden;
}
.static {
  position: static;
}
.fixed {
  position: fixed;
}
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.sticky {
  position: sticky;
}
.inset-0 {
  inset: 0px;
}
.inset-y-0 {
  top: 0px;
  bottom: 0px;
}
.inset-y-1\.5 {
  top: 0.375rem;
  bottom: 0.375rem;
}
.inset-y-2 {
  top: 0.5rem;
  bottom: 0.5rem;
}
.bottom-1 {
  bottom: 0.25rem;
}
.bottom-2 {
  bottom: 0.5rem;
}
.left-0 {
  left: 0px;
}
.left-1\.5 {
  left: 0.375rem;
}
.left-2 {
  left: 0.5rem;
}
.right-0 {
  right: 0px;
}
.right-1\.5 {
  right: 0.375rem;
}
.top-1\.5 {
  top: 0.375rem;
}
.z-10 {
  z-index: 10;
}
.\!m-0 {
  margin: 0px !important;
}
.m-0 {
  margin: 0px;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.mb-0 {
  margin-bottom: 0px;
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-1\.5 {
  margin-bottom: 0.375rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-2\.5 {
  margin-bottom: 0.625rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-5 {
  margin-bottom: 1.25rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.ml-1 {
  margin-left: 0.25rem;
}
.ml-2 {
  margin-left: 0.5rem;
}
.ml-auto {
  margin-left: auto;
}
.mr-1\.5 {
  margin-right: 0.375rem;
}
.mt-0\.5 {
  margin-top: 0.125rem;
}
.mt-1 {
  margin-top: 0.25rem;
}
.mt-1\.5 {
  margin-top: 0.375rem;
}
.mt-10 {
  margin-top: 2.5rem;
}
.mt-11 {
  margin-top: 2.75rem;
}
.mt-12 {
  margin-top: 3rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-2\.5 {
  margin-top: 0.625rem;
}
.mt-3 {
  margin-top: 0.75rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-5 {
  margin-top: 1.25rem;
}
.mt-6 {
  margin-top: 1.5rem;
}
.mt-7 {
  margin-top: 1.75rem;
}
.mt-8 {
  margin-top: 2rem;
}
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.inline {
  display: inline;
}
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.table {
  display: table;
}
.grid {
  display: grid;
}
.hidden {
  display: none;
}
.h-1\.5 {
  height: 0.375rem;
}
.h-2 {
  height: 0.5rem;
}
.h-2\.5 {
  height: 0.625rem;
}
.h-3 {
  height: 0.75rem;
}
.h-8 {
  height: 2rem;
}
.h-9 {
  height: 2.25rem;
}
.h-\[18px\] {
  height: 18px;
}
.h-\[300px\] {
  height: 300px;
}
.h-\[52vh\] {
  height: 52vh;
}
.h-\[54vh\] {
  height: 54vh;
}
.h-\[7px\] {
  height: 7px;
}
.h-auto {
  height: auto;
}
.h-full {
  height: 100%;
}
.h-px {
  height: 1px;
}
.min-h-\[180px\] {
  min-height: 180px;
}
.min-h-\[280px\] {
  min-height: 280px;
}
.min-h-\[70vh\] {
  min-height: 70vh;
}
.min-h-screen {
  min-height: 100vh;
}
.min-h-touch {
  min-height: 44px;
}
.w-1\.5 {
  width: 0.375rem;
}
.w-2\.5 {
  width: 0.625rem;
}
.w-36 {
  width: 9rem;
}
.w-56 {
  width: 14rem;
}
.w-8 {
  width: 2rem;
}
.w-\[18px\] {
  width: 18px;
}
.w-\[2px\] {
  width: 2px;
}
.w-\[5px\] {
  width: 5px;
}
.w-\[64px\] {
  width: 64px;
}
.w-\[72px\] {
  width: 72px;
}
.w-\[7px\] {
  width: 7px;
}
.w-\[9px\] {
  width: 9px;
}
.w-full {
  width: 100%;
}
.min-w-0 {
  min-width: 0px;
}
.min-w-\[140px\] {
  min-width: 140px;
}
.min-w-\[150px\] {
  min-width: 150px;
}
.min-w-\[220px\] {
  min-width: 220px;
}
.max-w-3xl {
  max-width: 48rem;
}
.max-w-4xl {
  max-width: 56rem;
}
.max-w-5xl {
  max-width: 64rem;
}
.max-w-\[220px\] {
  max-width: 220px;
}
.max-w-\[240px\] {
  max-width: 240px;
}
.max-w-\[320px\] {
  max-width: 320px;
}
.max-w-\[42ch\] {
  max-width: 42ch;
}
.max-w-\[70\%\] {
  max-width: 70%;
}
.max-w-full {
  max-width: 100%;
}
.max-w-lg {
  max-width: 32rem;
}
.max-w-md {
  max-width: 28rem;
}
.max-w-sm {
  max-width: 24rem;
}
.max-w-xl {
  max-width: 36rem;
}
.flex-1 {
  flex: 1 1 0%;
}
.flex-shrink-0 {
  flex-shrink: 0;
}
.shrink {
  flex-shrink: 1;
}
.shrink-0 {
  flex-shrink: 0;
}
.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.animate-spin {
  animation: spin 1s linear infinite;
}
.cursor-default {
  cursor: default;
}
.cursor-ew-resize {
  cursor: ew-resize;
}
.cursor-pointer {
  cursor: pointer;
}
.resize {
  resize: both;
}
.list-none {
  list-style-type: none;
}
.flex-col {
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.content-start {
  align-content: flex-start;
}
.items-start {
  align-items: flex-start;
}
.items-end {
  align-items: flex-end;
}
.items-center {
  align-items: center;
}
.items-baseline {
  align-items: baseline;
}
.justify-end {
  justify-content: flex-end;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-1 {
  gap: 0.25rem;
}
.gap-1\.5 {
  gap: 0.375rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-2\.5 {
  gap: 0.625rem;
}
.gap-3 {
  gap: 0.75rem;
}
.gap-3\.5 {
  gap: 0.875rem;
}
.gap-4 {
  gap: 1rem;
}
.gap-5 {
  gap: 1.25rem;
}
.gap-6 {
  gap: 1.5rem;
}
.gap-\[3px\] {
  gap: 3px;
}
.gap-x-2 {
  -moz-column-gap: 0.5rem;
       column-gap: 0.5rem;
}
.gap-x-3\.5 {
  -moz-column-gap: 0.875rem;
       column-gap: 0.875rem;
}
.gap-y-1 {
  row-gap: 0.25rem;
}
.gap-y-1\.5 {
  row-gap: 0.375rem;
}
.space-y-1 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
}
.space-y-3 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
}
.space-y-4 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}
.space-y-6 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1.5rem * var(--tw-space-y-reverse));
}
.self-start {
  align-self: flex-start;
}
.self-center {
  align-self: center;
}
.overflow-hidden {
  overflow: hidden;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.whitespace-nowrap {
  white-space: nowrap;
}
.rounded {
  border-radius: 0.25rem;
}
.rounded-\[10px\] {
  border-radius: 10px;
}
.rounded-\[3px\] {
  border-radius: 3px;
}
.rounded-\[4px\] {
  border-radius: 4px;
}
.rounded-\[6px\] {
  border-radius: 6px;
}
.rounded-\[8px\] {
  border-radius: 8px;
}
.rounded-full {
  border-radius: 9999px;
}
.rounded-lg {
  border-radius: 0.5rem;
}
.rounded-l {
  border-top-left-radius: 0.25rem;
  border-bottom-left-radius: 0.25rem;
}
.rounded-r {
  border-top-right-radius: 0.25rem;
  border-bottom-right-radius: 0.25rem;
}
.rounded-t-\[2px\] {
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
}
.border {
  border-width: 1px;
}
.border-2 {
  border-width: 2px;
}
.border-\[1\.5px\] {
  border-width: 1.5px;
}
.border-b {
  border-bottom-width: 1px;
}
.border-t {
  border-top-width: 1px;
}
.border-dashed {
  border-style: dashed;
}
.\!border-line {
  border-color: var(--pj-line) !important;
}
.border-\[color-mix\(in_srgb\2c var\(--pj-accent\)_40\%\2c var\(--pj-line\)\)\] {
  border-color: color-mix(in srgb,var(--pj-accent) 40%,var(--pj-line));
}
.border-\[color-mix\(in_srgb\2c var\(--pj-accent\)_55\%\2c transparent\)\] {
  border-color: color-mix(in srgb,var(--pj-accent) 55%,transparent);
}
.border-\[color-mix\(in_srgb\2c var\(--pj-brass\)_55\%\2c transparent\)\] {
  border-color: color-mix(in srgb,var(--pj-brass) 55%,transparent);
}
.border-\[color-mix\(in_srgb\2c var\(--pj-red\)_45\%\2c transparent\)\] {
  border-color: color-mix(in srgb,var(--pj-red) 45%,transparent);
}
.border-\[color-mix\(in_srgb\2c var\(--pj-red\)_55\%\2c transparent\)\] {
  border-color: color-mix(in srgb,var(--pj-red) 55%,transparent);
}
.border-accent {
  border-color: var(--pj-accent);
}
.border-danger {
  border-color: var(--pj-red);
}
.border-gray-200 {
  --tw-border-opacity: 1;
  border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.border-line {
  border-color: var(--pj-line);
}
.border-transparent {
  border-color: transparent;
}
.border-t-accent {
  border-top-color: var(--pj-accent);
}
.bg-\[color-mix\(in_srgb\2c var\(--pj-accent\)_10\%\2c transparent\)\] {
  background-color: color-mix(in srgb,var(--pj-accent) 10%,transparent);
}
.bg-\[color-mix\(in_srgb\2c var\(--pj-accent\)_8\%\2c transparent\)\] {
  background-color: color-mix(in srgb,var(--pj-accent) 8%,transparent);
}
.bg-\[color-mix\(in_srgb\2c var\(--pj-red\)_4\%\2c transparent\)\] {
  background-color: color-mix(in srgb,var(--pj-red) 4%,transparent);
}
.bg-\[color-mix\(in_srgb\2c var\(--pj-red\)_6\%\2c transparent\)\] {
  background-color: color-mix(in srgb,var(--pj-red) 6%,transparent);
}
.bg-accent {
  background-color: var(--pj-accent);
}
.bg-card {
  background-color: var(--pj-card);
}
.bg-line {
  background-color: var(--pj-line);
}
.bg-muted {
  background-color: var(--pj-muted);
}
.bg-paper {
  background-color: var(--pj-paper);
}
.object-contain {
  -o-object-fit: contain;
     object-fit: contain;
}
.p-0 {
  padding: 0px;
}
.p-2 {
  padding: 0.5rem;
}
.p-2\.5 {
  padding: 0.625rem;
}
.p-3 {
  padding: 0.75rem;
}
.p-4 {
  padding: 1rem;
}
.p-7 {
  padding: 1.75rem;
}
.\!px-6 {
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}
.\!py-1 {
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
}
.\!py-5 {
  padding-top: 1.25rem !important;
  padding-bottom: 1.25rem !important;
}
.px-0\.5 {
  padding-left: 0.125rem;
  padding-right: 0.125rem;
}
.px-1 {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}
.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.px-2\.5 {
  padding-left: 0.625rem;
  padding-right: 0.625rem;
}
.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.px-3\.5 {
  padding-left: 0.875rem;
  padding-right: 0.875rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.py-0\.5 {
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}
.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}
.py-1\.5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}
.py-10 {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-2\.5 {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}
.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.py-3\.5 {
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}
.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.py-7 {
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}
.py-9 {
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
}
.pl-3\.5 {
  padding-left: 0.875rem;
}
.pl-7 {
  padding-left: 1.75rem;
}
.pt-2 {
  padding-top: 0.5rem;
}
.pt-3 {
  padding-top: 0.75rem;
}
.pt-4 {
  padding-top: 1rem;
}
.text-left {
  text-align: left;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.align-middle {
  vertical-align: middle;
}
.font-display {
  font-family: var(--pj-font-display);
}
.font-mono {
  font-family: var(--pj-font-mono);
}
.\!text-\[1\.1rem\] {
  font-size: 1.1rem !important;
}
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}
.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}
.text-\[0\.62rem\] {
  font-size: 0.62rem;
}
.text-\[0\.65rem\] {
  font-size: 0.65rem;
}
.text-\[0\.68rem\] {
  font-size: 0.68rem;
}
.text-\[0\.6rem\] {
  font-size: 0.6rem;
}
.text-\[0\.72rem\] {
  font-size: 0.72rem;
}
.text-\[0\.75rem\] {
  font-size: 0.75rem;
}
.text-\[0\.78rem\] {
  font-size: 0.78rem;
}
.text-\[0\.7rem\] {
  font-size: 0.7rem;
}
.text-\[0\.82rem\] {
  font-size: 0.82rem;
}
.text-\[0\.85em\] {
  font-size: 0.85em;
}
.text-\[0\.85rem\] {
  font-size: 0.85rem;
}
.text-\[0\.88rem\] {
  font-size: 0.88rem;
}
.text-\[0\.8rem\] {
  font-size: 0.8rem;
}
.text-\[0\.92rem\] {
  font-size: 0.92rem;
}
.text-\[0\.95rem\] {
  font-size: 0.95rem;
}
.text-\[0\.9rem\] {
  font-size: 0.9rem;
}
.text-\[1\.05rem\] {
  font-size: 1.05rem;
}
.text-\[1\.35rem\] {
  font-size: 1.35rem;
}
.text-\[1\.3rem\] {
  font-size: 1.3rem;
}
.text-\[1\.4rem\] {
  font-size: 1.4rem;
}
.text-\[1\.9rem\] {
  font-size: 1.9rem;
}
.text-\[11px\] {
  font-size: 11px;
}
.text-\[1rem\] {
  font-size: 1rem;
}
.text-\[2rem\] {
  font-size: 2rem;
}
.text-\[3\.4rem\] {
  font-size: 3.4rem;
}
.text-\[clamp\(2\.4rem\2c 7vw\2c 3\.6rem\)\] {
  font-size: clamp(2.4rem,7vw,3.6rem);
}
.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}
.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.font-bold {
  font-weight: 700;
}
.font-medium {
  font-weight: 500;
}
.font-normal {
  font-weight: 400;
}
.font-semibold {
  font-weight: 600;
}
.uppercase {
  text-transform: uppercase;
}
.capitalize {
  text-transform: capitalize;
}
.normal-case {
  text-transform: none;
}
.italic {
  font-style: italic;
}
.ordinal {
  --tw-ordinal: ordinal;
  font-variant-numeric: var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction);
}
.leading-\[1\.08\] {
  line-height: 1.08;
}
.leading-\[1\.1\] {
  line-height: 1.1;
}
.leading-\[1\.6rem\] {
  line-height: 1.6rem;
}
.leading-none {
  line-height: 1;
}
.leading-relaxed {
  line-height: 1.625;
}
.leading-tight {
  line-height: 1.25;
}
.tracking-\[-0\.01em\] {
  letter-spacing: -0.01em;
}
.tracking-\[0\.12em\] {
  letter-spacing: 0.12em;
}
.tracking-\[0\.13em\] {
  letter-spacing: 0.13em;
}
.tracking-\[0\.14em\] {
  letter-spacing: 0.14em;
}
.tracking-\[0\.16em\] {
  letter-spacing: 0.16em;
}
.tracking-\[2px\] {
  letter-spacing: 2px;
}
.tracking-normal {
  letter-spacing: 0em;
}
.tracking-wide {
  letter-spacing: 0.025em;
}
.tracking-widest {
  letter-spacing: 0.1em;
}
.\!text-ink {
  color: var(--pj-ink) !important;
}
.text-accent {
  color: var(--pj-accent);
}
.text-accent-ink {
  color: var(--pj-accent-ink);
}
.text-brass {
  color: var(--pj-brass);
}
.text-danger {
  color: var(--pj-red);
}
.text-good {
  color: var(--pj-good);
}
.text-gray-500 {
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.text-gray-600 {
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}
.text-gray-700 {
  --tw-text-opacity: 1;
  color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}
.text-ink {
  color: var(--pj-ink);
}
.text-muted {
  color: var(--pj-muted);
}
.text-star {
  color: var(--pj-star);
}
.underline {
  text-decoration-line: underline;
}
.underline-offset-2 {
  text-underline-offset: 2px;
}
.accent-\[var\(--pj-accent\)\] {
  accent-color: var(--pj-accent);
}
.opacity-100 {
  opacity: 1;
}
.opacity-25 {
  opacity: 0.25;
}
.opacity-55 {
  opacity: 0.55;
}
.opacity-60 {
  opacity: 0.6;
}
.opacity-70 {
  opacity: 0.7;
}
.opacity-80 {
  opacity: 0.8;
}
.shadow-\[0_0_0_2px_var\(--hover-color\)\] {
  --tw-shadow: 0 0 0 2px var(--hover-color);
  --tw-shadow-colored: 0 0 0 2px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-\[0_0_0_2px_var\(--row-color\)\] {
  --tw-shadow: 0 0 0 2px var(--row-color);
  --tw-shadow-colored: 0 0 0 2px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-\[0_8px_24px_-16px_rgb\(0_0_0\/0\.35\)\] {
  --tw-shadow: 0 8px 24px -16px rgb(0 0 0/0.35);
  --tw-shadow-colored: 0 8px 24px -16px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-\[inset_0_-2px_0_var\(--pj-accent\)\] {
  --tw-shadow: inset 0 -2px 0 var(--pj-accent);
  --tw-shadow-colored: inset 0 -2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-lg {
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-sm {
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.outline {
  outline-style: solid;
}
.ring-2 {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.ring-accent {
  --tw-ring-color: var(--pj-accent);
}
.blur {
  --tw-blur: blur(8px);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.transition-\[width\] {
  transition-property: width;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.duration-300 {
  transition-duration: 300ms;
}
.\[font-variant-numeric\:tabular-nums\] {
  font-variant-numeric: tabular-nums;
}
/**
 * END --- SETUP TAILWINDCSS EDIT
 */

body {
  font-family: var(--pj-font-ui);
  background-color: var(--pj-paper);
  color: var(--pj-ink);
}
ul {
  list-style-type: none;
  margin: 1rem 0;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 1rem 0 0;
}
h1 > a {
  text-decoration: none;
  color: black;
}
button,
input,
label,
textarea {
  display: block;
  outline: none;
}
label {
  margin-top: 1rem;
}
.error {
  color: red;
}
input.error,
textarea.error {
  border: 1px solid red;
}
.form-error {
  color: red;
  background-color: lavenderblush;
  padding: 1rem;
  display: inline-block;
}
.form-error ul {
  list-style-type: disc;
  margin: 1rem;
  padding: 1rem;
}
.form-error li {
  display: list-item;
}
.flex-between {
  display: flex;
  justify-content: space-between;
}
.flex-between button {
  display: inline;
}

/* Toast surface. Relocated from the removed scaffold.css so the app's
   <Toaster className="rw-toast"> keeps the UI font on a paper-card background. */
.rw-toast {
  background-color: var(--pj-card);
  font-family: var(--pj-font-ui);
}

/* Print view: set lists should read like a program, not an app. */
@media print {
  nav,
  header,
  button {
    display: none !important;
  }
}
.last\:border-b-0:last-child {
  border-bottom-width: 0px;
}
.hover\:border-accent:hover {
  border-color: var(--pj-accent);
}
.hover\:bg-\[color-mix\(in_srgb\2c var\(--pj-accent\)_6\%\2c transparent\)\]:hover {
  background-color: color-mix(in srgb,var(--pj-accent) 6%,transparent);
}
.hover\:bg-paper:hover {
  background-color: var(--pj-paper);
}
.hover\:text-accent:hover {
  color: var(--pj-accent);
}
.hover\:text-danger:hover {
  color: var(--pj-red);
}
.hover\:text-ink:hover {
  color: var(--pj-ink);
}
.hover\:underline:hover {
  text-decoration-line: underline;
}
.hover\:opacity-60:hover {
  opacity: 0.6;
}
.disabled\:opacity-30:disabled {
  opacity: 0.3;
}
.disabled\:opacity-40:disabled {
  opacity: 0.4;
}
@media (min-width: 640px) {
  .sm\:inline {
    display: inline;
  }
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sm\:flex-row {
    flex-direction: row;
  }
  .sm\:flex-wrap {
    flex-wrap: wrap;
  }
  .sm\:items-center {
    align-items: center;
  }
  .sm\:justify-between {
    justify-content: space-between;
  }
  .sm\:gap-3\.5 {
    gap: 0.875rem;
  }
}
@media (min-width: 768px) {
  .md\:grid-cols-\[1\.25fr_1fr\] {
    grid-template-columns: 1.25fr 1fr;
  }
  .md\:grid-cols-\[1\.2fr_1fr\] {
    grid-template-columns: 1.2fr 1fr;
  }
  .md\:grid-cols-\[1\.4fr_1fr\] {
    grid-template-columns: 1.4fr 1fr;
  }
  .md\:grid-cols-\[280px_minmax\(0\2c 1fr\)\] {
    grid-template-columns: 280px minmax(0,1fr);
  }
}
@media print {
  .print\:block {
    display: block;
  }
  .print\:hidden {
    display: none;
  }
  .print\:border-0 {
    border-width: 0px;
  }
  .print\:p-0 {
    padding: 0px;
  }
}
/**
 * Legacy class surface, re-pointed at the design tokens.
 *
 * The class NAMES here are unchanged so existing components keep working, but
 * their looks now come from the "Rehearsal & Stage" system (see tokens.css):
 * three button variants instead of six ad-hoc classes, sentence case, 44px
 * touch targets, token colors that flip with the theme.
 *
 * Step 0 of the redesign: improve every screen before any is rewritten.
 *
 * Aliasing is done with grouped selectors rather than `@apply`-ing custom
 * classes (Tailwind's @apply only reliably inlines utilities, not our own
 * component classes).
 */

/* ============================================================= Buttons === */

/* The one button base — every variant and every legacy alias shares it. */
.pj-btn,
.pj-button-base,
.pj-add-button,
.pj-save-button,
.add-button,
.save-button,
.pj-edit-button,
.pj-secondary-button,
.edit-button,
.pj-cancel-button,
.pj-delete-button,
.delete-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-family: var(--pj-font-ui);
  min-height: 44px;
  padding: 0.5rem 1.125rem;
  font-size: 0.9rem;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--pj-transition), color var(--pj-transition),
    border-color var(--pj-transition);
}

.pj-btn:disabled,
.pj-button-base:disabled,
.pj-add-button:disabled,
.pj-save-button:disabled,
.add-button:disabled,
.save-button:disabled,
.pj-edit-button:disabled,
.pj-secondary-button:disabled,
.edit-button:disabled,
.pj-cancel-button:disabled,
.pj-delete-button:disabled,
.delete-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pj-btn:focus-visible,
.pj-button-base:focus-visible,
.pj-add-button:focus-visible,
.pj-save-button:focus-visible,
.add-button:focus-visible,
.save-button:focus-visible,
.pj-edit-button:focus-visible,
.pj-secondary-button:focus-visible,
.edit-button:focus-visible,
.pj-cancel-button:focus-visible,
.pj-delete-button:focus-visible,
.delete-button:focus-visible {
  outline: 2px solid var(--pj-accent);
  outline-offset: 2px;
}

/* Primary (filled accent) — the single primary action on a screen.
   Was: green "add"/"save" and purple "save". */
.pj-btn--primary,
.pj-button-base,
.pj-add-button,
.pj-save-button,
.add-button,
.save-button {
  background: var(--pj-accent);
  color: var(--pj-accent-ink);
}
.pj-btn--primary:hover:not(:disabled),
.pj-button-base:hover:not(:disabled),
.pj-add-button:hover:not(:disabled),
.pj-save-button:hover:not(:disabled),
.add-button:hover:not(:disabled),
.save-button:hover:not(:disabled) {
  background: color-mix(in srgb, var(--pj-accent) 88%, black);
}
.save-button {
  margin-top: 1rem;
}

/* Outline — secondary. Was: blue "edit"/"secondary". */
.pj-btn--outline,
.pj-edit-button,
.pj-secondary-button,
.edit-button {
  background: transparent;
  color: var(--pj-ink);
  border-color: var(--pj-line);
}
.pj-btn--outline:hover:not(:disabled),
.pj-edit-button:hover:not(:disabled),
.pj-secondary-button:hover:not(:disabled),
.edit-button:hover:not(:disabled) {
  border-color: var(--pj-accent);
  color: var(--pj-accent);
}

/* Quiet — text-weight actions. Was: slate "cancel". */
.pj-btn--quiet,
.pj-cancel-button {
  background: transparent;
  color: var(--pj-accent);
}
.pj-btn--quiet:hover:not(:disabled),
.pj-cancel-button:hover:not(:disabled) {
  background: color-mix(in srgb, var(--pj-accent) 12%, transparent);
}

/* Danger — the red pencil. Destruction only. Was: red "delete". */
.pj-btn--danger,
.pj-delete-button,
.delete-button {
  background: transparent;
  color: var(--pj-red);
  border-color: color-mix(in srgb, var(--pj-red) 45%, transparent);
}
.pj-btn--danger:hover:not(:disabled),
.pj-delete-button:hover:not(:disabled),
.delete-button:hover:not(:disabled) {
  background: color-mix(in srgb, var(--pj-red) 12%, transparent);
}

/* Large modifier. */
.pj-btn--large,
.pj-button-large {
  min-height: 52px;
  padding: 0.875rem 1.625rem;
  font-size: 1rem;
  border-radius: var(--pj-radius);
}

/* ========================================================= Form inputs === */

.pj-input,
.pj-datetime-input,
.field {
  display: block;
  width: 100%;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  color: var(--pj-ink);
  background: var(--pj-card);
  border: 1px solid var(--pj-line);
  transition: border-color var(--pj-transition), box-shadow var(--pj-transition);
}
.pj-input:focus,
.pj-datetime-input:focus,
.field:focus {
  outline: none;
  border-color: var(--pj-accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--pj-accent) 30%, transparent);
}
.pj-datetime-input {
  color: var(--pj-muted);
}

.pj-slider {
  display: block;
  width: 100%;
  accent-color: var(--pj-accent);
}

.pj-checkbox {
  margin-right: 0.5rem;
  accent-color: var(--pj-accent);
}

/* Form labels and helper text */
.pj-label {
  display: block;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--pj-muted);
}

.pj-time-label {
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--pj-muted);
}

.pj-time-value {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--pj-muted);
}

.pj-time-input {
  width: 4rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

/* Error states */
.pj-error-text,
.field-error {
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--pj-red);
}

.pj-error-wrapper {
  border-radius: 0.5rem;
  padding: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--pj-red);
  background: color-mix(in srgb, var(--pj-red) 12%, transparent);
}

.error-placeholder {
  display: block;
  min-height: 2rem;
}

.form-title {
  font-family: var(--pj-font-display);
  font-weight: 600;
  font-size: 1.5em;
}

/* ============================================================== Cards === */

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-wrap: break-word;
  text-align: center;
}

.card-details {
  margin-top: 0.5rem;
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  overflow-wrap: break-word;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--pj-muted);
}

.card-detail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  text-align: left;
}

.card-detail-label {
  font-weight: 500;
  color: var(--pj-ink);
}

.card-detail-value {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding-left: 0.625rem;
  padding-right: 0.625rem;
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  color: var(--pj-ink);
  background: var(--pj-code-bg);
}

.card-interaction {
  margin-top: 1rem;
  display: flex;
  width: 100%;
  justify-content: center;
  gap: 0.5rem;
}

/* ============================================================== Forms === */

.form-container {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 42rem;
  padding: 1.25rem;
}

.form {
  padding-bottom: 1rem;
}

.form-cells > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(2rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(2rem * var(--tw-space-y-reverse));
}

.cell-header {
  margin: 0.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cell-title {
  white-space: nowrap;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
  font-family: var(--pj-font-display);
}

.instrument-row {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}

.position-field {
  width: 4rem;
  flex-shrink: 0;
}
body {
  margin: 0;
}

/* ============================================================== Header === */
/* The "Rehearsal & Stage" app bar: a serif wordmark, four quiet tabs with an
   ultramarine underline on the active one, and an account avatar. Mirrors the
   proposal's `.anav` specimen, on the shared design tokens. */

.pj-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--pj-card);
  border-bottom: 1px solid var(--pj-line);
}

.pj-header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
}

.pj-brand {
  font-family: var(--pj-font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  color: var(--pj-ink);
  text-decoration: none;
}
/* "Moonlight" carries the weight; "Band" recedes. */
.pj-brand-suffix {
  font-weight: 400;
  color: var(--pj-muted);
}
.pj-brand:hover {
  color: var(--pj-ink);
}
.pj-brand:focus-visible {
  outline: 2px solid var(--pj-accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* --- Tabs --- */
.pj-nav-tabs {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pj-nav-tabs li {
  margin: 0;
}

.pj-nav-tab {
  display: inline-block;
  font-family: var(--pj-font-ui);
  font-size: 0.9rem;
  color: var(--pj-muted);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color var(--pj-transition), border-color var(--pj-transition);
}
.pj-nav-tab:hover {
  color: var(--pj-ink);
}
.pj-nav-tab:focus-visible {
  outline: 2px solid var(--pj-accent);
  outline-offset: 2px;
  border-radius: 2px;
}
.pj-nav-tab--active {
  color: var(--pj-ink);
  font-weight: 600;
  border-bottom-color: var(--pj-accent);
}

/* --- Right cluster --- */
.pj-header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.pj-auth {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0;
}

/* --- Account avatar + menu --- */
.pj-account {
  position: relative;
}

.pj-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: var(--pj-accent);
  color: var(--pj-accent-ink);
  font-family: var(--pj-font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  display: grid;
  place-items: center;
  transition: filter var(--pj-transition);
}
.pj-avatar:hover {
  filter: brightness(0.94);
}
.pj-avatar:focus-visible {
  outline: 2px solid var(--pj-accent);
  outline-offset: 2px;
}

.pj-account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 210px;
  padding: 6px;
  background: var(--pj-card);
  border: 1px solid var(--pj-line);
  border-radius: var(--pj-radius);
  box-shadow: 0 1px 2px rgba(20, 20, 26, 0.07), 0 10px 30px rgba(20, 20, 26, 0.12);
  z-index: 50;
}

.pj-account-email {
  padding: 8px 10px;
  margin-bottom: 4px;
  font-size: 0.8rem;
  color: var(--pj-muted);
  border-bottom: 1px solid var(--pj-line);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pj-menu-item {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  padding: 9px 10px;
  font-family: var(--pj-font-ui);
  font-size: 0.9rem;
  color: var(--pj-ink);
  background: transparent;
  border: none;
  border-radius: var(--pj-radius-sm);
  cursor: pointer;
  text-decoration: none;
}
.pj-menu-item:hover {
  background: color-mix(in srgb, var(--pj-accent) 10%, transparent);
  color: var(--pj-ink);
}
.pj-menu-item:focus-visible {
  outline: 2px solid var(--pj-accent);
  outline-offset: -2px;
}

/* --- Hamburger (mobile only) --- */
.pj-hamburger {
  display: none;
  background: none;
  border: none;
  padding: 4px 8px;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--pj-ink);
  cursor: pointer;
}
.pj-hamburger:focus-visible {
  outline: 2px solid var(--pj-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.pj-mobile-nav {
  display: none;
}

/* ================================================================ Main === */
.pj-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 24px;
}

/* ============================================================= Mobile === */
@media (max-width: 768px) {
  .pj-nav-desktop {
    display: none;
  }
  .pj-hamburger {
    display: inline-flex;
    align-items: center;
  }
  .pj-mobile-nav {
    display: block;
    padding: 6px 24px 16px;
    border-top: 1px solid var(--pj-line);
    background: var(--pj-card);
  }
  .pj-mobile-nav .pj-nav-tabs {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .pj-mobile-nav .pj-nav-tab {
    display: block;
    padding: 11px 4px;
    border-bottom: none;
  }
  .pj-mobile-nav .pj-nav-tab--active {
    color: var(--pj-accent);
    border-bottom: none;
  }
  .pj-main {
    padding: 1.25rem 20px;
  }
}

/* Print: the set list should read like a program, not an app (see index.css). */
