/* Turonet · Desglossament (breakdown.js): Rodatge → Desglossament and the character's fitxa. Light and dark here. */
.bd-muted {
  color: var(--muted);
}
.bd-depts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.bd-dept-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.bd-dept-chip span {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  box-sizing: border-box;
  border-radius: 999px;
  background: #edf0f2;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 650;
}
.bd-dept-chip:hover {
  border-color: #b9c9be;
}
.bd-dept-chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.bd-dept-chip.active span {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.bd-dept-chip:focus-visible,
.bd-view button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.bd-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}
.bd-filters select {
  width: auto;
  min-width: 180px;
  margin: 0;
  padding: 8px 34px 8px 12px;
  font-size: 14px;
}
.bd-view {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
}
.bd-view button {
  border: 0;
  background: none;
  padding: 8px 13px;
  font: inherit;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
}
.bd-view button + button {
  border-left: 1px solid var(--line);
}
.bd-view button.active {
  background: #edf3ee;
  color: var(--ink);
  font-weight: 650;
}
.bd-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  margin: 0 0 18px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfb;
}
.bd-summary p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.bd-summary b {
  color: var(--ink);
}
.bd-summary-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bd-summary-pills .pill {
  margin: 0;
}
.bd-group {
  margin: 0 0 22px;
}
.bd-group > h2 {
  margin: 0 0 10px;
  font-size: 17px;
}
.bd-group > h2 small {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.bd-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.bd-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 2.2fr) minmax(0, 1.6fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.bd-row:first-child {
  border-top: 0;
}
.bd-row:hover {
  background: #fafcfb;
}
.bd-photo {
  width: 56px;
  height: 56px;
  border-radius: 9px;
  object-fit: cover;
  background: #eef1f3;
}
.bd-photo-empty,
.cs-photo.bd-photo-empty {
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 20px;
  color: #8b98a3;
}
.bd-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.bd-name {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 650;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.bd-name:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.bd-name:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 3px;
}
.bd-main small,
.bd-who small,
.bd-state small {
  font-size: 12.5px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.bd-notes {
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bd-who {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.bd-who small {
  flex-basis: 100%;
}
.bd-who > .bd-muted {
  font-size: 13px;
}
.bd-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2f6;
  color: #3d4c59;
  font-size: 12px;
  font-weight: 600;
}
.bd-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.bd-state .pill {
  margin: 0;
}
.bd-actions {
  display: flex;
  gap: 6px;
}
.bd-empty .panel-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 720px;
}
.bd-empty h2 {
  margin: 0;
  font-size: 18px;
}
.bd-empty p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.bd-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
}
.bd-check input {
  width: auto;
  margin: 0;
}
.bd-scene {
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.bd-scene header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 14px;
  margin-bottom: 8px;
}
.bd-scene h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.bd-scene-n {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  padding: 2px 7px;
  box-sizing: border-box;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.bd-scene-people {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.bd-scene ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.bd-scene li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 7px 0;
  border-top: 1px solid #edf0f2;
}
.bd-scene li:first-child {
  border-top: 0;
}
.bd-scene li small {
  color: var(--muted);
  font-size: 12.5px;
}
.bd-scene li .pill {
  margin-left: auto;
}
.bd-scene p {
  margin: 0;
}
.bd-day h2 small {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.bd-day-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bd-day-counts .pill {
  margin: 0;
}
.bd-group-hint {
  margin: -4px 0 10px;
  font-size: 13.5px;
}
.bd-dept {
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 650;
  background: #edf0f2;
  color: #53616d;
}
.bd-dept-art {
  background: #f4ecdf;
  color: #7a5a24;
}
.bd-dept-vestuari {
  background: #ecebf8;
  color: #4c4a8c;
}
.bd-dept-maquillatge {
  background: #f8e9ef;
  color: #8c3f5b;
}
.bd-dept-vehicles {
  background: #e6f0f4;
  color: #2f5d70;
}
.bd-dept-efectes {
  background: #fbeadf;
  color: #8a4a1c;
}
.bd-dept-vfx {
  background: #e8eefb;
  color: #3b5592;
}
.bd-dept-figuracio {
  background: #eef3e4;
  color: #526b2a;
}
.bd-dept-animals {
  background: #f3ece4;
  color: #6d5235;
}

/* the form */
.bd-form-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}
.bd-form-three {
  grid-template-columns: 120px 210px minmax(0, 1fr);
}
.bd-form-cols input,
.bd-form-cols select {
  width: 100%;
}
.bd-fieldset {
  margin: 6px 0 14px;
  padding: 10px 14px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 0;
}
.bd-fieldset legend {
  padding: 0 6px;
  font-weight: 650;
  font-size: 14px;
}
.bd-people {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bd-person {
  position: relative;
  cursor: pointer;
}
.bd-person input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.bd-person span {
  display: inline-block;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
}
.bd-person input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.bd-person input:focus-visible + span {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.bd-scene-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.bd-scene-tools input {
  flex: 1 1 200px;
  margin: 0;
}
.bd-mark-status {
  align-self: center;
  font-size: 13px;
  color: var(--green);
}
.bd-scene-list {
  max-height: 240px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.bd-scene-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 12px;
  border-top: 1px solid #edf0f2;
  font-size: 14px;
  cursor: pointer;
}
.bd-scene-option:first-child {
  border-top: 0;
}
.bd-scene-option input {
  width: auto;
  margin: 3px 0 0;
  flex: none;
}
.bd-scene-option b {
  display: inline-block;
  min-width: 26px;
  font-variant-numeric: tabular-nums;
}
.bd-scene-option.is-missing span {
  color: var(--muted);
  font-style: italic;
}
.bd-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 10px;
}
.bd-photos label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
}
.bd-photos img {
  width: 110px;
  height: 82px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.bd-photos input {
  width: auto;
  margin: 0 4px 0 0;
}
.bd-delete {
  margin-top: 6px;
  color: #a23b3b;
}
.bd-scene-readonly {
  margin: 0 0 12px;
  padding-left: 20px;
}

/* the character's fitxa */
.cs-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.cs-head h3 {
  margin: 0;
  font-size: 22px;
}
.cs-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.cs-head .button {
  margin-left: auto;
}
.cs-avatar {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #e7f3eb;
  color: #3c6d41;
  font:
    700 22px/1 Georgia,
    serif;
}
.cs-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cs-description {
  margin: 0 0 16px;
}
.cs-section {
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.cs-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.cs-section h3 {
  margin: 0;
  font-size: 15px;
}
.cs-section h3 small {
  font-weight: 500;
  color: var(--muted);
}
.cs-section p {
  margin: 0;
}
.cs-scenes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 16px;
  max-height: 260px;
  overflow: auto;
}
.cs-scenes li {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: 13.5px;
  min-width: 0;
}
.cs-scenes li span:last-child {
  overflow-wrap: anywhere;
}
/* where it speaks and where it is without speaking, each scene a link to the guió literari (RM5) */
.cs-scene-parts {
  display: grid;
  gap: 12px;
}
.cs-scene-part h4 {
  margin: 0 0 6px;
  font-size: 12.5px;
  font-weight: 600;
}
.cs-scene-part h4 small {
  font-weight: 500;
  color: var(--muted);
}
.cs-silent .bd-scene-n {
  background: transparent;
  color: var(--ink);
  border: 1.5px dashed currentColor;
}
.cs-scenes li a.cs-scene-link {
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.cs-scenes li a.cs-scene-link:hover span:last-child,
.cs-scenes li a.cs-scene-link:focus-visible span:last-child {
  text-decoration: underline;
}
.cs-items {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cs-items li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid #edf0f2;
}
.cs-items li:first-child {
  border-top: 0;
}
.cs-items li > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.cs-items li small {
  font-size: 12.5px;
  color: var(--muted);
}
.cs-items .pill {
  margin: 0;
  flex: none;
}
.cs-photo {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 8px;
  object-fit: cover;
  background: #eef1f3;
}
.cs-card-line {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  min-height: 1em;
}
.character-heading .pill:empty {
  display: none;
}
.character-card h3[data-cs-sheet] {
  cursor: pointer;
}
/* «Exportar» a character (breakdown.js: exportCharacterNiu): the parts to choose; on the card, «Personatge del projecte»
   on its own line and «Fitxa», «Exportar» and «Editar» in a row under it */
.character-footer {
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
}
.character-footer > span {
  flex: 1 0 100%;
  margin-bottom: 2px;
}
.character-footer + [data-character-archive] {
  margin-top: 8px;
}
.cs-export-parts label {
  align-items: flex-start;
}
.cs-export-parts input {
  margin-top: 3px;
}
.cs-export-parts small {
  display: block;
  color: var(--muted, #697580);
  font-size: 13px;
  line-height: 1.45;
  margin-top: 2px;
}
.cs-export-parts input:disabled + span {
  opacity: 0.65;
}
.character-card h3[data-cs-sheet]:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* a selection of elements (informe de proves, Q5), «Marcat al guió» («Element» of the guió literari), the cost in euros */
.bd-row-select {
  grid-template-columns: 18px 56px minmax(0, 2.2fr) minmax(0, 1.6fr) minmax(0, 1fr) auto;
}
.bd-select,
.bd-select-all input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #398151;
  cursor: pointer;
}
.bd-row.is-chosen {
  background: #f1f8f3;
}
.bd-select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
}
.bd-bulk {
  position: sticky;
  top: calc(var(--bar-h, 0px) + 8px);
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 12px;
  padding: 10px 14px;
  border: 1px solid #c9e4d1;
  border-radius: 10px;
  background: #edf7ef;
  font-size: 14px;
}
.bd-bulk-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bd-bulk select {
  width: auto;
  margin: 0;
  padding: 7px 10px;
  font-size: 14px;
}
.bd-bulk .bd-delete {
  margin-top: 0;
}
.bd-marked {
  font-weight: 600;
  color: #3f6f52;
}
.bd-euros {
  position: relative;
  display: block;
}
.bd-euros input {
  padding-right: 30px;
  text-align: right;
}
.bd-euros span {
  position: absolute;
  right: 12px;
  top: 12px;
  color: var(--muted);
  pointer-events: none;
}

@media (max-width: 900px) {
  .bd-row {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    grid-template-areas: "photo main state" "photo who who" "photo actions actions";
    gap: 6px 12px;
  }
  .bd-row-select {
    grid-template-columns: 18px 48px minmax(0, 1fr) auto;
    grid-template-areas: "pick photo main state" "pick photo who who" "pick photo actions actions";
  }
  .bd-row .bd-photo {
    grid-area: photo;
    width: 48px;
    height: 48px;
  }
  .bd-select {
    grid-area: pick;
  }
  .bd-main {
    grid-area: main;
  }
  .bd-who {
    grid-area: who;
  }
  .bd-state {
    grid-area: state;
    align-items: flex-end;
  }
  .bd-actions {
    grid-area: actions;
  }
  .bd-bulk {
    position: static;
  }
  .bd-bulk-group {
    flex: 1 1 100%;
  }
  .bd-bulk-group select {
    flex: 1;
  }
}
@media (max-width: 560px) {
  .bd-form-cols,
  .bd-form-three {
    grid-template-columns: 1fr;
  }
  .bd-filters select {
    min-width: 0;
    flex: 1 1 150px;
  }
  .cs-scenes {
    grid-template-columns: 1fr;
  }
  .cs-head {
    flex-wrap: wrap;
  }
  .cs-head .button {
    margin-left: 0;
  }
}

/* dark */
html.dark .bd-dept-chip,
html.dark .bd-view,
html.dark .bd-list,
html.dark .bd-scene {
  background: #1e293b;
  border-color: #2f3543;
  color: #e2e8f0;
}
html.dark .bd-dept-chip span {
  background: #2d3545;
  color: #a2aeb8;
}
html.dark .bd-dept-chip.active {
  background: #e2e8f0;
  border-color: #e2e8f0;
  color: #0f172a;
}
html.dark .bd-dept-chip.active span {
  background: rgba(15, 23, 42, 0.15);
  color: #0f172a;
}
html.dark .bd-view button + button {
  border-color: #2f3543;
}
html.dark .bd-view button.active {
  background: #24372b;
  color: #e2e8f0;
}
html.dark .bd-summary {
  background: #172131;
  border-color: #2f3543;
}
html.dark .bd-row {
  border-color: #2f3543;
}
html.dark .bd-row:hover {
  background: #223047;
}
html.dark .bd-photo,
html.dark .cs-photo {
  background: #2d3545;
}
html.dark .bd-chip {
  background: #2d3545;
  color: #cbd5e1;
}
html.dark .bd-scene li,
html.dark .bd-scene-option,
html.dark .cs-items li {
  border-color: #2f3543;
}
html.dark .bd-scene-n {
  background: #e2e8f0;
  color: #0f172a;
}
html.dark .cs-silent .bd-scene-n {
  background: transparent;
  color: #e2e8f0;
}
html.dark .bd-dept {
  background: #2d3545;
  color: #cbd5e1;
}
html.dark .bd-dept-art {
  background: #3a3020;
  color: #e6c88f;
}
html.dark .bd-dept-vestuari {
  background: #2c2b47;
  color: #bdbaf5;
}
html.dark .bd-dept-maquillatge {
  background: #3d2530;
  color: #f0a9c2;
}
html.dark .bd-dept-vehicles {
  background: #1f3540;
  color: #9fd0e4;
}
html.dark .bd-dept-efectes {
  background: #40281a;
  color: #f0b48a;
}
html.dark .bd-dept-vfx {
  background: #22304d;
  color: #a9c0f2;
}
html.dark .bd-dept-figuracio {
  background: #2c3620;
  color: #c3dc95;
}
html.dark .bd-dept-animals {
  background: #3a2e22;
  color: #e2c49e;
}
html.dark .bd-person span,
html.dark .bd-fieldset,
html.dark .bd-scene-list,
html.dark .cs-section,
html.dark .bd-photos img {
  border-color: #2f3543;
}
html.dark .bd-person input:checked + span {
  background: #e2e8f0;
  border-color: #e2e8f0;
  color: #0f172a;
}
html.dark .cs-avatar {
  background: #24372b;
  color: #96cb9a;
}
html.dark .bd-delete {
  color: #f19a9a;
}
html.dark .bd-row.is-chosen {
  background: #1f3328;
}
html.dark .bd-bulk {
  background: #1f3328;
  border-color: #2f4a38;
}
html.dark .bd-marked {
  color: #96cb9a;
}
/* «+ Material» and «Fusionar amb…» (breakdown.js, 2026-11-09): the material's chip and groups, its price in a row
   (the euros, per what, × how many) with its total, and the end of the form (merge and remove) */
.bd-chip-material {
  background: #e9f1ea;
  color: #2f5a3a;
}
.bd-material-note {
  margin: 0 0 12px;
  font-size: 13.5px;
}
.bd-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.bd-price-row .bd-euros {
  flex: 0 1 150px;
  min-width: 120px;
}
.bd-price-row select {
  width: auto;
  flex: 0 0 auto;
}
.bd-periods {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.bd-periods[hidden] {
  display: none;
}
.bd-periods input {
  width: 90px;
}
.bd-plan-days {
  margin: 6px 0 0;
}
.bd-total {
  margin: 8px 0 14px;
  font-weight: 600;
  color: var(--ink, #1b2731);
}
.bd-price-row input,
.bd-price-row select {
  margin: 0;
}
html.dark .bd-total {
  color: #e6edf3;
}
.bd-form-end {
  margin-top: 14px;
  justify-content: space-between;
}
.bd-form-end .bd-delete {
  margin-left: auto;
}
html.dark .bd-chip-material {
  background: #1f3328;
  color: #96cb9a;
}
/* «Fusionar» two materials with a price: which price stays (breakdown.js: bdPriceAskNiu) */
.confirm-body .merge-price {
  border: 0;
  margin: 14px 0 2px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.confirm-body .merge-price legend {
  padding: 0;
  margin-bottom: 6px;
}
.confirm-body .merge-price label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  cursor: pointer;
}
.confirm-body .merge-price input {
  width: 16px;
  height: 16px;
  padding: 0;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--green);
}

/* a character's colour, a family of its own, softer than the people's (Daniel, 2026-11-21): six tones, from its id
   (characterToneNiu, alpha.js); the same in the apps' boards (apps/src/guio-literari/style.css) */
.character-avatar[class*="char-tone-"],
.cs-avatar[class*="char-tone-"] {
  background: var(--tone-bg);
  color: var(--tone-fg);
}
.char-tone-0 {
  --tone-bg: #e3eee5;
  --tone-fg: #3e6e4e;
}
.char-tone-1 {
  --tone-bg: #ede9e2;
  --tone-fg: #897658;
}
.char-tone-2 {
  --tone-bg: #e6ecf4;
  --tone-fg: #607c99;
}
.char-tone-3 {
  --tone-bg: #f2e6e9;
  --tone-fg: #92566a;
}
.char-tone-4 {
  --tone-bg: #f0eadb;
  --tone-fg: #86692a;
}
.char-tone-5 {
  --tone-bg: #ebe7f3;
  --tone-fg: #6a5a8e;
}
html.dark .char-tone-0 {
  --tone-bg: #24372b;
  --tone-fg: #95c8a3;
}
html.dark .char-tone-1 {
  --tone-bg: #3a342b;
  --tone-fg: #cdb994;
}
html.dark .char-tone-2 {
  --tone-bg: #263243;
  --tone-fg: #9cb8d6;
}
html.dark .char-tone-3 {
  --tone-bg: #3b2a31;
  --tone-fg: #d6a1b3;
}
html.dark .char-tone-4 {
  --tone-bg: #3a3322;
  --tone-fg: #d3b672;
}
html.dark .char-tone-5 {
  --tone-bg: #312c40;
  --tone-fg: #b8a9da;
}
