/* Money page. Palette and liwan.css components only. */

/* ---------- Hero ---------- */

.money-hero {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem);
  overflow: hidden;
}
.money-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}
.money-copy {
  display: grid;
  gap: var(--space-3);
  align-content: center;
}
.money-copy h1 {
  font-size: clamp(2.4rem, 4.4vw, 4.75rem);
  max-width: 12ch;
}
.money-stage-wrap {
  position: relative;
}
.money-stage {
  height: clamp(420px, 66vh, 680px);
  margin-inline-end: calc(var(--gutter) * -1);
}
.legend {
  display: grid;
  gap: 0.75rem;
  padding-block-start: var(--space-2);
  border-block-start: 1px solid var(--night-line);
}
.legend-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
}
.legend-btn {
  inline-size: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--on-night);
  background: transparent;
  border: 1px solid var(--night-line);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: start;
  transition: background-color 0.2s, border-color 0.2s;
}
.legend-btn:hover {
  background: var(--night-2);
}
.legend-btn[aria-pressed='true'] {
  border-color: var(--gold);
  background: var(--gold-soft);
}
.legend-n {
  font-weight: 700;
}
.legend-hint {
  font-size: 0.9rem;
}
.sw {
  inline-size: 1.4rem;
  block-size: 0.85rem;
  border-radius: 2px;
}
.sw-paid {
  background: var(--gold);
}
.sw-partly {
  background: color-mix(in oklab, var(--gold) 50%, var(--clay));
}
.sw-overdue {
  background: repeating-linear-gradient(135deg, var(--clay) 0 3px, color-mix(in oklab, var(--plaster) 70%, var(--clay)) 3px 5px);
}
.sw-none {
  background: color-mix(in oklab, var(--night) 84%, var(--plaster));
  outline: 1px solid var(--night-line);
}

/* Unit sheet: a ledger slip laid over the model. */
.sheet {
  position: absolute;
  z-index: 6;
  inset-block-start: 0.75rem;
  inset-inline-end: 0;
  inline-size: min(25rem, 100%);
  max-block-size: calc(100% - 1.5rem);
  overflow: auto;
  display: grid;
  gap: 0.9rem;
  align-content: start;
  padding: 1.1rem 1.2rem 1.2rem;
  background: var(--plaster);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.95);
  scrollbar-color: var(--clay) var(--plaster);
}
.sheet[hidden] {
  display: none;
}
.sheet .soft {
  color: color-mix(in oklab, var(--ink) 78%, var(--plaster));
}
.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
}
.sheet-code {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
}
.sheet-x {
  inline-size: 40px;
  block-size: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  background: none;
  color: var(--ink);
  cursor: pointer;
}
.sheet-x:hover {
  background: color-mix(in oklab, var(--ink) 6%, transparent);
}
.sheet-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 650;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
  border: 1px solid var(--ink-line);
}
.sheet-status.st-paid {
  background: var(--gold);
  border-color: var(--gold);
}
.sheet-status.st-overdue {
  background: repeating-linear-gradient(135deg, color-mix(in oklab, var(--clay) 22%, var(--plaster)) 0 6px, var(--plaster) 6px 12px);
  border-color: var(--clay);
}
.sheet-status.st-partly {
  background: color-mix(in oklab, var(--gold) 35%, var(--plaster));
}
.sheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.sheet .btn-line {
  color: var(--ink);
}

/* ---------- Ledger ---------- */

.ledger {
  background: var(--plaster);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 2.4vw, 1.75rem);
  box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.90);
  display: grid;
  gap: 1rem;
  min-inline-size: 0;
}
.ledger-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  padding-block-end: 0.9rem;
  border-block-end: 2px solid var(--ink);
}
.ledger-unit {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
}
.ledger .soft,
.ledger-empty {
  color: color-mix(in oklab, var(--ink) 78%, var(--plaster));
}
.seg {
  display: inline-flex;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  flex: none;
}
.seg button {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  min-height: 38px;
  padding: 0.3rem 0.8rem;
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
}
.seg button[aria-pressed='true'] {
  background: var(--ink);
  color: var(--plaster);
}
.ledger-body {
  overflow-x: auto;
}
.ledger-table {
  inline-size: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.ledger-table th,
.ledger-table td {
  text-align: start;
  padding: 0.55rem 0.6rem 0.55rem 0;
  border-block-end: 1px solid var(--ink-hair);
  vertical-align: top;
}
[dir='rtl'] .ledger-table th,
[dir='rtl'] .ledger-table td {
  padding: 0.55rem 0 0.55rem 0.6rem;
}
.ledger-table thead th {
  font-stretch: 75%;
  font-weight: 650;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-block-end: 1px solid var(--ink);
}
:lang(ar) .ledger-table thead th {
  letter-spacing: 0;
  font-size: 0.82rem;
}
.ledger-table .n {
  text-align: end;
  white-space: nowrap;
}
.ledger-table td:first-child {
  white-space: nowrap;
}
.ledger-table tfoot th,
.ledger-table tfoot td {
  border-block-end: 0;
  border-block-start: 2px solid var(--ink);
  font-weight: 700;
  padding-block-start: 0.7rem;
}
.ledger-table tfoot th {
  text-align: end;
}

/* ---------- Desk: cash, verification queue, log ---------- */

.desk {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: clamp(1rem, 2.4vw, 2rem);
  align-items: start;
}
.desk h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  margin-block-end: 0.4rem;
}
.desk h3 .ic {
  color: var(--gold);
}
.desk-cash {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--night-line);
  border-radius: var(--radius);
  background: var(--night-2);
}
.desk-cash .select,
.desk-cash .input {
  background: var(--night);
  color: var(--on-night);
  border-color: var(--night-line);
}
.desk-cash .select:focus,
.desk-cash .input:focus {
  border-color: var(--gold);
}
.desk-cash .field-error {
  color: var(--on-night);
}
.desk-cash .field-error .ic {
  color: var(--gold);
}
.desk-cash .input[aria-invalid='true'] {
  border-color: var(--gold);
}
.desk-receipt {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
}
.desk-receipt b {
  color: var(--on-night);
}
.desk-queue,
.desk-log {
  display: grid;
  gap: 0.75rem;
}
.queue,
.log {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.q {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.9rem;
  border: 1px solid var(--night-line);
  border-radius: var(--radius);
  transition: opacity 0.3s;
}
.q-body {
  display: grid;
  gap: 0.4rem;
  align-content: start;
  font-size: 0.95rem;
}
.q-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block-start: 0.3rem;
}
.q-state {
  display: flex;
  gap: 0.5rem;
  align-items: start;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius);
}
.q-state .ic {
  margin-block-start: 0.1em;
}
.q-ok {
  background: var(--gold);
  color: var(--night);
}
.q-no {
  border: 1px dashed var(--on-night-soft);
}
.q-reasons {
  border: 1px solid var(--night-line);
  border-radius: var(--radius);
  margin: 0;
  padding: 0.6rem 0.75rem 0.75rem;
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
}
.q-reasons legend {
  font-weight: 650;
  padding-inline: 0.3rem;
}
.q-reasons label {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  min-height: 32px;
  cursor: pointer;
}
.q-reasons input {
  accent-color: var(--gold);
}
/* The receipt photo: a paper slip, slightly askew. */
.slip {
  align-self: start;
  background: var(--plaster);
  color: var(--ink);
  padding: 0.6rem 0.65rem 0.8rem;
  border-radius: 2px;
  transform: rotate(-2.2deg);
  box-shadow: 0 10px 18px -10px rgba(0, 0, 0, 0.95);
  font-size: 0.72rem;
  display: grid;
  gap: 0.3rem;
  background-image: repeating-linear-gradient(to bottom, transparent 0 13px, var(--ink-hair) 13px 14px);
}
.slip-head {
  font-stretch: 75%;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-block-end: 1px dashed var(--ink-line);
  padding-block-end: 0.3rem;
}
:lang(ar) .slip-head {
  letter-spacing: 0;
}
.slip-amt {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
}
.q-done .slip {
  opacity: 0.8;
}
.log li {
  display: grid;
  grid-template-columns: 1.25rem auto minmax(0, 1fr);
  gap: 0.5rem;
  align-items: start;
  font-size: 0.92rem;
  padding-block-end: 0.7rem;
  border-block-end: 1px solid var(--night-line);
}
.log li .ic {
  color: var(--gold);
  margin-block-start: 0.15em;
}
.log-at {
  font-weight: 650;
  color: var(--on-night-soft);
}
.log li.log-empty {
  display: block;
  border: 1px dashed var(--night-line);
  border-radius: var(--radius);
  padding: 0.9rem;
}

/* ---------- Notifications ---------- */

.notes-device {
  display: flex;
  justify-content: center;
}
.notes-device .device {
  --d-w: 330px;
}
.note {
  display: grid;
  grid-template-columns: 1.3rem minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
  font-size: 0.8rem;
}
.note .ic {
  margin-block-start: 0.15em;
  color: var(--gold);
}
.note b {
  font-size: 0.86rem;
}
.note p {
  color: var(--on-night-soft);
}
.tile-gold.note .ic,
.tile-gold.note p {
  color: var(--night);
}
.note-due {
  background: repeating-linear-gradient(135deg, color-mix(in oklab, var(--clay) 40%, var(--night)) 0 6px, var(--night-2) 6px 12px);
}
.note-rej {
  border-style: dashed;
  border-color: var(--on-night-soft);
}

/* ---------- Aging ---------- */

.aging-wrap {
  overflow-x: auto;
  background: var(--plaster);
  border-radius: var(--radius);
  padding: clamp(0.9rem, 2vw, 1.5rem);
}
.aging {
  inline-size: 100%;
  min-inline-size: 760px;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.aging caption {
  text-align: start;
  padding-block-end: 0.75rem;
}
.aging th,
.aging td {
  padding: 0.65rem 0.75rem;
  text-align: start;
  border-block-end: 1px solid var(--ink-hair);
}
.aging thead th {
  font-stretch: 75%;
  font-weight: 650;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: bottom;
  border-block-end: 1px solid var(--ink);
}
:lang(ar) .aging thead th {
  letter-spacing: 0;
  font-size: 0.85rem;
}
.aging thead th.grp {
  text-align: center;
  border-block-end: 1px solid var(--ink-line);
}
.aging .n {
  text-align: end;
  white-space: nowrap;
}
.aging tbody th {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
}
.aging tfoot th,
.aging tfoot td {
  font-weight: 700;
  border-block-start: 2px solid var(--ink);
  border-block-end: 0;
}
.aging .soft {
  color: color-mix(in oklab, var(--ink) 70%, var(--plaster));
}
.aging-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-block-start: 1.25rem;
}

/* ---------- Broadcasts ---------- */

.cast {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.cast-compose {
  display: grid;
  gap: 1.1rem;
  justify-items: start;
}
.sev {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  inline-size: 100%;
}
.sev button {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.5rem 0.8rem;
  font: inherit;
  font-weight: 650;
  color: var(--on-night);
  background: transparent;
  border: 1px solid var(--night-line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.sev button:hover {
  background: var(--night-2);
}
.sev button[aria-checked='true'] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--night);
}
.cast-preview {
  inline-size: 100%;
  display: grid;
  gap: 0.4rem;
  font-size: 1rem;
}
.cast-rules {
  font-size: 0.95rem;
}
.cast-board {
  display: grid;
  gap: 1rem;
  justify-items: start;
}
.cast-counts {
  inline-size: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
}
.cast-counts p {
  display: grid;
}
.cc-n {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.1;
}
.cast-board .btn[hidden] {
  display: none;
}
.cast-left {
  flex-basis: 100%;
}
/* One brick per home: the perforated screen of the compound, lighting up as people acknowledge. */
.acks {
  inline-size: 100%;
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 3px;
  padding: 10px;
  background: var(--ink);
  border-radius: var(--radius);
}
.acks i {
  aspect-ratio: 2 / 1;
  border-radius: 1px;
  transition: background-color 0.35s;
}
.c-off,
.k-off {
  background: color-mix(in oklab, var(--night) 70%, var(--ink));
}
.c-wait {
  background: color-mix(in oklab, var(--night) 70%, var(--plaster));
}
.c-del,
.k-del {
  background: color-mix(in oklab, var(--night) 45%, var(--plaster));
}
.c-read,
.k-read {
  background: var(--clay);
}
.c-ack,
.k-ack {
  background: var(--gold);
}
.acks-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.88rem;
}
.acks-key > span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.k {
  display: inline-block;
  inline-size: 1.1rem;
  block-size: 0.55rem;
  border-radius: 1px;
}
.k-off {
  outline: 1px solid var(--night-line);
}

/* ---------- Narrow screens ---------- */

@media (max-width: 560px) {
  .ledger-table thead {
    display: none;
  }
  .ledger-table tbody tr {
    display: grid;
    grid-template-columns: 3.6rem minmax(0, 1fr) auto;
    column-gap: 0.6rem;
    padding-block: 0.55rem;
    border-block-end: 1px solid var(--ink-hair);
  }
  .ledger-table tbody td {
    border: 0;
    padding: 0;
  }
  .ledger-table tbody td:empty,
  .ledger-table tbody td.bal {
    display: none;
  }
  .ledger-table td.paid::after {
    content: " · " attr(data-l);
    font-size: 0.8rem;
  }
  .ledger-table td.paid {
    font-weight: 650;
  }
  .ledger-table tfoot tr {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
  }
  .ledger-table tfoot th {
    text-align: start;
  }
}


@media (max-width: 1100px) {
  .desk {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .desk-log {
    grid-column: 1 / -1;
  }
}
@media (max-width: 900px) {
  .money-hero-grid,
  .cast {
    grid-template-columns: 1fr;
  }
  .money-stage {
    height: min(92vw, 520px);
    margin-inline: calc(var(--gutter) * -1);
  }
  .sheet {
    position: relative;
    inset: auto;
    inline-size: 100%;
    max-block-size: none;
    margin-block-start: -1rem;
  }
}
@media (max-width: 720px) {
  .desk {
    grid-template-columns: 1fr;
  }
  .q {
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: 0.75rem;
  }
  .legend-list {
    grid-template-columns: 1fr;
  }
  .acks {
    grid-template-columns: repeat(16, minmax(0, 1fr));
    gap: 2px;
    padding: 6px;
  }
}

/* ---------- Second option: vivid money ---------- */

/* Swatches match the roofs: lime paid, amber partly, magenta overdue, dim not billed. */
.sw {
  border-radius: 4px;
}
.sw-paid {
  background: var(--lime);
  box-shadow: 0 0 10px rgba(182, 255, 59, 0.6);
}
.sw-partly {
  background: var(--amber);
  box-shadow: 0 0 10px rgba(255, 162, 31, 0.55);
}
.sw-overdue {
  background: repeating-linear-gradient(135deg, var(--magenta) 0 3px, rgba(255, 61, 154, 0.35) 3px 5px);
  box-shadow: 0 0 10px rgba(255, 61, 154, 0.6);
  animation: sw-pulse 1.6s ease-in-out infinite;
}
@keyframes sw-pulse {
  50% {
    box-shadow: 0 0 2px rgba(255, 61, 154, 0.2);
  }
}
.sw-none {
  background: #1c2348;
  outline: 1px solid var(--line);
}
.legend-btn {
  border-radius: 14px;
  background: rgba(13, 17, 36, 0.6);
  border-color: var(--line);
}
.legend-btn[aria-pressed='true'] {
  border-color: var(--cyan);
  background: rgba(34, 230, 255, 0.1);
  box-shadow: 0 0 22px -8px var(--cyan);
}
.legend-n {
  font-family: var(--display);
  font-weight: 600;
}

/* Glass ledger with coloured columns. */
.ledger {
  background: linear-gradient(160deg, rgba(22, 27, 54, 0.85), rgba(10, 12, 24, 0.85));
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9), 0 0 60px -30px rgba(139, 92, 255, 0.5);
}
.ledger-unit {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ledger-table thead th {
  border-block-end-color: var(--cyan);
  color: var(--ink-soft);
}
.ledger-table td,
.ledger-table th {
  border-color: var(--line);
}
.ledger-table td:nth-child(3) {
  color: #ffc46b;
}
.ledger-table td:nth-child(4) {
  color: var(--lime);
}
.ledger-table td:nth-child(5) {
  color: #8fefff;
}
.ledger-table tbody tr {
  transition: background-color 0.2s;
}
.ledger-table tbody tr:hover {
  background: rgba(34, 230, 255, 0.06);
}
.ledger-table tfoot th,
.ledger-table tfoot td {
  border-block-start-color: var(--magenta);
}
.ledger-table tfoot b {
  color: var(--magenta);
  text-shadow: 0 0 18px rgba(255, 61, 154, 0.6);
}
.seg {
  border-color: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.seg button[aria-pressed='true'] {
  background: var(--cyan);
  color: #04050a;
}

/* Unit sheet over the model. */
.money-stage-wrap .sheet {
  background: rgba(10, 13, 28, 0.94);
  color: var(--ink);
  border: 1px solid rgba(34, 230, 255, 0.35);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 40px -12px rgba(34, 230, 255, 0.5);
}
.sheet-code {
  font-family: var(--display);
  font-weight: 600;
}
.st-paid {
  color: var(--lime);
}
.st-partly {
  color: var(--amber);
}
.st-overdue {
  color: var(--magenta);
}

/* Receipts and the verify queue. */
.slip {
  background: linear-gradient(180deg, #e9ecff, #c9cff5);
  color: #0a0d1c;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.9), 0 0 24px -10px rgba(139, 92, 255, 0.6);
}
.q {
  border-color: var(--line) !important;
  border-radius: 18px;
  background: rgba(13, 17, 36, 0.6);
}
.q-ok {
  color: var(--lime);
}
.q-no {
  color: var(--magenta);
}

/* Collections: a glowing bar behind every rate. */
.aging th,
.aging td {
  border-color: var(--line);
}
.aging .rate {
  position: relative;
  font-weight: 600;
}
.rate-bar {
  display: block;
  block-size: 4px;
  inline-size: 100%;
  margin-block-end: 0.35rem;
  border-radius: 4px;
  background: rgba(160, 175, 255, 0.12);
  position: relative;
  overflow: hidden;
}
.rate-bar::after {
  content: '';
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  inline-size: calc(var(--r) * 100%);
  border-radius: inherit;
  background: var(--tone);
  box-shadow: 0 0 10px var(--tone);
  animation: rate-in 1.4s var(--ease-out) both;
}
@keyframes rate-in {
  from {
    inline-size: 0;
  }
}
.rate[data-tone='good'] {
  --tone: var(--lime);
  color: var(--lime);
}
.rate[data-tone='mid'] {
  --tone: var(--amber);
  color: #ffc46b;
}
.rate[data-tone='low'] {
  --tone: var(--magenta);
  color: #ff8fc4;
}

/* Announcements: every home a cell, lighting up as people acknowledge. */
.acks {
  background: rgba(8, 10, 22, 0.85);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: inset 0 0 40px rgba(139, 92, 255, 0.12);
}
.acks i {
  border-radius: 2px;
}
.c-off,
.k-off {
  background: #121733;
}
.c-wait {
  background: #232a55;
}
.c-del,
.k-del {
  background: var(--violet);
  box-shadow: 0 0 6px rgba(139, 92, 255, 0.6);
}
.c-read,
.k-read {
  background: var(--amber);
  box-shadow: 0 0 6px rgba(255, 162, 31, 0.6);
}
.c-ack,
.k-ack {
  background: var(--lime);
  box-shadow: 0 0 8px rgba(182, 255, 59, 0.7);
}
.cast-counts .cc-n {
  font-family: var(--display);
  font-weight: 600;
}
.cast-counts p:nth-child(2) .cc-n {
  color: #b9a3ff;
}
.cast-counts p:nth-child(3) .cc-n {
  color: #ffc46b;
}
.cast-counts p:nth-child(4) .cc-n {
  color: var(--lime);
  text-shadow: 0 0 18px rgba(182, 255, 59, 0.5);
}
.sev button {
  border-radius: 14px;
  border-color: var(--line);
}
.sev button[aria-checked='true'],
.sev button[aria-pressed='true'] {
  box-shadow: 0 0 26px -8px var(--cyan);
}
.cast-preview.tile {
  border-color: rgba(255, 61, 154, 0.45);
  box-shadow: 0 0 30px -14px var(--magenta);
}
