/*
  Vote modal module.
  Extracted from the former modules/40-rails-bases-home.css; keep after 35-public-market-polish.css and before 40-rails-bases-home.css.
*/

/*
 * Extracted from assets/app.css on 2026-04-06.
 * Section: Header rails, bases, promos, home shell and related polish
 * Source lines: 6374-9200
 */

/* Vote modal: dialog sizing */
.modal#voteModal .modal__dialog{
  width: min(760px, calc(100% - 24px));
  max-height: calc(100vh - var(--sticky-top) - 60px);
}
@media (max-width: 600px){
  .modal#voteModal .modal__dialog{ max-height: calc(100vh - var(--sticky-top) - 20px); }
}
.modal#voteModal .modal__content{
  /* Only the votes list should scroll */
  overflow: hidden;
  display:flex;
  flex-direction:column;
  gap: 12px;
  min-height: 0;
}

.modal#voteModal .state{ margin: auto 0; }

.voteTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 10px;
  border-radius: calc(var(--radius-lg) - 2px);
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,106,0,.06), rgba(255,255,255,.02));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

@media (max-width: 760px){
  .voteTop{ flex-direction:column; }
  .voteTop__right{ justify-content:flex-start; }
}

.voteTop__title{ font-weight: 1000; letter-spacing: .2px; font-size: 13px; opacity:.9; }
.voteTop__reward{ margin-top: 4px; color: rgba(231,237,243,.90); display:flex; align-items:center; gap: 8px; flex-wrap:wrap; }

.voteTop__right{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap:wrap;
}

.votePill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--control-border);
  background: rgba(0,0,0,.14);
  color: rgba(245,248,252,.92);
  font-weight: 800;
}
.votePill i{ opacity:.88; }
.votePill b{ font-size: 13px; }

.voteListCard{
  border-radius: var(--radius-lg);
  border: 1px solid var(--control-border);
  background: rgba(0,0,0,.14);
  padding: 10px 10px;
  display:flex;
  flex-direction:column;
  min-height:0;
  flex: 1 1 auto;
}

.voteListHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.voteListHead__title{ font-weight: 1000; letter-spacing:.2px; }
.voteListHead__meta{ display:flex; align-items:center; gap: 8px; }
.voteUpdated{ font-size: 12px; color: rgba(231,237,243,.70); }
.voteUpdated.is-stale{ color: rgba(255,211,107,.92); }

.voteListWrap{
  outline: none;
  scrollbar-gutter: stable;
  overflow:auto;
  -webkit-overflow-scrolling: touch;
  min-height:0;
  flex: 1 1 auto;
  padding-right: 4px;
}

.voteHero{
  display:grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 14px;
  padding: 14px 14px;
  border-radius: calc(var(--radius-lg) - 2px);
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,106,0,.06), rgba(255,255,255,.02));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  margin-bottom: 14px;
}
@media (max-width: 860px){
  .voteHero{ grid-template-columns: 1fr; }
}
.voteHero__title{
  font-weight: 1100;
  font-size: 18px;
  letter-spacing: .2px;
}
.voteHero__text{
  margin-top: 8px;
  color: rgba(231,237,243,.86);
  line-height: 1.55;
}
.voteReward{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,106,0,.30);
  background: rgba(255,106,0,.08);
}
.voteHero__actions{
  margin-top: 12px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items:center;
}
.voteStats{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 860px){
  .voteStats{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px){
  .voteStats{ grid-template-columns: 1fr; }
}
.voteStat{
  border-radius: var(--r);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.16);
  padding: 10px 12px;
}
.voteStat b{
  display:block;
  margin-top: 2px;
  font-size: 22px;
  letter-spacing: .2px;
}
.voteMeta{
  margin-top: 10px;
  display:flex;
  align-items:center;
  gap: 10px;
}
.voteMeta__text.is-stale{ color: rgba(255,211,107,.92); }
.voteGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 860px){
  .voteGrid{ grid-template-columns: 1fr; }
}
.voteCard{
  border-radius: var(--radius-lg);
  border: 1px solid var(--control-border);
  background: rgba(0,0,0,.14);
  padding: 14px 14px;
}
.voteCard__title{
  font-weight: 1000;
  letter-spacing: .2px;
  margin-bottom: 10px;
}
.voteSteps{
  margin: 0;
  padding-left: 18px;
  line-height: 1.65;
  color: rgba(231,237,243,.86);
}
.voteSteps li{ margin: 6px 0; }
.voteNote{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--r);
  border: 1px solid rgba(255,106,0,.22);
  background: rgba(255,106,0,.06);
  color: rgba(245,248,252,.90);
}
.voteList{
  display:flex;
  flex-direction:column;
  gap: 8px;
}
.voteRow{
  width: 100%;
  text-align: left;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--r);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: var(--text900);
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}
.voteRow--skeleton{
  cursor: default;
  pointer-events:none;
  background: rgba(255,255,255,.02);
}

.voteRow:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.05);
}
.voteRow__ink{
  width: 3px;
  height: 32px;
  border-radius: 999px;
  background: var(--ink, rgba(255,106,0,.92));
  box-shadow: 0 0 0 1px rgba(0,0,0,.40) inset;
  flex: 0 0 auto;
}
.voteRow__ava{
  width: 32px;
  height: 32px;
  border-radius: 12px;
  overflow:hidden;
  flex: 0 0 auto;
}
.voteRow__ava img{ width:100%; height:100%; object-fit: cover; display:block; }

.voteRow__main{ min-width:0; flex: 1 1 auto; }
.voteRow__main{ display:flex; flex-direction:column; gap: 2px; }
.voteRow__sub{ font-size: 11px; color: rgba(231,237,243,.72); line-height: 1.1; }
.voteRow__when{ font-size: 12px; padding: 4px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,.10); background: rgba(0,0,0,.14); color: rgba(231,237,243,.86); }
.voteRow__top{ display:flex; align-items:baseline; gap: 8px; min-width:0; }
.voteRow__who{
  font-weight: 900;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.voteRow__sid{
  flex: 0 0 auto;
  font-size: 11px;
  line-height: 1;
  padding: 4px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  opacity: .86;
}
.voteRow__meta{
  margin-top: 2px;
  font-size: 12px;
  opacity: .92;
}
.voteRow__chev{
  opacity: .75;
  font-size: 18px;
  line-height: 1;
}
.voteRow__right{ margin-left:auto; display:flex; align-items:center; gap: 10px; }
.voteRow .likeMini{ margin-left: 0; }
@media (prefers-reduced-motion: reduce){
  .voteRow, .voteRow:hover{ transition: none; transform: none; }
}


.voteListWrap:focus-visible{ box-shadow: 0 0 0 3px var(--focus-ring); border-radius: 12px; }

.voteRow--skeleton .voteRow__ink{ background: rgba(255,255,255,.08); box-shadow:none; }

