/* (c) Innings2, generated by Mathigon Studio */
@charset "UTF-8";
x-solid {
  display: block;
  position: relative;
  margin: 0 auto;
}
x-solid canvas {
  max-width: 100%;
  height: auto;
}
x-solid .label3d {
  position: absolute;
  line-height: 1.2;
  font-style: italic;
  pointer-events: none;
}

x-scale-box {
  display: block;
}
x-scale-box > * {
  transform-origin: top left;
}

x-quiz {
  display: block;
}
x-quiz .quizcard {
  width: 100%;
}
x-quiz .question {
  display: none;
  font-size: 1.2em;
}
x-quiz .question .correct_answer {
  display: none;
}
x-quiz .question .answers {
  margin-top: 40px;
  list-style: none;
}
x-quiz .question .answers li {
  padding: 0;
  margin: 0px;
  border: 1px solid rgba(33, 36, 44, 0.64);
  border-right: 0px;
  border-left: 0px;
  padding: 5px;
}
x-quiz .question .answers li:hover {
  background-color: #e5e5e5;
}
x-quiz .question .answers li.active {
  background-color: #e5e5e5;
}
x-quiz .question .hint {
  margin-top: 20px;
  font-size: 0.9em;
  color: #555;
}
x-quiz .nav {
  height: 40px;
  position: relative;
}
x-quiz .dots {
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
}
x-quiz .dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(24, 24, 36, 0.2);
  float: left;
  margin: 4px;
  transition: background 0.2s;
}
html[theme=dark] x-quiz .dot {
  background: rgba(255, 255, 255, 0.4);
}
x-quiz .dot.on {
  background: rgba(0, 0, 0, 0.8);
}
html[theme=dark] x-quiz .dot.on {
  background: white;
}

x-math-canvas {
  --canvas-bg: #ffffff;
  --canvas-fg: #181824;
  --toolbar-bg: #292735;
  --toolbar-header-bg: #1e1c28;
  --accent-color: #5c9eff;
  --primary-color: #007bff;
  position: relative;
  display: block;
  background-color: var(--canvas-bg);
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  max-width: 100%;
}
x-math-canvas .outer-div {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}
x-math-canvas .canvas-container {
  flex: 1;
  position: relative;
  background: var(--canvas-bg);
  min-height: 400px;
}
x-math-canvas .canvas-container canvas {
  display: block;
}
x-math-canvas #drawtools {
  display: none;
  padding: 8px 12px;
  background: var(--toolbar-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
x-math-canvas #drawtools .toolbar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
x-math-canvas #drawtools sl-button-group {
  --sl-spacing-x-small: 2px;
}
x-math-canvas #drawtools sl-button::part(base) {
  min-width: 36px;
  min-height: 36px;
}
x-math-canvas #drawtools sl-divider[vertical] {
  --color: rgba(255, 255, 255, 0.2);
  margin: 0 8px;
  height: 28px;
}
x-math-canvas .active-draw-tool::part(base) {
  background-color: var(--accent-color) !important;
  color: white !important;
}
x-math-canvas #toolbar {
  display: none;
  position: absolute;
  left: 8px;
  top: 56px;
  z-index: 100;
  width: 220px;
  max-height: calc(100% - 70px);
  overflow-y: auto;
  background: var(--toolbar-bg);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
x-math-canvas .toolbar-header {
  padding: 12px 16px;
  background: var(--toolbar-header-bg);
  border-radius: 12px 12px 0 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
x-math-canvas .toolbar-title {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
x-math-canvas .accordion-container {
  padding: 8px;
}
x-math-canvas .tool-group {
  background: transparent;
  border: none;
  margin-bottom: 4px;
  border-radius: 8px;
}
x-math-canvas .tool-group::part(base) {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 8px;
}
x-math-canvas .tool-group::part(header) {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
}
x-math-canvas .tool-group::part(summary-icon) {
  color: rgba(255, 255, 255, 0.6);
}
x-math-canvas .tool-group::part(content) {
  padding: 8px;
  padding-top: 0;
}
x-math-canvas .tool-group[open]::part(base) {
  background: rgba(255, 255, 255, 0.08);
}
x-math-canvas .tool-group:hover::part(base) {
  background: rgba(255, 255, 255, 0.1);
}
x-math-canvas .tool-group sl-icon[slot=expand-icon] {
  font-size: 16px;
  color: var(--accent-color);
  margin-right: 8px;
}
x-math-canvas .tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
x-math-canvas .tool-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  cursor: grab;
  transition: all 0.15s ease;
}
x-math-canvas .tool-item:hover {
  background: var(--accent-color);
  transform: scale(1.05);
}
x-math-canvas .tool-item:active {
  cursor: grabbing;
  transform: scale(0.95);
}
x-math-canvas .tool-item svg {
  width: 28px;
  height: 28px;
  stroke: #fff;
  stroke-width: 0.5px;
  fill: none;
}
x-math-canvas .tool-item svg path,
x-math-canvas .tool-item svg rect,
x-math-canvas .tool-item svg circle,
x-math-canvas .tool-item svg polygon {
  stroke: #fff;
}
x-math-canvas .popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--toolbar-bg);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  width: 90%;
  max-width: 320px;
  padding: 0;
  color: #fff;
  z-index: 1000;
  overflow: hidden;
}
x-math-canvas .popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: var(--toolbar-header-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
x-math-canvas .popup-header span {
  font-weight: 600;
  font-size: 15px;
}
x-math-canvas .popup-header sl-icon-button::part(base) {
  color: rgba(255, 255, 255, 0.6);
}
x-math-canvas .popup-header sl-icon-button::part(base):hover {
  color: #fff;
}
x-math-canvas .popup-content {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px;
}
x-math-canvas .input-container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 120px;
}
x-math-canvas .input-container label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  min-width: 35px;
}
x-math-canvas .input-container input,
x-math-canvas .input-container select {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 14px;
  transition: all 0.15s ease;
}
x-math-canvas .input-container input:focus,
x-math-canvas .input-container select:focus {
  outline: none;
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.12);
}
x-math-canvas .input-container input::-moz-placeholder, x-math-canvas .input-container select::-moz-placeholder {
  color: rgba(255, 255, 255, 0.3);
}
x-math-canvas .input-container input::placeholder,
x-math-canvas .input-container select::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
x-math-canvas .popup sl-button {
  margin: 0 16px 16px 16px;
  width: calc(100% - 32px);
}
x-math-canvas .slider-container {
  display: none;
  position: absolute;
  top: 56px;
  right: 8px;
  background: var(--toolbar-bg);
  padding: 12px 16px;
  border-radius: 10px;
  color: #fff;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
x-math-canvas .slider-container label {
  font-size: 13px;
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.8);
}
x-math-canvas .slider-container input[type=range] {
  width: 120px;
  cursor: pointer;
  vertical-align: middle;
}
x-math-canvas .slider-container span {
  margin-left: 8px;
  min-width: 35px;
  display: inline-block;
  font-weight: 500;
  color: var(--accent-color);
}
@media (max-width: 767px) {
  x-math-canvas #toolbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    max-height: 50vh;
    border-radius: 16px 16px 0 0;
  }
  x-math-canvas #toolbar .tool-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  x-math-canvas #drawtools .toolbar-row {
    justify-content: center;
  }
}
@media (min-width: 768px) {
  x-math-canvas {
    max-width: 1000px;
    min-height: 600px;
  }
  x-math-canvas .canvas-container {
    min-height: 500px;
  }
}
x-math-canvas #toolbar::-webkit-scrollbar {
  width: 6px;
}
x-math-canvas #toolbar::-webkit-scrollbar-track {
  background: transparent;
}
x-math-canvas #toolbar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}
x-math-canvas #toolbar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

x-buckets {
  display: block;
  margin: 1.5em 0;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  color: #333;
  width: 100%;
}
x-buckets .inputs, x-buckets .bucket {
  position: relative;
}
x-buckets .inputs > *, x-buckets .bucket > * {
  position: absolute;
}
x-buckets .inputs {
  z-index: 1;
  width: 100%;
  min-height: 50px;
}
x-buckets .buckets {
  display: flex;
  margin: 0 -8px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}
x-buckets .input {
  cursor: move;
  background: rgba(255, 255, 255, 0.6);
  box-sizing: border-box;
  padding: 5px 12px;
  margin: 6px 0;
  border-radius: 4px;
  width: 180px;
  font-size: 16px;
  line-height: 1.35;
  text-align: center;
  transition: left 0.2s, top 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
x-buckets .input.touch-device {
  /* Increase tap target size on touch devices */
  padding: 8px 12px;
}
x-buckets .inputs .input {
  background: #c5c2cc;
}
x-buckets .input.error {
  background: #e9b0cb;
  color: #cd0e66;
}
x-buckets .input.correct {
  background: #b6dfb7;
  color: #22ab24;
}
x-buckets .input.active {
  z-index: 10; /* Ensure active items appear on top */
  background: white;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.45);
  color: inherit;
}
x-buckets .bucket {
  width: 200px;
  border-radius: 8px;
  margin: 6px;
  position: relative;
  padding-bottom: 6px;
  background: #3a3645;
  transition: box-shadow 0.2s;
}
x-buckets .bucket .title {
  text-align: center;
  font-weight: 600;
  margin-top: 8px;
  color: white;
}
x-buckets .bucket.active {
  box-shadow: inset 0 0 0 5px rgba(0, 0, 0, 0.4);
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  x-buckets .bucket {
    width: 180px; /* Slightly smaller buckets on tablets */
    margin: 4px;
  }
  x-buckets .input {
    width: 160px; /* Slightly smaller input items */
    font-size: 15px;
  }
}
@media (max-width: 480px) {
  x-buckets .buckets {
    margin: 0 -4px;
  }
  x-buckets .bucket {
    width: calc(50% - 8px); /* Half width minus margins on mobile */
    min-width: 140px; /* Ensure minimum readable width */
    margin: 4px;
  }
  x-buckets .bucket .title {
    font-size: 14px;
    margin-top: 6px;
  }
  x-buckets .input {
    width: 140px; /* Smaller input items on mobile */
    font-size: 14px;
    padding: 6px 8px;
    margin: 4px 0;
  }
  x-buckets .input.active {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45); /* Smaller shadow on mobile */
  }
}
/* Extra small devices */
@media (max-width: 360px) {
  x-buckets .bucket {
    width: 100%; /* Full width on very small devices */
    max-width: 260px;
    margin: 4px auto;
  }
  x-buckets .input {
    width: 130px;
    font-size: 13px;
  }
}
x-solved {
  display: none;
  position: absolute;
  width: 200px;
  left: 50%;
  margin: 20px 0 0 -100px;
  z-index: 200;
  border-radius: 12px;
  padding: 5px 15px 15px;
  box-sizing: border-box;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}
x-solved x-icon.sketch {
  margin: 0 auto;
  fill: white;
  display: block;
  opacity: 0.8;
}
x-solved .message {
  text-align: center;
  color: white;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}
x-solved .close {
  position: absolute;
  right: 0;
  top: 0;
  padding: 8px;
  transition: transform 0.2s;
  cursor: pointer;
  z-index: 10;
}
x-solved .close x-icon {
  fill: rgba(255, 255, 255, 0.4);
  display: block;
  transition: fill 0.2s;
}
x-solved .close:hover {
  transform: scale(1.4);
}
x-solved .close:hover .icon {
  fill: white;
}

x-relation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 680px;
  margin: 1.5em auto;
  position: relative;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
x-relation .item {
  background: #f5f5f6;
  border: 1px solid #ccc;
  padding: 3px 12px;
  margin: 6px 0;
  border-radius: 4px;
}
x-relation .item.active {
  background: #e1e1e1;
}
x-relation .item img, x-relation .item svg, x-relation .item object {
  width: 100%;
  pointer-events: none;
}
x-relation .domain, x-relation .range {
  width: 33.333%;
}
x-relation .domain .item {
  cursor: pointer;
}
x-relation svg.connections {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
x-relation .connections line {
  stroke: #656073;
  stroke-width: 4px;
  stroke-linecap: round;
}
x-relation .line_red {
  stroke: #cd0e66 !important;
  stroke-width: 4px;
  stroke-linecap: round;
}
x-relation .line_green {
  stroke: #22ab24 !important;
  stroke-width: 4px;
  stroke-linecap: round;
}

/* Responsive Binary Swipe Component */
x-binary-swipe {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5em 0;
  width: 100%;
  max-width: 100%;
  /* Very small screens adjustments */
}
x-binary-swipe h3 {
  text-transform: uppercase;
  color: #aaa;
  font-size: clamp(14px, 3vw, 22px);
  margin-top: 0;
  text-align: center;
  overflow-wrap: break-word;
}
x-binary-swipe .stack {
  height: min(260px, 20vw);
  width: min(220px, 28vw);
  position: relative;
  margin: 10px auto;
  border-radius: 8px;
  background: var(--grey-background, #f5f5f5);
}
x-binary-swipe .option .stack .card-wrap {
  z-index: 10;
}
x-binary-swipe .card-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
x-binary-swipe .card-wrap.active {
  cursor: grab;
}
x-binary-swipe .card-wrap.dragging {
  z-index: 20;
}
x-binary-swipe .card {
  border-radius: 8px;
  color: white;
  height: min(220px, 20vw - 10px);
  width: min(200px, 28vw - 10px);
  padding: clamp(6px, 2vw, 16px);
  box-sizing: border-box;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  font-size: clamp(10px, 1.5vw, 16px);
}
x-binary-swipe .card.c-red {
  background: var(--red, #f44336);
}
x-binary-swipe .card.c-orange {
  background: var(--orange, #ff9800);
}
x-binary-swipe .card.c-yellow {
  background: var(--yellow, #ffeb3b);
}
x-binary-swipe .card.c-lime {
  background: var(--lime, #cddc39);
}
x-binary-swipe .card.c-green {
  background: var(--green, #4caf50);
}
x-binary-swipe .card.c-teal {
  background: var(--teal, #009688);
}
x-binary-swipe .card.c-blue {
  background: var(--blue, #2196f3);
}
x-binary-swipe .card.c-purple {
  background: var(--purple, #9c27b0);
}
x-binary-swipe .card::after {
  content: "";
  position: absolute;
  top: 0;
  width: 33%;
  display: block;
  height: 100%;
  background: transparent;
  transition: background 1s;
  mix-blend-mode: overlay;
  border-radius: 8px;
}
x-binary-swipe .card-wrap.committed-left .card::after {
  left: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.75));
}
x-binary-swipe .card-wrap.committed-right .card::after {
  right: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.75));
}
x-binary-swipe .option .card {
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
}
x-binary-swipe .card-wrap.active .card {
  transform: scale(1.05);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
@media (min-width: 768px) {
  x-binary-swipe .card-wrap.active .card {
    transform: scale(1.1);
  }
}
x-binary-swipe .card-wrap.dragging .card {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
}
@media (min-width: 768px) {
  x-binary-swipe .card-wrap.dragging .card {
    transform: scale(1.2);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.45);
  }
}
@media (max-width: 480px) {
  x-binary-swipe {
    gap: 0.5rem;
  }
  x-binary-swipe .stack {
    height: min(260px, 28vw);
    width: min(220px, 30vw);
    margin: 5px auto;
  }
  x-binary-swipe .card {
    height: min(220px, 28vw - 10px);
    width: min(200px, 30vw - 10px);
    padding: 4px;
  }
}

x-quill {
  display: block;
  position: relative;
  margin: 1.5em 0;
}
x-quill .ql-toolbar.ql-snow {
  padding: 4px 12px;
  border-radius: 4px 4px 0 0;
  background: #eee;
}
x-quill .ql-container.ql-snow {
  font-family: inherit;
  font-size: 16px;
  border-radius: 0 0 4px 4px;
}
x-quill .ql-editor {
  padding: 16px 16px 44px 16px;
}
x-quill .btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-size: 16px;
}

marker#axis-arrow {
  fill: #3a3645;
}
html[theme=dark] marker#axis-arrow {
  fill: white;
}

x-chart {
  display: block;
  position: relative;
  margin: 2em auto;
  touch-action: pan-y;
  color: #cd0e66;
}
x-chart svg.canvas {
  display: block;
  width: 100%;
  height: 100% !important;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
x-chart .grid {
  opacity: 0.1;
}
html[theme=dark] x-chart .grid {
  opacity: 0.25;
}
x-chart .grid line {
  stroke: black;
  stroke-width: 2px;
}
html[theme=dark] x-chart .grid line {
  stroke: white;
}
x-chart .axes line {
  stroke: #3a3645;
  stroke-width: 2px;
}
html[theme=dark] x-chart .axes line {
  stroke: white;
}
x-chart .grid, x-chart .axes {
  stroke-linecap: round;
  transition: opacity 0.2s;
}
x-chart .axes line:not(.tick) {
  marker-end: url(#axis-arrow);
}
x-chart .labels text {
  fill: #3a3645;
  font-size: 14px;
  stroke: white;
  stroke-width: 4px;
  paint-order: stroke;
  stroke-linejoin: round;
}
html.is-safari x-chart .labels text {
  stroke: none;
}
x-chart .plot path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3px;
}
x-chart .plot circle {
  fill: currentColor;
}
x-chart.blue, x-chart g.blue {
  color: #0f82f2;
}
x-chart.green, x-chart g.green {
  color: #22ab24;
}
x-chart.yellow, x-chart g.yellow {
  color: #fd8c00;
}
x-chart x-gesture {
  position: absolute;
  top: 0;
  left: 0;
}

.juniper-cell, code, pre, x-step code {
  font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.exercise, .example, .definition {
  padding: 0.6em 1em;
  color: rgba(0, 0, 0, 0.75);
  margin: 1.5em 0;
  border-radius: 2px 4px 4px 2px;
}
.exercise p:last-child, .exercise ul:last-child, .example p:last-child, .example ul:last-child, .definition p:last-child, .definition ul:last-child {
  margin-bottom: 0;
}
.exercise:first-child, .example:first-child, .definition:first-child {
  margin-top: 0;
}
.exercise .caption, .example .caption, .definition .caption {
  color: rgba(0, 0, 0, 0.4);
}

.theorem {
  background: #fbedf6;
  border: 1px solid #b30469;
  border-left: 6px solid #b30469;
}

.exercise {
  background: #f5fefa;
  border: 1px solid #2a9659;
  border-left: 6px solid #2a9659;
}

.example {
  background: #f7ece1;
  border: 1px solid #d8954b;
  border-left: 6px solid #d8954b;
}

.definition {
  background: #c0d6f9;
  border: 1px solid #2667cc;
  border-left: 6px solid #2667cc;
}

x-picker .item {
  display: block;
}

p {
  hanging-punctuation: none;
}

.choice strong {
  color: white;
}

.pill code {
  color: white;
}

.popup code {
  color: white;
}

x-picker .item.pill.bblue {
  background: #0f82f2;
}
x-picker .item.pill.bblue:not(.correct):not(.incorrect):hover {
  background: #095bab;
}
x-picker .item.pill.bblue:after {
  border-width: 2px;
  margin: 2px;
}

x-step code {
  background: transparent;
  border: none;
}

.video-wrap {
  background: black;
  position: relative;
  height: 0;
  padding-bottom: 56.25%;
}
.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.CodeMirror pre {
  margin: 0;
}

.juniper-cell {
  border: 1px solid #ccc;
  border-radius: 4px;
  margin: 1.5em 0;
  line-height: 1.8;
  overflow: hidden;
  font-size: 15px;
}
.juniper-cell .CodeMirror {
  padding: 0.6em 1em;
}
.juniper-cell pre {
  color: #555;
}

.juniper-output {
  background: #eee;
  padding: 0.6em 1em;
  white-space: pre-wrap;
  border-top: 1px solid #ccc;
  min-height: 27px;
  color: inherit;
}

.juniper-button {
  display: inline-block;
  width: auto;
  text-align: center;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.95);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 16px;
  z-index: 10;
  padding: 0 1.1em;
  height: 2em;
  line-height: 2em;
  font-weight: 600;
  letter-spacing: 0.2px;
  background-color: #22ab24;
  transition: transform 0.4s cubic-bezier(0.33, 1.9, 0.52, 0.7), background 0.2s, color 0.2s, box-shadow 0.2s;
}
.juniper-button:hover, .juniper-button.on {
  z-index: 10;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.juniper-button.disabled, .juniper-button[disabled] {
  box-shadow: none;
  cursor: default;
  pointer-events: none;
}
.juniper-button:active {
  transition: transform 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
  transform: scale(0.9);
}
.juniper-button:hover, .juniper-button:focus, .juniper-button:active {
  background-color: #29cd2b;
}

code[class*=language-],
pre[class*=language-] {
  color: #393A34;
  direction: ltr;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  font-size: 0.9em;
  line-height: 1.2em;
  -moz-tab-size: 4;
    -o-tab-size: 4;
       tab-size: 4;
  -webkit-hyphens: none;
          hyphens: none;
}

pre[class*=language-]::-moz-selection, pre[class*=language-] ::-moz-selection, code[class*=language-]::-moz-selection, code[class*=language-] ::-moz-selection {
  background: #C1DEF1;
}

pre[class*=language-]::selection, pre[class*=language-] ::selection,
code[class*=language-]::selection, code[class*=language-] ::selection {
  background: #C1DEF1;
}

pre[class*=language-] {
  padding: 1em;
  margin: 0.5em 0;
  overflow: auto;
  border: 1px solid #ccc;
  background-color: #eee;
  border-radius: 4px;
}

:not(pre) > code[class*=language-] {
  padding: 0.2em;
  padding-top: 1px;
  padding-bottom: 1px;
}

pre > code[class*=language-] {
  padding: 0;
  border: 0;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #008000;
  font-style: italic;
}

.token.namespace {
  opacity: 0.7;
}

.token.string {
  color: #A31515;
}

.token.punctuation,
.token.operator {
  color: #393A34; /* no highlight */
}

.token.url,
.token.symbol,
.token.number,
.token.boolean,
.token.variable,
.token.constant,
.token.inserted {
  color: #36acaa;
}

.token.atrule,
.token.keyword,
.token.attr-value,
.language-autohotkey .token.selector,
.language-json .token.boolean,
.language-json .token.number,
code[class*=language-css] {
  color: #0000ff;
}

.token.function {
  color: #393A34;
}

.token.deleted,
.language-autohotkey .token.tag {
  color: #9a050f;
}

.token.selector,
.language-autohotkey .token.keyword {
  color: #00009f;
}

.token.important,
.token.bold {
  font-weight: bold;
}

.token.italic {
  font-style: italic;
}

.token.class-name,
.language-json .token.property {
  color: #2B91AF;
}

.token.tag,
.token.selector {
  color: #800000;
}

.token.attr-name,
.token.property,
.token.regex,
.token.entity {
  color: #ff0000;
}

.token.directive.tag .tag {
  background: #ffff00;
  color: #393A34;
}

.line-numbers .line-numbers-rows {
  border-right-color: #a5a5a5;
}

.line-numbers-rows > span:before {
  color: #2B91AF;
}

.line-highlight {
  background: rgba(193, 222, 241, 0.2);
  background: linear-gradient(to right, rgba(193, 222, 241, 0.2) 70%, rgba(221, 222, 241, 0));
}

x-step pre code {
  overflow: scroll;
}

x-binary-swipe {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 1.5em 0;
}
x-binary-swipe h3 {
  text-transform: uppercase;
  text-align: center;
  color: #aaa;
  font-size: 22px;
  margin-top: 0;
}
x-binary-swipe .stack {
  width: 100%;
  height: 220px;
  position: relative;
  margin: 20px auto;
  border-radius: 8px;
  background: #f5f5f6;
}
x-binary-swipe .option .stack .card-wrap {
  z-index: 10;
}
x-binary-swipe .card-wrap {
  position: absolute;
  top: 0;
  left: 0;
}
x-binary-swipe .card-wrap.active {
  cursor: grab;
}
x-binary-swipe .card-wrap.dragging {
  z-index: 20;
}
x-binary-swipe .card {
  border-radius: 8px;
  color: white;
  height: 220px;
  width: 100%;
  padding: 16px;
  box-sizing: border-box;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  transition: box-shadow 0.2s, transform 0.2s;
}
x-binary-swipe .card.c-red {
  background: #cd0e66;
}
x-binary-swipe .card.c-orange {
  background: #eb4726;
}
x-binary-swipe .card.c-yellow {
  background: #fd8c00;
}
x-binary-swipe .card.c-lime {
  background: #bfc212;
}
x-binary-swipe .card.c-green {
  background: #22ab24;
}
x-binary-swipe .card.c-teal {
  background: #009ea6;
}
x-binary-swipe .card.c-blue {
  background: #0f82f2;
}
x-binary-swipe .card.c-purple {
  background: #6d3bbf;
}
x-binary-swipe .card::after {
  content: "";
  position: absolute;
  top: 0;
  width: 33%;
  display: block;
  height: 100%;
  background: transparent;
  transition: background 1s;
  mix-blend-mode: overlay;
}
x-binary-swipe .card-wrap.committed-left .card::after {
  left: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.75));
}
x-binary-swipe .card-wrap.committed-right .card::after {
  right: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.75));
}
x-binary-swipe .option .card {
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
}
x-binary-swipe .card-wrap.active .card {
  transform: scale(1.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
x-binary-swipe .card-wrap.dragging .card {
  transform: scale(1.2);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.45);
}

x-picker .item {
  border: 4px solid #ecd1ff;
  border-radius: 8px;
  cursor: pointer;
  margin: 4px;
  position: relative;
  transition: border 0.2s, opacity 0.2s;
  width: 150px;
}

x-picker .item.correct {
  border-color: #22ab24;
  cursor: default;
}

x-buckets.quadrilaterals .input {
  width: 100px;
  height: 100px;
  overflow: hidden;
  background-size: contain;
}
x-buckets.quadrilaterals .input:nth-child(5) {
  width: 100px;
  height: 150px;
}
x-buckets.quadrilaterals .input:nth-child(6) {
  width: 100px;
  height: 150px;
}
x-buckets.quadrilaterals .input:nth-child(7) {
  width: 100px;
  height: 150px;
}
x-buckets.quadrilaterals .input:nth-child(8) {
  width: 100px;
  height: 150px;
}
x-buckets.quadrilaterals .bucket {
  width: 300px;
}
x-buckets.quadrilaterals .bucket:nth-child(1) {
  background: #25abb2;
}
x-buckets.quadrilaterals .bucket:nth-child(2) {
  background: #8157c7;
}
x-buckets.quadrilaterals .bucket:nth-child(4) {
  background: #25abb2;
}
x-buckets.quadrilaterals .bucket:nth-child(3) {
  background: #8157c7;
}

x-algebra-flow x-blank input {
  min-width: 74px;
  transition: min-width 0.2s;
}
x-algebra-flow x-blank.invalid input {
  min-width: 54px;
}

.similar-circles {
  background: #f5f5f6;
  border-radius: 4px;
}
html[theme=dark] .similar-circles {
  background: #2d2c38;
}
.similar-circles .handle:not(.fixed) {
  cursor: move;
  transition: r 0.2s;
  fill: #cd0e66;
}
.similar-circles .handle:not(.fixed):hover {
  r: 20;
}
.similar-circles .outline {
  fill: none;
  stroke: #cd0e66;
  stroke-width: 4px;
  pointer-events: none;
  transition: r 0.2s;
}
.similar-circles .outline-halo {
  fill: none;
  stroke: transparent;
  stroke-width: 40px;
  cursor: ew-resize;
}
.similar-circles .burst {
  fill: none;
  stroke: #22ab24;
}
@media screen and (max-width: 480px) {
  .similar-circles .handle {
    r: 20;
  }
  .similar-circles .handle:hover {
    r: 40;
  }
  .similar-circles .outline-halo {
    fill: none;
    stroke: transparent;
    stroke-width: 40px;
    cursor: ew-resize;
  }
}

.pi-spiral {
  margin: 1em auto;
  max-width: 100%;
  width: 400px;
}

#max-area x-select.segmented > * {
  width: 80px;
  font-size: 16px;
}

#max-area path {
  fill: rgba(15, 130, 242, 0.1);
  stroke: #22ab24;
  stroke-width: 8px;
  stroke-linejoin: round;
}
#max-area .var {
  color: #0f82f2;
}

.circle-area {
  overflow: visible;
}
.circle-area .circle path {
  stroke: white;
  stroke-width: 1.5px;
}
.circle-area .circle:first-child {
  opacity: 0.5;
}
.circle-area.red .circle path {
  fill: #cd0e66;
}
.circle-area.red .circle path:nth-child(2n) {
  fill: #9d0b4e;
}
.circle-area.blue .circle path {
  fill: #0f82f2;
}
.circle-area.blue .circle path:nth-child(2n) {
  fill: #0b68c3;
}
.circle-area .labels line, .circle-area marker path {
  fill: none;
  stroke: #c5c2cc;
  stroke-linecap: round;
}
.circle-area .labels line {
  stroke-width: 2px;
}
.circle-area .labels text {
  fill: #c5c2cc;
  font-size: 16px;
  font-style: italic;
}

.pi-grid {
  display: flex;
}

.pi-left {
  display: flex;
}

.pi-mid {
  display: flex;
  flex-wrap: wrap;
  width: 260px;
}

.pi-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.pi-cell {
  width: 24px;
  color: rgba(255, 255, 255, 0.65);
  transition: opacity 0.2s;
}

.pi-cell.hide {
  opacity: 0.2;
}

.pi-operator {
  padding: 0 4px;
}

.pi-cell, .pi-operator {
  height: 24px;
  line-height: 24px;
  text-align: center;
  border: 1px solid white;
}

.pi-legend {
  display: flex;
  justify-content: center;
}
.pi-legend .pi-cell {
  color: white;
  margin: 20px 3px 0 3px;
}

.pi-box {
  padding: 0;
}

.pi-controls {
  margin-bottom: 1px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  padding: 12px 20px 11px;
  border-bottom: 1px solid white;
}
.pi-controls:before, .pi-controls:after {
  display: table;
  content: " ";
  clear: both;
}
.pi-controls input {
  background: white;
  padding: 4px 8px;
  margin: -4px 0 -4px 8px;
  border-radius: 4px;
  width: 120px;
}
.pi-controls .pi-warning {
  color: #cd0e66;
  font-style: italic;
  float: right;
}

x-pi-scroll {
  height: 300px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  padding: 12px 20px 12px 40px;
}
x-pi-scroll .first-row {
  margin: 0 0 -29px -24px;
}

.constellations {
  position: relative;
  overflow: hidden;
  cursor: ew-resize;
}
.constellations .bg, .constellations .wheel, .constellations .fg {
  background-size: cover;
}
.constellations .wheel, .constellations .fg {
  position: absolute;
  top: 24px;
  width: 100%;
}
.constellations svg line {
  stroke: #001327;
  stroke-width: 2px;
}
.constellations .bg {
  padding-bottom: 63%;
  background-image: url(/content/circles/images/star-wheel-1.svg);
}
.constellations .wheel {
  padding-bottom: 100%;
  background-image: url(/content/circles/images/star-wheel-2.svg);
  will-change: transform;
  height: 0;
}
.constellations .fg {
  padding-bottom: 63%;
  background-image: url(/content/circles/images/star-wheel-3.svg);
  pointer-events: none;
}
.constellations .label {
  background: #001327;
  position: relative;
  color: white;
  width: 160px;
  margin: 0 auto;
  border-radius: 4px;
  line-height: 24px;
  font-size: 14px;
  text-align: center;
}
.constellations .label:after {
  content: "";
  display: block;
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-top: 5px #001327 solid;
  border-left: 5px transparent solid;
  border-right: 5px transparent solid;
}
.constellations + x-gesture {
  fill: rgba(0, 0, 0, 0.8);
  stroke: rgba(255, 255, 255, 0.8);
}

#radians-conversion .space {
  margin: 0 4px;
}
#radians-conversion .rotate {
  display: inline-block;
  font-size: 1.5em;
  margin: -0.4em 0 0.2em 0;
}
#radians-conversion .rotate.left {
  transform: rotate(135deg);
}
#radians-conversion .rotate.right {
  transform: rotate(45deg);
}

#radians-distance .earth {
  position: absolute;
  width: 220px;
  height: 220px;
  top: 40px;
  left: 40px;
  background: url(/content/circles/images/earth.svg);
  background-size: contain;
}
#radians-distance .iss {
  width: 57px;
  height: 33px;
  position: absolute;
  top: 0;
  /* rtl:ignore */
  left: 0;
  background: url(/content/circles/images/iss.svg);
  background-size: contain;
  margin: -17px -29px;
}
#radians-distance .time {
  position: absolute;
  top: 5px;
  left: 12px;
  color: #cd0e66;
  font-weight: 600;
}

.eqn-gap {
  display: inline-block;
  margin: 0 8px;
}

.calculator {
  background: #3a3645;
  padding: 8px;
  border-radius: 6px;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.calculator:before, .calculator:after {
  display: table;
  content: " ";
  clear: both;
}
.calculator .display {
  background: #c5c2cc;
  border-radius: 4px;
  padding: 8px 14px;
  position: relative;
  margin: 6px 6px 12px 6px;
  font-size: 36px;
  line-height: 40px;
  height: 40px;
}
.calculator .display img {
  width: 40px;
  height: 40px;
  position: absolute;
  display: none;
}
.calculator .button {
  background: #5e5870;
  border-radius: 4px;
  float: left;
  width: 36px;
  height: 32px;
  padding: 8px;
  margin: 6px;
  line-height: 32px;
  font-size: 24px;
  color: white;
  text-align: center;
  box-shadow: 0 3px 0 #181824;
  cursor: pointer;
  transition: background 0.1s, box-shadow 0.1s, transform 0.1s;
}
.calculator .button:hover {
  background: #6a637e;
}
.calculator .button:active {
  box-shadow: none;
  transform: translateY(3px);
}
.calculator .button.wide {
  width: 64px;
}
.calculator .button.num {
  background: #255c9c;
}
.calculator .button.num:hover {
  background: #2f74c5;
}
.calculator .button.mode {
  background: #9c6123;
}
.calculator .button.mode:hover {
  background: #c67b2c;
}
.calculator .setting {
  position: absolute;
  top: 4px;
  right: 13px;
  background: #3a3645;
  border-radius: 4px;
  line-height: 12px;
  font-size: 12px;
  padding: 2px 6px;
  color: white;
}

#eratosthenes-1 x-geopad {
  background: none;
}
#eratosthenes-1 .sunrays {
  display: block;
  position: absolute;
}
#eratosthenes-1 .shadow {
  fill: #ccc;
  transition: fill 0.2s;
}
#eratosthenes-1 .obelisk {
  transform-origin: center bottom;
}
#eratosthenes-1 .earth-cover.fill {
  fill: transparent;
}
#eratosthenes-1.focus .sunrays {
  opacity: 0.2;
}
#eratosthenes-1.focus .shadow {
  fill: #eee;
}
#eratosthenes-1.focus .earth-cover.fill {
  fill: rgba(255, 255, 255, 0.9);
}

.large-op {
  position: absolute;
  top: 60px;
  right: -36px;
  font-size: 42px;
}

x-geopad.geo-sketch .labels text {
  stroke: none !important;
}
x-geopad.geo-sketch ellipse {
  stroke: #96969e;
  stroke-width: 2px;
  fill: rgba(253, 140, 0, 0.3);
  transition: opacity 0.2s;
}
x-geopad.geo-sketch .light.green, x-geopad.geo-sketch .light.teal {
  opacity: 0.3;
}
x-geopad.geo-sketch .light.focus {
  opacity: 0.6;
}
.focus x-geopad.geo-sketch ellipse {
  opacity: 0.3;
}

.sphere-maps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.sphere-maps .left {
  width: 240px;
  margin: 12px;
}
.sphere-maps .right {
  width: 400px;
  flex-grow: 1;
  margin: 12px;
}
.sphere-maps svg {
  width: 100%;
}
.sphere-maps .right svg {
  touch-action: none;
}
.sphere-maps .outline {
  fill: #82bcf4;
}
.sphere-maps .grid {
  fill: none;
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 0.5px;
}
.sphere-maps .land {
  fill: #8cd08d;
  stroke: #187819;
  stroke-width: 0.6px;
}
.sphere-maps .map-select {
  stroke: #cd0e66;
  stroke-width: 2px;
  fill: rgba(205, 14, 102, 0.4);
}

x-conic-section {
  display: block;
  margin: 1em auto 0;
  cursor: ew-resize;
  background: url(/content/circles/images/conics-bg.jpg);
  background-size: cover;
}

.conics {
  margin: 2em 0;
}
@media screen and (max-width: 640px) {
  .conics {
    margin: 1.5em 0;
  }
}
.conics p {
  margin: 0;
}
.conics svg {
  display: block;
  margin: 0 auto;
}
.conics .row > * {
  background: #c5c2cc;
  position: relative;
  background: #c5c2cc;
  border-radius: 6px;
  padding: 2px 16px 12px;
  text-align: center;
  box-sizing: border-box;
  opacity: 0.4;
  transition: opacity 0.3s, transform 0.3s;
  cursor: pointer;
  width: 154px;
  margin: 12px;
}
.conics .row > *:after {
  content: "";
  display: block;
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -73px;
  border-bottom: 14px #c5c2cc solid;
  border-left: 73px transparent solid;
  border-right: 73px transparent solid;
}
.conics .row > *.hide {
  opacity: 0;
  pointer-events: none;
}
.conics .row > *:hover {
  opacity: 0.6;
  transform: translateY(-6px);
}
.conics .row > *.active {
  opacity: 1;
  transform: translateY(-12px);
  cursor: default;
}

.newton {
  position: relative;
}
.newton.interactive {
  cursor: pointer;
}
.newton img {
  display: block;
}
.newton .over {
  position: absolute;
  top: 0;
}
.newton .apple {
  position: absolute;
  top: 38px;
  left: 144px;
}
.newton .credit {
  position: absolute;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  padding: 1px 8px;
  font-size: 10px;
  color: white;
  opacity: 0;
  transition: opacity 0.2s;
  border-bottom-left-radius: 4px;
}
.newton:hover .credit {
  opacity: 0.8;
}

.number-ball {
  display: inline-block;
  text-align: center;
  line-height: 30px;
  min-width: 20px;
  padding: 0 5px;
  border-radius: 20px;
  background: #cd0e66;
  color: white;
  position: relative;
}
.number-ball.blue {
  background: #0f82f2;
}
.number-ball.green {
  background: #22ab24;
}
.number-ball.yellow {
  background: #fd8c00;
}
.number-ball.l-blue {
  background: rgba(15, 130, 242, 0.4);
}
.number-ball.l-green {
  background: rgba(34, 171, 36, 0.4);
}
.number-ball.l-yellow {
  background: rgba(253, 140, 0, 0.4);
}
.number-ball.l-blue-green {
  background: linear-gradient(to bottom right, rgba(15, 130, 242, 0.4) 50%, rgba(34, 171, 36, 0.4) 50%);
}
.number-ball.small {
  padding: 0;
  width: 24px;
  line-height: 24px;
  font-size: 1em;
  margin: -6px 1px;
}
.number-ball.blue.cross {
  position: relative;
  background: rgba(15, 130, 242, 0.3);
}
.number-ball.cross:after {
  content: "";
  width: 150%;
  height: 2px;
  background: #c00;
  position: absolute;
  left: -25%;
  top: 50%;
  transform: rotate(-45deg);
  margin-top: -1px;
}
.number-ball.legs:before, .number-ball.legs:after {
  content: " ";
  display: block;
  position: absolute;
  width: 40px;
  height: 2px;
  background: #c5c2cc;
}
.number-ball.legs:before {
  transform: rotate(-45deg);
  top: 37px;
  right: 21px;
}
.number-ball.legs:after {
  transform: rotate(45deg);
  top: 37px;
  left: 21px;
}
.number-ball.legs.b:before {
  transform: rotate(-30deg);
  top: 33px;
  right: 24px;
}
.number-ball.legs.a:after {
  transform: rotate(30deg);
  top: 33px;
  left: 24px;
}

.base-10 {
  margin: 0 auto 1em;
}
.base-10 td {
  padding: 0;
  width: 1.5em;
}

.base-10-large {
  font-size: 1.8em;
  line-height: 1;
}

#primefactor .td-border-bottom td {
  padding-bottom: 0.5em;
}

#primefactor .td-border-bottom + tr td {
  padding-top: 0.5em;
}

.twin {
  display: inline-block;
}
.twin .number-ball {
  margin: 2px 0 2px 8px;
}
.twin .number-ball:nth-child(odd):after {
  content: "";
  display: block;
  width: 10px;
  height: 4px;
  position: absolute;
  right: -9px;
  top: 13px;
  background: #cd0e66;
}
.twin .number-ball.blue:nth-child(odd):after {
  background: #0f82f2;
}
.twin .number-ball.green:nth-child(odd):after {
  background: #22ab24;
}
.twin .number-ball.yellow:nth-child(odd):after {
  background: #fd8c00;
}

.eqn {
  font-size: 26px;
}

x-algebra-flow x-blank input {
  min-width: 74px;
  transition: min-width 0.2s;
}
x-algebra-flow x-blank.invalid input {
  min-width: 54px;
}

x-buckets.independent .input {
  width: 220px;
}
x-buckets.independent .bucket {
  width: 300px;
}
x-buckets.independent .bucket:nth-child(1) {
  background: #25abb2;
}
x-buckets.independent .bucket:nth-child(2) {
  background: #8157c7;
}

.splitcontainer {
  position: right;
}

.poly {
  position: relative;
  display: flex;
  border-radius: 4px 0 0 4px;
  --canvas-bg: #f5f5f6;
}
[theme=dark] .poly {
  --canvas-bg: #2d2c38;
}
.poly x-polypad {
  height: 450px;
  flex-grow: 1;
  background: var(--canvas-bg);
}
.poly svg.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 6;
  width: auto;
  right: 52px;
  overflow: visible;
  stroke-linejoin: round;
}
.poly .menu {
  background: #3a3645;
  border-radius: 0 4px 4px 0;
  padding: 2px 0;
}
.poly .add {
  width: 48px;
  height: 48px;
  padding: 0 2px;
  cursor: grab;
}
.poly .overlap .polygon-tile {
  fill: #ff5354 !important;
}
.poly .btn-row {
  position: absolute;
  bottom: 12px;
  left: 12px;
}
.poly #pentagons svg.overlay {
  right: 104px;
}
#pentagons .poly .menu {
  width: 104px;
  display: flex;
  flex-wrap: wrap;
}

.polybig {
  position: relative;
  display: flex;
  border-radius: 4px 0 0 4px;
  --canvas-bg: #f5f5f6;
}
[theme=dark] .polybig {
  --canvas-bg: #2d2c38;
}
.polybig x-polypad {
  height: 450px;
  flex-grow: 1;
  background: var(--canvas-bg);
}
.polybig svg.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 6;
  width: auto;
  right: 52px;
  overflow: visible;
  stroke-linejoin: round;
}
.polybig .menu {
  background: #3a3645;
  border-radius: 0 4px 4px 0;
  padding: 2px 0;
}
.polybig .add {
  width: 48px;
  height: 48px;
  padding: 0 2px;
  cursor: grab;
}
.polybig .overlap .polygon-tile {
  fill: #ff5354 !important;
}
.polybig .btn-row {
  position: absolute;
  bottom: 12px;
  left: 12px;
}
.polybig #pentagons svg.overlay {
  right: 104px;
}
#pentagons .polybig .menu {
  width: 104px;
  display: flex;
  flex-wrap: wrap;
}

x-sortable-horizontal, x-exchange-digits {
  display: block;
  margin: 1.5em;
  max-height: 160px;
  position: relative;
}
x-sortable-horizontal > *, x-exchange-digits > * {
  background: #0f82f2;
  border-radius: 4px;
  color: white;
  cursor: grab;
  left: 0;
  top: 0;
  padding: 8px 28px 8px 20px;
  position: absolute;
  transition: opacity 0.1s, box-shadow 0.1s;
}
x-sortable-horizontal > *:active, x-exchange-digits > *:active {
  cursor: grabbing;
  z-index: 100;
}
x-sortable-horizontal > *:after, x-exchange-digits > *:after {
  content: "…";
  position: absolute;
  right: 0;
  transform: rotate(90deg);
  top: 7px;
}
x-sortable-horizontal:active > *, x-exchange-digits:active > * {
  opacity: 0.6;
}
x-sortable-horizontal > *:active, x-exchange-digits > *:active {
  opacity: 1;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}
x-sortable-horizontal.solved > *, x-sortable-horizontal.solved:active > *, x-sortable-horizontal.solved > *:active, x-exchange-digits.solved > *, x-exchange-digits.solved:active > *, x-exchange-digits.solved > *:active {
  background: none;
  padding: 7px 27px 7px 19px;
  border: 1px solid #0f82f2;
  cursor: default;
  color: inherit;
  opacity: 1;
  box-shadow: none;
}
x-sortable-horizontal.solved > *:after, x-sortable-horizontal.solved:active > *:after, x-sortable-horizontal.solved > *:active:after, x-exchange-digits.solved > *:after, x-exchange-digits.solved:active > *:after, x-exchange-digits.solved > *:active:after {
  display: none;
}