:root {
  color-scheme: dark;
  --bg: #08090e;
  --panel: #12141b;
  --panel-2: #1a1d27;
  --panel-3: #222633;
  --line: #343647;
  --line-strong: #5b6074;
  --text: #f5f3fa;
  --muted: #bbb6c9;
  --dim: #858093;
  --silver: #f1f2f5;
  --purple: #8b5cf6;
  --purple-strong: #a978ff;
  --purple-deep: #4f2bbd;
  --red: #e5483f;
  --gold: #d0a24d;
  --cyan: #4fb7c7;
  --green: #54b96f;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.46);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(145deg, rgba(139, 92, 246, 0.16), transparent 34%),
    linear-gradient(135deg, var(--bg), #11131a 52%, #181225);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
label.file-action {
  user-select: none;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(1500px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.board-shell {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
  padding-bottom: 18px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
}

.topbar-brand {
  display: grid;
  min-width: 0;
  align-content: center;
}

.topbar h1 {
  margin: 0;
  font-size: 2.1rem;
  font-weight: 850;
  letter-spacing: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 6px;
  color: var(--purple-strong);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.header-kicker {
  margin: 0 0 6px;
  color: var(--purple-strong);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-home {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 9px;
  border-radius: 8px;
  margin-bottom: 7px;
}

.brand-logo {
  display: block;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.55));
}

.brand-logo-wordmark {
  width: min(260px, 56vw);
  max-height: 82px;
}

.brand-logo-icon {
  width: 40px;
  height: 40px;
}

.brand-home-compact .brand-logo-wordmark {
  width: min(260px, 56vw);
  max-height: 82px;
}

.brand-home:hover .brand-logo {
  filter: drop-shadow(0 14px 26px rgba(139, 92, 246, 0.36)) brightness(1.06);
}

.brand-home:focus-visible {
  outline: 3px solid rgba(79, 183, 199, 0.38);
  outline-offset: 3px;
}

.topbar-actions,
.board-actions,
.editor-actions,
.board-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.data-menu {
  position: relative;
}

.data-menu summary {
  list-style: none;
}

.data-menu summary::-webkit-details-marker {
  display: none;
}

.data-menu summary::after {
  margin-left: 8px;
  color: var(--muted);
  content: "v";
  font-size: 0.68rem;
}

.data-menu[open] summary {
  border-color: var(--line-strong);
}

.data-menu-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: 210px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 6px;
  background: #0e1017;
  box-shadow: var(--shadow);
}

.data-menu-panel button,
.data-menu-panel .file-action {
  display: flex;
  min-height: 38px;
  align-items: center;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  color: var(--text);
  background: transparent;
  font-weight: 800;
  text-align: left;
}

.data-menu-panel button:hover,
.data-menu-panel .file-action:hover {
  background: rgba(139, 92, 246, 0.13);
}

.data-menu-panel .danger-action {
  color: #ffd8d4;
}

.ghost-button,
.solid-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  font-weight: 800;
}

.solid-button {
  border-color: transparent;
  background: linear-gradient(135deg, var(--purple-deep), var(--purple-strong));
  color: #fff;
  box-shadow: 0 12px 28px rgba(139, 92, 246, 0.28);
}

.ghost-button:hover,
.character-card:hover {
  border-color: var(--line-strong);
}

.solid-button:hover {
  filter: brightness(1.06);
}

.solid-button:disabled {
  cursor: not-allowed;
  filter: saturate(0.65);
  opacity: 0.58;
}

.file-action {
  position: relative;
  cursor: pointer;
}

.file-action input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.toolbar {
  position: sticky;
  z-index: 3;
  top: 0;
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 14px;
  align-items: end;
  padding: 14px 0 18px;
  background: transparent;
  backdrop-filter: none;
}

.search-box {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.search-box input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  padding: 0 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

.search-box input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(79, 183, 199, 0.16);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter-tab {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-weight: 850;
}

.filter-tab.is-active {
  border-color: rgba(169, 120, 255, 0.76);
  color: #fff;
  background: rgba(139, 92, 246, 0.2);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 18px;
  padding-top: 30px;
}

.game-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(230px, 1fr) auto;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(202, 196, 220, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, #11131a, #0d0f15);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.game-card:hover,
.game-card:focus-visible {
  border-color: rgba(169, 120, 255, 0.54);
  transform: translateY(-2px);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.42);
}

.game-card-visual {
  position: relative;
  display: grid;
  min-height: 230px;
  overflow: hidden;
  place-items: center;
  background: #05060a;
}

.game-card-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(5, 6, 10, 0.16), rgba(5, 6, 10, 0.8)),
    linear-gradient(90deg, rgba(5, 6, 10, 0.58), transparent 50%, rgba(28, 18, 47, 0.46));
}

.game-card-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) brightness(0.74);
  transform: scale(1.02);
}

.game-logo {
  position: relative;
  z-index: 1;
  max-width: min(72%, 310px);
  max-height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.72));
}

.game-card-text {
  display: grid;
  gap: 11px;
  align-content: start;
  border-top: 1px solid rgba(202, 196, 220, 0.11);
  padding: 16px;
}

.game-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.game-card-title-row h2,
.game-card-text p {
  margin: 0;
}

.game-card-title-row h2 {
  font-size: 1.25rem;
  font-weight: 900;
}

.game-card-meta {
  flex: 0 0 auto;
  border: 1px solid rgba(169, 120, 255, 0.46);
  border-radius: 999px;
  padding: 4px 8px;
  color: #f3ecff;
  background: rgba(139, 92, 246, 0.13);
  font-size: 0.75rem;
  font-weight: 900;
}

.game-card-description {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.38;
}

.game-select-page .app-shell {
  width: min(1120px, calc(100% - 40px));
  padding-top: 48px;
}

.game-select-page .topbar {
  display: grid;
  min-height: auto;
  justify-content: center;
  text-align: center;
}

.game-select-page .topbar-brand {
  justify-items: center;
}

.game-select-page .brand-logo-wordmark {
  width: min(560px, 84vw);
  max-height: 174px;
}

.game-select-page .topbar h1 {
  font-size: 2.55rem;
}

.selector-subtitle {
  max-width: 620px;
  margin: 10px auto 0;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 850;
  line-height: 1.4;
}

.selector-description {
  max-width: 740px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}

.how-it-works {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.how-it-works h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
}

.how-it-works ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.how-it-works li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid rgba(202, 196, 220, 0.12);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.how-it-works li div {
  display: grid;
  gap: 4px;
}

.how-it-works strong {
  font-weight: 900;
}

.how-it-works li span:last-child {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
}

.step-count {
  display: inline-grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid rgba(169, 120, 255, 0.58);
  border-radius: 7px;
  place-items: center;
  color: #f7f0ff;
  background: rgba(139, 92, 246, 0.22);
  font-weight: 950;
}

.game-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.info-chip {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  border: 1px solid rgba(79, 183, 199, 0.3);
  border-radius: 999px;
  padding: 0 8px;
  color: #e9fbff;
  background: rgba(79, 183, 199, 0.09);
  font-size: 0.72rem;
  font-weight: 850;
}

.roster-help {
  display: grid;
  gap: 10px;
  margin: 2px 0 8px;
}

.storage-banner,
.sidestep-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  border: 1px solid rgba(208, 162, 77, 0.28);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--muted);
  background: rgba(208, 162, 77, 0.075);
  font-size: 0.84rem;
  font-weight: 750;
}

.storage-banner strong,
.sidestep-legend strong {
  color: #fff5db;
  font-weight: 950;
}

.sidestep-legend {
  border-color: rgba(79, 183, 199, 0.24);
  background: rgba(79, 183, 199, 0.07);
}

.sidestep-legend-hint {
  color: var(--cyan);
  font-weight: 850;
}

.roster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
  gap: 12px;
  padding-top: 10px;
}

.character-card {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 194px;
  overflow: hidden;
  border: 1px solid rgba(202, 196, 220, 0.13);
  border-radius: 8px;
  background: linear-gradient(180deg, #12141b, #0d0f15);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
}

.character-image-link:focus-visible,
.character-name-link:focus-visible,
.game-card:focus-visible,
.ghost-button:focus-visible,
.solid-button:focus-visible,
.filter-tab:focus-visible,
.add-card-button:focus-visible,
.mini-button:focus-visible,
.inline-move:focus-visible,
.move-chip:focus-visible,
.move-chip-label:focus-visible,
.move-chip-remove:focus-visible,
.move-result:focus-visible,
.move-filter-toggle:focus-visible,
.move-filter select:focus-visible,
.note-filter-button:focus-visible,
.note-filter-panel select:focus-visible,
.note-filter-chip:focus-visible,
.note-player-picker select:focus-visible,
.note-filter-field select:focus-visible,
.data-menu-panel button:focus-visible,
.data-menu-panel .file-action:focus-visible,
.category-option:focus-visible,
.template-option:focus-visible,
.sidestep-badge:focus-visible,
.sidestep-select:focus-visible {
  outline: 3px solid rgba(79, 183, 199, 0.38);
  outline-offset: 2px;
}

.character-image-link {
  display: block;
}

.character-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #05060a;
}

.character-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 46px;
  border-top: 1px solid rgba(202, 196, 220, 0.1);
  padding: 8px 9px;
  background: rgba(10, 11, 17, 0.96);
}

.character-name-link {
  min-width: 0;
}

.character-footer h2 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.1;
}

.roster[data-game="invs"],
.roster[data-game="2xko"] {
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
}

.roster[data-game="invs"] .character-footer,
.roster[data-game="2xko"] .character-footer {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  min-height: 74px;
}

.roster[data-game="2xko"] .character-name-link {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.roster[data-game="invs"] .character-footer h2,
.roster[data-game="2xko"] .character-footer h2 {
  display: block;
  width: 100%;
  overflow: hidden;
  overflow-wrap: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: normal;
}

.roster[data-game="invs"] .character-traits.compact,
.roster[data-game="2xko"] .character-traits.compact {
  max-width: none;
  justify-content: flex-start;
}

.sidestep-badge {
  display: inline-flex;
  min-width: 44px;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(184, 176, 162, 0.35);
  border-radius: 6px;
  padding: 0 7px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.78rem;
  font-weight: 950;
  cursor: pointer;
}

.sidestep-badge.is-custom {
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.16);
}

.sidestep-custom-label,
.sidestep-edit-label {
  font-size: 0.58rem;
  font-weight: 950;
  text-transform: uppercase;
}

.sidestep-custom-label {
  color: #fff6df;
}

.sidestep-edit-label {
  color: var(--muted);
}

.sidestep-badge.is-ssl {
  border-color: rgba(229, 72, 63, 0.62);
  color: #fff0ee;
  background: rgba(229, 72, 63, 0.22);
}

.sidestep-badge.is-ssr {
  border-color: rgba(79, 183, 199, 0.62);
  color: #e9fbff;
  background: rgba(79, 183, 199, 0.22);
}

.sidestep-badge.is-dont-ss {
  border-color: rgba(213, 162, 70, 0.62);
  color: #fff6df;
  background: rgba(213, 162, 70, 0.2);
}

.sidestep-badge.is-unknown {
  border-color: rgba(184, 176, 162, 0.35);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
}

.sidestep-badge:disabled {
  cursor: wait;
  opacity: 0.68;
}

.sidestep-badge.large {
  min-width: 58px;
  min-height: 36px;
  font-size: 0.98rem;
}

.sidestep-select {
  width: 88px;
  min-height: 30px;
  border: 1px solid var(--cyan);
  border-radius: 6px;
  outline: none;
  padding: 0 6px;
  color: var(--text);
  background: #101318;
  font-size: 0.76rem;
  font-weight: 850;
}

.sidestep-select.large {
  width: 118px;
  min-height: 38px;
  font-size: 0.92rem;
}

.sidestep-control {
  display: inline-flex;
  align-items: center;
}

.character-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.character-traits.compact {
  max-width: 84px;
}

.character-traits.large {
  max-width: min(480px, 42vw);
}

.trait-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(79, 183, 199, 0.38);
  border-radius: 6px;
  padding: 0 7px;
  color: #e9fbff;
  background: rgba(79, 183, 199, 0.13);
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.trait-badge.large {
  min-height: 30px;
  font-size: 0.78rem;
}

.empty-state,
.not-found {
  display: grid;
  min-height: 260px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  place-items: center;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.08), transparent 48%),
    rgba(255, 255, 255, 0.032);
  font-weight: 850;
}

.empty-state-copy {
  grid-column: 1 / -1;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
}

.empty-state-copy h2,
.empty-state-copy p,
.empty-state-copy ul {
  margin: 0;
}

.empty-state-copy h2 {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 950;
}

.empty-state-copy p {
  max-width: 620px;
  line-height: 1.45;
}

.empty-state-copy ul {
  display: grid;
  gap: 6px;
  padding-left: 18px;
  text-align: left;
}

.not-found {
  align-content: center;
  gap: 14px;
}

.not-found h1 {
  margin: 0;
  color: var(--text);
}

.board-page .topbar {
  min-height: 153px;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(202, 196, 220, 0.13);
  background: transparent;
  backdrop-filter: none;
}

.board-nav {
  align-self: flex-start;
  flex: 0 0 min(260px, 28vw);
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.board-nav .brand-home {
  margin: 0;
}

.back-link {
  flex: 0 0 auto;
}

.fighter-summary {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.fighter-image {
  width: 86px;
  height: 86px;
  flex: 0 0 auto;
  border: 1px solid rgba(202, 196, 220, 0.16);
  border-radius: 8px;
  object-fit: cover;
  background: #05060a;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

.board-meta {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 750;
}

.board-main {
  min-height: 0;
}

.board-intro {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  border-bottom: 1px solid rgba(202, 196, 220, 0.1);
  padding: 18px 0 14px;
}

.board-intro h2 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 950;
}

.board-intro p:last-child {
  max-width: 760px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.45;
}

.note-control-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: start;
  justify-content: flex-end;
  gap: 8px;
}

.note-filter-control {
  display: grid;
  position: relative;
  flex: 0 0 230px;
  justify-items: end;
}

.note-add-button {
  position: relative;
  width: 36px;
  min-width: 36px;
  min-height: 36px;
  overflow: hidden;
  border-radius: 7px;
  padding: 0;
  color: transparent;
  font-size: 0;
  box-shadow: 0 12px 28px rgba(139, 92, 246, 0.25);
}

.note-add-button::before,
.note-add-button::after {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 999px;
  background: #fff;
  content: "";
  transform: translate(-50%, -50%);
}

.note-add-button::before {
  width: 14px;
  height: 2px;
}

.note-add-button::after {
  width: 2px;
  height: 14px;
}

.note-filter-wrap {
  position: relative;
  display: grid;
  justify-items: end;
  width: min(230px, 100%);
}

.note-filter-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.8rem;
  font-weight: 900;
}

.note-filter-button:hover,
.note-filter-button.is-active,
.note-filter-button[aria-expanded="true"] {
  border-color: rgba(208, 162, 77, 0.58);
  color: #fff5db;
  background: rgba(208, 162, 77, 0.14);
}

.note-filter-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.note-filter-panel {
  position: absolute;
  z-index: 18;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: min(420px, calc(100vw - 40px));
  max-height: min(620px, calc(100vh - 160px));
  overflow: auto;
  gap: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 14px;
  color: var(--text);
  background: #101318;
  box-shadow: var(--shadow);
}

.note-filter-panel-header,
.note-filter-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.note-filter-panel-header strong {
  font-size: 1rem;
  font-weight: 950;
}

.note-filter-section {
  display: grid;
  gap: 8px;
}

.note-filter-section h3 {
  margin: 0;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 950;
}

.note-filter-section select {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  padding: 0 8px;
  color: var(--text);
  background: #0b0d13;
  font-size: 0.8rem;
  font-weight: 800;
}

.note-filter-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.note-filter-chip {
  min-height: 30px;
  border: 1px solid rgba(var(--category-accent-rgb, 208, 162, 77), 0.46);
  border-radius: 999px;
  padding: 0 10px;
  color: rgb(var(--category-accent-rgb, 208, 162, 77));
  background: rgba(var(--category-accent-rgb, 208, 162, 77), 0.08);
  font-size: 0.74rem;
  font-weight: 900;
}

.note-filter-chip:hover,
.note-filter-chip.is-selected {
  border-color: rgba(var(--category-accent-rgb, 208, 162, 77), 0.72);
  color: #fff;
  background: rgba(var(--category-accent-rgb, 208, 162, 77), 0.2);
}

.note-filter-field {
  display: grid;
  width: min(230px, 100%);
  gap: 6px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.note-filter-field select {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  padding: 0 8px;
  color: var(--text);
  background: #0b0d13;
  font-size: 0.8rem;
  font-weight: 800;
}

.note-filter-field select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(79, 183, 199, 0.13);
}

.notes-panel {
  display: grid;
  gap: 10px;
  padding: 16px 0 36px;
}

.note-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  border: 1px solid rgba(202, 196, 220, 0.13);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

.note-row:hover {
  border-color: rgba(169, 120, 255, 0.36);
}

.note-body-cell {
  min-width: 0;
}

.note-freeform {
  color: var(--text);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.note-player-scope {
  display: inline-flex;
  max-width: 100%;
  min-height: 26px;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  border: 1px solid rgba(79, 183, 199, 0.38);
  border-radius: 999px;
  padding: 2px 8px 2px 3px;
  color: #e9fbff;
  background: rgba(79, 183, 199, 0.1);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.note-player-scope.is-all {
  padding: 0 8px;
  border-color: rgba(208, 162, 77, 0.34);
  color: #fff5db;
  background: rgba(208, 162, 77, 0.1);
}

.note-player-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 6px;
  object-fit: cover;
  object-position: top center;
  background: rgba(255, 255, 255, 0.08);
}

.note-player-label {
  min-width: 0;
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.note-tag-row,
.move-fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.note-tag-row {
  margin-top: 12px;
}

.note-tag-chip,
.move-fact-chip,
.move-trait-chip {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 1px solid rgba(208, 162, 77, 0.34);
  border-radius: 999px;
  padding: 0 8px;
  color: #fff5db;
  background: rgba(208, 162, 77, 0.1);
  font-size: 0.7rem;
  font-weight: 900;
}

.attached-moves {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.attached-move {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
  border: 1px solid rgba(202, 196, 220, 0.1);
  border-radius: 8px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.14);
}

.attached-move-command {
  align-self: start;
}

.attached-move-details {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.attached-move-details strong {
  overflow-wrap: anywhere;
  font-size: 0.88rem;
}

.attached-move-details span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.attached-move .move-fact-row {
  grid-column: 1 / -1;
}

.move-fact-chip {
  border-color: rgba(79, 183, 199, 0.38);
  color: #e9fbff;
  background: rgba(79, 183, 199, 0.1);
}

.move-trait-chip.is-property {
  border-color: rgba(84, 185, 111, 0.38);
  color: #eaffe8;
  background: rgba(84, 185, 111, 0.1);
}

.move-trait-chip.is-transition {
  border-color: rgba(229, 72, 63, 0.38);
  color: #fff0ee;
  background: rgba(229, 72, 63, 0.12);
}

.inline-move {
  display: inline;
  border: 0;
  border-radius: 5px;
  margin: 0 1px;
  padding: 1px 5px 2px;
  color: #eaffff;
  background: rgba(79, 183, 199, 0.24);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  font: inherit;
  font-weight: 900;
  line-height: inherit;
}

.inline-move:hover,
.inline-move:focus-visible {
  background: rgba(79, 183, 199, 0.38);
}

.muted-text {
  color: var(--dim);
  font-size: 0.84rem;
  font-weight: 750;
}

.row-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  align-content: start;
  gap: 6px;
}

.note-actions {
  opacity: 0.76;
}

.note-row:hover .note-actions,
.note-actions:focus-within {
  opacity: 1;
}

.mini-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.compact-action {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.78rem;
}

.note-row-editor {
  grid-template-columns: 1fr;
  border-color: rgba(79, 183, 199, 0.48);
  background: #10131b;
}

.note-editor-body textarea {
  min-height: 180px;
}

.note-move-insert {
  display: grid;
  min-width: 0;
}

.row-editor-field,
.editor-stack,
.note-category-picker,
.note-template-picker {
  display: grid;
  gap: 7px;
}

.row-editor-field {
  width: 100%;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.note-category-picker,
.note-template-picker {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.note-category-options,
.note-template-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.category-option,
.template-option {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 9px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.72rem;
  font-weight: 850;
}

.category-option {
  border-color: rgba(var(--category-accent-rgb, 208, 162, 77), 0.42);
  color: rgb(var(--category-accent-rgb, 208, 162, 77));
  background: rgba(var(--category-accent-rgb, 208, 162, 77), 0.08);
}

.category-option.is-selected {
  border-color: rgba(var(--category-accent-rgb, 208, 162, 77), 0.72);
  color: #fff;
  background: rgba(var(--category-accent-rgb, 208, 162, 77), 0.2);
}

.template-option {
  border-radius: 7px;
  text-align: left;
}

.template-option:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.category-option:hover {
  border-color: rgba(var(--category-accent-rgb, 208, 162, 77), 0.68);
  color: #fff;
  background: rgba(var(--category-accent-rgb, 208, 162, 77), 0.14);
}

.row-editor-field input,
.row-editor-field select,
.row-editor-field textarea,
.move-search input,
.move-filter select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  padding: 8px;
  color: var(--text);
  background: #0b0d13;
}

.row-editor-field textarea {
  min-height: 94px;
  resize: vertical;
}

.row-editor-field input:focus,
.row-editor-field select:focus,
.row-editor-field textarea:focus,
.move-search input:focus,
.move-filter select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(79, 183, 199, 0.13);
}

.move-picker {
  position: relative;
  display: grid;
  width: 100%;
  gap: 8px;
}

.selected-moves,
.note-meta {
  display: flex;
  flex-wrap: wrap;
  min-height: 30px;
  gap: 6px;
}

.move-search {
  position: relative;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.move-search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.move-count {
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 850;
  white-space: nowrap;
}

.move-search-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: stretch;
}

.move-filter-toggle {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.76rem;
  font-weight: 850;
}

.move-filter-toggle:hover,
.move-filter-toggle.is-active,
.move-filter-toggle[aria-expanded="true"] {
  border-color: rgba(79, 183, 199, 0.5);
  color: #e9fbff;
  background: rgba(79, 183, 199, 0.13);
}

.move-filter-toggle-icon {
  position: relative;
  width: 16px;
  height: 14px;
  flex: 0 0 16px;
  background:
    linear-gradient(currentColor, currentColor) 0 2px / 16px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 6px / 16px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 10px / 16px 2px no-repeat;
}

.move-filter-toggle-icon::before,
.move-filter-toggle-icon::after {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.move-filter-toggle-icon::before {
  top: 1px;
  left: 4px;
}

.move-filter-toggle-icon::after {
  top: 9px;
  right: 3px;
}

.move-filter-panel {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(202, 196, 220, 0.14);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.move-filter-panel[hidden] {
  display: none;
}

.move-filter-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 6px;
}

.move-filter {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
}

.move-filter select {
  min-height: 36px;
  padding: 0 8px;
  font-size: 0.76rem;
  font-weight: 750;
}

.mini-button.move-filter-reset {
  min-height: 36px;
  align-self: end;
  padding-inline: 10px;
}

.move-results {
  position: absolute;
  z-index: 10;
  top: calc(100% + 4px);
  left: 0;
  display: grid;
  width: 100%;
  max-height: 290px;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #101318;
  box-shadow: var(--shadow);
}

.move-results:empty {
  display: none;
}

.move-result,
.move-result-empty {
  padding: 9px 10px;
}

.move-result {
  display: grid;
  gap: 7px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  background: transparent;
  text-align: left;
}

.move-result:hover,
.move-result:focus-visible {
  background: rgba(79, 183, 199, 0.13);
}

.move-result-empty {
  color: var(--muted);
  font-size: 0.76rem;
}

.move-result-grid {
  display: grid;
  grid-template-columns: minmax(74px, 0.8fr) minmax(140px, 1.35fr) minmax(94px, 0.9fr) minmax(58px, 0.52fr) minmax(58px, 0.52fr);
  gap: 8px;
  align-items: start;
}

.move-result-cell {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.move-result-label {
  color: var(--dim);
  font-size: 0.63rem;
  font-weight: 900;
  text-transform: uppercase;
}

.move-result-value {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
}

.move-result-cell.is-command .move-result-value {
  color: #e9fbff;
  font-size: 0.86rem;
  font-weight: 950;
}

.move-result-tags {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 5px;
}

.move-chip {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(79, 183, 199, 0.55);
  border-radius: 7px;
  color: #e9fbff;
  background: rgba(79, 183, 199, 0.16);
  font-size: 0.78rem;
  font-weight: 900;
}

button.move-chip,
.move-chip-label,
.move-chip-remove {
  border: 1px solid rgba(79, 183, 199, 0.55);
  color: #e9fbff;
  background: rgba(79, 183, 199, 0.16);
}

button.move-chip {
  padding: 0 8px;
}

.move-chip-label {
  min-height: 28px;
  border: 0;
  padding: 0 8px;
  font-weight: 900;
}

.move-chip-remove {
  min-height: 28px;
  border-width: 0 0 0 1px;
  padding: 0 7px;
  font-weight: 950;
}

.move-chip:hover,
.move-chip-label:hover,
.move-chip-remove:hover {
  filter: brightness(1.12);
}

.move-preview {
  position: fixed;
  z-index: 30;
  display: none;
  width: 360px;
  max-height: min(620px, calc(100vh - 24px));
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 10px;
  color: var(--text);
  background: #10131b;
  box-shadow: var(--shadow);
}

.move-preview.is-visible {
  display: grid;
  gap: 10px;
}

.move-preview-media,
.move-preview-images,
.move-preview-no-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: #050608;
}

.move-preview-media {
  position: relative;
  overflow: hidden;
}

.move-preview-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 8px;
  aspect-ratio: auto;
  padding: 8px;
}

.move-preview-images figure {
  display: grid;
  gap: 5px;
  align-content: start;
  margin: 0;
  min-width: 0;
}

.move-preview-images img {
  display: block;
  width: 100%;
  max-height: 170px;
  border-radius: 5px;
  object-fit: contain;
  background: #050608;
}

.move-preview-images figcaption {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  text-align: center;
}

.move-preview video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.move-preview-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #050608;
  font-size: 0.82rem;
  font-weight: 850;
}

.move-preview-media.is-loaded .move-preview-loading {
  display: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.move-preview-media.has-error video {
  opacity: 0;
}

.move-preview-media.has-error .move-preview-loading {
  display: grid;
  color: var(--text);
  background: #10131b;
  visibility: visible;
  opacity: 1;
}

.move-preview-no-video {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.move-preview-title {
  display: grid;
  gap: 3px;
}

.move-preview-title strong {
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.move-preview-title span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.move-preview-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 10px;
  margin: 0;
  font-size: 0.8rem;
}

.move-preview-grid dt {
  color: var(--muted);
  font-weight: 850;
}

.move-preview-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.move-preview-notes {
  max-height: 142px;
  overflow: auto;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
  white-space: pre-line;
}

.move-preview-link {
  justify-self: start;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 850;
}

.notes-empty {
  gap: 12px;
}

.notes-empty p {
  margin: 0;
}

.board {
  display: flex;
  gap: 12px;
  min-height: calc(100vh - 148px);
  overflow: auto;
  padding: 16px 0;
  scroll-snap-type: x proximity;
}

.list {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 316px;
  min-width: 316px;
  max-height: calc(100vh - 180px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  scroll-snap-align: start;
}

.list.is-drop-target {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(79, 183, 199, 0.12);
}

.list-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 10px;
}

.list-title-wrap {
  min-width: 0;
}

.list-title {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.98rem;
  font-weight: 900;
}

.list-count {
  display: inline-flex;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.list-menu {
  display: flex;
  gap: 6px;
}

.list-title-input {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--cyan);
  border-radius: 6px;
  padding: 0 8px;
  color: var(--text);
  background: #111316;
}

.cards {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 180px;
  overflow: auto;
  padding: 10px;
}

.note-card {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-left: 4px solid var(--priority);
  border-radius: 8px;
  padding: 10px;
  text-align: left;
  color: var(--text);
  background: var(--panel-2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.note-card.dragging {
  opacity: 0.46;
}

.note-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.note-card h4 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.92rem;
  line-height: 1.2;
}

.note-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.note-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.pill {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 3px 6px;
  color: #f7efe2;
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.7rem;
  font-weight: 850;
}

.card-actions {
  display: flex;
  gap: 6px;
}

.mini-button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.76rem;
  font-weight: 850;
}

.mini-button:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.add-card-button {
  min-height: 40px;
  margin: 0 10px 10px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font-weight: 850;
}

.add-card-button:hover {
  color: var(--text);
  border-color: var(--cyan);
}

.card-editor {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(79, 183, 199, 0.45);
  border-radius: 8px;
  padding: 10px;
  background: #13161b;
}

.card-editor label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.card-editor input,
.card-editor textarea,
.card-editor select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  padding: 8px;
  color: var(--text);
  background: #0f1114;
}

.card-editor textarea {
  resize: vertical;
}

.card-editor input:focus,
.card-editor textarea:focus,
.card-editor select:focus {
  border-color: var(--cyan);
}

.editor-row {
  display: grid;
  grid-template-columns: minmax(105px, 0.65fr) 1fr;
  gap: 10px;
}

@media (max-width: 900px) {
  .app-shell {
    width: min(100% - 24px, 1500px);
    padding-top: 18px;
  }

  .topbar,
  .board-page .topbar {
    position: static;
    align-items: stretch;
    flex-direction: column;
  }

  .topbar h1 {
    font-size: 1.7rem;
  }

  .brand-logo-wordmark {
    width: min(230px, 76vw);
  }

  .brand-home-compact .brand-logo-icon {
    width: 34px;
    height: 34px;
  }

  .brand-home-compact .brand-logo-wordmark {
    width: min(230px, 76vw);
    max-height: 82px;
  }

  .topbar-actions {
    flex-wrap: wrap;
  }

  .data-menu-panel {
    right: auto;
    left: 0;
  }

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

  .game-select-page .app-shell {
    width: min(100% - 24px, 1120px);
    padding-top: 28px;
  }

  .game-select-page .topbar h1 {
    font-size: 2rem;
  }

  .game-select-page .brand-logo-wordmark {
    width: min(430px, 88vw);
  }

  .how-it-works ol {
    grid-template-columns: 1fr;
  }

  .game-card {
    grid-template-rows: minmax(190px, 1fr) auto;
    min-height: 310px;
  }

  .game-card-visual {
    min-height: 190px;
  }

  .toolbar {
    grid-template-columns: 1fr;
    position: static;
  }

  .filter-tabs {
    justify-content: flex-start;
  }

  .roster {
    grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
  }

  .roster[data-game="invs"],
  .roster[data-game="2xko"] {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .character-card {
    min-height: 176px;
  }

  .fighter-summary {
    justify-content: flex-start;
  }

  .board-intro {
    align-items: start;
    flex-direction: column;
  }

  .note-control-actions {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .note-filter-control,
  .note-filter-field {
    width: 100%;
  }

  .note-filter-control {
    flex-basis: auto;
    justify-items: stretch;
  }

  .note-filter-wrap {
    width: 100%;
    justify-items: stretch;
  }

  .note-filter-button {
    justify-content: center;
  }

  .note-filter-panel {
    position: static;
    width: 100%;
    max-height: none;
    margin-top: 8px;
  }

  .board-intro h2 {
    font-size: 1.25rem;
  }

  .character-traits.large {
    max-width: 100%;
    justify-content: flex-start;
  }

  .notes-panel {
    overflow-x: visible;
  }

  .note-row {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .attached-move {
    grid-template-columns: 1fr;
  }

  .row-actions {
    justify-content: flex-start;
  }

  .move-results {
    width: 100%;
  }

  .move-result-grid {
    grid-template-columns: minmax(70px, 0.8fr) minmax(0, 1.2fr);
  }

  .move-result-tags,
  .move-result-cell.is-type,
  .move-result-cell.is-frame {
    grid-column: span 1;
  }

  .move-filter-bar {
    grid-template-columns: 1fr;
  }

  .move-filter-reset {
    justify-self: start;
  }

  .move-preview {
    left: 12px !important;
    width: calc(100vw - 24px);
  }

  .board-shell {
    padding-bottom: 18px;
  }

  .board-page .topbar-actions {
    display: flex;
    justify-content: flex-start;
    width: 100%;
  }

  .note-add-button {
    width: 40px;
    min-width: 40px;
    min-height: 36px;
  }

  .board {
    min-height: calc(100vh - 240px);
  }

  .list {
    width: min(316px, calc(100vw - 36px));
    min-width: min(316px, calc(100vw - 36px));
    max-height: none;
  }

  .editor-row {
    grid-template-columns: 1fr;
  }
}
