:root {
  font:
    16px/1.5 Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #242438;
  background: #f8f8fb;
  --purple: #6550ce;
  --ink: #262536;
  --muted: #666575;
  --line: #e3e2e9;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
select,
a {
  touch-action: manipulation;
}
button,
a {
  color: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  border: none;
  background: none;
}
a {
  text-decoration: none;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
:focus-visible {
  outline: 3px solid #9577ee;
  outline-offset: 3px;
}
header {
  background: white;
  border-bottom: 1px solid var(--line);
}
.bar,
main {
  max-width: 1248px;
  margin: auto;
  padding: 0 48px;
}
.bar {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 54px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.55rem;
  font-weight: 780;
  letter-spacing: -1.35px;
}
.mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--purple);
  color: white;
  transform: rotate(-5deg);
}
.mark svg {
  width: 23px;
  height: 23px;
}
svg {
  display: block;
}
i[data-icon] {
  display: inline-flex;
  font-style: normal;
  flex-shrink: 0;
}
.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bar nav {
  display: flex;
  gap: 22px;
  align-self: stretch;
}
.bar nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #656274;
  font-weight: 590;
  border-bottom: 3px solid transparent;
  padding: 3px 4px 0;
}
.bar nav a[aria-current] {
  color: var(--purple);
  border-color: var(--purple);
}
.profile {
  margin-left: auto;
  position: relative;
}
.profile button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 0.85rem;
  font-weight: 630;
}
#avatar {
  background: #eee9fe;
  color: #6046be;
  display: grid;
  place-items: center;
  border: 1px solid #ded6fd;
  width: 31px;
  height: 31px;
  border-radius: 100%;
  font-weight: 700;
}
#accountMenu {
  background: white;
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 135px;
  padding: 4px;
  border: 1px solid var(--line);
  box-shadow: 0 5px 18px #2221;
  border-radius: 12px;
  z-index: 2;
}
#accountMenu button {
  width: 100%;
  padding: 0 12px;
}
main {
  padding-top: 36px;
  padding-bottom: 48px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(2rem, 3.3vw, 2.85rem);
  letter-spacing: -0.055em;
  line-height: 1.13;
}
h2 {
  font-size: 1.53rem;
  letter-spacing: -0.04em;
  line-height: 1.3;
}
h3 {
  font-size: 1.19rem;
  letter-spacing: -0.035em;
  line-height: 1.28;
}
.heading,
.sectionHead,
.cardHeading,
.dataRow,
.dlgHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.heading {
  margin-bottom: 24px;
}
.heading p,
.muted {
  color: var(--muted);
  font-size: 0.94rem;
}
.heading p {
  margin-top: 6px;
}
.btn {
  min-height: 44px;
  border-radius: 9px;
  font-weight: 630;
  font-size: 0.89rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
}
.primary {
  background: var(--purple);
  color: white;
  box-shadow: 0 2px 3px #30246015;
}
.primary:hover {
  background: #5842bb;
}
.secondary {
  border: 1px solid var(--line);
  background: white;
}



.meter {
  height: 8px;
  overflow: hidden;
  border-radius: 30px;
  background: #eeedf3;
}
.fill {
  height: 100%;
  border-radius: inherit;
  background: var(--accent, var(--purple));
}

.sectionHead {
  margin: 29px 0 16px;
}
.sectionHead h2 {
  display: flex;
  gap: 10px;
  align-items: center;
}
.count {
  font-size: 0.77rem;
  letter-spacing: 0;
  color: #615a73;
  background: #ebe8f1;
  min-width: 24px;
  text-align: center;
  border-radius: 8px;
  padding: 2px 6px;
}
.filter {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  min-height: 44px;
  font-weight: 550;
  font-size: 0.85rem;
  color: #464254;
}
.cards {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.card,
.feed,
.empty {
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
}
.card {
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 4px #21203905;
}
.art {
  height: clamp(140px, 13vw, 180px);
  position: relative;
  overflow: hidden;
  background: #f5e4d7;
}
.art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.art.games {
  background: #e7e0f8;
}
.art.pizza {
  background: #fff0c5;
}
.art.gift {
  background: radial-gradient(circle at 50% 65%, #fff1ce, #efcda7);
  display: grid;
  place-items: center;
}
.giftEmoji {
  font-size: 5rem;
}
.status {
  position: absolute;
  top: 12px;
  left: 13px;
  background: #fffefaed;
  color: #3f3a48;
  display: flex;
  align-items: center;
  gap: 5px;
  border-radius: 20px;
  padding: 4px 9px;
  font-size: 0.68rem;
  font-weight: 650;
}
.status:before {
  content: "";
  background: #9776cd;
  width: 6px;
  height: 6px;
  border-radius: 100%;
}
.status.done:before {
  background: #2c8765;
}
.cardBody {
  padding: 18px 19px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card h3,
.reward,
.entry strong,
.entry small,
.detailName {
  overflow-wrap: anywhere;
}
.reward {
  display: flex;
  gap: 7px;
  align-items: center;
  color: #615b70;
  margin: 6px 0 20px;
  font-size: 0.84rem;
}
.reward .icon {
  width: 16px;
  height: 16px;
  color: #8766bd;
}
.cardBody .reward { margin-bottom: 10px; }
.dataRow {
  margin-top: 0;
  margin-bottom: 7px;
  font-size: 0.84rem;
  color: var(--muted);
}
.dataRow b {
  color: var(--ink);
}
.percent {
  color: var(--percent, #6550ce);
  font-weight: 700;
}
.cardAction {
  margin-top: 16px;
  padding-top: 8px;
  border-top: 1px solid #efedf2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.textbtn {
  color: var(--purple);
  font-size: 0.83rem;
  font-weight: 650;
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 0;
  min-height: 44px;
}
.iconbtn {
  min-width: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: #625e72;
}
.textbtn:hover,
.iconbtn:hover {
  background: #f7f4ff;
}
.feed {
  padding: 0 19px;
}
.entry {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 0;
  border-bottom: 1px solid #ebeaf1;
}
.entry:last-child {
  border: 0;
}
.entryBadge {
  width: 37px;
  height: 37px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex: none;
  color: #82609b;
  background: #f1eafb;
}
.entryInfo {
  flex: 1;
  min-width: 0;
}
.entry strong,
.entry small {
  display: block;
}
.entry strong {
  font-size: 0.89rem;
}
.entry small,
.entry time {
  font-size: 0.77rem;
  color: var(--muted);
}
.points {
  font-size: 0.8rem;
  font-weight: 680;
  white-space: nowrap;
  color: #3d7058;
  background: #edf7f0;
  border-radius: 6px;
  padding: 4px 8px;
}
.empty {
  padding: 25px;
}
.login {
  max-width: 870px;
  margin: 7vh auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: white;
  box-shadow: 0 12px 40px #28204409;
}
.loginArt {
  min-height: 410px;
  background: #292246;
  position: relative;
  isolation: isolate;
}
.loginArt:before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/art/mountain.jpg") 62% center / cover no-repeat;
  z-index: -1;
}
.loginForm {
  padding: 40px;
}
.loginForm h1 {
  font-size: 2rem;
}
.loginForm p {
  margin: 6px 0 24px;
}
form {
  display: grid;
  gap: 16px;
}
label {
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 620;
}
input,
textarea,
form select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cfccd8;
  border-radius: 8px;
  padding: 9px 11px;
  background: white;
  color: var(--ink);
}
.err {
  color: #a23041;
  font-size: 0.85rem;
}
.err:empty {
  display: none;
}
.dialogActions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 5px;
}
dialog {
  width: min(460px, calc(100% - 24px));
  max-height: 90dvh;
  border: 1px solid #ddd9e7;
  border-radius: 17px;
  padding: 24px;
  color: var(--ink);
}
dialog::backdrop {
  background: #19152588;
}
.dlgHead {
  margin-bottom: 17px;
}
.dlgHead h2 {
  overflow-wrap: anywhere;
}
.detailMetric {
  margin: 14px 0;
}
.detailActions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 16px 0 20px;
}
#toast:not(:empty) {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 10px;
  background: #2f2847;
  color: white;
  padding: 10px 17px;
  font-size: 0.86rem;
  box-shadow: 0 3px 18px #0002;
  z-index: 3;
}
.summary {
  font-size: 0.91rem;
  color: #625e70;
}
.detailsTitle {
  font-size: 1.02rem;
  margin: 18px 0 4px;
}
@media (max-width: 880px) {
  .bar,
  main {
    padding-left: 24px;
    padding-right: 24px;
  }
  .cards {
    gap: 12px;
  }
  .cardBody {
    padding: 14px;
  }
  .bar {
    gap: 28px;
  }
}
@media (max-width: 690px) {
  .bar,
  main {
    padding-left: 16px;
    padding-right: 16px;
  }
  .bar {
    flex-wrap: wrap;
    gap: 0;
    min-height: 62px;
  }
  .brand {
    min-height: 62px;
  }
  .bar nav {
    order: 3;
    width: 100%;
    gap: 20px;
  }
  .bar nav a {
    min-height: 44px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .art {
    height: 185px;
  }

  .heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .login {
    grid-template-columns: 1fr;
    margin: 12px auto;
  }
  .loginArt {
    min-height: 145px;
  }
  .loginForm {
    padding: 24px;
  }
  .entry time {
    display: none;
  }
  main {
    padding-top: 24px;
  }
  .cardBody {
    padding: 18px;
  }
  .cardAction {
    margin-top: 14px;
  }
  .sectionHead {
    flex-wrap: wrap;
  }
}
@media (min-width: 691px) and (max-width: 880px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: no-preference) {
  .primary,
  .textbtn,
  .iconbtn {
    transition: background-color 0.15s ease;
  }
}
main:focus {
  outline: none;
}
.art.cinema {
  background: #fbd7bf;
}
.art.games {
  background: #ddd7fd;
}
.art.pizza {
  background: #fdeeb6;
}
.art img {
  position: relative;
  display: block;
  width: auto;
  max-width: 100%;
  margin: auto;
  object-fit: contain;
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 10%,
    #000 90%,
    transparent
  );
}
.trend {
  margin: 17px 0 8px;
  background: #f8f6fc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 15px;
}
.trend figcaption {
  font-weight: 650;
  font-size: 0.9rem;
}
.trend svg {
  width: 100%;
  height: 92px;
}
.trend small,
.trend div {
  font-size: 0.73rem;
  color: var(--muted);
}
.trend div {
  display: flex;
  justify-content: space-between;
}

#avatar {
  width: 2.1em;
  height: 2.1em;
  line-height: 1;
}
.filter {
  max-width: 100%;
}
.loginForm,
.cardBody,
.dlgHead h2 {
  min-width: 0;
}
.entry {
  flex-wrap: wrap;
}
@media (max-width: 420px) {
  .dialogActions {
    flex-wrap: wrap;
  }
  .bar nav {
    flex-wrap: wrap;
  }
  .profile {
    max-width: 100%;
  }
}
form,
label,
input,
textarea,
form select,
.dialogActions {
  min-width: 0;
}
form {
  grid-template-columns: minmax(0, 1fr);
}
.dialogActions,
.detailActions,
.dataRow {
  flex-wrap: wrap;
}
.dlgHead h2 {
  min-width: 0;
}
.btn {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.entryInfo {
  min-width: min(110px, 100%);
}

#accountMenu {
  min-width: min(205px, 85vw);
}
.editGoal {
  margin-left: auto;
}
.cardAction {
  flex-wrap: wrap;
  gap: 8px;
}
dialog:has(.gallery) {
  width: min(550px, calc(100% - 24px));
}
.goalNumbers {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 14px;
}
.gallery {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.gallery legend {
  font-size: 0.86rem;
  font-weight: 620;
  margin: 0 0 7px;
  padding: 0;
}
.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 7.6rem), 1fr));
  gap: 8px;
}
.swatch {
  position: relative;
  cursor: pointer;
}
.swatch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
}
.swatchInner {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 2px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: white;
}
.swatch input:checked + span {
  border-color: var(--purple);
  background: #f5f1ff;
}
.swatch input:checked + span::after {
  content: "✓";
  position: absolute;
  right: 5px;
  top: 5px;
  border-radius: 50%;
  background: var(--purple);
  color: white;
  font-size: 12px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
}
.swatch input:focus-visible + span {
  outline: 3px solid #856cde;
  outline-offset: 2px;
}
.sample {
  height: 64px;
  grid-template-rows: minmax(0, 1fr);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.sample img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.sample.gift {
  background: #f6e3c1;
}
.sample .giftEmoji {
  font-size: 2rem;
}
.swatchLabel {
  font-size: 0.77rem;
  padding: 4px 6px;
  text-align: center;
  overflow-wrap: anywhere;
}
.cinema.sample {
  background: #fbd7bf;
}
.games.sample {
  background: #ddd7fd;
}
.pizza.sample {
  background: #fdeeb6;
}
.cash {
  background: #c9f0d0;
}
.clothes {
  background: #e6d1fc;
}
.shopping {
  background: #fbc9d0;
}
.diamonds {
  background: #b3e5fc;
}
.jewelry {
  background: #ffe2c0;
}
.deleteLink {
  color: #a33345;
  margin-right: auto;
}
.danger {
  background: #a33345;
  color: white;
}
#deleteDialog h2 {
  margin-bottom: 12px;
}
#passwordHint {
  color: var(--muted);
  margin-top: -12px;
}
@media (max-width: 480px) {
  .goalNumbers {
    grid-template-columns: minmax(0, 1fr);
  }
}
.tahoe {
  background: #accae2;
}

.familyvacation {
  background: #a6f2f1;
}
.disneyworld {
  background: #bbc6fe;
}
.spaday {
  background: #c4d1b3;
}
.laptop {
  background: #a3e0fe;
}
.getaway {
  background: #fdcfad;
}
.tso {
  background: #fbbec5;
}
.nychristmas {
  background: #b7ddfa;
}

.managedEntry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
}
.managedEntry .entryInfo {
  min-width: 0;
}
.entryControls {
  display: grid;
  justify-items: end;
  align-items: center;
}
.removeEntry {
  min-height: 44px;
  color: #963c4d;
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0;
}
.removeEntry:hover {
  text-decoration: underline;
}
@media (max-width: 420px) {
  .managedEntry {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .managedEntry .entryBadge {
    display: none;
  }
}
.feed:has(.managedEntry) {
  container-type: inline-size;
}
@container (max-width: 16rem) {
  .managedEntry {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .managedEntry .entryBadge {
    display: none;
  }
  .entryControls {
    display: flex;
    justify-content: space-between;
  }
}

/* The featured goal and its prize share the two panels of a reward ticket. */
.goalTicket {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.ticketInfo {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 24px clamp(20px, 3vw, 38px) 28px;
}
.ticketHead,
.ticketTotals {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  flex-wrap: wrap;
}
.ticketLabel {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 720;
  color: var(--ticket-ink);
}
.ticketLabel .icon {
  width: 15px;
  height: 15px;
  flex: none;
}
.changeMain {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 0 9px;
  color: var(--muted);
  font-size: 0.82rem;
  border-radius: 8px;
}
.changeMain:hover {
  background: #f4f2f8;
  color: var(--ink);
}
.changeMain .icon {
  width: 15px;
  height: 15px;
}
.ticketTitle {
  margin: 9px 0 26px;
  font-size: clamp(1.8rem, 3.3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}
.ticketProgress {
  margin-top: auto;
}
.ticketTotals {
  align-items: baseline;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.ticketTotals b {
  font-size: 1.48rem;
  color: var(--ink);
  letter-spacing: -0.04em;
}
.ticketTotals strong {
  font-size: 0.9rem;
  color: var(--ticket-ink);
}
.ticketProgress .fill {
  background: var(--ticket-ink);
}
.ticketPrize {
  min-width: 0;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: end;
  padding: 18px 25px;
  min-height: 220px;
  border-left: 2px dashed #ffffffab;
}
.ticketPrize.cinema {
  background: #fbd7bf;
}
.ticketPrize.games {
  background: #ddd7fd;
}
.ticketPrize.pizza {
  background: #fdeeb6;
}
.ticketPrize.gift {
  background: #f6e3c1;
}
.ticketArt {
  position: absolute;
  inset: 0 0 49px;
  display: grid;
  place-items: center;
  z-index: -1;
}
.ticketArt img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 180px;
  object-fit: contain;
  mask-image: linear-gradient(
    90deg,
    transparent,
    black 11%,
    black 89%,
    transparent
  );
}
.ticketCaption {
  max-width: 100%;
  position: relative;
  overflow-wrap: anywhere;
}
.ticketCaption .ticketLabel {
  color: #363447;
}
.ticketPrizeName {
  font-size: 1.16rem;
  font-weight: 720;
  line-height: 1.25;
  color: #262439;
}
@media (max-width: 690px) {
  .goalTicket {
    grid-template-columns: minmax(0, 1fr);
  }
  .ticketInfo {
    padding: 12px 20px 19px;
  }
  .ticketTitle {
    margin: 4px 0 17px;
  }
  .ticketPrize {
    border-left: 0;
    border-top: 2px dashed #ffffffb3;
    min-height: 100px;
    padding: 15px 20px;
    align-items: center;
  }
  .ticketArt {
    inset: 0 0 0 47%;
  }
  .ticketArt img {
    max-height: 100px;
  }
  .ticketArt .giftEmoji {
    font-size: 3rem;
  }
  .ticketCaption {
    max-width: 48%;
  }
}
@media (min-width: 691px) {
  .ticketPrize {
    display: grid;
    grid-template-rows: minmax(146px, 1fr) auto;
    align-items: stretch;
    padding-top: 0;
  }
  .ticketArt {
    position: relative;
    inset: auto;
    min-width: 0;
    min-height: 0;
  }
  .ticketArt img {
    position: absolute;
    height: 100%;
    max-height: 180px;
    object-fit: contain;
    width: auto;
    max-width: 100%;
  }
}

textarea {
  resize: vertical;
  min-height: 5rem;
}
.optionalField {
  color: var(--muted);
  font-weight: 400;
}
.goalDescription {
  margin: 0 0 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#termsHint {
  color: var(--muted);
  margin-top: -12px;
}
.termsForm {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  margin-top: 14px;
  gap: 9px;
}
.termsForm fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.termsForm legend {
  font-weight: 650;
  margin-bottom: 4px;
  padding: 0;
}
.termRow {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  overflow-wrap: anywhere;
}
.termRow:last-child {
  border-bottom: 0;
}
.termStatus { justify-content: space-between; flex-wrap: wrap; padding: 4px 0; }
.termStatus select { width: auto; max-width: 100%; font: inherit; }
.termStatus strong { font-size: .84rem; color: var(--muted); }
.termsForm button {
  justify-self: start;
}

.termEditor { margin:0; display:grid; }
.termEditor h3 {font-size:1rem; font-weight:650;}
.termEditRow .termName {flex:1;min-width:0;padding:6px 2px;border:0;border-radius:3px;font-size:.9rem;}
.termEditRow .iconbtn {flex:none;}

.silklingerie { background: #fbd4d5; }

.designerheels { background: #fdbba1; }

.perfume { background: #fcdac2; }

.tennisbracelet { background: #a7dafb; }

.designerbag { background: #b6cca3; }

.boudoirshoot { background: #eca1a8; }

.currentIllustration { margin:0 0 8px; color:var(--muted); font-size:.85rem; }
.gallery:has(input:checked) .currentIllustration { display:none; }

.tummytuck { background: #c5efdb; }
@media (max-width: 420px) {
  dialog:has(form[data-mode="password"]) { padding: 16px; }
  dialog:has(form[data-mode="password"]) .dlgHead h2 { font-size: 1.25rem; }
}

.changeRequests {margin:16px 0;padding:15px;border:1px solid var(--line);border-radius:12px;}
.changeRequests h3 {font-size:1rem;margin-bottom:10px;}
.changeRequests form {gap:8px;}
.changeRequests form > button,.requestsLink {justify-self:start;align-self:flex-start;}
.changeRequests ul {list-style:none;margin:0;padding:0;}
.changeRequests li {padding:10px 0;border-top:1px solid var(--line);}
.changeRequests form + ul {margin-top:12px;}
.changeRequests small {color:var(--muted);font-size:.78rem;}
.changeRequests li p {margin-top:3px;white-space:pre-wrap;overflow-wrap:anywhere;}
.changeRequests li small {overflow-wrap:anywhere;}

.cardSummary {display:grid;grid-template-columns:minmax(54px,24%) minmax(0,1fr);gap:13px;align-items:center;margin-bottom:12px;}
.cardSummary .art {height:auto;aspect-ratio:1;border-radius:10px;}
.cardSummary .art img {width:100%;height:100%;object-fit:contain;}
.cardSummary .giftEmoji {font-size:2.25rem;}
.cardIdentity {min-width:0;}
.cardIdentity .status {position:static;padding:0;background:transparent;margin-bottom:4px;}
.cardIdentity .reward {margin:4px 0 0;}
.cardBody .cardAction {margin-top:10px;padding-top:4px;}

.boardActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.prizeRequestList {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-wrap: anywhere;
}
.prizeRequestList li + li {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 14px;
}
.prizeRequestList strong, .prizeRequestList small {
  display: block;
}
.prizeRequestList small {
  color: var(--muted);
}
.prizeRequestList p {
  margin-top: 6px;
  white-space: pre-wrap;
}
.sentPrizes {
  border-top: 1px solid var(--line);
  margin-top: 18px;
}
.sentPrizes summary {
  cursor: pointer;
  padding: 12px 2px;
  color: var(--purple);
  font-weight: 600;
}
@media (max-width: 420px) {
  dialog:has(#prizeInbox, [data-mode="prize-request"]) {
    padding: 16px;
    max-width: calc(100% - 24px);
  }
  dialog:has(#prizeInbox, [data-mode="prize-request"]) .dlgHead h2 {
    font-size: 1.25rem;
  }
}
