.board-hero {
  min-height: 520px;
}

.board-hero .legal-header h1 {
  max-width: 980px;
  font-size: clamp(48px, 7vw, 78px);
}

.board-hero .legal-header > p:not(.eyebrow) {
  max-width: 760px;
}

.board-hero-actions {
  margin-top: 28px;
}

.board-summary-section {
  padding-top: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 19, 33, 0.45);
}

.board-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(5, 13, 24, 0.82);
}

.board-stats > div {
  padding: 19px 22px;
  border-right: 1px solid var(--line);
}

.board-stats > div:last-child {
  border-right: 0;
}

.board-stats strong,
.board-stats span {
  display: block;
}

.board-stats strong {
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.board-stats span {
  margin-top: 8px;
  color: var(--dim);
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.board-alert {
  display: grid;
  gap: 4px;
  margin-bottom: 22px;
  padding: 15px 17px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(57, 221, 240, 0.08);
}

.board-alert strong {
  color: var(--ink);
}

.board-alert span,
.board-alert li {
  color: var(--muted);
}

.board-alert ul {
  margin: 8px 0 0;
  padding-left: 21px;
}

.board-alert.error {
  border-color: rgba(255, 146, 114, .5);
  background: rgba(255, 146, 114, .08);
}

.board-alert.success {
  border-color: rgba(57, 221, 240, .5);
  background: rgba(57, 221, 240, .08);
}

.board-section {
  padding-top: 78px;
  overflow: hidden;
}

.board-shell {
  width: 100%;
}

.board-heading {
  display: grid;
  grid-template-columns: minmax(220px, .55fr) minmax(520px, 1fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 28px;
}

.board-heading h2,
.report-copy h2 {
  font-size: clamp(38px, 5vw, 56px);
}

.board-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) minmax(150px, .65fr) minmax(170px, .8fr);
  gap: 12px;
}

.board-filters label {
  display: block;
}

.board-filters label > span {
  display: block;
  margin-bottom: 6px;
  color: var(--dim);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.board-filters input,
.board-filters select {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #050d18;
  font: inherit;
  font-size: 14px;
}

.board-filters input:focus,
.board-filters select:focus {
  border-color: var(--cyan);
  outline: 2px solid rgba(57, 221, 240, .2);
  outline-offset: 1px;
}

.kanban {
  display: grid;
  grid-template-columns: repeat(5, minmax(286px, 1fr));
  gap: 14px;
  width: min(calc(100% - 40px), 1500px);
  margin: 0 auto;
  padding-bottom: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) #050d18;
}

.board-column {
  min-width: 286px;
  min-height: 430px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(12, 27, 43, .82), rgba(5, 13, 24, .72));
}

.board-column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 46px;
  padding: 2px 4px 11px;
  border-bottom: 1px solid var(--line);
}

.board-column-head > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.board-column-head h3 {
  font-size: 16px;
}

.column-icon {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: var(--cyan-soft);
  font-size: 14px;
}

.status-reported { color: #b9c5d4; }
.status-investigating { color: #ffcf7a; }
.status-planned { color: #aa9cff; }
.status-in_progress { color: var(--cyan-soft); }
.status-fixed { color: #86efb0; }

.column-count {
  min-width: 28px;
  padding: 3px 8px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #050d18;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.board-card-list {
  display: grid;
  gap: 10px;
  padding-top: 10px;
}

.column-empty {
  margin: 12px 4px;
  color: var(--dim);
  font-size: 13px;
}

.board-card {
  position: relative;
  padding: 14px;
  border: 1px solid rgba(143, 216, 235, .17);
  border-radius: 7px;
  background: rgba(3, 8, 17, .88);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .16);
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.board-card:hover {
  border-color: rgba(57, 221, 240, .38);
  background: rgba(6, 16, 28, .96);
  transform: translateY(-2px);
}

.board-card.pinned::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(var(--cyan), var(--magenta));
  content: "";
}

.card-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.card-label,
.status-pill {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 3px 7px;
  color: var(--muted);
  border: 1px solid rgba(143, 216, 235, .16);
  border-radius: 999px;
  background: rgba(12, 27, 43, .75);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .045em;
}

.card-label.type-bug {
  color: #ffb3a1;
  border-color: rgba(255, 146, 114, .34);
  background: rgba(255, 146, 114, .08);
}

.card-label.type-feature {
  color: #d2c7ff;
  border-color: rgba(170, 156, 255, .32);
  background: rgba(170, 156, 255, .08);
}

.card-label.type-compatibility {
  color: var(--cyan-soft);
  border-color: rgba(57, 221, 240, .3);
  background: rgba(57, 221, 240, .07);
}

.pinned-label {
  color: #ffd98c;
  border-color: rgba(255, 207, 122, .35);
  background: rgba(255, 207, 122, .07);
}

.status-pill.status-reported { border-color: rgba(185, 197, 212, .25); }
.status-pill.status-investigating { border-color: rgba(255, 207, 122, .35); }
.status-pill.status-planned { border-color: rgba(170, 156, 255, .35); }
.status-pill.status-in_progress { border-color: rgba(57, 221, 240, .35); }
.status-pill.status-fixed { border-color: rgba(134, 239, 176, .35); }

.board-card h4 {
  margin: 11px 0 8px;
  font-size: 16px;
  line-height: 1.28;
}

.board-card h4 a {
  color: var(--ink);
  text-decoration: none;
}

.board-card h4 a:hover {
  color: var(--cyan-soft);
}

.card-description {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.52;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.card-update {
  display: -webkit-box;
  margin: 10px 0 0;
  padding: 8px 9px;
  overflow: hidden;
  color: #d7e7f5;
  border-left: 2px solid var(--cyan);
  background: rgba(57, 221, 240, .055);
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 12px;
  margin-top: 12px;
  color: var(--dim);
  font-size: 11px;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid rgba(143, 216, 235, .12);
}

.card-actions form {
  margin: 0;
}

.card-actions > a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.card-actions > a:hover {
  color: var(--cyan-soft);
}

.vote-button {
  min-width: 54px;
  min-height: 30px;
  padding: 4px 9px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #06101c;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.vote-button:hover,
.vote-button.voted {
  color: #031018;
  border-color: var(--cyan);
  background: var(--cyan);
}

.board-card.filtered-out {
  display: none;
}

.board-no-results {
  width: min(calc(100% - 40px), var(--content));
  margin: 24px auto 0;
  padding: 20px;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  text-align: center;
}

.board-detail-section {
  padding-top: 48px;
  padding-bottom: 0;
}

.issue-detail {
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0, rgba(237, 75, 210, .08), transparent 36%),
    var(--surface);
  box-shadow: var(--shadow);
}

.issue-detail-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
}

.issue-detail h2 {
  max-width: 850px;
  margin-top: 12px;
  font-size: clamp(30px, 4vw, 44px);
}

.detail-close {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 50%;
  text-decoration: none;
  font-size: 25px;
}

.detail-close:hover {
  color: var(--ink);
  border-color: var(--cyan);
}

.issue-description {
  max-width: 900px;
  margin: 24px 0 0;
  color: #d4deea;
}

.developer-note {
  max-width: 900px;
  margin-top: 24px;
  padding: 17px 19px;
  border-left: 3px solid var(--cyan);
  background: rgba(57, 221, 240, .07);
}

.developer-note strong {
  color: var(--cyan-soft);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.developer-note p {
  margin: 6px 0 0;
  color: var(--muted);
}

.issue-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.issue-facts span {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 13px;
}

.issue-facts b {
  color: var(--dim);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.report-section {
  border-top: 1px solid var(--line);
  background: rgba(8, 19, 33, .36);
}

.report-layout {
  display: grid;
  grid-template-columns: minmax(0, .68fr) minmax(440px, 1fr);
  gap: 72px;
  align-items: start;
}

.report-copy {
  position: sticky;
  top: 34px;
}

.report-copy > p:not(.eyebrow),
.report-copy li {
  color: var(--muted);
}

.report-copy ul {
  margin: 25px 0 0;
  padding-left: 20px;
}

.report-copy li + li {
  margin-top: 8px;
}

.report-panel {
  padding: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
}

.board-report-form {
  display: grid;
  gap: 18px;
}

.field label span {
  color: var(--dim);
  font-weight: 500;
}

.consent-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.consent-row input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--cyan);
}

/* Admin */
.admin-shell {
  width: min(calc(100% - 40px), 1500px);
  margin: 0 auto;
  padding: 132px 0 80px;
}

.admin-shell h1 {
  max-width: none;
  font-size: clamp(44px, 6vw, 72px);
}

.admin-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-pending {
  margin-bottom: 38px;
  padding: 22px;
  border: 1px solid rgba(255, 207, 122, .35);
  border-radius: 8px;
  background: rgba(255, 207, 122, .05);
}

.admin-pending h2 {
  margin-bottom: 17px;
  font-size: 24px;
}

.pending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.admin-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #050d18;
}

.admin-card[draggable="true"] {
  cursor: grab;
}

.admin-card.dragging {
  opacity: .45;
}

.admin-card h4 {
  margin: 10px 0 7px;
  font-size: 15px;
}

.admin-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.admin-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.admin-card-actions form {
  margin: 0;
}

.small-button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: rgba(8, 19, 33, .9);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.small-button:hover {
  color: #031018;
  border-color: var(--cyan);
  background: var(--cyan);
}

.small-button.danger:hover {
  color: #170705;
  border-color: var(--coral);
  background: var(--coral);
}

.admin-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(250px, 1fr));
  gap: 12px;
  overflow-x: auto;
}

.admin-column {
  min-width: 250px;
  min-height: 520px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 19, 33, .62);
}

.admin-column.drag-over {
  border-color: var(--cyan);
  background: rgba(57, 221, 240, .06);
}

.admin-column .board-column-head {
  margin-bottom: 9px;
}

.admin-column-list {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 430px;
}

.admin-login {
  width: min(calc(100% - 40px), 520px);
  margin: 0 auto;
  padding: 150px 0 90px;
}

.admin-login-panel,
.admin-edit-panel {
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
}

.admin-login-panel h1 {
  font-size: 44px;
}

.admin-login-form,
.admin-edit-form {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.admin-edit-panel {
  width: min(calc(100% - 40px), 900px);
  margin: 0 auto;
}

.admin-edit-panel h1 {
  font-size: clamp(38px, 5vw, 58px);
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.admin-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-checkboxes label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.admin-status-line {
  min-height: 22px;
  margin-top: 10px;
  color: var(--dim);
  font-size: 12px;
}

@media (max-width: 1050px) {
  .board-heading,
  .report-layout {
    grid-template-columns: 1fr;
  }

  .board-filters {
    grid-template-columns: 1.4fr .8fr .9fr;
  }

  .report-copy {
    position: static;
  }
}

@media (max-width: 760px) {
  .board-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .board-stats > div:nth-child(2) {
    border-right: 0;
  }

  .board-stats > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .board-heading {
    gap: 24px;
  }

  .board-filters {
    grid-template-columns: 1fr;
  }

  .kanban {
    width: calc(100% - 28px);
    grid-template-columns: repeat(5, 270px);
  }

  .board-column {
    min-width: 270px;
  }

  .report-layout {
    gap: 38px;
  }

  .report-panel,
  .issue-detail,
  .admin-login-panel,
  .admin-edit-panel {
    padding: 20px;
  }

  .admin-topbar {
    align-items: start;
    flex-direction: column;
  }

  .admin-form-grid {
    grid-template-columns: 1fr;
  }
}

/* Support landing page board teaser */
.support-board-intro-section {
  padding-bottom: 0;
}

.support-board-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 42px;
  align-items: center;
  padding: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0, rgba(237, 75, 210, .1), transparent 35%),
    linear-gradient(135deg, rgba(57, 221, 240, .055), rgba(8, 19, 33, .96));
}

.support-board-teaser h2 {
  font-size: clamp(32px, 4vw, 46px);
}

.support-board-teaser p:not(.eyebrow) {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
}

.support-board-teaser-actions {
  display: grid;
  gap: 10px;
  min-width: 230px;
}

@media (max-width: 840px) {
  .support-board-teaser {
    grid-template-columns: 1fr;
  }

  .support-board-teaser-actions {
    min-width: 0;
  }
}
