:root {
  color-scheme: light;
  --app-bg: #e7edf4;
  --topbar: rgba(255, 255, 255, 0.92);
  --panel: rgba(255, 255, 255, 0.94);
  --panel-strong: #ffffff;
  --surface: #f7f9fc;
  --surface-strong: #ffffff;
  --surface-muted: #edf2f7;
  --board-bg: #e4ebf3;
  --grid-dot: rgba(72, 84, 101, 0.28);
  --text: #17202a;
  --muted: #627083;
  --line: rgba(82, 96, 116, 0.22);
  --line-strong: rgba(68, 82, 101, 0.38);
  --accent: #2667d8;
  --accent-strong: #174ea6;
  --accent-soft: rgba(38, 103, 216, 0.13);
  --danger: #b42318;
  --high: #c2410c;
  --medium: #a16207;
  --low: #15803d;
  --shadow: 0 18px 46px rgba(37, 48, 65, 0.14);
  --panel-shadow: 0 18px 42px rgba(35, 46, 63, 0.12);
  --checker: #e7ecf2;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --app-bg: #14171c;
    --topbar: rgba(24, 27, 33, 0.92);
    --panel: rgba(31, 35, 42, 0.94);
    --panel-strong: #242933;
    --surface: #20252d;
    --surface-strong: #2a3039;
    --surface-muted: #1a1f26;
    --board-bg: #191d24;
    --grid-dot: rgba(197, 209, 225, 0.18);
    --text: #edf2f7;
    --muted: #9aa7b7;
    --line: rgba(190, 203, 220, 0.17);
    --line-strong: rgba(205, 216, 230, 0.28);
    --accent: #79b8ff;
    --accent-strong: #aad1ff;
    --accent-soft: rgba(121, 184, 255, 0.16);
    --danger: #ff8a80;
    --high: #fb923c;
    --medium: #facc15;
    --low: #4ade80;
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
    --panel-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    --checker: #303640;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --app-bg: #14171c;
  --topbar: rgba(24, 27, 33, 0.92);
  --panel: rgba(31, 35, 42, 0.94);
  --panel-strong: #242933;
  --surface: #20252d;
  --surface-strong: #2a3039;
  --surface-muted: #1a1f26;
  --board-bg: #191d24;
  --grid-dot: rgba(197, 209, 225, 0.18);
  --text: #edf2f7;
  --muted: #9aa7b7;
  --line: rgba(190, 203, 220, 0.17);
  --line-strong: rgba(205, 216, 230, 0.28);
  --accent: #79b8ff;
  --accent-strong: #aad1ff;
  --accent-soft: rgba(121, 184, 255, 0.16);
  --danger: #ff8a80;
  --high: #fb923c;
  --medium: #facc15;
  --low: #4ade80;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  --panel-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  --checker: #303640;
}

:root[data-theme="light"] {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(44, 123, 229, 0.07), transparent 24rem),
    linear-gradient(180deg, var(--app-bg), color-mix(in srgb, var(--app-bg) 86%, #000000 14%));
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

button,
label {
  -webkit-tap-highlight-color: transparent;
}

button,
.upload-button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

button:hover,
.upload-button:hover {
  border-color: var(--line-strong);
  background: var(--surface-strong);
}

button:focus-visible,
.upload-button:focus-within,
textarea:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.app-shell {
  height: 100vh;
  min-height: 640px;
  display: flex;
  flex-direction: column;
}

.topbar {
  min-height: 58px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--topbar);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand-block,
.top-actions,
.export-actions,
.heading-actions,
.board-stats,
.zoom-controls,
.finding-meta,
.evidence-row {
  display: flex;
  align-items: center;
}

.brand-block {
  min-width: 0;
  gap: 10px;
}

.brand-block h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1;
  font-weight: 760;
}

.brand-tagline {
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .brand-tagline {
    display: none;
  }
}

.top-actions {
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.primary-button,
.ghost-button,
.upload-button,
.mini-button {
  padding: 0 11px;
  white-space: nowrap;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 82%, #000000 18%);
  color: #ffffff;
}

.primary-button:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.danger-action {
  color: var(--danger);
}

.theme-toggle {
  width: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-dot {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  display: inline-block;
  background: linear-gradient(90deg, var(--text) 50%, transparent 50%);
  border: 1px solid var(--line-strong);
}

.upload-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.upload-button input,
.empty-drop input {
  position: absolute;
  inset: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.workspace {
  flex: 1;
  min-height: 0;
  padding: 12px;
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr) 300px;
  gap: 12px;
}

.floating-panel,
.board-shell,
.panel-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--panel-shadow);
}

.floating-panel {
  min-width: 0;
  min-height: 0;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
}

.left-panel {
  overflow: hidden;
}

.left-panel .findings-block {
  flex: 1 1 auto;
  min-height: 0;
}

.panel-block {
  flex: 0 0 auto;
  min-height: 0;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  background: color-mix(in srgb, var(--panel) 88%, var(--surface-muted) 12%);
  box-shadow: none;
}

.findings-block {
  flex: 1 1 auto;
  min-height: 0;
}

.export-block {
  min-height: 260px;
  flex: 1 1 280px;
}

.artifact-block {
  background: color-mix(in srgb, var(--panel) 82%, var(--accent-soft) 18%);
}

.panel-heading {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.panel-heading h2 {
  margin: 0;
  color: color-mix(in srgb, var(--text) 84%, var(--muted) 16%);
  font-size: 12px;
  line-height: 1.1;
  font-weight: 760;
  text-transform: uppercase;
}

.heading-actions,
.export-actions,
.board-stats,
.zoom-controls,
.finding-meta,
.evidence-row {
  gap: 8px;
}

.count-badge {
  min-width: 26px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.mini-button {
  min-height: 26px;
  height: 26px;
  font-size: 12px;
}

.compact-list,
.thread-list {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
  padding-right: 2px;
}

.thread-list {
  position: relative;
}

.standalone-note-button {
  position: sticky;
  top: 0;
  z-index: 1;
  width: 100%;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  text-align: left;
  cursor: pointer;
}

.standalone-note-button:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.thread-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.thread-header-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.thread-header-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-item {
  width: 100%;
  min-height: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  background: var(--surface);
  color: inherit;
  text-align: left;
}

.compact-item:hover {
  border-color: var(--line-strong);
  background: var(--surface-strong);
}

.compact-title {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-meta {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.compact-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.empty-state {
  min-height: 76px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.board-shell {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 50px minmax(0, 1fr);
  overflow: hidden;
  background: var(--panel);
}

.canvas-toolbar {
  padding: 8px 10px;
  display: grid;
  grid-template-columns: auto minmax(110px, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.tool-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.tool-row .icon-button {
  flex: 0 0 40px;
}

.icon-button {
  width: 40px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
}

.icon-button.compact {
  width: 34px;
}

.icon-button.active,
.segment.active,
.zoom-readout.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent);
}

.tool-icon {
  position: relative;
  display: block;
  width: 23px;
  height: 23px;
}

.move-icon {
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M18 11V6a2 2 0 0 0-4 0v5'/><path d='M14 10V4a2 2 0 0 0-4 0v6'/><path d='M10 10.5V6a2 2 0 0 0-4 0v8'/><path d='M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M18 11V6a2 2 0 0 0-4 0v5'/><path d='M14 10V4a2 2 0 0 0-4 0v6'/><path d='M10 10.5V6a2 2 0 0 0-4 0v8'/><path d='M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15'/></svg>") center / contain no-repeat;
  background-color: currentColor;
}

.circle-icon {
  border: 3px solid currentColor;
  border-radius: 999px;
}

.rectangle-icon {
  width: 25px;
  height: 17px;
  border: 3px solid currentColor;
  background: var(--accent-soft);
}

.lasso-icon::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 4px;
  width: 18px;
  height: 13px;
  border: 3px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px 12px 999px 12px;
  transform: rotate(-18deg);
}

.lasso-icon::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 3px;
  width: 8px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(28deg);
}

.arrow-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 11px;
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(-28deg);
}

.arrow-icon::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  transform: rotate(17deg);
}

.board-stats,
.zoom-controls {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.board-stats {
  justify-content: center;
}

.zoom-readout {
  min-width: 46px;
  min-height: 34px;
  padding: 0 9px;
  font-size: 12px;
}

#zoom-label {
  min-width: 38px;
  text-align: right;
}

.board-viewport {
  position: relative;
  min-height: 0;
  overflow: auto;
  background:
    radial-gradient(circle, var(--grid-dot) 1px, transparent 1.4px),
    var(--board-bg);
  background-size: 22px 22px;
}

.board-space {
  position: relative;
  width: 2400px;
  height: 1600px;
}

.board {
  position: relative;
  width: 2400px;
  height: 1600px;
  overflow: hidden;
  transform-origin: 0 0;
}

.board.drag-over {
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--accent) 52%, transparent);
}

.board.pan-mode {
  cursor: grab;
}

.board.pan-mode.panning {
  cursor: grabbing;
}

.image-layer,
#annotation-canvas {
  position: absolute;
  inset: 0;
}

.image-layer {
  z-index: 1;
}

#annotation-canvas {
  z-index: 2;
  width: 2400px;
  height: 1600px;
  cursor: crosshair;
  touch-action: none;
}

#annotation-canvas.move-mode {
  pointer-events: none;
}

.empty-drop {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: min(440px, 86%);
  padding: 28px 32px 26px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 14px;
  display: grid;
  justify-items: center;
  gap: 8px;
  background: color-mix(in srgb, var(--panel) 96%, transparent);
  color: var(--text);
  text-align: center;
  transform: translate(-50%, -50%);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: border-color 140ms ease, background 140ms ease;
}

.empty-drop:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--panel) 92%, var(--accent-soft) 8%);
}

.empty-eyebrow {
  color: var(--accent);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.empty-title {
  font-size: 20px;
  font-weight: 760;
  line-height: 1.2;
}

.empty-hint {
  color: var(--muted);
  font-size: 13px;
}

.empty-steps {
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  list-style: none;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
}

.empty-steps b {
  color: var(--text);
  font-weight: 720;
  margin-right: 6px;
}

.empty-drop.hidden {
  display: none;
}

.image-card {
  position: absolute;
  z-index: 1;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  overflow: hidden;
  user-select: none;
}

.image-card.selected {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent), var(--shadow);
}

.image-card.dragging {
  opacity: 0.88;
}

.image-card-header {
  height: 30px;
  padding: 0 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  cursor: grab;
}

.image-card.dragging .image-card-header {
  cursor: grabbing;
}

.image-name {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-size {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
}

.remove-image,
.delete-thread {
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--danger);
}

.remove-image {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  min-height: 24px;
}

.image-card img {
  display: block;
  width: 100%;
  height: calc(100% - 30px);
  object-fit: contain;
  background: #ffffff;
  pointer-events: none;
}

.resize-handle {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
  cursor: nwse-resize;
}

.resize-handle::before {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 9px;
  height: 9px;
  border-right: 2px solid color-mix(in srgb, var(--text) 44%, transparent);
  border-bottom: 2px solid color-mix(in srgb, var(--text) 44%, transparent);
}

.thread-card {
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.thread-card.active {
  border-top-color: var(--line-strong);
  border-right-color: var(--line-strong);
  border-bottom-color: var(--line-strong);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.thread-top {
  padding: 8px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.color-chip {
  width: 14px;
  height: 14px;
  border: 2px solid color-mix(in srgb, var(--panel) 88%, transparent);
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--line-strong);
}

.thread-title {
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 4px;
  padding: 5px 6px;
  color: var(--text);
  background: transparent;
  font-size: 13px;
  font-weight: 740;
}

.thread-title:focus {
  background: var(--accent-soft);
}

.delete-thread {
  width: 28px;
  height: 28px;
  min-height: 28px;
}

.thread-note {
  width: calc(100% - 16px);
  min-height: 70px;
  margin: 0 8px 8px;
  padding: 8px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface-strong) 72%, transparent);
  font-size: 13px;
  line-height: 1.35;
}

.finding-meta,
.evidence-row {
  padding: 0 8px 8px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.evidence-row {
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.evidence-chip {
  min-height: 24px;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surface-muted);
  color: var(--text);
  font-size: 11px;
}

.select-thread,
.marker-chip {
  min-height: 28px;
  padding: 0 8px;
  font-size: 12px;
}

.marker-chip.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.artifact-preview {
  min-height: 118px;
  max-height: 200px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(45deg, var(--checker) 25%, transparent 25%),
    linear-gradient(-45deg, var(--checker) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--checker) 75%),
    linear-gradient(-45deg, transparent 75%, var(--checker) 75%),
    var(--surface-strong);
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
  color: var(--muted);
  font-size: 13px;
}

.artifact-preview img {
  display: block;
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
}

.artifact-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.segmented {
  height: 32px;
  padding: 2px;
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(54px, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
}

.segment {
  min-height: 26px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 12px;
}

#export-output {
  flex: 1;
  min-height: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  resize: none;
  background: color-mix(in srgb, var(--surface-strong) 78%, transparent);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
}

.hidden {
  display: none !important;
}

@media (max-width: 1260px) {
  .workspace {
    grid-template-columns: 320px minmax(0, 1fr) 300px;
  }

  .top-actions {
    gap: 6px;
  }

  .top-actions .ghost-button,
  .top-actions .primary-button,
  .top-actions .upload-button {
    padding: 0 9px;
  }
}

@media (max-width: 1040px) {
  body {
    overflow: auto;
  }

  .app-shell {
    height: auto;
    min-height: 100vh;
  }

  .workspace {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .left-panel,
  .right-panel {
    max-height: none;
  }

  .board-shell {
    min-height: 64vh;
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .top-actions {
    justify-content: stretch;
  }

  .top-actions button,
  .top-actions .upload-button {
    flex: 1 1 130px;
  }

  .workspace {
    padding: 10px;
  }

  .canvas-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .tool-row {
    flex-wrap: wrap;
  }

  .tool-row .icon-button {
    flex: 1 1 56px;
  }

  .board-stats,
  .zoom-controls {
    justify-content: space-between;
  }
}
