html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background: #f5f7fb;
  color: #14213d;
}

.navbar-brand {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 2.5rem 0 1.75rem;
}

.page-heading h1 {
  margin: .2rem 0 .35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.page-heading-compact {
  align-items: start;
}

.eyebrow {
  color: #5266d7;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.back-link {
  display: inline-block;
  margin-bottom: .7rem;
  color: #5266d7;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}

.hero-panel {
  margin-top: 2.5rem;
  padding: clamp(2rem, 5vw, 4.5rem);
  overflow: hidden;
  border: 1px solid #dfe4f2;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, #ffffff 15%, #edf0ff 100%);
  box-shadow: 0 18px 50px rgba(43, 57, 108, .08);
}

.hero-panel h1 {
  max-width: 760px;
  margin: .6rem 0 1rem;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1;
}

.hero-panel p {
  max-width: 680px;
  margin-bottom: 1.75rem;
  color: #5f6983;
  font-size: 1.1rem;
}

.feature-card,
.empty-state {
  height: 100%;
  padding: 1.75rem;
  border: 1px solid #e0e5ef;
  border-radius: 1rem;
  background: #fff;
}

.feature-card h2,
.detail-card h2 {
  margin: .65rem 0 .5rem;
  font-size: 1.15rem;
  font-weight: 750;
}

.feature-card p {
  margin: 0;
  color: #6c7488;
}

.feature-number {
  color: #5266d7;
  font-size: .8rem;
  font-weight: 800;
}

.token-table-card,
.form-card,
.detail-card {
  border: 1px solid #e0e5ef;
  border-radius: 1rem;
  box-shadow: 0 10px 35px rgba(43, 57, 108, .05);
}

.token-table-card th {
  padding: 1rem 1.25rem;
  border-bottom-color: #e9edf4;
  color: #7a8295;
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.token-table-card td {
  padding: 1rem 1.25rem;
}

.token-mobile-card {
  border: 1px solid #e0e5ef;
  border-radius: 1rem;
  box-shadow: 0 10px 35px rgba(43, 57, 108, .05);
}

.token-mobile-symbol {
  font-size: 1.15rem;
}

.token-mobile-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0;
  color: #6c7488;
  font-size: .85rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: .35rem .65rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
}

.status-active {
  background: #dcf8e8;
  color: #17663a;
}

.status-inactive {
  background: #edf0f4;
  color: #636b7b;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .6rem;
  border-radius: 999px;
  background: #dcf8e8;
  color: #17663a;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.live-indicator span {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: #1aa45b;
  box-shadow: 0 0 0 .25rem rgba(26, 164, 91, .13);
}

.discovery-pulse {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1.25rem;
  border: .65rem solid #dfe4ff;
  border-radius: 50%;
  background: #5266d7;
  box-shadow: 0 0 0 .65rem #eef0ff;
}

.empty-state {
  padding: 4rem 2rem;
  text-align: center;
}

.empty-state h2 {
  font-weight: 800;
}

.empty-state p {
  max-width: 540px;
  margin: .5rem auto 1.5rem;
  color: #6c7488;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 1rem 1.5rem;
}

.detail-grid dt {
  color: #7a8295;
  font-weight: 600;
}

.detail-grid dd {
  margin: 0;
}

.discovery-heading {
  align-items: center;
}

.feed-update-status {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: #7a8295;
  font-size: .82rem;
  white-space: nowrap;
}

.feed-spinner {
  width: .65rem;
  height: .65rem;
  border: 2px solid #d7dced;
  border-top-color: #5266d7;
  border-radius: 50%;
  opacity: 0;
}

.feed-update-status.is-loading .feed-spinner {
  opacity: 1;
  animation: feed-spin .8s linear infinite;
}

.disclaimer-strip {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: -1rem 0 1.5rem;
  padding: .75rem 1rem;
  border: 1px solid #e5e8f2;
  border-radius: .8rem;
  background: rgba(255, 255, 255, .7);
  color: #6b7387;
  font-size: .85rem;
}

.disclaimer-strip > span {
  display: grid;
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #e9edff;
  color: #5266d7;
  font-size: .72rem;
  font-weight: 800;
}

.disclaimer-strip p { margin: 0; }

.token-feed {
  transition: opacity .22s ease, transform .22s ease;
}

.token-feed.is-refreshing {
  opacity: .68;
  transform: translateY(2px);
  pointer-events: none;
}

.token-feed.is-updated {
  animation: feed-arrive .45s ease;
}

.signal-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.signal-summary-card {
  display: flex;
  min-height: 118px;
  padding: 1.15rem 1.25rem;
  flex-direction: column;
  border: 1px solid #e0e5ef;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 8px 28px rgba(43, 57, 108, .04);
}

.signal-summary-card > span {
  color: #747d91;
  font-size: .8rem;
  font-weight: 650;
}

.signal-summary-card strong {
  margin: .12rem 0;
  color: #1d2948;
  font-size: 1.8rem;
  line-height: 1.2;
}

.signal-summary-card small { margin-top: auto; color: #9aa1b2; }
.summary-primary { border-color: #cfd6ff; background: linear-gradient(140deg, #fff, #f1f3ff); }
.summary-risk { background: linear-gradient(140deg, #fff, #fff7f4); }
.summary-blocked { border-color: #f1cdc5; background: linear-gradient(140deg, #fff, #fff0ec); }

.feed-filters {
  display: flex;
  gap: .4rem;
  margin: 0 0 1rem;
  padding: .3rem;
  width: fit-content;
  border: 1px solid #e1e5ef;
  border-radius: .75rem;
  background: #fff;
}

.feed-filter {
  padding: .48rem .8rem;
  border: 0;
  border-radius: .5rem;
  background: transparent;
  color: #71798b;
  font-size: .78rem;
  font-weight: 700;
  transition: background .18s ease, color .18s ease;
}

.feed-filter:hover { color: #4257c7; }
.feed-filter.is-active { background: #edf0ff; color: #4257c7; }

.signal-table th,
.signal-table td { min-width: 80px; padding-right: .75rem; padding-left: .75rem; }
.signal-table td:first-child { min-width: 68px; }
.signal-table td:nth-child(2) { min-width: 135px; max-width: 190px; }
.signal-table td:nth-child(5) { min-width: 135px; }
.signal-table td:nth-child(6) { min-width: 72px; }
.signal-table td:nth-child(7) { min-width: 150px; }
.signal-table td:last-child { min-width: 70px; }
.token-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.score-orb {
  display: inline-grid;
  width: 3.4rem;
  height: 3.4rem;
  place-content: center;
  border: 1px solid #dfe4ef;
  border-radius: 50%;
  background: #f7f8fb;
  text-align: center;
}

.score-orb strong { font-size: 1rem; line-height: 1; }
.score-orb span { margin-top: .12rem; color: #9198a9; font-size: .55rem; }
.score-promising { border-color: #a8e4c2; background: #eafaf1; color: #167241; }
.score-watch { border-color: #cbd3ff; background: #f0f2ff; color: #455acb; }
.score-risk { border-color: #ffc7b7; background: #fff0eb; color: #b84428; }
.score-blocked { border-color: #ef9e8c; background: #ffe7e1; color: #9e2f1b; }
.score-weak, .score-insufficient { color: #6d7588; }

.signal-badge {
  display: inline-flex;
  padding: .32rem .62rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 750;
  white-space: nowrap;
}

.signal-promising { background: #dcf8e8; color: #17663a; }
.signal-watch { background: #e7eaff; color: #4659bd; }
.signal-risk { background: #ffebe5; color: #aa3f27; }
.signal-blocked { background: #a93420; color: #fff; }
.signal-weak, .signal-insufficient, .signal-pending { background: #edf0f4; color: #636b7b; }
.signal-warning { background: #fff0dc; color: #975b11; }
.signal-reason { margin-top: .35rem; color: #9097a7; font-size: .7rem; }

.safety-badge {
  display: inline-flex;
  margin-top: .32rem;
  padding: .28rem .55rem;
  border-radius: 999px;
  font-size: .67rem;
  font-weight: 750;
  white-space: nowrap;
}

.safety-passed { background: #e2f8eb; color: #17663a; }
.safety-blocked { background: #ffe2da; color: #a1321e; }
.safety-risk, .safety-warning { background: #fff0dc; color: #975b11; }
.safety-pending, .safety-unavailable { background: #edf0f4; color: #687083; }

.buy-pressure { display: grid; gap: .35rem; }
.buy-pressure > span { width: 100%; height: .28rem; overflow: hidden; border-radius: 1rem; background: #ffe7e1; }
.buy-pressure i { display: block; height: 100%; border-radius: inherit; background: #28b26b; }
.buy-pressure small { color: #7c8496; white-space: nowrap; }
.metric-positive { color: #17834a !important; font-weight: 700; }
.metric-negative { color: #c24d35 !important; font-weight: 700; }
.btn-soft { border-color: #d9deef; background: #f7f8fc; color: #4257c7; font-weight: 650; }
.btn-soft:hover { border-color: #c4cdf6; background: #ecefff; color: #3549ad; }

.min-width-0 { min-width: 0; }
.mobile-signal-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1rem 0; }
.mobile-metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 1rem; border: 1px solid #edf0f5; border-radius: .75rem; background: #fafbfc; }
.mobile-metrics div { min-width: 0; padding: .7rem; border-right: 1px solid #edf0f5; }
.mobile-metrics div:last-child { border: 0; }
.mobile-metrics span, .mobile-metrics strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-metrics span { margin-bottom: .2rem; color: #8a92a3; font-size: .65rem; }
.mobile-metrics strong { font-size: .8rem; }
.mobile-safety-line { display: flex; align-items: center; gap: .5rem; margin: -.35rem 0 1rem; }
.mobile-safety-line .safety-badge { margin: 0; flex: 0 0 auto; }
.mobile-safety-line small { overflow: hidden; color: #858da0; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }

.analysis-hero {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 1px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border: 1px solid #dfe4ef;
  border-radius: 1.1rem;
  background: #e5e9f2;
  box-shadow: 0 12px 35px rgba(43, 57, 108, .06);
}

.analysis-score { display: flex; min-height: 160px; padding: 1.5rem; align-items: center; justify-content: center; flex-direction: column; background: #f7f8fb; }
.analysis-score > span { font-size: .75rem; font-weight: 750; text-transform: uppercase; }
.analysis-score > strong { font-size: 3.4rem; line-height: 1; }
.analysis-score > small { margin-top: .5rem; opacity: .72; }
.analysis-metrics { display: grid; grid-template-columns: repeat(2, 1fr); background: #fff; }
.analysis-metrics div { display: flex; padding: 1.3rem 1.5rem; justify-content: center; flex-direction: column; border-right: 1px solid #edf0f5; border-bottom: 1px solid #edf0f5; }
.analysis-metrics span { color: #858da0; font-size: .75rem; }
.analysis-metrics strong { margin-top: .18rem; font-size: 1.12rem; }

.score-bars { display: grid; gap: 1rem; margin: 1.35rem 0; }
.score-bars > div { display: grid; grid-template-columns: 90px 1fr 30px; align-items: center; gap: .75rem; font-size: .82rem; }
.score-bars i { height: .45rem; overflow: hidden; border-radius: 1rem; background: #edf0f5; }
.score-bars b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6e7de0, #3abf86); }
.score-bars .risk-bar b { background: linear-gradient(90deg, #f4b15e, #e45e45); }
.score-bars strong { text-align: right; }
.signal-explanations { display: grid; gap: .65rem; }
.signal-explanations > div { display: flex; align-items: center; gap: .65rem; padding: .7rem .8rem; border-radius: .65rem; font-size: .85rem; }
.signal-explanations span { display: grid; width: 1.25rem; height: 1.25rem; flex: 0 0 auto; place-content: center; border-radius: 50%; font-weight: 800; }
.explanation-positive { background: #effaf4; color: #276748; }
.explanation-positive span { background: #d2f2df; }
.explanation-risk { background: #fff3ef; color: #904632; }
.explanation-risk span { background: #ffddd3; }
.detail-grid-compact { grid-template-columns: 100px 1fr; gap: .8rem 1rem; font-size: .83rem; }
.snapshot-table { font-size: .82rem; }
.snapshot-table th { color: #858da0; font-size: .7rem; text-transform: uppercase; }

.safety-panel { margin-bottom: 1.5rem; }
.safety-panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.safety-panel-heading h2 { margin-top: .45rem; }
.safety-panel-heading .safety-badge { margin-top: 0; font-size: .75rem; }
.safety-facts { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 1rem; overflow: hidden; border: 1px solid #e8ebf2; border-radius: .8rem; }
.safety-facts > div { min-width: 0; padding: .85rem 1rem; border-right: 1px solid #e8ebf2; background: #fafbfc; }
.safety-facts > div:last-child { border: 0; }
.safety-facts span, .safety-facts strong { display: block; }
.safety-facts span { margin-bottom: .18rem; color: #81899b; font-size: .68rem; }
.safety-facts strong { overflow: hidden; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.safety-facts .fact-safe strong { color: #167241; }
.safety-facts .fact-warning strong { color: #986014; }
.safety-facts .fact-danger strong { color: #ad3924; }
.safety-reasons { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .85rem; }
.safety-reasons span { padding: .4rem .6rem; border-radius: .5rem; background: #f2f4f8; color: #626b7d; font-size: .72rem; }
.safety-checked { display: block; margin-top: .75rem; color: #9aa1b1; }
.reputation-panel { margin: -0.5rem 0 1.5rem; }
.reputation-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 1rem; overflow: hidden; border: 1px solid #e8ebf2; border-radius: .8rem; }
.reputation-facts > div { min-width: 0; padding: .85rem 1rem; border-right: 1px solid #e8ebf2; background: #fafbfc; }
.reputation-facts > div:last-child { border: 0; }
.reputation-facts span, .reputation-facts strong { display: block; }
.reputation-facts span { margin-bottom: .18rem; color: #81899b; font-size: .68rem; }
.reputation-facts strong { overflow: hidden; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.reputation-facts .fact-safe strong { color: #167241; }
.reputation-facts .fact-warning strong { color: #986014; }
.reputation-facts .fact-danger strong { color: #ad3924; }
.reputation-note { margin-top: .85rem; color: #7b8497; font-size: .75rem; }

.paper-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.paper-summary-card {
  display: flex;
  min-height: 116px;
  padding: 1.1rem 1.2rem;
  flex-direction: column;
  border: 1px solid #e0e5ef;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 8px 28px rgba(43, 57, 108, .04);
}

.paper-summary-card > span { color: #747d91; font-size: .76rem; font-weight: 650; }
.paper-summary-card strong { margin: .12rem 0; font-size: 1.6rem; line-height: 1.25; }
.paper-summary-card small { margin-top: auto; color: #9aa1b2; font-size: .68rem; }
.paper-table td:first-child { min-width: 140px; }
.paper-table td:nth-child(2) { min-width: 130px; }
.paper-table td:nth-child(3),
.paper-table td:nth-child(4),
.paper-table td:nth-child(6) { min-width: 125px; }

.signal-score-line { display: flex; align-items: center; gap: .6rem; }
.signal-score-line div { display: grid; }
.signal-score-line small { color: #8a92a3; font-size: .66rem; }
.score-mini { display: grid; width: 2.35rem; height: 2.35rem; flex: 0 0 auto; place-items: center; border: 1px solid #cbd3ff; border-radius: 50%; background: #f0f2ff; color: #455acb; font-size: .78rem; font-weight: 800; }
.milestone-row { display: flex; gap: .32rem; }
.milestone-row span { display: grid; width: 1.8rem; height: 1.8rem; place-items: center; border: 1px solid #e0e4ed; border-radius: 50%; background: #f5f6f9; color: #9ba2b1; font-size: .62rem; font-weight: 800; }
.milestone-row span::after { content: "%"; font-size: .45rem; }
.milestone-row .reached { border-color: #9eddb9; background: #ddf7e8; color: #167241; }
.checkpoint-count { display: block; margin-top: .35rem; color: #9299a9; font-size: .6rem; white-space: nowrap; }
.paper-result { padding: .42rem .65rem; border-radius: .65rem; background: #f4f6fa; font-size: 1rem; }
.paper-mobile-status { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: .9rem 0; color: #858da0; }
.paper-mobile-metrics { margin-bottom: .8rem; }
.paper-mobile-bottom { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: 0 0 1rem; }
.paper-mobile-bottom small { color: #858da0; }
.early-empty-state { min-height: 360px; display: grid; place-content: center; }

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, .75fr);
  min-height: calc(100vh - 185px);
  margin: 1.5rem 0 2rem;
  overflow: hidden;
  border: 1px solid #dfe4ef;
  border-radius: 1.4rem;
  background: #fff;
  box-shadow: 0 22px 65px rgba(43, 57, 108, .1);
}

.auth-story {
  display: flex;
  padding: clamp(2.5rem, 6vw, 5.5rem);
  justify-content: center;
  flex-direction: column;
  background:
    radial-gradient(circle at 80% 15%, rgba(116, 132, 255, .26), transparent 34%),
    linear-gradient(145deg, #101936 0%, #26336d 58%, #475ac4 100%);
  color: #fff;
}

.auth-story .eyebrow { color: #aeb9ff; }
.auth-story h1 { max-width: 620px; margin: .8rem 0 1rem; font-size: clamp(2.3rem, 4vw, 4.3rem); font-weight: 800; letter-spacing: -.055em; line-height: 1; }
.auth-story > p { max-width: 560px; margin: 0; color: #d8defc; font-size: 1.05rem; }
.auth-story-points { display: grid; gap: .85rem; margin-top: 2.5rem; }
.auth-story-points span { display: flex; align-items: center; gap: .8rem; color: #e5e8fb; font-size: .85rem; }
.auth-story-points i { display: grid; width: 2rem; height: 2rem; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; color: #bfc7ff; font-size: .62rem; font-style: normal; font-weight: 800; }
.auth-card-wrap { display: flex; padding: clamp(1.5rem, 5vw, 4rem); align-items: center; justify-content: center; background: linear-gradient(160deg, #fff, #f7f8fc); }
.auth-card { width: min(100%, 440px); }
.auth-card-wide { width: min(100%, 520px); }
.auth-card-heading { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 2rem; }
.auth-card-heading h2 { margin: .05rem 0 .25rem; font-size: 1.8rem; font-weight: 800; letter-spacing: -.035em; }
.auth-card-heading p { margin: 0; color: #798196; }
.auth-mark { display: grid; width: 3rem; height: 3rem; flex: 0 0 auto; place-items: center; border-radius: .9rem; background: #5266d7; color: #fff; font-size: .8rem; font-weight: 850; letter-spacing: -.03em; box-shadow: 0 8px 20px rgba(82,102,215,.22); }
.auth-mark-secure { background: #1c9b5b; }
.auth-field { margin-bottom: 1.1rem; }
.auth-field label { display: block; margin-bottom: .42rem; color: #37415e; font-size: .78rem; font-weight: 750; }
.auth-field > input,
.password-input-wrap { width: 100%; border: 1px solid #dce1ec; border-radius: .75rem; background: #fff; transition: border-color .18s ease, box-shadow .18s ease; }
.auth-field > input { height: 3.2rem; padding: 0 .9rem; }
.password-input-wrap { display: flex; align-items: center; overflow: hidden; }
.password-input-wrap:focus-within,
.auth-field > input:focus { border-color: #8b9af0; box-shadow: 0 0 0 .22rem rgba(82,102,215,.1); outline: none; }
.password-input-wrap input { width: 100%; height: 3.2rem; min-width: 0; padding: 0 .9rem; border: 0; outline: none; }
.password-toggle { height: 3.2rem; padding: 0 .85rem; border: 0; background: transparent; color: #5266d7; font-size: .7rem; font-weight: 750; }
.auth-field > span { display: block; margin-top: .3rem; color: #bd4933; font-size: .7rem; }
.auth-check { display: flex; align-items: center; gap: .55rem; margin: .25rem 0 1.35rem; color: #6d7589; font-size: .78rem; }
.auth-check input { width: 1rem; height: 1rem; accent-color: #5266d7; }
.auth-submit { display: flex; width: 100%; min-height: 3.2rem; padding: .75rem 1rem; align-items: center; justify-content: space-between; border: 0; border-radius: .75rem; background: #5266d7; color: #fff; font-weight: 750; box-shadow: 0 10px 25px rgba(82,102,215,.2); }
.auth-submit:hover { background: #4356c4; color: #fff; }
.auth-footnote { margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid #edf0f5; color: #9299a9; font-size: .72rem; line-height: 1.55; }
.auth-validation:empty { display: none; }
.auth-validation { margin-bottom: 1rem; padding: .75rem .85rem; border-radius: .65rem; background: #fff0ec; color: #a23c27; font-size: .76rem; }
.auth-validation ul { margin: 0; padding-left: 1rem; }
.password-requirements { display: flex; flex-wrap: wrap; gap: .4rem; margin: -.45rem 0 1rem; }
.password-requirements span { padding: .3rem .5rem; border-radius: .4rem; background: #f0f2f8; color: #70798e; font-size: .62rem; }
.auth-shell-single { grid-template-columns: 1fr; max-width: 720px; min-height: auto; margin: 3.5rem auto; }
.auth-shell-single .auth-card-wrap { padding: clamp(2rem, 7vw, 4.5rem); }
.auth-denied { max-width: 650px; margin: 4rem auto; }
.auth-denied .auth-mark { margin: 0 auto 1rem; background: #d7654d; }

@keyframes feed-spin { to { transform: rotate(360deg); } }
@keyframes feed-arrive { from { opacity: .75; } to { opacity: 1; } }

@media (max-width: 991.98px) {
  .signal-summary-grid { grid-template-columns: repeat(2, 1fr); }
  .paper-summary-grid { grid-template-columns: repeat(2, 1fr); }
  .safety-facts { grid-template-columns: repeat(2, 1fr); }
  .reputation-facts { grid-template-columns: repeat(2, 1fr); }
  .safety-facts > div { border-bottom: 1px solid #e8ebf2; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-story { padding: 2.5rem; }
  .auth-story h1 { max-width: 520px; font-size: 2.7rem; }
  .auth-story-points { display: none; }
}

@media (max-width: 575.98px) {
  .page-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .page-heading > .btn,
  .page-heading > form .btn {
    width: 100%;
  }

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

  .detail-grid dd {
    margin-bottom: 1rem;
  }

  .discovery-heading { gap: .75rem; }
  .feed-update-status { align-self: flex-start; }
  .disclaimer-strip { align-items: flex-start; margin-top: -.5rem; }
  .signal-summary-grid { gap: .65rem; }
  .signal-summary-card { min-height: 100px; padding: .9rem; }
  .signal-summary-card strong { font-size: 1.45rem; }
  .signal-summary-card small { font-size: .65rem; }
  .signal-summary-grid .summary-blocked { grid-column: span 2; }
  .paper-summary-grid { gap: .65rem; }
  .paper-summary-card { min-height: 100px; padding: .9rem; }
  .paper-summary-card strong { font-size: 1.35rem; }
  .paper-summary-grid .paper-summary-card:last-child { grid-column: span 2; }
  .feed-filters { width: 100%; }
  .feed-filter { flex: 1; padding-right: .4rem; padding-left: .4rem; }
  .analysis-hero { grid-template-columns: 1fr; }
  .analysis-score { min-height: 145px; }
  .analysis-metrics div { padding: 1rem; }
  .score-bars > div { grid-template-columns: 75px 1fr 25px; }
  .safety-panel-heading { align-items: flex-start; flex-direction: column; }
  .safety-facts { grid-template-columns: 1fr; }
  .safety-facts > div { border-right: 0; }
  .reputation-facts { grid-template-columns: 1fr; }
  .reputation-facts > div { border-right: 0; border-bottom: 1px solid #e8ebf2; }
  .auth-shell { min-height: 0; margin: .75rem 0 1.5rem; border-radius: 1rem; }
  .auth-story { padding: 1.7rem 1.35rem; }
  .auth-story h1 { margin-bottom: .65rem; font-size: 2rem; }
  .auth-story > p { font-size: .86rem; }
  .auth-card-wrap { padding: 1.5rem 1.25rem 1.75rem; }
  .auth-card-heading { margin-bottom: 1.5rem; }
  .auth-card-heading h2 { font-size: 1.5rem; }
  .auth-shell-single { margin: 1.5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  .token-feed, .feed-spinner { transition: none; animation: none !important; }
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
