:root {
  color-scheme: dark;
  --bg: #02040a;
  --surface: #070b13;
  --surface-2: #0b111c;
  --surface-3: #101927;
  --line: #18303f;
  --line-strong: #24566c;
  --text: #f4f7fb;
  --muted: #94a7b8;
  --muted-2: #657b8e;
  --green: #20e3c2;
  --green-soft: #082923;
  --cyan: #20dff2;
  --magenta: #c744ff;
  --violet: #795cff;
  --amber: #f4c85a;
  --red: #ff637d;
  --blue: #4ca7ff;
  --max-width: 1480px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

button,
input {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  color: #8cf6ff;
}

[hidden] {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  min-height: 68px;
  padding: 10px max(24px, calc((100vw - var(--max-width)) / 2));
  border-bottom: 1px solid rgba(32, 223, 242, 0.28);
  background: rgba(2, 4, 10, 0.94);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
}

.topbar::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan) 28%, var(--violet) 68%, var(--magenta), transparent);
  content: "";
  opacity: 0.7;
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
  color: var(--text);
}

.brand:hover {
  color: var(--text);
}

.brand-logo {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(32, 223, 242, 0.7);
  border-radius: 50%;
  background: #000;
  box-shadow:
    0 0 0 2px rgba(199, 68, 255, 0.11),
    0 0 22px rgba(32, 223, 242, 0.17);
  object-fit: cover;
}

.brand strong,
.brand small,
.user-menu strong,
.user-menu small {
  display: block;
}

.brand strong {
  font-size: 15px;
  line-height: 1.2;
}

.brand small,
.user-menu small {
  color: var(--muted);
  font-size: 12px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-self: center;
}

.primary-nav a {
  padding: 8px 10px;
  border-radius: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.primary-nav a:hover {
  background: #0b1721;
  color: var(--text);
}

.primary-nav a[aria-current="page"] {
  background: #0b1721;
  color: var(--cyan);
  box-shadow: inset 0 -2px 0 var(--cyan);
}

.account-area {
  justify-self: end;
}

.guest-actions,
.user-menu,
.login-gate-actions,
.result-links,
.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-menu img {
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface-3);
  object-fit: cover;
}

.user-menu > span {
  min-width: 90px;
}

.user-menu strong {
  max-width: 160px;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.button,
.icon-command {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  text-align: center;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.button:disabled,
.icon-command:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.button-primary {
  border-color: #31dceb;
  background: linear-gradient(115deg, var(--green), var(--cyan) 52%, #6f7dff);
  color: #02070b;
  box-shadow: 0 7px 24px rgba(32, 223, 242, 0.12);
}

.button-primary:hover {
  border-color: #93f7ff;
  background: linear-gradient(115deg, #43ecd1, #5aeafa 52%, #8c79ff);
  color: #02070b;
}

.button-quiet {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--text);
}

.button-quiet:hover {
  border-color: var(--line-strong);
  background: var(--surface-3);
  color: var(--text);
}

.icon-command {
  width: 34px;
  min-height: 34px;
  padding: 0;
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-size: 20px;
}

main {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 28px auto 80px;
}

.market-workspace,
.analyzer-workspace,
.trend-list-workspace,
.history-workspace {
  scroll-margin-top: 84px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.16);
}

.market-workspace {
  overflow: hidden;
  border-top-color: rgba(32, 223, 242, 0.72);
}

.analyzer-workspace {
  border-top-color: rgba(199, 68, 255, 0.62);
}

.history-workspace {
  border-top-color: rgba(121, 92, 255, 0.52);
}

.trend-list-workspace {
  border-top-color: rgba(32, 227, 194, 0.62);
}

.analyzer-workspace,
.trend-list-workspace,
.history-workspace {
  padding: 24px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px 18px;
}

.analyzer-workspace > .section-heading,
.trend-list-workspace > .section-heading,
.history-workspace > .section-heading {
  padding: 0 0 18px;
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--green);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2 {
  margin-bottom: 0;
  font-size: 24px;
  line-height: 1.2;
}

h3 {
  margin-bottom: 2px;
  font-size: 20px;
  line-height: 1.25;
}

h4 {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.freshness,
.form-meta,
.timeline-caption,
.result-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(244, 200, 90, 0.09);
}

.status-dot.fresh {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(32, 227, 194, 0.09), 0 0 14px rgba(32, 227, 194, 0.34);
}

.status-dot.stale {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(255, 99, 125, 0.09);
}

.season-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(600px, 1.25fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.season-primary {
  padding: 26px 24px;
  border-right: 1px solid var(--line);
}

.season-identity {
  display: flex;
  align-items: center;
  gap: 18px;
}

.season-score {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 78px;
  height: 78px;
  border: 1px solid rgba(32, 223, 242, 0.5);
  border-radius: 8px;
  background: #06161c;
  color: var(--cyan);
  box-shadow: inset 0 0 24px rgba(32, 223, 242, 0.06);
  font-size: 34px;
  font-weight: 800;
}

.season-name,
.season-direction {
  display: block;
}

.season-name {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.season-direction {
  margin-top: 5px;
  font-size: 20px;
  line-height: 1.2;
}

.season-summary {
  max-width: 540px;
  margin: 20px 0 0;
  color: var(--muted);
}

.season-metrics,
.decision-strip dl,
.data-list {
  margin: 0;
}

.season-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.season-metrics > div {
  min-width: 0;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.season-metrics > div:nth-child(3n) {
  border-right: 0;
}

.season-metrics > div:nth-last-child(-n + 3) {
  border-bottom: 0;
}

dt {
  color: var(--muted);
  font-size: 12px;
}

dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-weight: 750;
}

.timeline-wrap {
  position: relative;
  padding: 18px 24px 22px;
}

.timeline-caption {
  justify-content: space-between;
}

#season-chart {
  display: block;
  width: 100%;
  height: 150px;
  margin-top: 12px;
}

.chart-empty {
  position: absolute;
  inset: 58px 24px 22px;
  display: grid;
  place-items: center;
  color: var(--muted-2);
  font-size: 13px;
  padding: 0 16px;
  overflow-wrap: anywhere;
  text-align: center;
}

.analyzer-heading {
  align-items: end;
}

.section-note {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mint-form {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #050910;
}

.mint-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.mint-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  gap: 10px;
}

.mint-row input {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  outline: none;
  background: var(--surface-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
}

.mint-row input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(32, 223, 242, 0.1);
}

.mint-row input[aria-invalid="true"] {
  border-color: var(--red);
}

.analyze-button {
  height: 46px;
}

.form-meta {
  justify-content: space-between;
  margin-top: 10px;
}

.account-isolation {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 12px;
}

.login-gate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid #44335f;
  border-radius: 7px;
  background: #100d1b;
}

.login-gate p {
  margin: 3px 0 0;
  color: #b5a9cb;
}

.analysis-empty,
.analysis-loading {
  display: grid;
  min-height: 260px;
  place-items: center;
  align-content: center;
  margin-top: 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 7px;
  color: var(--muted);
  text-align: center;
}

.analysis-empty p,
.analysis-loading p {
  max-width: 540px;
  margin: 5px 20px 0;
}

.analysis-empty strong {
  color: var(--text);
}

.empty-signal {
  display: flex;
  align-items: end;
  gap: 5px;
  height: 44px;
  margin-bottom: 14px;
}

.empty-signal span {
  display: block;
  width: 9px;
  background: var(--line-strong);
}

.empty-signal span:nth-child(1) {
  height: 14px;
}

.empty-signal span:nth-child(2) {
  height: 31px;
}

.empty-signal span:nth-child(3) {
  height: 23px;
}

.empty-signal span:nth-child(4) {
  height: 39px;
  background: var(--magenta);
}

.analysis-loading {
  grid-template-columns: minmax(150px, 240px);
  gap: 10px;
}

.loading-line {
  width: 100%;
  height: 12px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2));
  background-size: 200% 100%;
  animation: loading 1.4s linear infinite;
}

.loading-line:nth-child(2) {
  width: 78%;
}

.loading-line:nth-child(3) {
  width: 92%;
}

@keyframes loading {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

.analysis-result {
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #050910;
}

.result-header,
.result-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
}

.result-header {
  border-bottom: 1px solid var(--line);
}

.token-title {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.token-title img,
.token-fallback {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface-2);
  object-fit: cover;
}

.token-fallback {
  display: grid;
  place-items: center;
  color: var(--cyan);
  font-size: 20px;
  font-weight: 800;
}

.copy-mint {
  display: block;
  max-width: min(68vw, 560px);
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-links a {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
}

.decision-strip {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

.score-block {
  padding: 20px;
  border-right: 1px solid var(--line);
}

.score-block span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.score-block strong {
  display: block;
  margin: 1px 0 8px;
  color: var(--cyan);
  font-size: 36px;
}

progress {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border: 0;
  border-radius: 2px;
  background: var(--surface-3);
}

progress::-webkit-progress-bar {
  background: var(--surface-3);
}

progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--violet));
}

progress::-moz-progress-bar {
  background: var(--cyan);
}

.decision-strip dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.decision-strip dl > div {
  min-width: 0;
  padding: 20px;
  border-right: 1px solid var(--line);
}

.decision-strip dl > div:last-child {
  border-right: 0;
}

.result-summary {
  margin: 0;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  color: #dbe5ee;
}

.result-columns,
.detail-columns {
  display: grid;
  border-bottom: 1px solid var(--line);
}

.result-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-columns {
  grid-template-columns: 0.9fr 1.05fr 1.15fr;
}

.result-columns > section,
.detail-columns > section {
  min-width: 0;
  padding: 20px;
  border-right: 1px solid var(--line);
}

.result-columns > section:last-child,
.detail-columns > section:last-child {
  border-right: 0;
}

.data-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(24, 48, 63, 0.72);
}

.data-list > div:last-child {
  border-bottom: 0;
}

.data-list dd {
  text-align: right;
}

.breakdown-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: center;
  gap: 4px 10px;
  margin-bottom: 11px;
}

.breakdown-row span {
  color: var(--muted);
  font-size: 12px;
}

.breakdown-row strong {
  font-size: 12px;
  text-align: right;
}

.breakdown-row progress {
  grid-column: 1 / -1;
}

.reason-list,
.warning-list {
  margin: 0;
  padding: 0 0 0 18px;
  color: var(--muted);
}

.reason-list li,
.warning-list li {
  margin-bottom: 8px;
}

.warning-list li {
  color: #e8acbb;
}

.warning-list li.no-warning {
  color: var(--green);
}

.quality-line {
  margin-bottom: 12px;
  padding: 10px;
  border-left: 3px solid var(--cyan);
  background: #07131c;
  color: var(--muted);
  font-size: 12px;
}

.result-footer {
  color: var(--muted-2);
}

.history-login {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 7px;
  color: var(--muted);
  text-align: center;
}

.history-table-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.trend-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.trend-table {
  min-width: 1540px;
}

.trend-table th:first-child,
.trend-table td:first-child:not([colspan]) {
  position: sticky;
  z-index: 1;
  left: 0;
  min-width: 190px;
  background: var(--surface);
  box-shadow: 1px 0 0 var(--line);
}

.trend-table th:first-child {
  z-index: 2;
  background: #050910;
}

.trend-table th:last-child,
.trend-table td:last-child:not([colspan]) {
  position: sticky;
  z-index: 1;
  right: 0;
  min-width: 104px;
  background: var(--surface);
  box-shadow: -1px 0 0 var(--line);
}

.trend-table th:last-child {
  z-index: 2;
  background: #050910;
}

.trend-table td:not(:first-child) {
  white-space: nowrap;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

td {
  font-size: 13px;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.history-token strong,
.history-token small {
  display: block;
}

.history-token small {
  max-width: 240px;
  overflow: hidden;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-score {
  color: var(--cyan);
  font-weight: 800;
}

.trend-flow,
.trend-token {
  display: grid;
  gap: 2px;
}

.trend-flow small,
.trend-token small {
  color: var(--muted);
  font-size: 11px;
}

.trend-token small {
  max-width: 170px;
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-score {
  color: var(--cyan);
  font-size: 16px;
  font-weight: 800;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #0a1820;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
  text-transform: capitalize;
  white-space: nowrap;
}

.status-pill.risk-high,
.status-pill.negative {
  border-color: #653244;
  background: #210e16;
  color: var(--red);
}

.status-pill.risk-medium,
.status-pill.caution {
  border-color: #624f27;
  background: #1d1709;
  color: var(--amber);
}

.status-pill.risk-low,
.status-pill.positive {
  border-color: #1b5a4e;
  background: #06221d;
  color: var(--green);
}

.history-empty {
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.pagination {
  justify-content: flex-end;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: #050910;
}

.pagination span {
  min-width: 110px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.dyor-statement {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid #594b26;
  border-left: 3px solid var(--amber);
  border-radius: 6px;
  background: #0e0c07;
  color: var(--muted);
  font-size: 12px;
}

.dyor-statement strong {
  color: var(--amber);
  font-size: 13px;
}

.app-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 24px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 12px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
}

.footer-brand img {
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  object-fit: cover;
}

.toast {
  position: fixed;
  z-index: 50;
  right: 22px;
  bottom: 22px;
  max-width: min(420px, calc(100vw - 44px));
  padding: 12px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #0c1520;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  color: var(--text);
}

.toast.error {
  border-color: #7b354b;
  background: #241018;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1080px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .primary-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    justify-self: stretch;
    overflow-x: auto;
    padding-top: 2px;
    scrollbar-width: thin;
  }

  .primary-nav a {
    flex: 0 0 auto;
  }

  .season-layout {
    grid-template-columns: 1fr;
  }

  .season-primary {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .detail-columns {
    grid-template-columns: 1fr 1fr;
  }

  .detail-columns > section:nth-child(2) {
    border-right: 0;
  }

  .detail-columns > section:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .topbar {
    position: static;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 16px;
  }

  .account-area {
    width: 100%;
    justify-self: stretch;
  }

  .guest-actions,
  .user-menu {
    justify-content: space-between;
  }

  .guest-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guest-actions .button {
    width: 100%;
    min-width: 0;
    padding: 0 8px;
    font-size: 13px;
  }

  .user-menu > span {
    flex: 1;
  }

  main {
    width: min(calc(100% - 24px), var(--max-width));
    margin-top: 14px;
  }

  .section-heading,
  .analyzer-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 18px 16px 14px;
  }

  .analyzer-workspace,
  .trend-list-workspace,
  .history-workspace {
    padding: 16px;
  }

  .analyzer-workspace > .section-heading,
  .trend-list-workspace > .section-heading,
  .history-workspace > .section-heading {
    padding: 0 0 14px;
  }

  .section-note {
    text-align: left;
  }

  .section-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .freshness {
    width: 100%;
  }

  .freshness .icon-command {
    margin-left: auto;
  }

  .season-primary {
    padding: 20px 16px;
  }

  .season-score {
    width: 66px;
    height: 66px;
    font-size: 29px;
  }

  .season-direction {
    font-size: 17px;
  }

  .season-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .season-metrics > div,
  .season-metrics > div:nth-child(3n) {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .season-metrics > div:nth-child(2n) {
    border-right: 0;
  }

  .season-metrics > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .timeline-wrap {
    padding: 16px;
  }

  .mint-form {
    padding: 14px;
  }

  .mint-row {
    grid-template-columns: 1fr;
  }

  .form-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .login-gate {
    align-items: flex-start;
    flex-direction: column;
  }

  .login-gate-actions {
    width: 100%;
  }

  .login-gate-actions .button {
    flex: 1;
  }

  .result-header,
  .result-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .copy-mint {
    max-width: calc(100vw - 116px);
  }

  .decision-strip {
    grid-template-columns: 1fr;
  }

  .score-block {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .decision-strip dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .decision-strip dl > div {
    border-bottom: 1px solid var(--line);
  }

  .decision-strip dl > div:nth-child(2n) {
    border-right: 0;
  }

  .decision-strip dl > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .result-columns,
  .detail-columns {
    grid-template-columns: 1fr;
  }

  .result-columns > section,
  .detail-columns > section,
  .detail-columns > section:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .result-columns > section:last-child,
  .detail-columns > section:last-child {
    grid-column: auto;
    border-top: 0;
    border-bottom: 0;
  }

  .history-table-wrap {
    overflow-x: auto;
    max-width: 100%;
  }

  table {
    min-width: 760px;
  }

  .pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    min-width: 0;
    padding: 10px;
    gap: 6px;
  }

  .pagination .button {
    min-width: 0;
    padding: 0 6px;
    font-size: 11px;
  }

  .pagination span {
    min-width: 68px;
  }

  .app-footer {
    align-items: flex-start;
    flex-direction: column;
    width: min(calc(100% - 24px), var(--max-width));
  }

  .dyor-statement {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
