* {
  box-sizing: border-box;
}

:root {
  --page-bg: #141414;
  --panel-bg: #1f1f1f;
  --panel-border: #3a3a3a;
  --text-color: #f2f2f2;
  --muted-text: #cfcfcf;
  --button-bg: #2a2a2a;
  --button-hover: #333333;
  --button-text: #f2f2f2;
  --input-bg: #242424;
  --input-border: #3a3a3a;
  --accent: #f5a623;
  --board-size: min(74vh, 62vw, 720px);
  --square-size: calc(var(--board-size) / 8);
  --replay-board-light: #eed7ad;
  --replay-board-dark: #b88761;
  --replay-white-piece: #f0ece2;
  --replay-black-piece: #172033;
  --replay-piece-outline: rgba(0, 0, 0, 0.82);
  --replay-white-stroke: rgba(0, 0, 0, 0.9);
  --replay-black-stroke: rgba(255, 255, 255, 0.12);
  --replay-white-shadow: 0 1px 0 rgba(0, 0, 0, 0.62), 0 1px 1px rgba(0, 0, 0, 0.35);
  --replay-black-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 1px 1px rgba(0, 0, 0, 0.28);
  --replay-last-move: rgba(216, 154, 30, 0.72);
  --replay-analysis-arrow: rgba(76, 201, 240, 0.88);
  --replay-analysis-circle: rgba(76, 201, 240, 0.88);
  --selected-move: rgba(76, 201, 240, 0.24);

  --ann-brilliant: #2dd4bf;
  --ann-good: #4ade80;
  --ann-interesting: #60a5fa;
  --ann-inaccuracy: #facc15;
  --ann-mistake: #fb923c;
  --ann-blunder: #fb7185;
}

body {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  max-width: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--page-bg);
  color: var(--text-color);
}

html {
  max-width: 100%;
  overflow-x: hidden;
}

button,
select,
textarea {
  font: inherit;
}

button {
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 8px 10px;
  background: var(--button-bg);
  color: var(--button-text);
  cursor: pointer;
  white-space: nowrap;
}

button:hover {
  background: var(--button-hover);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.replay-shell {
  width: min(99vw, 1500px);
  max-width: 100%;
  height: 100vh;
  margin: 0 auto;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.replay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 0 0 auto;
  margin-bottom: 6px;
}

.replay-header h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.12;
}

.replay-header p {
  margin: 0;
  color: var(--muted-text);
  font-size: 12px;
  line-height: 1.25;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  flex-wrap: nowrap;
}

.home-link {
  color: var(--text-color);
  text-decoration: none;
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 8px 10px;
  background: var(--button-bg);
  white-space: nowrap;
}

.header-actions button,
.header-actions .home-link {
  font-size: 13px;
  min-width: 0;
}

.replay-layout {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 290px minmax(560px, 1fr) 300px;
  gap: 10px;
  align-items: stretch;
  overflow: hidden;
  min-width: 0;
}

.panel {
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: var(--panel-bg);
  padding: 9px;
  min-height: 0;
  overflow: hidden;
  min-width: 0;
}

.panel h2,
.annotation-box h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.input-panel {
  display: grid;
  grid-template-rows: auto auto auto auto;
  align-content: start;
  gap: 8px;
  min-height: 0;
}

.input-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.input-panel-header h2 {
  margin: 0;
}

#inputCollapseButton {
  display: none;
}

.input-panel-content {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: 8px;
}

.input-panel textarea {
  width: 100%;
  height: clamp(190px, 33vh, 270px);
  min-height: 0;
  resize: none;
  overflow: auto;
  border: 1px solid var(--input-border);
  border-radius: 6px;
  padding: 9px;
  background: var(--input-bg);
  color: var(--text-color);
  line-height: 1.45;
}

.input-panel label {
  display: grid;
  gap: 5px;
  color: var(--muted-text);
  font-weight: bold;
}

.input-panel select {
  width: 100%;
  border: 1px solid var(--input-border);
  border-radius: 6px;
  padding: 8px;
  background: var(--input-bg);
  color: var(--text-color);
}

.button-row,
.nav-row {
  display: grid;
  gap: 6px;
}

.button-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.copy-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

.copy-actions .copy-button {
  width: 100%;
  margin-top: 0;
}

.copy-actions .copy-comments-button {
  margin-top: 0;
}

.copy-actions .clear-saved-review-button {
  margin-top: 2px;
  border-color: rgba(251, 113, 133, 0.44);
  color: #fecaca;
}

.copy-actions .clear-saved-review-button:hover {
  background: rgba(127, 29, 29, 0.45);
}

.nav-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(var(--board-size), 100%);
  margin: 7px auto 0;
}

.nav-row button {
  min-width: 0;
  padding: 7px 6px;
  font-size: 12px;
}

.parse-status,
.annotation-status,
.replay-status {
  min-height: 20px;
  color: var(--muted-text);
  font-weight: bold;
  font-size: 13px;
}

.replay-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.replay-material {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-color);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.replay-material__pieces {
  display: inline-flex;
  align-items: center;
  gap: 1px;
}

.replay-material__piece {
  width: 16px;
  height: 16px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.28));
}

.parse-status.error {
  color: #fb7185;
}

.parse-status.success {
  color: #86efac;
}

.board-panel {
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.board-panel-header {
  display: none;
}

.board-panel-header h2 {
  margin: 0;
  font-size: 16px;
}

.board-wrap {
  width: fit-content;
  margin: 4px auto 0;
  flex: 0 1 auto;
  display: grid;
  grid-template-columns: 22px var(--board-size);
  grid-template-rows: var(--board-size) 22px;
  gap: 4px;
}

.replay-board {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  width: var(--board-size);
  height: var(--board-size);
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}

.replay-annotation-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.58));
}

.rank-coordinates,
.file-coordinates {
  color: rgba(245, 245, 245, 0.8);
  font-size: 12px;
  font-weight: bold;
}

.rank-coordinates {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-rows: repeat(8, 1fr);
  align-items: center;
  text-align: center;
}

.file-coordinates {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  align-items: center;
  text-align: center;
}

.square {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--square-size);
  height: var(--square-size);
}

.square.light {
  background: var(--replay-board-light);
}

.square.dark {
  background: var(--replay-board-dark);
}

.square.last-move {
  box-shadow: inset 0 0 0 999px var(--replay-last-move), inset 0 0 0 3px rgba(255, 255, 255, 0.22);
}

.piece {
  width: 88%;
  height: 88%;
  display: grid;
  place-items: center;
  line-height: 1;
  user-select: none;
  opacity: 1;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.34));
  z-index: 1;
}

.piece-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.board-annotation-badge {
  position: absolute;
  top: 6%;
  right: 6%;
  z-index: 4;
  min-width: calc(var(--square-size) * 0.34);
  height: calc(var(--square-size) * 0.34);
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  font-size: clamp(10px, calc(var(--square-size) * 0.16), 15px);
  font-weight: 950;
  line-height: 1;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.moves-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.move-list {
  display: grid;
  gap: 4px;
  flex: 0 0 auto;
  min-height: 0;
  max-height: 132px;
  overflow: auto;
  padding-right: 4px;
  margin-bottom: 8px;
}

.move-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1fr);
  gap: 5px;
  align-items: center;
}

.move-number {
  color: var(--muted-text);
  font-weight: bold;
}

/* Move chips: keep the base calm/dark; annotation colors live in border/badge only. */
.move-chip {
  --move-accent: rgba(255, 255, 255, 0.12);
  --move-accent-soft: rgba(255, 255, 255, 0.055);
  width: 100%;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--move-accent);
  border-radius: 999px;
  padding: 5px 7px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.035));
  color: var(--text-color);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.move-chip:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--move-accent), white 24%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), var(--move-accent-soft));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.055);
}

.move-chip.active {
  border-color: rgba(76, 201, 240, 0.92);
  background: linear-gradient(135deg, rgba(76, 201, 240, 0.22), rgba(255, 255, 255, 0.055));
  box-shadow: 0 0 0 2px rgba(76, 201, 240, 0.13);
}

.move-chip.annotated.active {
  border-color: rgba(76, 201, 240, 0.95);
  box-shadow:
    0 0 0 2px rgba(76, 201, 240, 0.13),
    inset 3px 0 0 var(--move-accent);
}

.move-chip:disabled {
  visibility: hidden;
}

.move-chip__san {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.move-chip.annotation-bangbang {
  --move-accent: var(--ann-brilliant);
  --move-accent-soft: rgba(45, 212, 191, 0.11);
}

.move-chip.annotation-bang {
  --move-accent: var(--ann-good);
  --move-accent-soft: rgba(74, 222, 128, 0.11);
}

.move-chip.annotation-bangquestion {
  --move-accent: var(--ann-interesting);
  --move-accent-soft: rgba(96, 165, 250, 0.11);
}

.move-chip.annotation-questionbang {
  --move-accent: var(--ann-inaccuracy);
  --move-accent-soft: rgba(250, 204, 21, 0.12);
}

.move-chip.annotation-question {
  --move-accent: var(--ann-mistake);
  --move-accent-soft: rgba(251, 146, 60, 0.12);
}

.move-chip.annotation-questionquestion {
  --move-accent: var(--ann-blunder);
  --move-accent-soft: rgba(251, 113, 133, 0.13);
}

.annotation-badge,
.board-annotation-badge.annotation-bangbang,
.board-annotation-badge.annotation-bang,
.board-annotation-badge.annotation-bangquestion,
.board-annotation-badge.annotation-questionbang,
.board-annotation-badge.annotation-question,
.board-annotation-badge.annotation-questionquestion {
  color: #111827;
}

.annotation-badge {
  min-width: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

/* Annotation color classes are scoped to badges and board badges,
   so the whole move chip no longer becomes neon/flat. */
.annotation-badge.annotation-bangbang,
.board-annotation-badge.annotation-bangbang {
  background: var(--ann-brilliant);
  color: #042f2e;
}

.annotation-badge.annotation-bang,
.board-annotation-badge.annotation-bang {
  background: var(--ann-good);
  color: #052e16;
}

.annotation-badge.annotation-bangquestion,
.board-annotation-badge.annotation-bangquestion {
  background: var(--ann-interesting);
  color: #082f49;
}

.annotation-badge.annotation-questionbang,
.board-annotation-badge.annotation-questionbang {
  background: var(--ann-inaccuracy);
  color: #422006;
}

.annotation-badge.annotation-question,
.board-annotation-badge.annotation-question {
  background: var(--ann-mistake);
  color: #431407;
}

.annotation-badge.annotation-questionquestion,
.board-annotation-badge.annotation-questionquestion {
  background: var(--ann-blunder);
  color: #450a0a;
}

.comment-indicator {
  width: 9px;
  height: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #94a3b8;
  color: transparent;
  flex: 0 0 auto;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
}

.comment-indicator.annotation-bangbang {
  background: var(--ann-brilliant);
}

.comment-indicator.annotation-bang {
  background: var(--ann-good);
}

.comment-indicator.annotation-bangquestion {
  background: var(--ann-interesting);
}

.comment-indicator.annotation-questionbang {
  background: var(--ann-inaccuracy);
}

.comment-indicator.annotation-question {
  background: var(--ann-mistake);
}

.comment-indicator.annotation-questionquestion {
  background: var(--ann-blunder);
}

.annotation-box {
  flex: 0 0 auto;
  border-top: 1px solid var(--panel-border);
  padding-top: 7px;
  min-height: 0;
  margin-bottom: 6px;
}

.annotation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  margin-bottom: 6px;
}

.annotation-grid button {
  border-width: 1px;
  min-height: 28px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
}

.annotation-grid button[data-annotation="!!"] {
  border-color: rgba(45, 212, 191, 0.55);
}

.annotation-grid button[data-annotation="!"] {
  border-color: rgba(74, 222, 128, 0.55);
}

.annotation-grid button[data-annotation="!?"] {
  border-color: rgba(96, 165, 250, 0.55);
}

.annotation-grid button[data-annotation="?!"] {
  border-color: rgba(250, 204, 21, 0.55);
}

.annotation-grid button[data-annotation="?"] {
  border-color: rgba(251, 146, 60, 0.55);
}

.annotation-grid button[data-annotation="??"] {
  border-color: rgba(251, 113, 133, 0.55);
}

.annotation-grid button.active {
  background: rgba(76, 201, 240, 0.22);
  border-color: rgba(76, 201, 240, 0.92);
  box-shadow: 0 0 0 2px rgba(76, 201, 240, 0.13);
}

.copy-button {
  width: 100%;
  margin-top: 0;
}

.copy-comments-button {
  margin-top: 6px;
}

.comment-editor {
  --comment-accent: #94a3b8;
  --comment-bg: rgba(148, 163, 184, 0.08);
  flex: 0 0 auto;
  display: grid;
  gap: 5px;
  margin-top: 4px;
  padding: 7px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-left: 4px solid var(--comment-accent);
  border-radius: 8px;
  background: var(--comment-bg);
}

.comment-editor label {
  color: var(--comment-accent);
  font-size: 13px;
  font-weight: 900;
}

.comment-editor textarea {
  width: 100%;
  min-height: 66px;
  resize: vertical;
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 6px;
  padding: 8px;
  background: rgba(10, 10, 10, 0.28);
  color: var(--text-color);
  line-height: 1.35;
}

.comment-editor textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--comment-accent), transparent 55%);
  border-color: var(--comment-accent);
}

.comment-editor textarea:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.comment-editor.annotation-bangbang {
  --comment-accent: var(--ann-brilliant);
  --comment-bg: rgba(45, 212, 191, 0.1);
}

.comment-editor.annotation-bang {
  --comment-accent: var(--ann-good);
  --comment-bg: rgba(74, 222, 128, 0.1);
}

.comment-editor.annotation-bangquestion {
  --comment-accent: var(--ann-interesting);
  --comment-bg: rgba(96, 165, 250, 0.1);
}

.comment-editor.annotation-questionbang {
  --comment-accent: var(--ann-inaccuracy);
  --comment-bg: rgba(250, 204, 21, 0.11);
}

.comment-editor.annotation-question {
  --comment-accent: var(--ann-mistake);
  --comment-bg: rgba(251, 146, 60, 0.11);
}

.comment-editor.annotation-questionquestion {
  --comment-accent: var(--ann-blunder);
  --comment-bg: rgba(251, 113, 133, 0.12);
}

@media (max-width: 1180px) and (min-width: 981px) {
  :root {
    --board-size: min(62vh, 46vw, 560px);
  }

  .replay-layout {
    grid-template-columns: 250px minmax(430px, 1fr) 270px;
    gap: 8px;
  }

  .header-actions button,
  .header-actions .home-link {
    font-size: 12px;
    padding: 7px 8px;
  }
}

@media (max-width: 980px) {
  :root {
    --board-size: min(92vw, 500px);
  }

  body {
    height: auto;
    min-height: 100vh;
    overflow: auto;
  }

  .replay-shell {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .replay-header {
    align-items: stretch;
    flex-direction: column;
  }

  .replay-layout {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .input-panel textarea {
    min-height: 190px;
  }
}

@media (max-width: 768px) {
  :root {
    --board-size: min(calc(100vw - 32px), 560px);
  }

  html,
  body {
    background: #111111;
    max-width: 100%;
    overflow-x: hidden;
  }

  .replay-shell {
    width: 100%;
    max-width: 100%;
    padding: 8px;
    overflow-x: hidden;
  }

  .replay-header {
    gap: 7px;
    margin-bottom: 7px;
  }

  .replay-header h1 {
    font-size: 18px;
  }

  .replay-header p {
    display: none;
  }

  .header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .header-actions button,
  .header-actions .home-link {
    width: 100%;
    padding: 8px 6px;
    font-size: 12px;
    text-align: center;
  }

  .replay-layout {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    min-width: 0;
  }

  .board-panel {
    order: 1;
    width: 100%;
    min-width: 0;
    padding: 6px;
    align-items: center;
  }

  .moves-panel {
    order: 2;
  }

  .input-panel {
    order: 3;
    display: block;
  }

  .input-panel-header {
    margin-bottom: 8px;
  }

  #inputCollapseButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 8px;
    font-size: 12px;
  }

  .input-panel-content {
    display: grid;
    grid-template-rows: auto auto auto auto;
    gap: 8px;
  }

  .input-panel.input-collapsed .input-panel-content {
    display: none;
  }

  .input-panel.input-collapsed .parse-status:empty {
    display: none;
  }

  .input-panel textarea {
    min-height: 170px;
  }

  .board-wrap {
    position: relative;
    display: block;
    width: var(--board-size);
    max-width: 100%;
    height: var(--board-size);
    margin: 4px auto 0;
  }

  .rank-coordinates,
  .file-coordinates {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.78);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
    pointer-events: none;
    z-index: 3;
  }

  .rank-coordinates {
    position: absolute;
    top: 0;
    left: 2px;
    width: 14px;
    height: var(--board-size);
  }

  .file-coordinates {
    position: absolute;
    left: 0;
    bottom: 2px;
    width: var(--board-size);
    height: 14px;
    align-items: end;
    padding: 0 6px;
  }

  .replay-board {
    width: var(--board-size);
    height: var(--board-size);
    max-width: 100%;
    grid-column: auto;
    grid-row: auto;
  }

  .replay-status {
    min-height: 18px;
    font-size: 12px;
    line-height: 1.25;
  }

  .board-annotation-badge {
    top: 5%;
    right: 5%;
    min-width: calc(var(--square-size) * 0.32);
    height: calc(var(--square-size) * 0.32);
    font-size: clamp(9px, calc(var(--square-size) * 0.15), 13px);
    border-width: 1.5px;
  }

  .nav-row {
    width: min(var(--board-size), 100%);
    gap: 5px;
    margin-top: 8px;
  }

  .nav-row button {
    min-height: 36px;
    padding: 7px 4px;
    font-size: 12px;
  }

  .moves-panel {
    display: flex;
    flex-direction: column;
    padding: 8px;
  }

  .moves-panel h2 {
    order: 0;
  }

  .annotation-box {
    order: 1;
    border-top: 0;
    border-bottom: 1px solid var(--panel-border);
    padding-top: 0;
    padding-bottom: 8px;
    margin-bottom: 8px;
  }

  .comment-editor {
    order: 2;
    margin-top: 0;
    margin-bottom: 8px;
  }

  .comment-editor textarea {
    min-height: 88px;
  }

  .move-list {
    order: 3;
    max-height: 170px;
    margin-bottom: 8px;
  }

  .copy-button {
    order: 4;
  }

  .annotation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .annotation-grid button {
    min-height: 38px;
    padding: 8px 7px;
    font-size: 12px;
  }

  .annotation-status {
    font-size: 12px;
  }

  .move-row {
    grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1fr);
    gap: 5px;
  }

  .move-chip {
    min-height: 36px;
    padding: 6px 6px;
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  .annotation-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
