.shared-vote-card,
.shared-vote-card * {
  box-sizing: border-box;
}

.shared-vote-card {
  width: 100%;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line, #d8ded7);
  border-radius: 22px;
  color: var(--ink, #10281f);
  background: var(--surface, #fff);
  box-shadow: 0 18px 48px rgba(9, 45, 32, 0.08);
  overflow: hidden;
}

.shared-vote-card .post-header {
  min-width: 0;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--line, #d8ded7);
}

.shared-vote-card .post-header > img {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line, #d8ded7);
  border-radius: 50%;
  object-fit: cover;
}

.shared-vote-card .post-header strong,
.shared-vote-card .post-header span {
  display: block;
  overflow-wrap: anywhere;
}

.shared-vote-card .post-header strong {
  font-family: var(--serif, Georgia, serif);
  font-size: 16px;
}

.shared-vote-card .post-header span {
  margin-top: 2px;
  color: var(--muted, #637168);
  font-size: 10px;
}

.shared-vote-card .post-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.shared-vote-card .pill {
  min-height: 27px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line, #d8ded7);
  border-radius: 999px;
  color: var(--green, #0f6344);
  background: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.shared-vote-card button.pill {
  cursor: pointer;
}

.shared-vote-card .card-image {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 430px;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.shared-vote-card .card-body {
  min-width: 0;
  padding: clamp(22px, 4vw, 36px);
}

.shared-vote-card h3 {
  margin: 0;
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(31px, 5vw, 49px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.shared-vote-card .context {
  margin: 17px 0 0;
  color: var(--muted, #52655a);
  font-family: var(--serif, Georgia, serif);
  font-size: 17px;
  line-height: 1.58;
  overflow-wrap: anywhere;
}

.shared-vote-card .news-source-row {
  margin: 14px 0 0;
}

.shared-vote-card .news-source-row a,
.shared-card-link-row a {
  color: var(--green, #0f6344);
  text-decoration: underline;
  text-decoration-color: rgba(15, 99, 68, 0.3);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.shared-vote-card .binary-row {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.shared-vote-card .binary-option {
  min-width: 0;
  min-height: 98px;
  padding: 17px;
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 5px;
  border: 1px solid var(--line, #d8ded7);
  border-radius: 14px;
  color: var(--ink, #10281f);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.shared-vote-card .binary-option:hover,
.shared-vote-card .binary-option.selected {
  border-color: var(--green, #0f6344);
  background: rgba(183, 228, 199, 0.18);
}

.shared-vote-card .binary-option:disabled {
  cursor: default;
}

.shared-vote-card .binary-option strong,
.shared-vote-card .binary-option small,
.shared-vote-card .binary-option em {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.shared-vote-card .binary-option strong {
  font-family: var(--serif, Georgia, serif);
  font-size: 18px;
  line-height: 1.25;
}

.shared-vote-card .binary-option small,
.shared-vote-card .binary-option em {
  color: var(--muted, #637168);
  font-size: 10px;
  font-style: normal;
}

.shared-vote-card .vote-composer {
  margin-top: 18px;
}

.shared-vote-card .reasoning-details {
  border: 1px solid var(--line, #d8ded7);
  border-radius: 13px;
  background: #fafbf8;
  overflow: hidden;
}

.shared-vote-card .reasoning-details summary {
  min-height: 48px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--green, #0f6344);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.shared-vote-card .reasoning-details summary span {
  color: var(--muted, #637168);
  font-weight: 400;
}

.shared-vote-card .composer-step {
  padding: 13px 15px 0;
}

.shared-vote-card .step-label,
.shared-vote-card .eyebrow {
  margin: 0 0 8px;
  color: var(--green, #0f6344);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.shared-vote-card .chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.shared-vote-card .chip-row button,
.shared-vote-card .anon-chip {
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line, #d8ded7);
  border-radius: 999px;
  color: var(--muted, #52655a);
  background: #fff;
  font-size: 10px;
  cursor: pointer;
}

.shared-vote-card .chip-row button.active,
.shared-vote-card .anon-chip.on {
  color: #fff;
  border-color: var(--green, #0f6344);
  background: var(--green, #0f6344);
}

.shared-vote-card .reasoning-details textarea {
  width: calc(100% - 30px);
  min-height: 90px;
  margin: 14px 15px 15px;
  padding: 12px;
  border: 1px solid var(--line, #d8ded7);
  border-radius: 10px;
  color: var(--ink, #10281f);
  background: #fff;
  font: inherit;
  line-height: 1.5;
  resize: vertical;
}

.shared-vote-card .anon-row {
  margin-top: 10px;
}

.shared-vote-card .commit-btn {
  width: 100%;
  min-height: 50px;
  margin-top: 10px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--green-dark, #083d2b);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.shared-vote-card .commit-btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.shared-vote-card .vote-confirmed,
.shared-vote-card .own-card-note {
  margin-top: 18px;
  padding: 16px;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(15, 99, 68, 0.22);
  border-radius: 13px;
  background: rgba(183, 228, 199, 0.16);
}

.shared-vote-card .vote-confirmed span,
.shared-vote-card .vote-confirmed small,
.shared-vote-card .own-card-note {
  color: var(--muted, #52655a);
  font-size: 10px;
  line-height: 1.5;
}

.shared-vote-card .vote-confirmed strong {
  font-family: var(--serif, Georgia, serif);
  font-size: 18px;
}

.shared-vote-card .inline-results {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line, #d8ded7);
  border-radius: 13px;
  background: #fafbf8;
}

.shared-vote-card .inline-result {
  display: grid;
  grid-template-columns: minmax(88px, 0.8fr) minmax(70px, 1fr) 38px;
  align-items: center;
  gap: 9px;
  font-size: 10px;
}

.shared-vote-card .inline-result + .inline-result {
  margin-top: 10px;
}

.shared-vote-card .inline-result span {
  overflow-wrap: anywhere;
}

.shared-vote-card .inline-result > div {
  height: 7px;
  border-radius: 99px;
  background: #e5e9e3;
  overflow: hidden;
}

.shared-vote-card .inline-result i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green, #0f6344);
}

.shared-vote-card .debate-sides {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.shared-vote-card .debate-side {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line, #d8ded7);
  border-radius: 12px;
}

.shared-vote-card .debate-side.yours {
  border-color: var(--green, #0f6344);
}

.shared-vote-card .debate-side span {
  display: block;
  color: var(--muted, #52655a);
  font-size: 10px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.shared-card-link-row {
  margin-top: 18px;
  padding-top: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line, #d8ded7);
  color: var(--muted, #52655a);
  font-size: 10px;
}

.shared-card-link-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.shared-card-loading,
.shared-card-fallback {
  min-height: 230px;
  padding: 32px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 1px solid var(--line, #d8ded7);
  border-radius: 22px;
  color: var(--muted, #52655a);
  background: rgba(255, 255, 255, 0.75);
  text-align: center;
}

.shared-card-loading span {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(15, 99, 68, 0.18);
  border-top-color: var(--green, #0f6344);
  border-radius: 50%;
  animation: shared-card-spin 700ms linear infinite;
}

.shared-card-fallback p,
.shared-card-loading p {
  margin: 0;
}

.shared-card-fallback a,
.shared-card-fallback button {
  color: var(--green, #0f6344);
  background: transparent;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
}

.shared-card-error {
  margin: 10px 0 0;
  color: #9b3232;
  font-size: 11px;
  line-height: 1.45;
}

@keyframes shared-card-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 560px) {
  .shared-vote-card {
    border-radius: 17px;
  }

  .shared-vote-card .post-header {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 15px;
  }

  .shared-vote-card .post-header > img {
    width: 38px;
    height: 38px;
  }

  .shared-vote-card .post-tags {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .shared-vote-card .card-image {
    aspect-ratio: 16 / 10;
  }

  .shared-vote-card .card-body {
    padding: 20px 16px;
  }

  .shared-vote-card h3 {
    font-size: clamp(28px, 9vw, 36px);
  }

  .shared-vote-card .context {
    font-size: 16px;
  }

  .shared-vote-card .binary-row,
  .shared-vote-card .debate-sides {
    grid-template-columns: 1fr;
  }

  .shared-vote-card .binary-option {
    min-height: 82px;
  }

  .shared-card-link-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shared-card-loading span { animation: none; }
}
