/* refrace dashboard — loaded after landing.css and join.css. */

/* Match .rf-wrap (header/footer) so the page doesn't step in and out. */
.jn-main.db-main { width: 100%; max-width: 1080px; min-width: 0; }
#shell {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  background: transparent;
}

/* One sheet per tab — same box Overview uses, every time. */
.db-panel {
  display: flex;
  flex-direction: column;
  gap: 28px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-raised);
}
.db-panel > *,
#app,
#board-app,
#brand-app,
.db-identity,
.db-quests,
.db-board {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
#board-app,
#brand-app {
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: transparent;
}

.db-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.db-head > div { min-width: 0; }

/* Tabs: social-style chips, transparent strip, no nested scroller. */
.db-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0 0 28px;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.db-tab {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 8px;
  margin: 0;
  padding: 11px 20px;
  min-height: 42px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 1px 2px rgba(0,0,0,0.3),
    0 4px 12px -4px rgba(0,0,0,0.4);
  cursor: pointer;
  white-space: nowrap;
}
.db-tab:hover { color: var(--text); }
.db-tab[aria-selected="true"] {
  color: var(--gold);
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(242,193,78,0.18), rgba(242,193,78,0.05));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    0 2px 4px rgba(0,0,0,0.3),
    0 10px 20px -6px rgba(242,193,78,0.28);
}
.db-tab:active {
  box-shadow:
    inset 0 1px 2px rgba(0,0,0,0.3),
    0 1px 2px rgba(0,0,0,0.2);
}
.db-tab:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.db-tab-empty {
  margin: 0;
  padding: 8px 0 12px;
  max-width: none;
  color: var(--soft);
  font-size: 1.05rem;
}

#app,
.db-identity,
.db-quests,
.db-board {
  padding: 0;
  border: 0;
  background: transparent;
}

#widget,
#app,
.db-panel > .db-identity,
#board-app > .db-board:first-child,
#brand-app > .db-board:first-child { margin-top: 0; }
.db-quests { margin-top: 0; }
#nopage[hidden] + #app[hidden] + .db-quests { margin-top: 0; }
.db-pagelink { font-family: var(--mono); font-size: 0.85rem; color: var(--gold); text-decoration: none; overflow-wrap: anywhere; }
.db-pagelink:hover { text-decoration: underline; }
.jn-status a { color: var(--gold); }

/* Tiles */
.db-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; min-width: 0; width: 100%; }
.db-tile { padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.db-tile h2 {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.db-big { margin-top: 8px; font-size: 2.4rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.db-sub { margin-top: 8px; font-size: 0.85rem; color: var(--muted); }

/* Bar charts */
.db-charts { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 12px; margin-top: 12px; min-width: 0; width: 100%; }
.db-chart { margin: 0; padding: 16px 18px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); min-width: 0; }
.db-chart figcaption { font-weight: 700; color: var(--text); }
.db-chart figcaption span { margin-left: 6px; font-weight: 400; font-size: 0.8rem; color: var(--muted); }
.db-plot {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 120px;
  margin-top: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(to bottom, var(--line) 1px, transparent 1px) top / 100% 50% repeat-y;
}
.db-max { position: absolute; top: -20px; left: 0; font-family: var(--mono); font-size: 0.7rem; color: var(--muted); }
.db-bar {
  flex: 1 1 0;
  display: flex;
  align-items: flex-end;
  height: 100%;
  padding: 0;
  background: none;
  border: 0;
  cursor: default;
}
.db-bar i { display: block; width: 100%; border-radius: 3px 3px 0 0; background: var(--gold); transition: opacity 0.15s; }
.db-plot:hover .db-bar i { opacity: 0.55; }
.db-plot .db-bar:hover i, .db-bar:focus-visible i { opacity: 1; }
.db-bar:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }
.db-axis { display: flex; justify-content: space-between; margin-top: 6px; font-family: var(--mono); font-size: 0.7rem; color: var(--muted); }
.db-tip {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -100%);
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #1a1d27;
  font-size: 0.85rem;
  white-space: nowrap;
  pointer-events: none;
}
.db-tip b { color: var(--text); font-variant-numeric: tabular-nums; }
.db-tip span { display: block; font-size: 0.75rem; color: var(--muted); }

.db-daily table { width: 100%; max-width: 420px; margin-top: 10px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.db-daily th, .db-daily td { padding: 4px 8px 4px 0; text-align: left; border-bottom: 1px solid var(--line); }
.db-daily th { font-weight: 600; color: var(--muted); }

/* Leaderboard */
.db-board { margin-top: 0; }
.db-board-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; }
.db-board h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; }
.db-board .jn-ghost { min-height: 40px; }
.db-private { margin-top: 10px; }
.db-tablewrap { margin-top: 16px; overflow-x: auto; min-width: 0; max-width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.db-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.db-table th, .db-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.db-table tr:last-child td { border-bottom: 0; }
.db-table th { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.db-table td:first-child { width: 3ch; color: var(--muted); }
.db-table .is-prize td:first-child { color: var(--gold); font-weight: 700; }
.db-num { text-align: right !important; white-space: nowrap; }
.db-user { font-family: var(--mono); font-size: 0.9rem; overflow-wrap: break-word; user-select: all; }
@media (max-width: 520px) {
  .db-table th, .db-table td { padding: 9px 8px; }
  .db-table td { font-size: 0.85rem; }
  .db-user { font-size: 0.82rem; }
  .db-table th { letter-spacing: 0.04em; }
}
.db-empty { color: var(--muted); text-align: center !important; padding: 28px !important; }

/* Widget / browser-source block */
.db-widget-row { display: flex; gap: 10px; margin-top: 14px; align-items: stretch; min-width: 0; width: 100%; }
.db-widget-url { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); font-family: var(--mono); font-size: 0.88rem; }
.db-widget-url:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.db-widget-opts { padding-left: 18px; display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.db-widget-opts code { font-family: var(--mono); background: var(--bg-raised); padding: 1px 6px; border-radius: 6px; }
@media (max-width: 520px) {
  .db-widget-row { flex-direction: column; }
}
.db-widget-label { font-family: var(--mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); align-self: center; min-width: 44px; }
.db-widget-help { margin-top: 10px; color: var(--muted); }
@media (max-width: 520px) {
  .db-widget-label { align-self: flex-start; }
}

/* Widget editor */
.db-widget-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; min-width: 0; }
.db-widget-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }
.db-widget-grid label.db-widget-check { flex-direction: row; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 0.9rem; color: var(--text); }
.db-widget-grid label.db-widget-check input { width: 16px; height: 16px; accent-color: var(--gold); }
.db-widget-grid input[type="number"],
.db-widget-grid select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font-family: inherit; font-size: 0.95rem; }
.db-widget-grid input[type="number"]:focus,
.db-widget-grid select:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.db-widget-range { display: flex; align-items: center; gap: 10px; }
.db-widget-range input[type="range"] { flex: 1; accent-color: var(--gold); }
.db-widget-range input[type="color"] { width: 44px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-raised); cursor: pointer; }
.db-widget-range output { font-family: var(--mono); font-size: 0.85rem; color: var(--text); min-width: 48px; text-align: right; }

/* Preview iframe */
.db-widget-editor { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; min-width: 0; width: 100%; }
.db-widget-editor .db-widget-grid { grid-column: 1; }
.db-widget-editor .db-widget-row,
.db-widget-editor > .jn-small,
.db-widget-editor > .db-widget-help { grid-column: 1 / -1; }
.db-widget-preview { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; gap: 8px; position: sticky; top: 16px; }
.db-widget-preview-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.db-widget-preview-hint { color: var(--muted); max-width: 60%; text-align: right; }
.db-widget-preview-stage {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; min-height: 320px;
  background-color: #0b0d13;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,0.06) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.06) 75%),
    linear-gradient(45deg, rgba(255,255,255,0.06) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.06) 75%);
  background-size: 18px 18px;
  background-position: 0 0, 9px 9px;
}
.db-widget-preview-stage iframe { width: 100%; height: 420px; border: 0; display: block; background: transparent; color-scheme: dark; }
@media (max-width: 820px) {
  .db-widget-editor { grid-template-columns: 1fr; }
  .db-widget-preview { grid-column: 1; grid-row: auto; position: static; }
  .db-widget-preview-hint { max-width: 100%; text-align: left; }
}

/* Branding editor */
.db-brand-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 18px; margin-top: 14px; min-width: 0; width: 100%; }
.db-brand-field { display: flex; flex-direction: column; gap: 6px; }
.db-brand-label { font-family: var(--mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.db-brand-field > input[type="text"],
.db-brand-field > input[type="url"] { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font-family: inherit; font-size: 0.95rem; }
.db-brand-field > input[type="text"]:focus,
.db-brand-field > input[type="url"]:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.db-brand-field .db-widget-range input[type="text"] { flex: 1; min-width: 0; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); font-family: var(--mono); font-size: 0.85rem; }
.db-brand-field .jn-small { color: var(--muted); }
.db-brand-upload { display: flex; gap: 14px; align-items: center; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; background: var(--bg); min-height: 72px; min-width: 0; }
.db-brand-upload-body { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.db-brand-upload-body p { margin: 0; color: var(--muted); font-size: 0.82rem; }
.db-brand-upload-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.db-brand-upload-pick { cursor: pointer; display: inline-block; }
.db-brand-upload img { max-width: 90px; max-height: 60px; object-fit: contain; background: #000; border-radius: 6px; padding: 4px; }
.db-brand-upload-bg img { max-width: 120px; max-height: 72px; object-fit: cover; }

/* Custom domains */
.db-domain-setup { display: flex; flex-direction: column; gap: 20px; margin-top: 14px; min-width: 0; width: 100%; }
.db-dns-box {
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.db-dns-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.db-dns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  gap: 10px;
  margin-top: 4px;
}
.db-dns-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 12px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.db-dns-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted);
}
.db-dns-val {
  font-family: var(--mono);
  font-size: 0.88rem;
  color: var(--text);
  word-break: break-all;
}
.db-dns-hint {
  color: var(--muted);
  margin-top: 4px;
}
.db-domain-form { display: flex; flex-direction: column; gap: 8px; }
.db-domain-form input[type="text"] {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.9rem;
}
.db-domain-form input[type="text"]:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.db-subhead {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.db-domain-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.db-domain-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  flex-wrap: wrap;
}
.db-domain-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.db-domain-link {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--gold);
  text-decoration: none;
  word-break: break-all;
}
.db-domain-link:hover { text-decoration: underline; }
.db-domain-badge {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  color: #b8f25c;
  background: rgba(184, 242, 92, 0.12);
  border: 1px solid rgba(184, 242, 92, 0.25);
  white-space: nowrap;
}

/* Identity / referral cards */
.db-identity { margin: 0; }
.db-identity-head { margin-bottom: 20px; }
.db-identity-head h2 { margin: 0 0 6px; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.db-identity-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; min-width: 0; }
.db-identity-item {
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.db-identity-item h3 {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.db-identity-value {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  word-break: break-all;
  flex: 1;
  min-height: 1.5em;
}
.db-identity-empty { color: var(--muted); font-weight: 400; }
.db-identity-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.db-identity-actions:empty { display: none; }

.db-identity h2 { margin: 0 0 6px; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.db-identity-link {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.db-identity-link h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
}
.db-identity-link .jn-small { margin: 0 0 10px; }

.db-ref-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.db-ref-badge {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  color: #b8f25c;
  background: rgba(184, 242, 92, 0.12);
  border: 1px solid rgba(184, 242, 92, 0.25);
  letter-spacing: 0.02em;
}

.db-gate-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.db-ref-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
  padding: 10px 18px;
  font-size: 0.92rem;
}

.db-ref-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.db-ref-url-row { margin-top: 14px; }
.db-ref-url-row input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.88rem;
}
.db-ref-url-row input:focus { outline: 2px solid var(--gold); outline-offset: 2px; }

.db-ref-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.db-ref-rank {
  text-decoration: none;
  background: rgba(242, 193, 78, 0.12);
  color: var(--gold, #f2c14e);
  border-color: rgba(242, 193, 78, 0.3);
  transition: opacity 0.15s, transform 0.15s;
}
.db-ref-rank.is-unranked {
  color: var(--muted);
  background: rgba(197, 201, 216, 0.08);
  border-color: var(--line);
}

.db-ref-edit-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.db-ref-edit-input-wrap {
  display: flex;
  align-items: center;
  flex: 1 1 220px;
  min-width: 0;
  max-width: 100%;
  background: rgba(14, 17, 26, 0.9);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 0.9rem;
}
.db-ref-edit-prefix {
  color: var(--muted);
  user-select: none;
}
.db-ref-code-input {
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--mono);
  font-size: 0.9rem;
  padding: 8px 4px;
  outline: none;
  min-width: 0;
  flex: 1;
}
.db-ref-edit-hint {
  width: 100%;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
}

/* Quests */
.db-quests { margin: 0; }
.db-quests-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 24px; }
.db-quests-head h2 { margin-top: 4px; font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; }
.db-quests-head .db-sub { margin-top: 4px; max-width: 46ch; }
.db-quests-score { display: flex; flex-wrap: wrap; gap: 8px; }
.db-quests-score div {
  flex: 1 1 88px;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(7, 8, 12, 0.4);
}
.db-quests-score span {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.db-quests-score b { display: block; margin-top: 2px; font-family: var(--mono); font-size: 1.3rem; color: var(--gold); }
.db-quests-progress { display: flex; align-items: center; gap: 12px; margin-top: 20px; font-size: 0.85rem; color: var(--muted); }
.db-quests-bar { flex: 1; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.db-quests-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--lime));
  transition: width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.db-quests-list { display: grid; gap: 6px; margin-top: 16px; }
.db-quests-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(7, 8, 12, 0.35);
}
.db-q-check {
  width: 20px;
  height: 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
}
.db-quests-list li.is-done .db-q-check {
  border-color: var(--lime);
  background: var(--lime) center / 12px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5l2.5 2.5L10 3.5' fill='none' stroke='%2307080c' stroke-width='2'/%3E%3C/svg%3E");
}
.db-quests-list li.is-done .db-q-title { color: var(--muted); }
.db-q-title { font-weight: 600; }
.db-q-title a { color: inherit; text-decoration: none; }
.db-q-title a:hover { color: var(--gold); }
.db-q-title small { margin-left: 8px; font-weight: 500; color: var(--muted); }
.db-q-pts { font-family: var(--mono); font-size: 0.85rem; font-weight: 700; color: var(--lime); white-space: nowrap; }
.db-quests-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.db-quests-actions .jn-ghost { display: inline-flex; align-items: center; min-height: 46px; text-decoration: none; }
.db-quests-actions .rf-button:disabled { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }
@media (max-width: 640px) {
  .db-panel { padding: 16px; gap: 20px; }
  .db-quests-score { width: 100%; }
  .db-quests-score div { flex: 1 1 calc(33% - 8px); }
  .db-tab { font-size: 0.85rem; padding: 10px 12px; min-height: 40px; }
  .db-big { font-size: 1.8rem; }
  .db-widget-row { flex-direction: column; }
  .db-widget-label { align-self: flex-start; }
  .db-brand-upload { flex-direction: column; align-items: flex-start; }
  .db-widget-preview-stage { min-height: 240px; }
  .db-widget-preview-stage iframe { height: 280px; }
  .db-widget-preview-head { flex-wrap: wrap; }
  .db-head { margin-bottom: 16px; }
  .db-tabs { margin-bottom: 20px; }
}
.db-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Past races */
.db-past { margin-top: 10px; }
.db-past summary { cursor: pointer; font-weight: 600; }
.db-past .db-tablewrap { margin-top: 12px; }
.db-past-csv { min-height: 40px; margin-top: 10px; }
