:root {
  color-scheme: light;
  --bg: #f7f5f1;
  --panel: #ffffff;
  --muted-panel: #f0ede8;
  --text: #191817;
  --muted: #746f69;
  --line: #ded9d2;
  --input-panel: #ffffff;
  --status-planned-bg: #fff3db;
  --status-planned-text: #f19a00;
  --status-progress-bg: #dcf7fb;
  --status-progress-text: #079db3;
  --status-done-bg: #ddf6ed;
  --status-done-text: #0f9369;
  --status-declined-bg: #ffe5e5;
  --status-declined-text: #df4249;
  --shadow: 0 14px 34px rgba(34, 30, 24, 0.08);
  --soft-shadow: 0 24px 70px rgba(34, 30, 24, 0.12);
  --accent: #111111;
  --blue: #4f6df5;
  --red: #ef4f55;
  --orange: #f5a400;
  --green: #20a67a;
  --cyan: #24bad0;
}

body.dark {
  color-scheme: dark;
  --bg: #141412;
  --panel: #20201d;
  --muted-panel: #292823;
  --text: #f4f1eb;
  --muted: #b4aea5;
  --line: #3d3932;
  --input-panel: #181815;
  --status-planned-bg: #3b2c12;
  --status-planned-text: #ffc15c;
  --status-progress-bg: #12343a;
  --status-progress-text: #63d9eb;
  --status-done-bg: #12382a;
  --status-done-text: #6ee2ad;
  --status-declined-bg: #3a2020;
  --status-declined-text: #ff9a9d;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  --accent: #f4f1eb;
  --soft-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.8), transparent 30%),
    linear-gradient(180deg, #fbfaf8 0%, var(--bg) 46%, #f1eee9 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
}

body.dark {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.06), transparent 30%),
    linear-gradient(180deg, #181715 0%, var(--bg) 58%, #11110f 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  width: min(1040px, calc(100vw - 32px));
  position: relative;
  margin: 0 auto;
  padding: 24px 0 56px;
}

.app-picker {
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  padding: 96px 0 40px;
}

.app-picker h1 {
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  line-height: 1.05;
}

.app-picker p {
  max-width: 560px;
  margin: 16px 0 48px;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 650;
}

.app-picker h2 {
  margin: 0 0 24px;
  font-size: 1.75rem;
}

.app-type-slider {
  width: min(100%, 640px);
  min-height: 46px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: -8px 0 28px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--muted-panel) 72%, var(--panel));
}

.app-type-slider button {
  min-width: 0;
  min-height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-type-slider button.active {
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 8px 18px rgba(20, 18, 16, 0.08);
}

body.dark .app-type-slider button.active {
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.app-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.app-card,
.app-empty-card,
.feedback-card,
.release-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

body.dark .app-card,
body.dark .app-empty-card,
body.dark .feedback-card,
body.dark .release-card,
body.dark .comment-form,
body.dark .comment-item {
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
}

.app-card {
  height: 226px;
  display: grid;
  grid-template-rows: 44px auto 1fr;
  align-content: start;
  gap: 14px;
  position: relative;
  overflow: hidden;
  padding: 24px;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.app-empty-card {
  min-height: 226px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  grid-column: 1 / -1;
  padding: 28px;
  text-align: center;
  border-style: dashed;
}

.app-empty-card strong {
  font-size: 1.24rem;
}

.app-empty-card span:last-child {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.45;
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--line) 50%, var(--accent));
  box-shadow: var(--soft-shadow);
}

.app-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -44px auto;
  width: 128px;
  height: 128px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--orange) 18%, transparent);
}

.app-card > * {
  position: relative;
  z-index: 1;
}

.app-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.app-type-badge {
  min-width: 0;
  max-width: 150px;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted-panel) 76%, transparent);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-mark {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 0;
  border-radius: 14px;
  background: var(--muted-panel);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 950;
}

.app-icon {
  padding: 0;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(20, 18, 16, 0.12);
}

.app-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

body.dark .app-icon {
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.app-card strong {
  display: -webkit-box;
  margin-bottom: 0;
  font-size: 1.28rem;
  line-height: 1.22;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.app-description {
  color: var(--muted);
  display: block;
  line-height: 1.45;
  overflow: hidden;
  max-height: 4.35em;
}

.app-description.is-faded {
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, rgba(0, 0, 0, 0.74) 74%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 58%, rgba(0, 0, 0, 0.74) 74%, transparent 100%);
}

.icon-button,
.language-select {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 6px 14px rgba(20, 18, 16, 0.06);
}

.icon-button {
  display: inline-grid;
  place-items: center;
}

.admin-entry-link {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 950;
}

.admin-entry-link:hover {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
  transform: translateY(-1px);
}

.language-select {
  width: 58px;
  padding: 0 9px;
  font-size: 0.78rem;
  font-weight: 900;
}

.top-controls {
  position: fixed;
  top: 34px;
  right: 44px;
  display: flex;
  gap: 8px;
  align-items: center;
  z-index: 40;
}

.board {
  min-width: 0;
  max-width: 100%;
  padding-top: 28px;
}

.board[hidden],
.app-picker[hidden],
.form-view[hidden],
.primary-button[hidden] {
  display: none !important;
}

.topbar,
.form-header {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
  margin-bottom: 16px;
}

.topbar h1,
.form-header h1 {
  min-width: 0;
  margin: 0;
  font-size: 1.8rem;
  overflow-wrap: anywhere;
}

.primary-button,
.secondary-button {
  min-height: 40px;
  max-width: 100%;
  border-radius: 13px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

.primary-button {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.16);
}

body.dark .primary-button {
  color: #181815;
}

.topbar .primary-button {
  min-width: 172px;
  padding-inline: 24px;
  text-align: center;
}

.secondary-button {
  background: var(--panel);
  color: var(--muted);
  border-color: var(--line);
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  min-width: 0;
  max-width: 100%;
  padding: 4px;
  margin-bottom: 22px;
  background: var(--muted-panel);
  border: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
  border-radius: 15px;
}

.tab {
  min-width: 0;
  height: 34px;
  overflow: hidden;
  padding: 0 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.tab.active {
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.filter-block {
  min-width: 0;
  max-width: 100%;
  margin: 18px 0;
}

.sort-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 0.36fr);
  align-items: end;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--muted-panel) 66%, var(--panel));
}

.sort-row label {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.sort-row select {
  min-width: 0;
  max-width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  background: var(--panel);
  color: var(--text);
  font-weight: 850;
}

.sort-row input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  background: var(--panel);
  color: var(--text);
  font-weight: 750;
}

.filter-block h2 {
  margin: 0 0 12px;
  color: #aaa39a;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chip-row {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}

.chip {
  flex: 0 0 auto;
  min-width: max-content;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.chip span {
  min-width: 0;
}

.chip.active {
  color: var(--text);
  box-shadow: 0 4px 14px rgba(24, 21, 18, 0.08);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--blue);
}

.count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--muted-panel);
  color: #f26c45;
  font-size: 0.72rem;
}

body.dark .count {
  color: #ff9a76;
}

.item-list,
.release-list {
  min-width: 0;
  max-width: 100%;
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.view {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.feedback-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 20px;
  padding: 30px 34px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.feedback-card.is-private-match {
  border-color: color-mix(in srgb, var(--orange) 56%, var(--line));
}

.feedback-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--soft-shadow);
}

.vote-stack {
  width: 48px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
}

.vote-button {
  width: 40px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--muted-panel);
  color: var(--muted);
  display: grid;
  place-items: center;
  line-height: 1;
  font-weight: 900;
}

.vote-button.active {
  border-color: color-mix(in srgb, var(--red) 42%, var(--line));
  background: color-mix(in srgb, var(--red) 10%, var(--panel));
  color: #e85d38;
}

.vote-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  border-style: dashed;
  color: var(--muted);
}

.vote-button:disabled + .vote-count {
  color: var(--muted);
}

body.dark .vote-button.active {
  background: color-mix(in srgb, var(--red) 18%, var(--panel));
  color: #ff8b68;
}

.vote-count {
  width: 40px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #e85d38;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}

body.dark .vote-count {
  color: #ff8b68;
}

.ticket {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  margin-right: 8px;
  min-width: 72px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: #a9a199;
  font-size: 0.75rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}

.ticket-link {
  margin-right: 0;
  background: var(--panel);
  font-family: inherit;
  cursor: pointer;
}

.ticket-link:hover,
.ticket-link:focus-visible {
  border-color: color-mix(in srgb, var(--blue) 55%, var(--line));
  color: var(--text);
  text-decoration: none;
}

.ticket-link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

body.dark .ticket {
  color: #cfc7bd;
}

.feedback-card h3 {
  display: inline;
  margin: 0;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.feedback-card p {
  margin: 6px 0 14px;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.feedback-image {
  max-width: min(440px, 100%);
  max-height: 280px;
  display: block;
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  object-fit: contain;
}

.status-pill,
.type-pill,
.environment-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 25px;
  border-radius: 999px;
  padding: 0 11px;
  background: var(--muted-panel);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.environment-pill {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.comment-toggle {
  min-height: 28px;
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: var(--muted-panel);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 900;
}

.comment-panel {
  display: none;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.comment-panel.open {
  display: grid;
  gap: 16px;
}

.comment-empty {
  margin: 0;
  color: var(--muted);
  font-style: italic;
}

.comment-list {
  display: grid;
  gap: 10px;
}

.comment-item {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--muted-panel) 58%, var(--panel));
}

.comment-item.admin-comment {
  border-color: color-mix(in srgb, var(--orange) 42%, var(--line));
  background: color-mix(in srgb, var(--status-planned-bg) 56%, var(--panel));
}

.comment-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 0.88rem;
}

.comment-item p {
  margin: 0;
}

.comment-item img {
  max-width: min(360px, 100%);
  max-height: 260px;
  display: block;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  object-fit: contain;
}

.comment-form {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--muted-panel);
}

.comment-form p {
  margin: 0;
  color: var(--muted);
}

.comment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: var(--input-panel);
  color: var(--text);
  resize: vertical;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.comment-file-name {
  color: var(--muted);
  font-size: 0.82rem;
}

.status-pill.planned {
  background: var(--status-planned-bg);
  color: var(--status-planned-text);
}

.status-pill.in_progress {
  background: var(--status-progress-bg);
  color: var(--status-progress-text);
}

.status-pill.done {
  background: var(--status-done-bg);
  color: var(--status-done-text);
}

.status-pill.declined {
  background: var(--status-declined-bg);
  color: var(--status-declined-text);
}

.release-card {
  padding: 28px;
}

.release-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: baseline;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.release-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.release-header time {
  color: #969088;
}

.release-card ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.release-card li {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 34px;
}

.roadmap-release-card {
  padding: 26px 24px 28px;
}

.roadmap-release-card .release-header {
  align-items: flex-start;
}

.roadmap-release-card .release-header > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.roadmap-release-card .release-header h2 {
  font-size: 1.18rem;
  overflow-wrap: anywhere;
}

.roadmap-release-card .release-header time {
  padding-top: 4px;
  white-space: nowrap;
}

.roadmap-release-card > p {
  margin: 16px 0 0;
  max-width: 860px;
  color: var(--muted);
  line-height: 1.5;
}

.release-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--status-planned-bg);
  color: var(--status-planned-text);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.release-status.in_progress {
  background: var(--status-progress-bg);
  color: var(--status-progress-text);
}

.release-status.done {
  background: var(--status-done-bg);
  color: var(--status-done-text);
}

.roadmap-task-list {
  display: grid;
  gap: 12px;
  padding-top: 16px !important;
  border-top: 1px solid var(--line);
}

.roadmap-task-list li {
  display: block;
}

.roadmap-task-row {
  width: 100%;
  min-height: 34px;
  display: grid;
  grid-template-columns: 18px auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  color: inherit;
}

.roadmap-task-type {
  color: var(--orange);
  font-weight: 900;
  text-align: center;
}

.roadmap-task-list strong {
  min-width: 0;
  font-size: 1rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.roadmap-task-meta {
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.feedback-card.is-roadmap-target {
  border-color: color-mix(in srgb, var(--blue) 70%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 18%, transparent), var(--shadow);
}

.release-card .changelog-items li {
  grid-template-columns: 1fr;
}

.changelog-store-notes {
  display: grid;
  gap: 12px;
}

.changelog-store-notes h3 {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.changelog-release-card {
  display: grid;
  gap: 18px;
}

.changelog-release-card > p {
  margin: -4px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.changelog-group {
  display: grid;
  gap: 12px;
}

.changelog-section-group {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--muted-panel) 58%, var(--panel));
}

.changelog-group h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 0.92rem;
}

.changelog-section-group h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.95rem;
}

.changelog-group h3 span {
  color: var(--orange);
}

.changelog-section-group h3 span {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--orange) 14%, var(--panel));
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 900;
}

.changelog-section-group .changelog-items {
  display: grid;
  gap: 9px;
  margin: 0 !important;
}

.changelog-section-group .changelog-items li {
  position: relative;
  min-height: 0;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.45;
}

.changelog-section-group .changelog-items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--orange) 70%, var(--line));
}

.changelog-ticket-list {
  display: grid;
  gap: 10px;
  margin: 0 !important;
}

.changelog-ticket-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 26px;
}

.changelog-ticket-title {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.form-view {
  width: min(600px, 100%);
  margin: 0 auto;
  padding-top: 20px;
}

.form-header {
  grid-template-columns: 40px 1fr;
  margin-bottom: 28px;
}

.entry-form {
  display: grid;
  gap: 26px;
}

.entry-form label {
  display: grid;
  gap: 10px;
  font-weight: 800;
}

.entry-form input,
.entry-form select,
.entry-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--input-panel);
  color: var(--text);
  padding: 14px;
  resize: vertical;
}

.checkbox-line {
  display: flex !important;
  grid-template-columns: none;
  flex-direction: row;
  align-items: center;
}

.checkbox-line input {
  width: 24px;
  height: 24px;
}

.bot-field,
.bot-field-input {
  position: absolute;
  left: -10000px;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
  pointer-events: none;
}

.privacy-note {
  margin: -14px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.similar-box {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--muted-panel);
}

.similar-box button {
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  background: var(--panel);
  color: var(--text);
  font-weight: 850;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.message {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
}

.empty {
  color: var(--muted);
  text-align: center;
  padding: 44px 0;
}

.support-shell {
  width: min(960px, calc(100vw - 32px));
  padding-top: 92px;
}

.support-hero {
  position: relative;
  overflow: hidden;
  padding: 34px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.support-hero::after,
.support-contact-card::after {
  content: "";
  position: absolute;
  inset: auto -42px -56px auto;
  width: 156px;
  height: 156px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--orange) 18%, transparent);
}

.support-kicker,
.lang-label {
  display: inline-flex;
  width: fit-content;
  min-height: 26px;
  align-items: center;
  margin-bottom: 14px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--muted-panel);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.support-hero h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(2.3rem, 4.6vw, 4.4rem);
  line-height: 1.04;
}

.support-hero p {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 650;
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.support-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.support-app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.support-app-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  background: var(--muted-panel);
  color: var(--text);
  font-weight: 850;
  text-decoration: none;
}

.support-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  gap: 18px;
  align-items: start;
}

.support-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.support-card h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
}

.support-card h3 {
  margin: 24px 0 10px;
  font-size: 1rem;
}

.support-card p,
.support-card li {
  color: var(--muted);
  line-height: 1.58;
}

.support-card ul {
  margin: 0;
  padding-left: 20px;
}

.support-contact {
  margin: 18px 0 20px;
  font-weight: 800;
}

.support-card .privacy-note {
  margin: 0;
}

.support-contact a,
.support-help-card a {
  color: var(--text);
  font-weight: 850;
  text-decoration: none;
}

.support-contact a:hover,
.support-help-card a:hover {
  text-decoration: underline;
}

.marketing-shell {
  width: min(1040px, calc(100vw - 32px));
}

.marketing-hero {
  min-height: 390px;
  display: grid;
  align-content: end;
}

.marketing-hero::before {
  content: "";
  position: absolute;
  inset: 30px 34px auto auto;
  width: 92px;
  height: 92px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--orange) 24%, transparent), transparent 68%),
    var(--muted-panel);
  box-shadow: 0 18px 48px rgba(20, 18, 16, 0.08);
}

body.dark .marketing-hero::before {
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.marketing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.marketing-feature-card {
  min-height: 250px;
  display: grid;
  grid-template-rows: 44px auto 1fr;
  gap: 14px;
}

.marketing-detail-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
}

.legal-shell {
  width: min(1080px, calc(100vw - 32px));
}

.legal-hero {
  min-height: 330px;
}

.legal-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1.38fr);
  gap: 18px;
  align-items: start;
}

.legal-card {
  min-height: 100%;
}

.legal-definition-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.legal-definition-list div {
  padding-bottom: 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.legal-definition-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.legal-definition-list dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.legal-definition-list dd {
  margin: 0;
  color: var(--text);
  font-weight: 850;
}

.legal-definition-list a {
  color: inherit;
  text-decoration: none;
}

.legal-definition-list a:hover {
  text-decoration: underline;
}

.legal-section-list {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.legal-copy-section {
  padding-top: 18px;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.legal-copy-section h3 {
  margin: 0 0 8px;
  color: var(--text);
}

.legal-copy-section p {
  margin: 0;
}

.app-meta-footer {
  width: 100%;
  min-height: 58px;
  margin: 0;
  padding: 14px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: color-mix(in srgb, var(--muted-panel) 74%, var(--bg));
  border-top: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.app-meta-footer.has-footer-links {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
  justify-content: stretch;
}

.app-meta-content {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-side-link {
  color: var(--muted);
  font-weight: 900;
  text-decoration: none;
  transition: color 160ms ease;
}

.footer-link-list {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-side-link:hover {
  color: var(--text);
}

.footer-side-link-left {
  justify-self: start;
}

.footer-side-link-right {
  justify-self: end;
}

.app-meta-footer strong {
  color: var(--text);
}

.app-meta-dot {
  opacity: 0.45;
}

.env-badge {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  background: var(--muted-panel);
  color: var(--muted);
}

.env-badge.dev {
  background: #ffe4e4;
  color: #d63a3f;
}

body.dark .env-badge.dev {
  background: #3a2020;
  color: #ff9a9d;
}

@media (max-width: 980px) {
  .app-grid,
  .marketing-grid,
  .marketing-detail-grid,
  .support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-shell,
  .marketing-shell {
    width: min(100% - 24px, 920px);
  }

  .support-hero h1 {
    font-size: clamp(2.4rem, 9vw, 4.4rem);
  }
}

@media (max-width: 720px) {
  .shell {
    width: 100%;
    max-width: 100vw;
    padding-right: 10px;
    padding-left: 10px;
    padding-top: 12px;
    overflow-x: hidden;
  }

  .app-picker {
    justify-content: flex-start;
    padding-top: 80px;
  }

  .top-controls {
    right: 10px;
    top: 10px;
    max-width: calc(100vw - 20px);
  }

  .board {
    width: 100%;
    max-width: calc(100vw - 20px);
    overflow-x: hidden;
    padding-top: 66px;
  }

  .app-picker p {
    margin-bottom: 34px;
    padding: 0 4px;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    overflow: hidden;
  }

  .topbar .primary-button {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .feedback-card {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 22px 18px;
  }

  .item-list,
  .release-list {
    width: 100%;
    max-width: 100%;
    margin-top: 28px;
  }

  .sort-row {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .sort-row label {
    gap: 7px;
  }

  .sort-row label,
  .sort-row input,
  .sort-row select {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }

  .release-card li {
    grid-template-columns: 70px 1fr;
    align-items: start;
  }

  .roadmap-task-row {
    grid-template-columns: 18px auto minmax(0, 1fr);
  }

  .roadmap-task-row .status-pill,
  .roadmap-task-meta {
    grid-column: 3;
    width: fit-content;
  }

  .release-card li .status-pill {
    grid-column: 2;
    width: fit-content;
  }

  .roadmap-task-row .status-pill {
    grid-column: 3;
  }

  .release-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .form-actions,
  .support-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .form-actions button,
  .support-actions a {
    width: 100%;
  }

  .support-shell {
    width: min(100% - 20px, 920px);
    padding-top: 72px;
  }

  .support-hero,
  .support-card {
    padding: 24px;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }

  .support-hero h1 {
    font-size: clamp(2rem, 12vw, 3.2rem);
  }

  .app-meta-footer.has-footer-links {
    grid-template-columns: 1fr;
  }

  .footer-side-link-left,
  .footer-side-link-right {
    justify-self: center;
  }

  .marketing-hero {
    min-height: 340px;
  }

  .marketing-hero::before {
    width: 66px;
    height: 66px;
    border-radius: 18px;
    inset: 24px 24px auto auto;
  }

  .marketing-grid,
  .marketing-detail-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .shell,
  .support-shell {
    width: 100%;
    max-width: 100vw;
    padding-right: 8px;
    padding-left: 8px;
  }

  .board {
    max-width: calc(100vw - 16px);
  }

  .app-picker {
    padding-top: 74px;
  }

  .app-picker h1 {
    font-size: clamp(2.25rem, 14vw, 3.1rem);
  }

  .app-picker h2 {
    font-size: 1.45rem;
  }

  .app-card,
  .app-empty-card {
    min-height: 210px;
    height: auto;
    padding: 20px;
  }

  .tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }

  .app-type-slider {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 42px;
    margin-bottom: 20px;
  }

  .app-type-slider button {
    min-height: 34px;
    padding: 0 5px;
    font-size: 0.74rem;
  }

  .tab {
    min-width: 0;
    padding: 0 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.82rem;
  }

  .feedback-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .vote-stack {
    width: auto;
    grid-auto-flow: column;
    justify-content: start;
    align-items: center;
  }

  .release-card,
  .comment-form {
    padding: 20px;
  }

  .release-card li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .release-card li .status-pill {
    grid-column: auto;
  }

  .topbar h1,
  .form-header h1 {
    display: -webkit-box;
    font-size: 1.24rem;
    line-height: 1.15;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .empty {
    padding: 32px 0;
    text-align: left;
  }

  .primary-button,
  .secondary-button {
    padding: 0 16px;
  }
}
