/* Breakdown: tagged items by category, and the script's highlights while tags are shown. */
.breakdown__swatch { display: inline-block; width: 0.8em; height: 0.8em; margin-right: 0.45em; border-radius: 50%; background: var(--tag-color); vertical-align: -0.05em; }
.breakdown__new, .breakdown__item { display: grid; gap: 0.6rem; margin-top: 1rem; }
.breakdown__fields { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.breakdown__fields input[type=text] { flex: 1 1 12rem; width: auto; min-width: 0; }
.breakdown__fields select, .title-page .breakdown__fields select { flex: 0 1 auto; width: auto; max-width: 100%; }
.breakdown__fields input[type=text], .title-page .breakdown__fields input[type=text] { flex: 1 1 12rem; width: auto; min-width: 0; }
.breakdown__new { max-width: 44rem; }
.breakdown .report__table { table-layout: fixed; }
.breakdown .report__table th:first-child { width: 45%; overflow-wrap: anywhere; }
.breakdown .report__table .report__number { width: 4.5rem; }
.breakdown__index { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; margin: 1.5rem 0 0.5rem; font-size: 0.9rem; }
.breakdown__index a { color: inherit; text-decoration: none; white-space: nowrap; }
.breakdown__count, .breakdown__none, .breakdown__mention { color: var(--sheet-muted); font-size: 0.8rem; }
.breakdown h2.title-page__label { scroll-margin-top: calc(var(--toolbar-height, 3rem) + 1rem); }
.breakdown__link { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; text-decoration: underline; text-decoration-style: dotted; cursor: pointer; }
.breakdown th form { display: inline; }
.breakdown__scenes { display: grid; gap: 0.35rem; margin: 0.75rem 0 0; padding: 0; border: 0; min-width: 0; }
.breakdown__scene { align-items: baseline; font-family: var(--font-typed); overflow-wrap: anywhere; }
.breakdown__scene-number { flex: 0 0 2.5rem; text-align: right; color: var(--sheet-soft); font-variant-numeric: tabular-nums; }
.breakdown__untag { margin-top: 1.5rem; }

/* The tag button beside 💬+ and the form it opens. */
.tag-button { margin-top: 2.4rem; }
.tag-form { width: min(22rem, calc(100vw - 2rem)); padding: 1rem; border: 1px solid var(--sheet-line); border-radius: var(--radius-control); background: var(--sheet); color: var(--sheet-ink); box-shadow: var(--shadow-menu); }
.tag-form form { display: grid; gap: 0.6rem; }
.tag-form__existing { margin: 0; font-size: 0.85rem; color: var(--sheet-soft); }

/* Tagged words, in their category's color, while tags are shown. */
::highlight(tag-cast) { background-color: rgb(214 69 69 / 0.3); }
::highlight(tag-background) { background-color: rgb(63 157 74 / 0.3); }
::highlight(tag-stunts) { background-color: rgb(232 137 43 / 0.35); }
::highlight(tag-vehicles) { background-color: rgb(228 111 168 / 0.3); }
::highlight(tag-props) { background-color: rgb(142 91 214 / 0.3); }
::highlight(tag-camera) { background-color: rgb(91 112 131 / 0.3); }
::highlight(tag-special_effects) { background-color: rgb(59 120 216 / 0.3); }
::highlight(tag-wardrobe) { background-color: rgb(31 158 154 / 0.3); }
::highlight(tag-makeup) { background-color: rgb(194 71 127 / 0.3); }
::highlight(tag-animals) { background-color: rgb(224 123 147 / 0.3); }
::highlight(tag-animal_wrangler) { background-color: rgb(181 101 29 / 0.3); }
::highlight(tag-music) { background-color: rgb(154 107 60 / 0.3); }
::highlight(tag-sound) { background-color: rgb(122 82 48 / 0.3); }
::highlight(tag-art_department) { background-color: rgb(111 143 47 / 0.3); }
::highlight(tag-set_dressing) { background-color: rgb(160 138 46 / 0.3); }
::highlight(tag-greenery) { background-color: rgb(46 125 79 / 0.3); }
::highlight(tag-special_equipment) { background-color: rgb(77 91 181 / 0.3); }
::highlight(tag-security) { background-color: rgb(85 96 110 / 0.3); }
::highlight(tag-additional_labor) { background-color: rgb(125 107 93 / 0.3); }
::highlight(tag-visual_effects) { background-color: rgb(43 143 196 / 0.3); }
::highlight(tag-mechanical_effects) { background-color: rgb(74 127 168 / 0.3); }
::highlight(tag-miscellaneous) { background-color: rgb(138 138 138 / 0.3); }
.toolbar__tags[aria-pressed="true"] { box-shadow: inset 0 -2px 0 currentColor; }
.toolbar__tags[hidden] { display: none; }
