/*! VoteFirst embed SDK 2.8.0 default stylesheet: the public board's own components, all --vf-* properties, optional for a host styling its own. */

/* Three theme states: no data-vf-theme follows the system setting, and light or dark pins it; both palettes are written for one render. */

.vf {
  --vf-bg: var(--vf-l-bg, #e9eaee);
  --vf-text: var(--vf-l-text, #000000);
  --vf-text-secondary: var(--vf-l-text-secondary, #5f6269);
  --vf-accent: var(--vf-l-accent, #3871e1);
  --vf-card-bg: var(--vf-l-card-bg, #ffffff);
  --vf-border: var(--vf-l-border, #dddfe4);
  --vf-accent-text: var(--vf-l-accent-text, #ffffff);
  --vf-danger: var(--vf-l-danger, #c54e58);
  --vf-ok: var(--vf-l-ok, #2a6e47);
  --vf-info: var(--vf-l-info, #2f5eb9);
  --vf-warn: var(--vf-l-warn, #875817);
  --vf-purple: #6c4ebb;
  --vf-teal: #2a6c67;

  --vf-island: var(--vf-card-bg);
  --vf-inset: color-mix(in srgb, var(--vf-bg) 36%, #fff);
  --vf-text-tertiary: color-mix(in srgb, var(--vf-text) 50%, var(--vf-bg));
  --vf-border-control: color-mix(in srgb, var(--vf-border) 88%, var(--vf-text));
  --vf-hover: #00000012;
  --vf-tab: color-mix(in srgb, var(--vf-accent) 14%, var(--vf-island));
  --vf-tab-edge: color-mix(in srgb, var(--vf-accent) 42%, var(--vf-island));
  --vf-voted: color-mix(in srgb, var(--vf-accent) 12%, var(--vf-card-bg));
  --vf-accent-ink: color-mix(in srgb, var(--vf-accent) 82%, #000);
  --vf-accent-hover: color-mix(in srgb, var(--vf-accent) 86%, #000);
  --vf-backdrop: #1e1f2224;
  --vf-shadow: 0 8px 24px #00000024;

  /* The six colours a tag can wear, hashed from its name by the board and by this file alike. */
  --vf-tag-1: var(--vf-info);
  --vf-tag-2: var(--vf-teal);
  --vf-tag-3: var(--vf-purple);
  --vf-tag-4: var(--vf-warn);
  --vf-tag-5: var(--vf-ok);
  --vf-tag-6: var(--vf-danger);

  --vf-space: 8px;
  --vf-radius: 8px;
  --vf-radius-sm: calc(var(--vf-radius) / 2);
  --vf-font: inherit;
  --vf-font-size: 13px;
  --vf-changelog-width: 760px;

  color: var(--vf-text);
  font-family: var(--vf-font);
  font-size: var(--vf-font-size);
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
}

@media (prefers-color-scheme: dark) {
  .vf:not([data-vf-theme='light']) {
    --vf-bg: var(--vf-d-bg, #26282c);
    --vf-text: var(--vf-d-text, #d1d3d9);
    --vf-text-secondary: var(--vf-d-text-secondary, #9fa2a8);
    --vf-accent: var(--vf-d-accent, #3871e1);
    --vf-card-bg: var(--vf-d-card-bg, #26282c);
    --vf-border: var(--vf-d-border, #33353b);
    --vf-accent-text: var(--vf-d-accent-text, #ffffff);
    --vf-danger: var(--vf-d-danger, #f57e84);
    --vf-ok: var(--vf-d-ok, #6db083);
    --vf-info: var(--vf-d-info, #71a1fe);
    --vf-warn: var(--vf-d-warn, #e4ad5f);
    --vf-purple: #a894f6;
    --vf-teal: #8cc1ba;

    --vf-island: color-mix(in srgb, var(--vf-bg) 65%, #000);
    --vf-inset: color-mix(in srgb, var(--vf-bg) 87%, #000);
    --vf-text-tertiary: color-mix(in srgb, var(--vf-text) 45%, var(--vf-bg));
    --vf-border-control: color-mix(in srgb, var(--vf-border) 92%, var(--vf-text));
    --vf-hover: #ffffff17;
    --vf-tab: color-mix(in srgb, var(--vf-accent) 26%, var(--vf-island));
    --vf-tab-edge: color-mix(in srgb, var(--vf-accent) 52%, var(--vf-island));
    --vf-voted: color-mix(in srgb, var(--vf-accent) 20%, var(--vf-card-bg));
    --vf-accent-ink: color-mix(in srgb, var(--vf-accent) 62%, #fff);
    --vf-backdrop: #1e1f2252;
    --vf-shadow: 0 8px 24px #0000005c;
  }
}

.vf[data-vf-theme='dark'] {
  --vf-bg: var(--vf-d-bg, #26282c);
  --vf-text: var(--vf-d-text, #d1d3d9);
  --vf-text-secondary: var(--vf-d-text-secondary, #9fa2a8);
  --vf-accent: var(--vf-d-accent, #3871e1);
  --vf-card-bg: var(--vf-d-card-bg, #26282c);
  --vf-border: var(--vf-d-border, #33353b);
  --vf-accent-text: var(--vf-d-accent-text, #ffffff);
  --vf-danger: var(--vf-d-danger, #f57e84);
  --vf-ok: var(--vf-d-ok, #6db083);
  --vf-info: var(--vf-d-info, #71a1fe);
  --vf-warn: var(--vf-d-warn, #e4ad5f);
  --vf-purple: #a894f6;
  --vf-teal: #8cc1ba;

  --vf-island: color-mix(in srgb, var(--vf-bg) 65%, #000);
  --vf-inset: color-mix(in srgb, var(--vf-bg) 87%, #000);
  --vf-text-tertiary: color-mix(in srgb, var(--vf-text) 45%, var(--vf-bg));
  --vf-border-control: color-mix(in srgb, var(--vf-border) 92%, var(--vf-text));
  --vf-hover: #ffffff17;
  --vf-tab: color-mix(in srgb, var(--vf-accent) 26%, var(--vf-island));
  --vf-tab-edge: color-mix(in srgb, var(--vf-accent) 52%, var(--vf-island));
  --vf-voted: color-mix(in srgb, var(--vf-accent) 20%, var(--vf-card-bg));
  --vf-accent-ink: color-mix(in srgb, var(--vf-accent) 62%, #fff);
  --vf-backdrop: #1e1f2252;
  --vf-shadow: 0 8px 24px #0000005c;
}

/* A reset in :where(), so it beats the host's bare element selectors and never beats the vf- component rules that follow. */

.vf,
.vf *,
.vf *::before,
.vf *::after {
  box-sizing: border-box;
}

.vf :where(h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, pre, dl, dd, form, fieldset) {
  margin: 0;
  padding: 0;
}

.vf :where(ul, ol) {
  list-style: none;
}

.vf :where(button, input, textarea, select) {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: inherit;
}

.vf :where(h1, h2, h3, h4, h5, h6, p, a, span, time, div, article, header, section, li, button, input, textarea) {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-style: normal;
  font-weight: inherit;
  letter-spacing: normal;
  line-height: inherit;
  text-decoration: none;
  text-indent: 0;
  text-shadow: none;
  text-transform: none;
  word-spacing: normal;
}

.vf :where(img, svg) {
  max-width: 100%;
  flex: none;
}

.vf :focus-visible {
  outline: 2px solid var(--vf-accent);
  outline-offset: -1px;
}

.vf ::placeholder {
  color: var(--vf-text-tertiary);
  font-weight: 400;
  opacity: 1;
}

.vf [hidden] {
  display: none;
}

.vf-loading,
.vf-empty,
.vf-error,
.vf-form-error {
  padding: 8px 4px;
  color: var(--vf-text-secondary);
  font-size: 12px;
}

.vf-error,
.vf-form-error,
.vf-vote-refused {
  color: var(--vf-danger);
  font-size: 12px;
}

.vf-done {
  padding: 8px 0;
}

.vf-chip,
.vf-tag,
.vf-status,
.vf-release-type {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 18px;
  padding: 0 6px;
  border-radius: var(--vf-radius-sm);
  font-size: 11px;
  font-weight: 500;
  line-height: 18px;
  white-space: nowrap;
}

.vf-chip {
  background: var(--vf-tab);
  color: var(--vf-text);
}

.vf-status {
  background: var(--vf-inset);
  color: var(--vf-text);
}

.vf-tag,
.vf-avatar,
.vf-release-type {
  background: color-mix(in srgb, var(--vf-tag-color) 16%, transparent);
  color: var(--vf-tag-color);
}

.vf-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--vf-status-color, var(--vf-text-tertiary));
}

.vf [data-status='planned'] {
  --vf-status-color: var(--vf-purple);
}

.vf [data-status='in_progress'] {
  --vf-status-color: var(--vf-accent);
}

.vf [data-status='done'] {
  --vf-status-color: var(--vf-ok);
}

.vf [data-status='denied'] {
  --vf-status-color: var(--vf-danger);
}

/* The widget is the container, not the window, so the lanes ask their own width whether there is room for more than one. */

.vf-roadmap,
.vf-board {
  container-type: inline-size;
}

.vf-lane-tabs {
  display: none;
  gap: 4px;
  padding-bottom: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.vf-lane-tab {
  display: flex;
  flex: none;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: var(--vf-radius);
  color: var(--vf-text-secondary);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 130ms ease-out;
}

.vf-lane-tab:hover {
  background: var(--vf-hover);
}

.vf-lane-tab[aria-pressed='true'] {
  border-color: var(--vf-tab-edge);
  background: var(--vf-tab);
  color: var(--vf-text);
}

.vf-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 6px;
  align-items: start;
}

.vf-column {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--vf-bg);
  border-radius: var(--vf-radius);
  background: var(--vf-island);
}

.vf-column-header {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding-left: 4px;
}

.vf-column-title {
  font-size: 13px;
  font-weight: 600;
}

.vf-column-count {
  height: 18px;
  padding: 0 6px;
  border-radius: var(--vf-radius-sm);
  background: var(--vf-inset);
  color: var(--vf-text-secondary);
  font-size: 11px;
  font-weight: 500;
  line-height: 18px;
  font-variant-numeric: tabular-nums;
}

.vf-column-content,
.vf-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vf-folded .vf-line:nth-child(n + 5),
.vf-folded .vf-fold ~ .vf-more {
  display: none;
}

.vf-card {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--vf-border);
  border-radius: var(--vf-radius);
  background: var(--vf-card-bg);
  transition: border-color 130ms ease-out;
}

.vf-card:hover {
  border-color: var(--vf-border-control);
}

.vf-card > .vf-vote-refused {
  flex-basis: 100%;
}

.vf-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.vf-card-title {
  color: var(--vf-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  overflow-wrap: anywhere;
}

.vf-card-description {
  display: -webkit-box;
  overflow: hidden;
  color: var(--vf-text-secondary);
  font-size: 12px;
  line-height: 17px;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.vf-card-progress,
.vf-progress-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--vf-text-secondary);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.vf-progress-bar,
.vf-top-bar-track {
  flex: 1;
  height: 4px;
  overflow: hidden;
  border-radius: var(--vf-radius-sm);
  background: var(--vf-inset);
}

.vf-progress-fill,
.vf-top-bar-fill {
  height: 100%;
  background: var(--vf-accent);
}

.vf-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--vf-text-secondary);
  font-size: 12px;
}

.vf-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.vf-meta-icon,
.vf-detail-stat-icon,
.vf-comment-like-icon,
.vf-vote-big .vf-vote-icon {
  width: 14px;
  height: 14px;
}

.vf-chip .vf-meta-icon {
  width: 12px;
  height: 12px;
}

.vf-line {
  flex-wrap: nowrap;
  align-items: center;
  height: 36px;
  padding: 0 8px;
}

.vf-line .vf-card-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vf-line[data-status='denied'] .vf-card-title {
  color: var(--vf-text-secondary);
}

.vf-line-votes {
  min-width: 32px;
  height: 22px;
  padding: 0 4px;
  border: 1px solid var(--vf-border-control);
  border-radius: var(--vf-radius-sm);
  color: var(--vf-text-secondary);
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* These widgets sit among ordinary links in a stranger's page, where the application's arrow cursor reads as a broken control. */
button.vf-card-title,
button.vf-top-heading,
button.vf-release-item,
.vf-vote-btn,
.vf-button,
.vf-more,
.vf-retry,
.vf-modal-close,
.vf-detail-back,
.vf-comment-sort-btn,
.vf-comment-like,
.vf-comment-reply-btn,
.vf-comment-delete {
  cursor: pointer;
}

.vf-vote-btn,
.vf-vote-display {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 44px;
  height: 24px;
  padding: 0 6px;
  border: 1px solid var(--vf-border-control);
  border-radius: var(--vf-radius-sm);
  color: var(--vf-text);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: background-color 130ms ease-out, border-color 130ms ease-out;
}

.vf-vote-display {
  border-color: transparent;
  color: var(--vf-text-secondary);
}

.vf-vote-btn:hover:not(:disabled) {
  background: var(--vf-hover);
}

.vf-vote-btn[aria-pressed='true'] {
  border-color: var(--vf-accent);
  background: var(--vf-voted);
}

.vf-vote-btn:disabled {
  cursor: default;
  opacity: 0.6;
}

.vf-vote-icon {
  width: 12px;
  height: 12px;
  color: var(--vf-text-secondary);
}

.vf-vote-btn[aria-pressed='true'] .vf-vote-icon {
  color: var(--vf-accent-ink);
}

.vf-card > .vf-vote-btn,
.vf-card > .vf-vote-display {
  flex-direction: column;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--vf-radius);
  font-size: 14px;
  line-height: 16px;
}

.vf-vote-big {
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--vf-radius);
  font-size: 13px;
  font-weight: 500;
}

.vf-vote-big .vf-vote-count {
  font-weight: 600;
}

.vf-badge-inner {
  display: inline-flex;
  align-items: center;
  gap: var(--vf-space);
}

.vf-badge-title {
  font-weight: 500;
}

.vf-badge-inner .vf-branding {
  margin-top: 0;
}

.vf-top-features {
  container-type: inline-size;
}

.vf-top-list {
  overflow: hidden;
  border: 1px solid var(--vf-bg);
  border-radius: var(--vf-radius);
  background: var(--vf-island);
}

.vf-top-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
}

.vf-top-item + .vf-top-item {
  border-top: 1px solid var(--vf-border);
}

.vf-top-rank {
  width: 24px;
  flex: none;
  color: var(--vf-text-tertiary);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.vf-top-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.vf-top-heading {
  align-self: flex-start;
  max-width: 100%;
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

button.vf-top-heading:hover {
  color: var(--vf-info);
}

.vf-top-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--vf-text-secondary);
}

.vf-top-description {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vf-top-share {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  width: 240px;
}

.vf-top-pct {
  color: var(--vf-text-secondary);
  font-size: 12px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.vf-top-votes {
  width: 64px;
  flex: none;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.vf-changelog {
  container-type: inline-size;
}

.vf-releases {
  max-width: var(--vf-changelog-width);
  border: 1px solid var(--vf-bg);
  border-radius: var(--vf-radius);
  background: var(--vf-island);
}

.vf-releases > .vf-empty {
  padding: 24px;
}

.vf-release {
  padding: 24px;
}

.vf-release + .vf-release {
  border-top: 1px solid var(--vf-border);
}

.vf-release-when {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 18px;
  margin-bottom: 4px;
  color: var(--vf-text-secondary);
  font-size: 12px;
}

.vf-release-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  overflow-wrap: anywhere;
}

.vf-release-body {
  max-width: 600px;
  margin-top: 4px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.vf-release-body > * + * {
  margin-top: 8px;
}

.vf-release-body :is(h1, h2, h3, h4, h5, h6) {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
}

.vf-release-body :is(ul, ol) {
  padding-left: 20px;
}

.vf-release-body ul {
  list-style: disc;
}

.vf-release-body ol {
  list-style: decimal;
}

.vf-release-body a {
  color: var(--vf-info);
}

.vf-release-body a:hover {
  text-decoration: underline;
}

.vf-release-body code {
  padding: 1px 4px;
  border-radius: var(--vf-radius-sm);
  background: var(--vf-inset);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.vf-release-body pre {
  padding: 12px 16px;
  overflow-x: auto;
  border-radius: var(--vf-radius);
  background: var(--vf-inset);
}

.vf-release-body pre code {
  padding: 0;
  background: none;
}

.vf-release-features {
  margin: 12px -8px 0;
}

.vf-release-feature {
  --vf-tag-color: var(--vf-info);
}

.vf-release-feature[data-changelog-type='new'] {
  --vf-tag-color: var(--vf-teal);
}

.vf-release-feature[data-changelog-type='improvement'] {
  --vf-tag-color: var(--vf-purple);
}

.vf-release-feature[data-changelog-type='fix'],
.vf-release-feature[data-changelog-type='bug_fix'] {
  --vf-tag-color: var(--vf-warn);
}

.vf-release-feature[data-changelog-type='security'],
.vf-release-feature[data-changelog-type='breaking_change'] {
  --vf-tag-color: var(--vf-danger);
}

.vf-release-item {
  display: grid;
  grid-template-columns: minmax(84px, max-content) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 32px;
  padding: 0 8px;
  border-radius: var(--vf-radius);
  transition: background-color 130ms ease-out;
}

button.vf-release-item:hover {
  background: var(--vf-hover);
}

.vf-release-type {
  justify-self: start;
}

.vf-release-feature-name {
  grid-column: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vf-release-feature-voters {
  color: var(--vf-text-secondary);
  font-size: 12px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.vf-button,
.vf-more,
.vf-retry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--vf-border-control);
  border-radius: var(--vf-radius);
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 130ms ease-out;
}

.vf-button:hover,
.vf-more:hover,
.vf-retry:hover {
  background: var(--vf-hover);
}

.vf-more {
  width: 100%;
  border-color: transparent;
  color: var(--vf-text-secondary);
  font-weight: 400;
}

.vf > .vf-more,
.vf-retry {
  margin-top: 8px;
}

.vf-button-primary {
  border-color: transparent;
  background: var(--vf-accent);
  color: var(--vf-accent-text);
}

.vf-button-primary:hover {
  background: var(--vf-accent-hover);
}

.vf-button-primary:disabled {
  background: var(--vf-accent);
  cursor: default;
  opacity: 0.5;
}

.vf-branding {
  display: inline-flex;
  margin-top: 12px;
  color: var(--vf-text-secondary);
  font-size: 12px;
  transition: color 130ms ease-out;
}

.vf-branding:hover {
  color: var(--vf-text);
}

.vf-detail {
  border: 1px solid var(--vf-border);
  border-radius: var(--vf-radius);
  background: var(--vf-island);
}

.vf-detail-header {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 16px 0 8px;
  border-bottom: 1px solid var(--vf-border);
}

.vf-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  margin-right: auto;
  padding: 0 8px 0 4px;
  border-radius: var(--vf-radius);
  color: var(--vf-text-secondary);
  transition: background-color 130ms ease-out;
}

.vf-detail-back:hover {
  background: var(--vf-hover);
  color: var(--vf-text);
}

.vf-detail-back-icon {
  width: 16px;
  height: 16px;
}

.vf-detail-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 20px 24px 32px;
}

.vf-detail-lead {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vf-detail-heading {
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  overflow-wrap: anywhere;
}

.vf-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vf-detail-description,
.vf-dev-response-text,
.vf-comment-content {
  line-height: 20px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.vf-detail-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.vf-detail-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--vf-text-secondary);
  font-variant-numeric: tabular-nums;
}

.vf-detail-progress-header,
.vf-comments-title {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 20px;
  color: var(--vf-text-secondary);
  font-size: 12px;
  font-weight: 500;
}

.vf-detail-progress-header {
  margin-bottom: 4px;
}

.vf-dev-response {
  padding: 12px 14px 14px;
  border: 1px solid var(--vf-tab-edge);
  border-radius: var(--vf-radius);
  background: var(--vf-tab);
}

.vf-dev-response-denial {
  border-color: var(--vf-border);
  background: var(--vf-inset);
}

.vf-dev-response .vf-chip {
  background: var(--vf-island);
}

.vf-dev-response-text {
  margin-top: 6px;
}

.vf-comments-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.vf-comments-title {
  margin-right: auto;
}

.vf-comment-sort {
  display: flex;
  gap: 2px;
  padding: 1px;
  border: 1px solid var(--vf-border);
  border-radius: var(--vf-radius);
  background: var(--vf-inset);
}

.vf-comment-sort-btn {
  height: 22px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: var(--vf-radius-sm);
  color: var(--vf-text-secondary);
  font-size: 12px;
}

.vf-comment-sort-btn[aria-pressed='true'] {
  border-color: var(--vf-border-control);
  background: var(--vf-card-bg);
  color: var(--vf-text);
}

.vf-composer {
  border: 1px solid var(--vf-border-control);
  border-radius: var(--vf-radius);
}

.vf-composer:focus-within {
  border-color: transparent;
  outline: 2px solid var(--vf-accent);
  outline-offset: -1px;
}

.vf-comment-input {
  display: block;
  width: 100%;
  padding: 8px 10px;
  line-height: 20px;
  resize: none;
}

.vf-comment-input:focus-visible {
  outline: 0;
}

.vf-composer-bar {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding: 0 6px 6px;
}

.vf-composer > .vf-error {
  padding: 0 10px 8px;
}

.vf-comment-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.vf-comment {
  display: flex;
  gap: 10px;
}

.vf-avatar {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
}

.vf-avatar-team {
  width: 20px;
  height: 20px;
  border-radius: var(--vf-radius-sm);
  background: var(--vf-accent);
  color: var(--vf-accent-text);
}

.vf-comment .vf-avatar-team {
  width: 24px;
  height: 24px;
}

.vf-comment-body {
  flex: 1;
  min-width: 0;
}

.vf-comment-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 20px;
}

.vf-comment-author {
  font-weight: 500;
}

.vf-comment-date {
  color: var(--vf-text-secondary);
  font-size: 12px;
}

.vf-comment-content {
  margin-top: 2px;
}

.vf-comment-actions {
  display: flex;
  gap: 2px;
  margin: 2px 0 0 -6px;
}

.vf-comment-like,
.vf-comment-reply-btn,
.vf-comment-delete {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 6px;
  border-radius: var(--vf-radius-sm);
  color: var(--vf-text-secondary);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  transition: background-color 130ms ease-out;
}

.vf-comment-like:hover,
.vf-comment-reply-btn:hover,
.vf-comment-delete:hover {
  background: var(--vf-hover);
}

.vf-comment-like[aria-pressed='true'] {
  color: var(--vf-accent-ink);
}

.vf-comment-replies {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vf-comment-replies:not(:empty) {
  margin-top: 12px;
}

.vf-comment-body > .vf-composer {
  margin-top: 8px;
}

.vf-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.vf-modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--vf-backdrop);
}

.vf-modal-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow: hidden;
  border: 1px solid var(--vf-border-control);
  border-radius: var(--vf-radius);
  background: var(--vf-card-bg);
  /* The one surface in the SDK that floats, and therefore the one that may carry a shadow. */
  box-shadow: var(--vf-shadow);
}

.vf-modal-header {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 6px 0 12px;
  border-bottom: 1px solid var(--vf-border);
}

.vf-modal-title {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
}

.vf-modal-close {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--vf-radius);
  color: var(--vf-text-secondary);
  transition: background-color 130ms ease-out;
}

.vf-modal-close:hover {
  background: var(--vf-hover);
}

.vf-modal-close-icon {
  width: 16px;
  height: 16px;
}

.vf-modal-body {
  flex: 1;
  min-height: 0;
  padding: 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.vf-modal-intro {
  margin-bottom: 12px;
  color: var(--vf-text-secondary);
}

.vf-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vf-input,
.vf-textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--vf-border-control);
  border-radius: var(--vf-radius);
  background: var(--vf-inset);
  color: var(--vf-text);
}

.vf-input:focus,
.vf-textarea:focus {
  border-color: transparent;
}

.vf-input {
  height: 32px;
  padding: 0 10px;
  font-weight: 500;
}

.vf-textarea {
  padding: 6px 10px;
  line-height: 20px;
  resize: none;
}

.vf-similar {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vf-similar-label {
  margin-bottom: 4px;
  color: var(--vf-text-secondary);
  font-size: 12px;
}

.vf-match {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 4px 0 8px;
  border-radius: var(--vf-radius);
  background: var(--vf-inset);
}

.vf-match-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vf-match-status {
  color: var(--vf-text-secondary);
  font-size: 12px;
  white-space: nowrap;
}

.vf-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vf-form-note {
  flex: 1;
  color: var(--vf-text-secondary);
  font-size: 12px;
}

@media (prefers-reduced-motion: no-preference) {
  .vf-modal-panel {
    animation: vf-rise 130ms ease-out;
  }
}

@keyframes vf-rise {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

@keyframes vf-sheet {
  from {
    transform: translateY(100%);
  }
}

@media (max-width: 599px) {
  .vf-modal {
    align-items: flex-end;
    padding: 0;
  }

  .vf-modal-panel {
    max-width: none;
    max-height: 92%;
    border-width: 1px 0 0;
    border-radius: var(--vf-radius) var(--vf-radius) 0 0;
  }

  .vf-modal-header {
    height: 48px;
    padding: 0 8px 0 16px;
  }

  .vf-modal-body {
    padding: 16px;
  }

  .vf-input,
  .vf-match {
    height: 40px;
  }

  .vf-form-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .vf-form-actions .vf-button {
    height: 40px;
  }
}

@media (max-width: 599px) and (prefers-reduced-motion: no-preference) {
  .vf-modal-panel {
    animation: vf-sheet 240ms cubic-bezier(0.2, 0, 0, 1);
  }
}

@media (pointer: coarse) {
  .vf-vote-btn,
  .vf-button,
  .vf-more,
  .vf-retry,
  .vf-modal-close,
  .vf-lane-tab,
  .vf-comment-like,
  .vf-comment-reply-btn {
    position: relative;
  }

  .vf-vote-btn::after,
  .vf-button::after,
  .vf-more::after,
  .vf-retry::after,
  .vf-modal-close::after,
  .vf-lane-tab::after,
  .vf-comment-like::after,
  .vf-comment-reply-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 44px;
    min-height: 44px;
    transform: translate(-50%, -50%);
  }

  /* iOS zooms the page when a field under 16px takes focus. */
  .vf-input,
  .vf-textarea,
  .vf-comment-input {
    font-size: 16px;
  }
}

@container (max-width: 599px) {
  .vf-lane-tabs {
    display: flex;
  }

  .vf-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .vf-lane-tabs + .vf-columns > .vf-column:not(.vf-column-current) {
    display: none;
  }

  .vf-detail-body {
    padding: 16px 16px 24px;
  }

  .vf-top-item {
    gap: 12px;
    padding: 10px 12px;
  }

  .vf-top-rank {
    width: 16px;
  }

  .vf-top-share,
  .vf-top-description {
    display: none;
  }

  .vf-top-votes {
    width: 56px;
  }

  .vf-release {
    padding: 20px 16px;
  }

  .vf-release-item {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 8px;
    padding: 8px;
  }

  .vf-release-feature-name {
    grid-column: 1 / -1;
    grid-row: 1;
    white-space: normal;
  }
}
