:where(.nova-support-nav, .nova-support-panel, .nova-support-post-button, .nova-support-dialog,
       .ct-t-action[data-author-support-open], .sh-author-support) {
  --nova-support-accent: var(--zhar, #d4b05a);
  --nova-support-fill: color-mix(in oklab, var(--nova-support-accent) 74%, var(--lamp, #d7d7da));
  --nova-support-surface: color-mix(in oklab, var(--nova-support-accent) 16%, var(--stone, #201d19));
  --nova-support-edge: color-mix(in oklab, var(--nova-support-accent) 63%, var(--seam, #37353a));
  --nova-support-on-fill: var(--deep, #17140f);
}

.nova-support-panel {
  color: var(--cream, #f5eee1);
  min-width: 0;
  font: inherit;
}
.nova-support-optional {
  margin-block: 8px;
}
.nova-support-toggle, .nova-support-post-button,
html.desk #desk :is(.nova-support-toggle, .nova-support-post-button),
body.shell :is(.nova-support-toggle, .nova-support-post-button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  max-width: 100%;
  padding: 7px 14px;
  border: 1px solid var(--nova-support-edge);
  border-radius: 12px;
  background: var(--nova-support-surface);
  color: var(--cream, #f5eee1);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}
.nova-support-toggle, html.desk #desk .nova-support-toggle, body.shell .nova-support-toggle {
  width: 100%;
  color: var(--nova-support-fill);
}
.nova-support-toggle[aria-expanded="true"] { border-color: var(--nova-support-accent); }
.nova-support-post-button, body.shell .nova-support-post-button, html.desk #desk .d-btn.nova-support-post-button {
  border-color: var(--nova-support-edge);
  background: var(--nova-support-surface);
  color: var(--nova-support-fill);
}
.nova-support-toggle:focus-visible, .nova-support-post-button:focus-visible {
  outline: 2px solid var(--lamp, #ebbf74);
  outline-offset: 2px;
}
.nova-support-fields {
  display: grid;
  gap: 10px;
  padding-block: 6px;
  font-size: 14px;
}
.nova-support-fields[hidden] { display: none; }
.nova-support-welcome {
  margin: 2px 0;
  color: var(--sand, #d7ccb9);
  line-height: 1.45;
  text-wrap: pretty;
}
.nova-support-nav, html.desk #desk .nova-support-nav, body.shell .nova-support-nav {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex: none;
  gap: 6px;
  box-sizing: border-box;
  min-height: 44px;
  padding: 5px 9px;
  border: 1px solid var(--nova-support-fill);
  border-radius: 12px;
  background: var(--nova-support-fill);
  color: var(--nova-support-on-fill);
  text-align: center;
  font: 850 12px/1.15 var(--font);
  cursor: pointer;
}
.nova-support-nav img {
  flex: none;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  padding: 1px;
  border-radius: 5px;
  background: var(--stone, #201d19);
  object-fit: contain;
}
body.shell .sh-top .nova-support-nav span { max-width: 82px; text-wrap: balance; }
@media (max-width: 430px) {
  body.shell .sh-top .nova-support-nav {
    width: 84px;
    padding-inline: 5px;
    font-size: 11px;
  }
  body.shell .sh-top .nova-support-nav img { display: none; }
}
@media (max-width: 1199px) {
  html.desk #desk .v3-bar-in:has(.nova-support-nav) { gap: 14px; }
  html.desk #desk .v3-bar .h-nav:has(> .nova-support-nav) { gap: 12px; }
  html.desk #desk .v3-bar .nova-support-nav span { max-width: 80px; text-wrap: balance; }
}
.nova-support-nav:focus-visible {
  outline: 2px solid var(--lamp, #ebbf74);
  outline-offset: 2px;
}
html.desk #desk .ct-t-action[data-author-support-open],
body.shell .sh-tile.sh-author-support {
  border-color: var(--nova-support-edge);
  background: var(--nova-support-surface);
}
html.desk #desk .ct-t-action[data-author-support-open] .ct-name,
body.shell .sh-tile.sh-author-support .sh-tile-txt b {
  color: var(--nova-support-fill);
  font-weight: 850;
}
html.desk #desk .ct-t-action[data-author-support-open] .ct-go {
  background: var(--nova-support-fill);
  color: var(--nova-support-on-fill);
  box-shadow: none;
}
html.desk #desk .ct-t-action[data-author-support-open] .ct-sub {
  white-space: normal;
  text-transform: none;
  letter-spacing: normal;
}
body.shell .sh-tile.sh-author-support {
  justify-content: space-between;
  gap: 6px;
}
body.shell .sh-tile.sh-author-support .sh-tile-obj {
  position: relative;
  inset: auto;
  translate: none;
  flex: none;
  align-self: center;
  width: 60px;
  height: 60px;
}
body.shell .sh-tile.sh-author-support .sh-tile-obj img { filter: none; }
body.shell .sh-tile.sh-author-support .sh-tile-txt b {
  font-size: 12px;
  overflow-wrap: anywhere;
}
body.shell .sh-pop-ribbon .sh-author-support .sh-tile-txt small { line-height: 1.2; }
body.shell .sh-tile.sh-author-support:focus-visible {
  outline: 2px solid var(--nova-support-fill);
  outline-offset: -3px;
}
@media (hover: hover) and (pointer: fine) {
  .nova-support-nav:hover, html.desk #desk .nova-support-nav:hover, body.shell .nova-support-nav:hover,
  .nova-support-dialog .nova-support-pay:not(:disabled):hover {
    background: color-mix(in oklab, var(--nova-support-fill) 84%, var(--cream, #f5eee1));
  }
  .nova-support-toggle:hover, .nova-support-post-button:hover,
  html.desk #desk .nova-support-toggle:hover,
  body.shell :is(.nova-support-toggle, .nova-support-post-button):hover,
  html.desk #desk .ct-t-action[data-author-support-open]:hover,
  html.desk #desk .d-btn.nova-support-post-button:hover,
  body.shell .sh-tile.sh-author-support:hover {
    border-color: var(--nova-support-accent);
  }
}
.nova-support-label, .nova-support-check {
  display: grid;
  gap: 6px;
  line-height: 1.4;
}
.nova-support-fields input[inputmode], .nova-support-dialog select {
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line, #625139);
  border-radius: 9px;
  padding: 8px 11px;
  background: var(--deep, #191512);
  color: inherit;
  font: inherit;
  font-size: 16px;
}
.nova-support-check {
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  cursor: pointer;
}
.nova-support-check input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--lamp, #ebbf74);
}
.nova-support-breakdown {
  display: grid;
  gap: 5px;
  color: var(--sand-dim, #cbbda6);
}
.nova-support-breakdown:empty { display: none; }
.nova-support-breakdown > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.nova-support-breakdown strong { color: var(--cream, #f5eee1); }
.nova-support-dialog {
  box-sizing: border-box;
  width: min(420px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  border: 1px solid var(--line, #625139);
  border-radius: 18px;
  padding: 21px;
  background: var(--stone, #241d17);
  color: var(--cream, #f5eee1);
  font: 16px/1.5 system-ui;
}
.nova-support-dialog::backdrop { background: rgb(0 0 0 / 68%); }
.nova-support-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 34px 6px 0;
}
.nova-support-heading img { flex: none; }
.nova-support-dialog h2 { margin: 0; font-size: 23px; line-height: 1.2; }
.nova-support-close { position: absolute; inset: 10px 10px auto auto; }
.nova-support-close button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  font: 25px/1 system-ui;
  cursor: pointer;
}
.nova-support-help, .nova-support-error {
  margin: 3px 0;
  color: var(--sand-dim, #cbbda6);
  font-size: 13px;
}
.nova-support-error:empty { display: none; }
.nova-support-dialog .nova-support-pay {
  width: 100%;
  margin-block: 12px 8px;
  min-height: 43px;
  border: 0;
  border-radius: 10px;
  background: var(--nova-support-fill);
  color: var(--nova-support-on-fill);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.nova-support-dialog .nova-support-pay:disabled { opacity: .55; cursor: default; }
