/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/.pnpm/next@14.2.12_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[2].use[1]!./node_modules/.pnpm/next@14.2.12_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js??ruleSet[1].rules[13].oneOf[2].use[2]!./node_modules/.pnpm/next@14.2.12_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/font/google/target.css?{"path":"src/app/layout.tsx","import":"Space_Grotesk","arguments":[{"subsets":["latin"],"variable":"--font-space-grotesk"}],"variableName":"spaceGrotesk"} ***!
  \*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* vietnamese */
@font-face {
  font-family: '__Space_Grotesk_dd5b2f';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/_next/static/media/e1aab0933260df4d-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: '__Space_Grotesk_dd5b2f';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/_next/static/media/b7387a63dd068245-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: '__Space_Grotesk_dd5b2f';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/_next/static/media/36966cca54120369-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}@font-face {font-family: '__Space_Grotesk_Fallback_dd5b2f';src: local("Arial");ascent-override: 89.71%;descent-override: 26.62%;line-gap-override: 0.00%;size-adjust: 109.69%
}.__className_dd5b2f {font-family: '__Space_Grotesk_dd5b2f', '__Space_Grotesk_Fallback_dd5b2f';font-style: normal
}.__variable_dd5b2f {--font-space-grotesk: '__Space_Grotesk_dd5b2f', '__Space_Grotesk_Fallback_dd5b2f'
}

/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/.pnpm/next@14.2.12_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[2]!./node_modules/.pnpm/next@14.2.12_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[3]!./src/app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
:root {
  color-scheme: light;
  font-family: var(--font-space-grotesk), 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #f5f3ef;
  color: #0d0d0f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #fdf8ee, #f1efe8 45%, #e8e4dd 100%);
  color: #0d0d0f;
  font-size: 15px;
  line-height: 1.5;
}
.history-block {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.history-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.history-list li {
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.9);
}

.history-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.history-claim {
  flex: 1 1;
  font-weight: 600;
}

.history-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.25rem;
  color: rgba(15, 15, 17, 0.65);
  font-size: 0.9rem;
}

.history-time {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.history-clear {
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: transparent;
  border-radius: 0.75rem;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  font-weight: 600;
}

.history-clear:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


.results-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.results-header-copy {
  flex: 1 1;
}

.page {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  grid-gap: 1.25rem;
  gap: 1.25rem;
  padding: 2.5rem clamp(1.25rem, 4vw, 3.5rem);
  align-items: start;
}

.panel {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.form-panel h1 {
  margin-top: 0.1rem;
  font-size: clamp(1.9rem, 2.6vw, 2.6rem);
}

.lede {
  max-width: 520px;
  color: rgba(15, 15, 17, 0.8);
}

.info-note {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: rgba(15, 15, 17, 0.7);
}

.claim-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.claim-form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-weight: 500;
}

.claim-form textarea,
.claim-form input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(15, 15, 17, 0.15);
  padding: 0.75rem 0.9rem;
  background: #fff;
  font-size: 1rem;
}

.claim-form label.inline {
  flex-direction: row;
  align-items: center;
}

.claim-form label.inline input {
  max-width: 120px;
  margin-left: 1rem;
}

.claim-form textarea {
  min-height: 110px;
  resize: vertical;
}

.claim-form button {
  margin-top: 0.5rem;
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.1rem;
  background: #141414;
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.claim-form button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.claim-form button:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.15);
}

.eyebrow {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: rgba(15, 15, 17, 0.6);
}

.status {
  margin-top: 1rem;
  font-weight: 600;
}

.status-error {
  color: #b3261e;
}

.results-panel header {
  margin-bottom: 1rem;
}

.results-panel h2 {
  font-size: clamp(1.75rem, 2.4vw, 2.6rem);
  margin: 0.4rem 0;
}

.awaiting-heading {
  color: #1f2933;
  opacity: 0.92;
}

.theme-dark .awaiting-heading {
  color: #f2f4f8;
  opacity: 1;
}

.summary {
  margin: 0;
  color: rgba(15, 15, 17, 0.8);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.metrics-grid article {
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.04);
}

.metrics-grid span {
  display: block;
  font-size: 0.9rem;
  color: rgba(15, 15, 17, 0.6);
}

.metrics-grid strong {
  font-size: 1.5rem;
}

.muted {
  color: rgba(15, 15, 17, 0.6);
}

.loading-chat {
  margin-top: 1rem;
  padding: 1.25rem;
  border-radius: 1.5rem;
  background: rgba(20, 20, 25, 0.04);
  border: 1px solid rgba(20, 20, 25, 0.1);
  position: relative;
  overflow: hidden;
}

.loading-progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(20, 20, 25, 0.08);
  overflow: hidden;
}

.loading-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0f6edb, #48b4ff);
  width: 0;
  transition: width 0.6s ease;
}

.loading-feed {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.loading-feed-item {
  padding: 0.9rem 1rem;
  border-radius: 1.1rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.loading-feed-item.active {
  border-color: #0f6edb;
  animation: loadingPulse 1.2s infinite alternate;
}

.loading-feed-item.done {
  opacity: 0.6;
  animation: none;
}

.loading-feed-item.pending {
  opacity: 0.5;
}

.loading-feed-item.error {
  border-color: #c43b1d;
}

.loading-feed-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(15, 15, 17, 0.65);
}

.loading-feed-label {
  margin: 0.5rem 0 0;
  font-weight: 600;
  font-size: 1rem;
}

.loading-feed-status {
  font-weight: 600;
}

.loading-feed-step {
  font-weight: 500;
}

@keyframes loadingPulse {
  from {
    transform: translateY(0);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  }
  to {
    transform: translateY(-3px);
    box-shadow: 0 20px 45px rgba(15, 110, 219, 0.25);
  }
}

.details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.detail-block {
  padding: 1rem 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.detail-block-header {
  margin-bottom: 0.75rem;
}

.citation-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.citation-list li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.citation-entry {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.citation-host {
  color: rgba(15, 15, 17, 0.6);
  font-size: 0.9rem;
}

.citation-list a {
  color: #0f6edb;
  word-break: break-word;
}

.miner-votes {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.miner-vote {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.25rem;
  background: #fff;
  padding: 1rem 1.25rem;
}

.miner-vote-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.miner-heading {
  margin: 0;
  font-weight: 600;
}

.miner-id {
  font-size: 0.85rem;
  color: rgba(15, 15, 17, 0.6);
}

.miner-vote-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.verdict-pill {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

.confidence-pill {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.miner-vote-meta button {
  border: none;
  background: transparent;
  font-weight: 600;
  cursor: pointer;
  color: #0f6edb;
}

.miner-vote-body {
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.miner-citations {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-gap: 0.4rem;
  gap: 0.4rem;
}

.miner-citations li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.validation-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  background: linear-gradient(120deg, rgba(15, 110, 219, 0.08), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.score-pill {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  font-weight: 600;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.theme-toggle {
  margin-top: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: #fff;
  color: #0d0d0f;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
  background: #f3f1eb;
  border-color: rgba(15, 23, 42, 0.3);
}

.theme-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.15);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.icon-moon {
  background-image: url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 14.5A9.5 9.5 0 0 1 10.5 4a9.5 9.5 0 1 0 10.5 10.5Z' stroke='%230d1117' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.icon-sun {
  background-image: url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='4.5' fill='%23ffd54f' stroke='%23ffd54f' stroke-width='1.5'/%3E%3Cpath d='M12 2.5v2.5M12 19v2.5M4.5 4.5l1.8 1.8M17.7 17.7l1.8 1.8M2.5 12h2.5M19 12h2.5M4.5 19.5l1.8-1.8M17.7 6.3l1.8-1.8' stroke='%23ffd54f' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-color: #1f2533;
  border-color: rgba(255, 255, 255, 0.35);
}

.theme-dark .theme-icon {
  background: linear-gradient(135deg, #2a3142, #1c2332);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.partial-button {
  margin-top: 0.6rem;
  align-self: flex-start;
  border: none;
  border-radius: 0.85rem;
  padding: 0.65rem 0.95rem;
  background: linear-gradient(90deg, #0f6edb, #48b4ff);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 110, 219, 0.25);
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.skeleton-card {
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.skeleton-line {
  height: 12px;
  margin-bottom: 0.6rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.16));
  animation: pulse 1.4s ease-in-out infinite;
}

.skeleton-line.wide {
  width: 85%;
}

.skeleton-line.short {
  width: 45%;
}

.theme-dark body {
  background: radial-gradient(circle at top, #0f1116, #0b0d12 50%, #07080d 100%);
  color: #e9ecf3;
}

.theme-dark {
  color-scheme: dark;
}

.theme-dark .panel {
  background: rgba(18, 22, 30, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
}

.theme-dark .lede,
.theme-dark .info-note,
.theme-dark .miner-id,
.theme-dark .muted,
.theme-dark label,
.theme-dark .eyebrow {
  color: rgba(233, 236, 243, 0.76);
}

.theme-dark h1,
.theme-dark h2,
.theme-dark h3,
.theme-dark .summary,
.theme-dark .results-panel header,
.theme-dark .metrics-grid span,
.theme-dark .metrics-grid strong,
.theme-dark .loading-feed-label {
  color: #f2f4f8;
}

.theme-dark .loading-feed-item,
.theme-dark .miner-vote,
.theme-dark .loading-chat {
  background: rgba(20, 24, 32, 0.95);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  color: #e9ecf3;
}

.theme-dark .loading-feed-item.done,
.theme-dark .loading-feed-item.pending {
  opacity: 0.85;
}

.theme-dark .loading-feed-meta,
.theme-dark .loading-feed-label,
.theme-dark .loading-feed-status,
.theme-dark .loading-feed-step {
  color: #e9ecf3;
}

.theme-dark .validation-row {
  background: linear-gradient(135deg, rgba(47, 64, 92, 0.85), rgba(24, 28, 36, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.theme-dark .history-list li {
  background: rgba(18, 22, 30, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
}

.theme-dark .history-claim,
.theme-dark .history-meta,
.theme-dark .history-time {
  color: #e9ecf3;
}

.theme-dark .claim-form textarea,
.theme-dark .claim-form input {
  background: #0f141d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e9ecf3;
}

.theme-dark .claim-form textarea::placeholder,
.theme-dark .claim-form input::placeholder {
  color: rgba(233, 236, 243, 0.6);
}

.theme-dark .claim-form button {
  background: linear-gradient(90deg, #1f2a40, #3b4f7a);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

.theme-dark .loading-feed-item.done,
.theme-dark .loading-feed-item.pending {
  opacity: 0.7;
}

.theme-dark .loading-progress {
  background: rgba(255, 255, 255, 0.08);
}

.theme-dark .citation-list a,
.theme-dark .miner-citations a,
.theme-dark .miner-vote-meta button {
  color: #77b6ff;
}

.theme-dark .citation-host {
  color: rgba(233, 236, 243, 0.72);
}

.theme-dark .theme-toggle {
  background: #1a1f2a;
  color: #e9ecf3;
  border-color: rgba(255, 255, 255, 0.12);
}

.theme-dark .score-pill,
.theme-dark .confidence-pill {
  background: rgba(255, 255, 255, 0.08);
  color: #e9ecf3;
}

@keyframes pulse {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}

