.feedback-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 148px 0 96px;
}

.feedback-hero {
  max-width: 900px;
  margin-bottom: 64px;
}

.feedback-hero h1 {
  margin-bottom: 22px;
  font-size: clamp(3rem, 7.5vw, 6.4rem);
  text-wrap: balance;
}

.feedback-hero > p:last-child {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
}

.feedback-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 28px;
  align-items: start;
}

.feedback-feed,
.sidebar-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(15, 29, 44, 0.9), rgba(7, 15, 24, 0.94));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.19);
}

.feedback-feed {
  min-width: 0;
  padding: clamp(20px, 4vw, 34px);
}

.board-heading,
.sidebar-card-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.board-heading {
  margin-bottom: 24px;
}

.board-heading h2,
.sidebar-card h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  letter-spacing: -0.03em;
}

.section-label {
  margin-bottom: 7px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.result-status {
  margin: 6px 0 0;
  color: var(--ink-muted);
  font-size: 0.82rem;
  text-align: right;
}

.board-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 13px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active {
  border-color: rgba(130, 220, 229, 0.35);
  color: var(--ink);
  background: var(--cyan-soft);
}

.sort-control {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.sort-control select,
.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: rgba(5, 12, 20, 0.74);
}

.sort-control select {
  min-height: 40px;
  border-radius: 10px;
  padding: 0 32px 0 11px;
  cursor: pointer;
}

.feedback-list {
  display: grid;
  gap: 12px;
}

.feedback-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms var(--ease-out);
}

.feedback-card:hover {
  border-color: rgba(207, 227, 250, 0.22);
  background: rgba(255, 255, 255, 0.032);
  transform: translateY(-2px);
}

.vote-widget {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 5px;
  width: 58px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 7px;
  background: rgba(3, 8, 14, 0.55);
}

.vote-button {
  display: grid;
  width: 42px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: var(--ink-muted);
  background: transparent;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease;
}

.vote-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vote-button:hover,
.vote-button:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.vote-button[data-direction="up"].is-active {
  color: var(--cyan);
  background: var(--cyan-soft);
}

.vote-button[data-direction="down"].is-active {
  color: var(--danger);
  background: rgba(255, 129, 119, 0.1);
}

.vote-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.vote-score {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.feedback-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 10px;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.category-badge.feature {
  border-color: rgba(130, 220, 229, 0.24);
  color: var(--cyan);
  background: var(--cyan-soft);
}

.category-badge.bug {
  border-color: rgba(255, 129, 119, 0.23);
  color: var(--danger);
  background: rgba(255, 129, 119, 0.08);
}

.category-badge.adjustment {
  border-color: rgba(245, 196, 122, 0.24);
  color: var(--amber);
  background: rgba(245, 196, 122, 0.08);
}

.feedback-time {
  color: var(--ink-muted);
  font-size: 0.75rem;
}

.feedback-body h3 {
  margin-bottom: 9px;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
}

.feedback-description {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.91rem;
  line-height: 1.58;
  white-space: pre-wrap;
}

.board-state {
  display: grid;
  min-height: 280px;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  padding: 40px 24px;
  color: var(--ink-muted);
  text-align: center;
}

.board-state p {
  max-width: 460px;
  margin: 0;
}

.board-state .button {
  margin-top: 8px;
}

.loading-ring {
  width: 30px;
  height: 30px;
  border: 3px solid var(--line-strong);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: feedback-spin 780ms linear infinite;
}

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

.feedback-sidebar {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 16px;
}

.sidebar-card {
  padding: 24px;
}

.sidebar-card-heading {
  margin-bottom: 20px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--green);
  background: rgba(123, 224, 179, 0.09);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-badge::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.pulse-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.pulse-stat {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 8px;
  background: rgba(255, 255, 255, 0.025);
  text-align: center;
}

.pulse-stat strong,
.pulse-stat span {
  display: block;
}

.pulse-stat strong {
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}

.pulse-stat span {
  color: var(--ink-muted);
  font-size: 0.62rem;
  font-weight: 750;
  line-height: 1.3;
  text-transform: uppercase;
}

.spotlight-card {
  border-color: rgba(130, 220, 229, 0.22);
  background: linear-gradient(150deg, rgba(17, 46, 58, 0.86), rgba(7, 16, 26, 0.96));
}

.spotlight-content {
  margin-top: 18px;
}

.spotlight-content h3 {
  margin: 12px 0 8px;
  font-size: 1.08rem;
}

.spotlight-content p {
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.spotlight-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.spotlight-vote {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
}

.spotlight-vote:hover,
.spotlight-vote:focus-visible {
  border-color: var(--line-strong);
  color: var(--ink);
}

.spotlight-vote.is-active[data-direction="up"] {
  color: var(--cyan);
  background: var(--cyan-soft);
}

.spotlight-vote.is-active[data-direction="down"] {
  color: var(--danger);
  background: rgba(255, 129, 119, 0.1);
}

.form-card h2,
.support-card h2 {
  margin-bottom: 22px;
}

.form-field {
  display: grid;
  gap: 8px;
  margin-bottom: 17px;
}

.form-field label {
  color: var(--ink);
  font-size: 0.83rem;
  font-weight: 750;
}

.optional {
  color: var(--ink-muted);
  font-size: 0.7rem;
  font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border-radius: 12px;
  padding: 11px 12px;
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-field input,
.form-field select {
  min-height: 46px;
}

.form-field textarea {
  min-height: 126px;
  resize: vertical;
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  border-color: rgba(130, 220, 229, 0.72);
  outline-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(130, 220, 229, 0.12);
}

.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-muted);
  font-size: 0.67rem;
  line-height: 1.35;
}

.field-meta span:last-child {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  margin: -3px 0 15px;
  border-radius: 10px;
  padding: 10px 12px;
  color: #ffd7d3;
  background: rgba(255, 129, 119, 0.1);
  font-size: 0.78rem;
}

.submit-button {
  width: 100%;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.support-card p:not(.section-label) {
  margin-bottom: 20px;
  color: var(--ink-soft);
  font-size: 0.89rem;
}

.support-card .button {
  width: 100%;
}

.feedback-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 400;
  max-width: min(390px, calc(100% - 36px));
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 13px 16px;
  color: var(--ink);
  background: rgba(10, 22, 34, 0.96);
  box-shadow: var(--shadow-md);
  font-size: 0.85rem;
  font-weight: 700;
}

@media (max-width: 980px) {
  .feedback-layout {
    grid-template-columns: 1fr;
  }

  .feedback-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-card,
  .support-card {
    grid-column: span 1;
  }
}

@media (max-width: 720px) {
  .feedback-shell {
    width: min(100% - 28px, 1180px);
    padding-top: 124px;
  }

  .feedback-hero {
    margin-bottom: 42px;
  }

  .feedback-hero h1 {
    font-size: clamp(3rem, 14vw, 4.7rem);
  }

  .board-heading,
  .board-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .result-status {
    text-align: left;
  }

  .sort-control {
    justify-content: space-between;
  }

  .sort-control select {
    flex: 1;
  }

  .feedback-card {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
  }

  .vote-widget {
    width: 46px;
    padding: 5px 2px;
  }

  .vote-button {
    width: 38px;
  }

  .feedback-sidebar {
    grid-template-columns: 1fr;
  }

  .form-card,
  .support-card {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-ring {
    animation: none;
    border-top-color: var(--line-strong);
  }
}
