 body {
      margin: 0;
      font-family: 'Inter', sans-serif;
      background-color: var(--wu-bg);
      color: var(--wu-text);
    }

    header.dashboard-header {
      background-color: var(--wu-text);
      color: var(--wu-accent-contrast);
      padding: 20px;
      text-align: center;
    }

    .container {
      max-width: 95vw;
      margin: 30px auto;
      padding: 20px;
      background: var(--wu-surface-1);
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .section {
      margin-bottom: 30px;
    }

    h2 {
      margin-bottom: 10px;
      color: var(--wu-text-subtle);
    }

    .profile-box {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      background: var(--wu-surface-inset);
      padding: 15px;
      border-radius: 8px;
    }

    .profile-box div {
      margin: 5px 0;
    }

    .input-group {
      display: flex;
      gap: 10px;
      margin-top: 15px;
    }

    input[type="url"] {
      flex: 1;
      padding: 12px;
      border-radius: 6px;
      border: 1px solid var(--wu-border);
      font-size: 16px;
    }

    button {
      background-color: var(--wu-accent);
      color: var(--wu-accent-contrast);
      padding: 12px 20px;
      border: none;
      border-radius: 6px;
      font-size: 16px;
      cursor: pointer;
      transition: background-color 0.2s ease-in-out;
    }

    button:hover {
      background-color: #0057ff;
    }

    .history-list {
      list-style: none;
      padding-left: 0;
    }

    .history-list li {
      padding: 10px;
      border-bottom: 1px solid var(--wu-border);
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .badge {
      background: var(--wu-text-muted);
      color: white;
      font-size: 12px;
      padding: 3px 8px;
      border-radius: 6px;
    }

    .upgrade-box {
      background: linear-gradient(to right, #0057ff, #00c2ff);
      color: white;
      padding: 20px;
      border-radius: 12px;
      text-align: center;
    }

    footer {
      margin-top: 40px;
      text-align: center;
      color: var(--wu-text-subtle);
      font-size: 14px;
    }

    @media screen and (max-width: 600px) {
      .input-group {
        flex-direction: column;
      }
      button {
        width: 100%;
      }
    }
    
    
    .dual-history {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.history-column {
  background: var(--wu-surface-2);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.04);
}

.history-column h2 {
  margin-top: 0;
}

.history-list,
.citation-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.history-list li,
.citation-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--wu-border);
}

.badge {
  background: var(--wu-surface-inset);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.8em;
  color: var(--wu-text);
}


.citation-item {
  position: relative;
  padding: 10px 0;
  border-bottom: 1px solid var(--wu-border);
  cursor: pointer;
}

.citation-excerpt {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.citation-modal {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10;
  background-color: var(--wu-surface-1);
  border: 1px solid var(--wu-border);
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 100%;
  display: none;
  animation: fadeIn 0.2s ease-in-out;
}

.citation-item:hover .citation-modal {
  display: block;
}

.citation-modal p {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--wu-text);
}

.copy-button {
  background-color: var(--wu-accent);
  color: var(--wu-accent-contrast);
  padding: 6px 12px;
  font-size: 14px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.copy-button:hover {
  background-color: #0057ff;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.free-only {
  display: none;
}

.support-slot {
  background-color: var(--wu-surface-inset);
  border: 1px solid var(--wu-border);
  border-radius: 10px;
  padding: 15px;
  margin: 25px 0;
  text-align: center;
  position: relative;
  font-size: 14px;
  color: var(--wu-text-subtle);
}

.funding-message .fallback {
  font-style: italic;
  color: var(--wu-text-subtle);
  font-size: 13px;
  margin: 0;
}

/* Make it a bit more invisible to ad blockers */
[data-obscure] {
  visibility: visible !important;
  height: auto !important;
}


/*pro dashboard features*/


.card {
  background: var(--wu-surface-1);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.feature-card.locked {
  position: relative;
  opacity: 0.5;
  pointer-events: none; /* prevents clicking */
}

.feature-card.locked::after {
  content: "🔒 Pro Feature";
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
}

.btn-upgrade {
  background: var(--wu-accent);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-disabled {
  background: var(--wu-text-muted);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
}


.hidden {
  display: block;
  min-width: 220px; /* Prevent cards from getting too narrow */
  box-sizing: border-box;
  max-height: 40vh;
}

.dashboard {
  display: flex;
  flex-wrap: wrap; /* Allows wrapping to next line if space is small */
  gap: 16px; /* Space between cards */
  align-items: flex-start; /* Align cards at the top */
}

.dashboard .card {
  flex: 1 1 calc(25% - 16px); /* 4 cards per row, adjusts with screen size */
  min-width: 220px; /* Prevent cards from getting too narrow */
  box-sizing: border-box;
  max-height: 40vh;
}

.momentum-card .momentum-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0.4rem 0 0.6rem;
}

.momentum-card #momentumStreak {
  font-size: 2rem;
  font-weight: 700;
}

.momentum-card .momentum-unit {
  font-size: 0.95rem;
  color: var(--wu-text-muted);
}

.momentum-card .momentum-subtext {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.momentum-card .momentum-all-time {
  display: block;
  color: var(--wu-text-muted);
  margin-top: 0.2rem;
}

.momentum-card .momentum-microcopy {
  font-size: 0.9rem;
  color: var(--wu-accent);
  margin-bottom: 0.4rem;
}

.momentum-card .momentum-milestone {
  font-size: 0.85rem;
  color: var(--wu-success);
  margin: 0;
}

.report-card .report-subtext {
  color: var(--wu-text-muted);
  margin-bottom: 0.6rem;
}

.report-card .status-text {
  font-size: 0.85rem;
  color: var(--wu-text-muted);
  margin-top: 0.5rem;
}


/* Optional: Make Pro Teaser card stand out a bit */
.pro-teaser {
  background: var(--wu-surface-2);
}
.dashboard-card {
  background: var(--wu-surface-1);
  border-radius: 8px;
  padding: 1em;
  margin-bottom: 1.5em;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.locked-msg {
  font-size: 0.9em;
  color: var(--wu-text-muted);
  margin-top: 0.5em;
}

.locked {
  opacity: 0.5;
  pointer-events: none;
}

#history-search {
  padding: 0.5em;
  margin-bottom: 1em;
  width: 100%;
  border: 1px solid var(--wu-border);
  border-radius: 4px;
}

#bookmark-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

#bookmark-list li {
  background: var(--wu-surface-inset);
  color: var(--wu-text);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background 0.2s ease;
}

#bookmark-list li:hover {
  background: var(--wu-surface-2);
}

#bookmark-list .bookmark-link {
  cursor: pointer;
  color: var(--wu-accent);
  text-decoration: none;
  font-weight: 500;
}

#bookmark-list .bookmark-link:hover {
  text-decoration: underline;
}

#bookmark-list .remove-bookmark {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

#bookmark-list .remove-bookmark:hover {
  color: #ef4444;
}

#bookmark-status {
  font-size: 0.9rem;
  color: var(--wu-text-muted);
  margin-top: 5px;
}

/*=================================================================*/
.proHistories {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

/* Make both cards equal height */
.dashboard-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-height: 400px; /* set desired uniform height */
  overflow: hidden; /* hide overflow outside card */
}

/* Lists inside scroll independently */
#history-list,
#bookmark-list {
  flex: 1;
  overflow-y: auto;
  margin-top: 0.5rem;
  padding-right: 6px;
}

/* Optional: match scrollbar style */
#history-list::-webkit-scrollbar,
#bookmark-list::-webkit-scrollbar {
  width: 6px;
}

#history-list::-webkit-scrollbar-thumb,
#bookmark-list::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--wu-text) 20%, transparent);
  border-radius: 4px;
}

#history-list::-webkit-scrollbar-thumb:hover,
#bookmark-list::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--wu-text) 35%, transparent);
}

/*==========================pro list syling=================*/


/* Each history item */
#history-list li {
  background: var(--wu-surface-inset);
  border: 1px solid var(--wu-border);
  padding: 0.6rem 0.8rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--wu-text);
  display: flex;
  justify-content: space-between; /* if you later add buttons/icons */
  align-items: left;
  transition: background 0.2s ease, transform 0.15s ease;
}

/* Hover effect */
#history-list li:hover {
  background: var(--wu-surface-2);
  transform: translateY(-1px);
}





/* ===== Developer metrics dashboard ===== */
.metrics-legend {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin: 10px 0 18px;
  color: var(--wu-text-muted);
  font-size: 0.92rem;
}

.metrics-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.legend-good { background: #10b981; }
.legend-fair { background: #00c2ff; }
.legend-bad { background: #ef4444; }

.metrics-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.metric-card {
  border-radius: 12px;
  border: 1px solid var(--wu-border);
  background: var(--wu-surface-2);
  padding: 12px;
}

.metric-card header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: start;
}

.metric-card h3 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--wu-text);
}

.metric-value {
  margin: 8px 0 4px;
  font-size: 1.55rem;
  line-height: 1.1;
  font-weight: 700;
}

.metric-value small {
  font-size: 0.78rem;
  font-weight: 500;
}

.metric-note {
  margin: 0;
  font-size: 0.88rem;
}

.metric-details {
  margin: 6px 0 0;
  color: var(--wu-text-muted);
  font-size: 0.8rem;
}

.metric-chip,
.table-chip {
  border-radius: 999px;
  font-size: 0.72rem;
  padding: 3px 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.metric-good {
  border-color: color-mix(in srgb, #10b981 50%, var(--wu-border));
  color: #0f766e;
  background: color-mix(in srgb, #10b981 13%, var(--wu-surface-2));
}

.metric-fair {
  border-color: color-mix(in srgb, #00c2ff 50%, var(--wu-border));
  color: #075985;
  background: color-mix(in srgb, #00c2ff 15%, var(--wu-surface-2));
}

.metric-bad {
  border-color: color-mix(in srgb, #ef4444 52%, var(--wu-border));
  color: #991b1b;
  background: color-mix(in srgb, #ef4444 12%, var(--wu-surface-2));
}

.metrics-table-wrap {
  border: 1px solid var(--wu-border);
  border-radius: 10px;
  overflow: auto;
}

.metrics-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 700px;
}

.metrics-table th,
.metrics-table td {
  border-bottom: 1px solid var(--wu-border);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.metrics-table th {
  background: var(--wu-surface-inset);
  color: var(--wu-text-subtle);
}

.metrics-raw {
  margin-top: 12px;
}

.metrics-raw summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--wu-text-subtle);
}

#metrics-output {
  white-space: pre-wrap;
  max-height: 40vh;
  overflow: auto;
  margin-top: 10px;
  padding: 12px;
  border-radius: 8px;
  background: #0b1220;
  color: #d1d5db;
}
