/* Formelsammlung — Mathgard-Tokens (Nachtblau / Runengold / Pergament) */
.formula-sheet-fab {
  --mg-nightblue: #1a1a2e;
  --mg-runegold: #c8a94a;
  --mg-parchment: #f5f0e8;
  position: fixed; /* Fallback; im .mg-corner-dock wird position:static gesetzt */
  right: 1.1rem;
  bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
  z-index: 8500;
  min-width: 3.35rem;
  height: 3.35rem;
  padding: 0 0.7rem;
  border-radius: 999px;
  border: 1.5px solid var(--mg-runegold);
  background: var(--mg-parchment);
  color: var(--mg-nightblue);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(26, 26, 46, 0.35);
}

/* Dock rechts unten (Support + Formelsammlung); row-reverse → erstes Kind aussen rechts */
.mg-corner-dock {
  position: fixed;
  right: 1.1rem;
  bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
  z-index: 8500;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 0.55rem;
}

.mg-corner-dock .formula-sheet-fab {
  position: static;
  right: auto;
  bottom: auto;
}

.formula-sheet-fab:hover,
.formula-sheet-fab:focus-visible {
  background: #fff8ea;
  outline: none;
}

.formula-sheet-fab[aria-expanded="true"] {
  background: var(--mg-runegold);
  color: var(--mg-nightblue);
  border-color: #a88b2e;
}

.formula-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 8490;
  background: rgba(26, 26, 46, 0.28);
  border: 0;
  padding: 0;
  cursor: pointer;
}

.formula-sheet-backdrop[hidden] {
  display: none !important;
}

.formula-sheet-panel {
  --mg-nightblue: #1a1a2e;
  --mg-runegold: #c8a94a;
  --mg-parchment: #f5f0e8;
  position: fixed;
  right: 1.1rem;
  bottom: 5.65rem;
  z-index: 8501;
  width: min(34rem, calc(100vw - 1.5rem));
  max-height: min(72vh, 36rem);
  display: flex;
  flex-direction: column;
  background: var(--mg-parchment);
  border: 1px solid rgba(26, 26, 46, 0.16);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(26, 26, 46, 0.28);
  overflow: hidden;
  touch-action: manipulation;
}

.formula-sheet-panel--sized {
  max-height: none;
}

.formula-sheet-panel[hidden] {
  display: none !important;
}

body.formula-sheet-resizing {
  cursor: nwse-resize;
  user-select: none;
  -webkit-user-select: none;
}

body.formula-sheet-resizing .formula-sheet-backdrop {
  pointer-events: none;
}

/* Resize-Griffe: Panel ist rechts/unten verankert */
.formula-sheet-panel__resize {
  position: absolute;
  z-index: 2;
  touch-action: none;
}

.formula-sheet-panel__resize--n {
  top: 0;
  left: 1.1rem;
  right: 0.35rem;
  height: 0.7rem;
  cursor: ns-resize;
}

.formula-sheet-panel__resize--w {
  top: 1.1rem;
  left: 0;
  bottom: 0.35rem;
  width: 0.7rem;
  cursor: ew-resize;
}

.formula-sheet-panel__resize--nw {
  top: 0;
  left: 0;
  width: 1.35rem;
  height: 1.35rem;
  cursor: nwse-resize;
}

.formula-sheet-panel__resize--nw::after {
  content: "";
  position: absolute;
  top: 0.28rem;
  left: 0.28rem;
  width: 0.55rem;
  height: 0.55rem;
  border-top: 2px solid rgba(26, 26, 46, 0.35);
  border-left: 2px solid rgba(26, 26, 46, 0.35);
  border-radius: 2px 0 0 0;
  pointer-events: none;
}

@media (max-width: 720px) {
  .formula-sheet-panel {
    right: max(0.55rem, env(safe-area-inset-right, 0px));
    left: max(0.55rem, env(safe-area-inset-left, 0px));
    bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-height: min(62vh, 32rem);
    border-radius: 12px;
  }

  /* Auf schmalen Screens nur Höhe ziehen (volle Breite) */
  .formula-sheet-panel__resize--w {
    display: none;
  }

  .formula-sheet-panel__resize--nw {
    display: none;
  }

  .formula-sheet-panel__resize--n {
    left: 0;
    right: 0;
    height: 1rem;
  }

  .formula-sheet-panel__resize--n::after {
    content: "";
    position: absolute;
    top: 0.35rem;
    left: 50%;
    width: 2.4rem;
    height: 0.28rem;
    margin-left: -1.2rem;
    border-radius: 999px;
    background: rgba(26, 26, 46, 0.28);
    pointer-events: none;
  }
}

@media (min-width: 721px) and (max-width: 1024px) {
  .formula-sheet-panel {
    width: min(32rem, calc(100vw - 2rem));
    max-height: min(68vh, 34rem);
  }

  .formula-sheet-panel__resize--n {
    height: 0.85rem;
  }

  .formula-sheet-panel__resize--w {
    width: 0.85rem;
  }

  .formula-sheet-panel__resize--nw {
    width: 1.55rem;
    height: 1.55rem;
  }
}

.formula-sheet-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 0.95rem;
  padding-top: 0.9rem;
  border-bottom: 1px solid rgba(26, 26, 46, 0.1);
  background: rgba(200, 169, 74, 0.18);
  flex-shrink: 0;
}

.formula-sheet-panel__head h2 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 650;
  color: #1a1a2e;
}

.formula-sheet-panel__close {
  border: 0;
  background: transparent;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  color: #3a4050;
  min-width: 2.5rem;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin: -0.25rem -0.15rem -0.25rem 0;
}

.formula-sheet-panel__close:hover,
.formula-sheet-panel__close:focus-visible {
  background: rgba(26, 26, 46, 0.06);
  outline: none;
}

.formula-sheet-panel__body {
  padding: 0.55rem 0.7rem 1rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-height: 0;
}

.formula-sheet-group {
  margin-bottom: 0.55rem;
  border: 1px solid rgba(26, 26, 46, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
}

.formula-sheet-group:last-child {
  margin-bottom: 0.15rem;
}

.formula-sheet-group__toggle {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  margin: 0;
  padding: 0.65rem 0.7rem;
  min-height: 2.75rem;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: #3a4050;
  -webkit-tap-highlight-color: transparent;
}

.formula-sheet-group__toggle:hover,
.formula-sheet-group__toggle:focus-visible {
  background: rgba(200, 169, 74, 0.12);
  outline: none;
}

.formula-sheet-group__chevron {
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid #3a4050;
  border-bottom: 2px solid #3a4050;
  transform: rotate(45deg);
  margin: 0 0.15rem 0.1rem 0.1rem;
  transition: transform 0.15s ease;
}

.formula-sheet-group__toggle[aria-expanded="false"] .formula-sheet-group__chevron {
  transform: rotate(-45deg);
  margin-bottom: 0;
  margin-top: 0.15rem;
}

.formula-sheet-group__heading {
  flex: 1 1 auto;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.3;
  color: #2a3040;
  min-width: 0;
}

.formula-sheet-group__badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}

.formula-sheet-group__content {
  padding: 0 0.7rem 0.65rem;
}

.formula-sheet-group__content[hidden] {
  display: none !important;
}

.formula-sheet-group--collapsed .formula-sheet-group__toggle {
  border-bottom: 0;
}

.formula-sheet-badge {
  font-size: 0.66rem;
  font-weight: 600;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  background: rgba(46, 46, 78, 0.1);
  color: #2e2e4e;
}

.formula-sheet-badge--unlocked {
  background: rgba(74, 124, 89, 0.18);
  color: #2a5a34;
}

.formula-sheet-item {
  margin: 0 0 0.55rem;
  padding: 0.5rem 0.15rem 0.55rem;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(26, 26, 46, 0.08);
}

.formula-sheet-item:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.formula-sheet-item h4 {
  margin: 0 0 0.3rem;
  font-size: 0.88rem;
  color: #1a1a2e;
}

.formula-sheet-latex {
  overflow-x: visible;
  overflow-wrap: anywhere;
  font-size: 1rem;
  line-height: 1.45;
  color: #1a1a2e;
}

.formula-sheet-latex mjx-container {
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 0.15rem;
}

.formula-sheet-usage {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: #5a6170;
  line-height: 1.35;
}

.formula-sheet-empty {
  margin: 0;
  font-size: 0.88rem;
  color: #5a6170;
  line-height: 1.4;
}

.formula-sheet-empty--muted {
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

.bookmark-meta {
  margin-left: 0.45rem;
  font-size: 0.8rem;
  color: #667280;
}

.exercise-levels-btn.exercise-bookmark-btn[aria-pressed="true"] {
  color: #c8a94a;
}

.input-notes {
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px dashed rgba(40, 50, 60, 0.18);
  position: relative;
  z-index: 8; /* über der Zeichenkachel, wenn Layout noch eng ist */
}

.input-notes__modes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.input-notes__modes > button[data-input-mode] {
  border: 1px solid rgba(40, 50, 60, 0.2);
  background: #f7f4ee;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
}

.input-notes__modes > button[data-input-mode][aria-selected="true"] {
  background: #fff;
  border-color: rgba(200, 169, 74, 0.55);
  box-shadow: 0 1px 3px rgba(26, 26, 46, 0.08);
  font-weight: 650;
}

/* Zeichnen-Steuerung unter dem Text — nicht im Aufschrieb */
.input-notes__draw-tools {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-left: 0.15rem;
  padding-left: 0.55rem;
  border-left: 1px solid rgba(40, 50, 60, 0.14);
}

.input-notes__draw-tools[hidden] {
  display: none !important;
}

.input-notes__draw-hint {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(40, 50, 60, 0.62);
  line-height: 1.2;
}

.input-notes__draw-eraser {
  border: 1px solid rgba(40, 50, 60, 0.2);
  background: #fff;
  color: #2a2f3a;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
}

.input-notes__draw-eraser:hover {
  background: #f7f4ee;
  border-color: rgba(74, 124, 89, 0.4);
}

.input-notes__draw-eraser.is-active,
.input-notes__draw-eraser[aria-pressed="true"] {
  background: rgba(74, 124, 89, 0.12);
  border-color: rgba(74, 124, 89, 0.55);
  color: #1f4d36;
}

.input-notes__draw-clear {
  border: 1px solid rgba(185, 28, 28, 0.28);
  background: #fff;
  color: #b91c1c;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
}

.input-notes__draw-clear:hover {
  background: #fef2f2;
  border-color: rgba(185, 28, 28, 0.45);
}

.input-notes__draw-done {
  border: 1px solid rgba(40, 50, 60, 0.18);
  background: #fff;
  color: #1a1a2e;
  border-radius: 999px;
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  font-weight: 600;
}

.input-notes__draw-done:hover {
  background: #f7f4ee;
}

/* Stift: Farbe & Stärke als Aufklappmenüs */
.input-notes__pen-menu {
  position: relative;
  display: inline-flex;
}

.input-notes__pen-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(40, 50, 60, 0.18);
  background: #fff;
  color: #1a1a2e;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
}

.input-notes__pen-btn:hover,
.input-notes__pen-menu.is-open .input-notes__pen-btn {
  background: #f7f4ee;
  border-color: rgba(200, 169, 74, 0.45);
}

.input-notes__pen-swatch {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  flex-shrink: 0;
}

.input-notes__pen-size-preview {
  width: 1.1rem;
  height: 1.1rem;
  position: relative;
  flex-shrink: 0;
  display: inline-block;
}

.input-notes__pen-size-preview::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: var(--pen-w, 3px);
  height: var(--pen-w, 3px);
  border-radius: 999px;
  background: var(--pen-color, #1a1a2e);
}

.input-notes__pen-btn-label {
  white-space: nowrap;
}

.input-notes__pen-dropdown {
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.45rem;
  background: #fff;
  border: 1px solid rgba(40, 50, 60, 0.14);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  min-width: 7.5rem;
}

.input-notes__pen-dropdown[hidden] {
  display: none !important;
}

.input-notes__pen-dropdown button {
  border: 1px solid transparent;
  background: #f8fafc;
  border-radius: 8px;
  padding: 0.35rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.input-notes__pen-dropdown button:hover,
.input-notes__pen-dropdown button.is-active {
  border-color: rgba(200, 169, 74, 0.55);
  background: #fffbeb;
}

.input-notes__pen-dropdown[data-pen-dropdown="color"] button span {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.15);
}

.input-notes__pen-dropdown--sizes {
  flex-direction: column;
  flex-wrap: nowrap;
  min-width: 8.5rem;
}

.input-notes__pen-dropdown--sizes button {
  justify-content: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1a1a2e;
  padding: 0.4rem 0.55rem;
}

.input-notes__pen-size-dot {
  width: 1.15rem;
  height: 1.15rem;
  position: relative;
  flex-shrink: 0;
  display: inline-block;
}

.input-notes__pen-size-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: var(--pen-w, 3px);
  height: var(--pen-w, 3px);
  border-radius: 999px;
  background: #1a1a2e;
}

.input-notes .ai-help {
  margin-top: 0.4rem;
}

/* Lerntext als Papier: Zeichnen liegt transparent darüber */
.input-section.input-section--notes {
  position: relative;
}

.input-section--drawing {
  overflow: visible !important;
}

/* Eltern (loaded-content clippt sonst seitlich → Wald-Hintergrund) */
.input-notes-draw-scope.loaded-content,
.input-notes-draw-scope.content-panel-inner,
.tile-horizontal.active:has(.input-section--drawing) .content-panel,
.tile-horizontal.active:has(.input-section--drawing) .content-panel-inner,
.tile-horizontal.active:has(.input-section--drawing) .loaded-content {
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
  max-width: none;
}

.input-section--drawing > h2,
.input-section--drawing > .text-and-image {
  position: relative;
  z-index: 2;
}

/* Weisse Papierfläche unter der erweiterten Kachel (sonst Wald sichtbar) */
.input-notes__draw-paper {
  position: absolute;
  z-index: 1;
  box-sizing: border-box;
  pointer-events: none;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.input-notes__draw-paper[hidden] {
  display: none !important;
}

.input-notes__draw-host {
  position: absolute;
  z-index: 6;
  left: 0;
  top: 0;
  box-sizing: border-box;
  width: 100%;
  min-width: 260px;
  min-height: 200px;
  pointer-events: none;
  border-radius: 10px;
  /* Sanfter Bereichshinweis — kein Rahmen mitten im Text */
  box-shadow: inset 0 0 0 1px rgba(26, 26, 46, 0.08);
  transition: box-shadow 0.35s ease;
}

.input-notes__draw-host[hidden] {
  display: none !important;
}

.input-section--drawing .input-notes__draw-host {
  box-shadow:
    inset 0 0 0 2px rgba(180, 140, 40, 0.45),
    inset 0 0 0 4px rgba(200, 169, 74, 0.12),
    inset 0 0 28px rgba(200, 169, 74, 0.06);
}

.input-notes__draw-host--pulse {
  animation: input-notes-draw-pulse 1.35s ease-out 1;
}

@keyframes input-notes-draw-pulse {
  0% {
    box-shadow:
      inset 0 0 0 2.5px rgba(180, 140, 40, 0.62),
      inset 0 0 0 5px rgba(200, 169, 74, 0.2),
      inset 0 0 36px rgba(200, 169, 74, 0.12);
  }
  100% {
    box-shadow:
      inset 0 0 0 2px rgba(180, 140, 40, 0.45),
      inset 0 0 0 4px rgba(200, 169, 74, 0.12),
      inset 0 0 28px rgba(200, 169, 74, 0.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .input-notes__draw-host--pulse {
    animation: none;
  }
}

/* L-Ecken: Schreibbereich markieren, ohne mittige Linien */
.input-notes__draw-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
  z-index: 7;
  opacity: 0.78;
  border-color: rgba(160, 120, 30, 0.9);
  border-style: solid;
}

.input-notes__draw-corner--nw {
  top: 4px;
  left: 4px;
  border-width: 2.5px 0 0 2.5px;
  border-radius: 3px 0 0 0;
}

.input-notes__draw-corner--ne {
  top: 4px;
  right: 4px;
  border-width: 2.5px 2.5px 0 0;
  border-radius: 0 3px 0 0;
}

.input-notes__draw-corner--sw {
  bottom: 4px;
  left: 4px;
  border-width: 0 0 2.5px 2.5px;
  border-radius: 0 0 0 3px;
}

.input-notes__draw-corner--se {
  bottom: 4px;
  right: 4px;
  border-width: 0 2.5px 2.5px 0;
  border-radius: 0 0 3px 0;
}

.input-section--drawing .input-notes__draw-host:hover .input-notes__draw-corner,
.input-section--drawing .input-notes__draw-host:focus-within .input-notes__draw-corner {
  opacity: 1;
}

.input-notes-exercise-host {
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  pointer-events: auto;
}

.input-notes-exercise-host .exercise-ink {
  margin: 0;
  padding: 0;
  border: none;
  width: 100%;
  height: 100%;
  overflow: visible;
  background: transparent;
}

.input-notes-exercise-host .exercise-ink__panel--notes,
.exercise-ink__panel--notes.exercise-ink__panel--dock {
  position: relative;
  z-index: auto;
  margin: 0;
  width: 100% !important;
  max-width: 100%;
  height: 100% !important;
  min-height: 0;
  overflow: visible;
  box-sizing: border-box;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.input-notes-exercise-host .exercise-ink__panel--notes .exercise-ink__focus {
  border-radius: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: hidden;
  backdrop-filter: none;
  padding: 0;
  gap: 0;
}

/* Chrome aus dem Text: Steuerung liegt in der Modes-Leiste */
.input-notes-exercise-host .exercise-ink__panel--notes .exercise-ink__focus-bar,
.input-notes-exercise-host .exercise-ink__panel--notes .exercise-ink__toolbar,
.input-notes-exercise-host .exercise-ink__panel--notes .exercise-ink__orient,
.input-notes-exercise-host .exercise-ink__panel--notes .exercise-ink__status,
.input-notes-exercise-host .exercise-ink__panel--notes .exercise-ink__side {
  display: none !important;
}

.input-notes-exercise-host .exercise-ink__panel--notes .exercise-ink__workspace,
.input-notes-exercise-host .exercise-ink__panel--notes .exercise-ink__stage {
  height: 100%;
  min-height: 0;
}

.input-notes-exercise-host .exercise-ink__panel--notes .exercise-ink__stage {
  display: flex;
  flex-direction: column;
}

.input-notes-exercise-host .exercise-ink__panel--notes .exercise-ink__canvas-wrap {
  flex: 1 1 auto;
  min-height: 0;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  overflow: hidden;
}

.input-notes-exercise-host .exercise-ink__panel--notes .exercise-ink__canvas {
  background: transparent !important;
  cursor: crosshair;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
}

/* Resize: unsichtbare Hit-Areas an den Rändern (Kachel erweitern) */
.input-notes-exercise-host .exercise-ink__panel--notes .exercise-ink__rh {
  display: block;
  opacity: 0;
  background: transparent !important;
  pointer-events: auto;
  z-index: 8;
}

.input-notes-exercise-host .exercise-ink__panel--notes .exercise-ink__rh--e,
.input-notes-exercise-host .exercise-ink__panel--notes .exercise-ink__rh--w {
  width: 14px;
}

.input-notes-exercise-host .exercise-ink__panel--notes .exercise-ink__rh--s,
.input-notes-exercise-host .exercise-ink__panel--notes .exercise-ink__rh--n {
  height: 14px;
}

.input-notes-exercise-host .exercise-ink__panel--notes .exercise-ink__rh--se,
.input-notes-exercise-host .exercise-ink__panel--notes .exercise-ink__rh--sw,
.input-notes-exercise-host .exercise-ink__panel--notes .exercise-ink__rh--ne,
.input-notes-exercise-host .exercise-ink__panel--notes .exercise-ink__rh--nw {
  width: 22px;
  height: 22px;
}

.input-notes-exercise-host .exercise-ink__panel--notes .exercise-ink__rh--se::after {
  opacity: 0.4;
  border-color: rgba(200, 169, 74, 0.55);
}

.input-section--drawing .input-notes__draw-host:hover .exercise-ink__rh--se::after,
.input-section--drawing .input-notes__draw-host:focus-within .exercise-ink__rh--se::after {
  opacity: 0.85;
}

@media (max-width: 720px) {
  .input-notes__draw-host {
    max-width: none;
  }

  .input-notes__draw-hint {
    display: none;
  }
}
