/* (c) Innings2, generated by Mathigon Studio */
/* 0.101.2 */
@font-face {
  font-display: "swap";
  font-family: KaTeX_AMS;
  font-style: normal;
  font-weight: 400;
  src: url(fonts/KaTeX_AMS-Regular.woff2) format("woff2");
}
@font-face {
  font-display: "swap";
  font-family: KaTeX_Caligraphic;
  font-style: normal;
  font-weight: 700;
  src: url(fonts/KaTeX_Caligraphic-Bold.woff2) format("woff2");
}
@font-face {
  font-display: "swap";
  font-family: KaTeX_Caligraphic;
  font-style: normal;
  font-weight: 400;
  src: url(fonts/KaTeX_Caligraphic-Regular.woff2) format("woff2");
}
@font-face {
  font-display: "swap";
  font-family: KaTeX_Fraktur;
  font-style: normal;
  font-weight: 700;
  src: url(fonts/KaTeX_Fraktur-Bold.woff2) format("woff2");
}
@font-face {
  font-display: "swap";
  font-family: KaTeX_Fraktur;
  font-style: normal;
  font-weight: 400;
  src: url(fonts/KaTeX_Fraktur-Regular.woff2) format("woff2");
}
@font-face {
  font-display: "swap";
  font-family: KaTeX_Main;
  font-style: italic;
  font-weight: 700;
  src: url(fonts/KaTeX_Main-BoldItalic.woff2) format("woff2");
}
@font-face {
  font-display: "swap";
  font-family: KaTeX_Main;
  font-style: normal;
  font-weight: 700;
  src: url(fonts/KaTeX_Main-Bold.woff2) format("woff2");
}
@font-face {
  font-display: "swap";
  font-family: KaTeX_Main;
  font-style: italic;
  font-weight: 400;
  src: url(fonts/KaTeX_Main-Italic.woff2) format("woff2");
}
@font-face {
  font-display: "swap";
  font-family: KaTeX_Main;
  font-style: normal;
  font-weight: 400;
  src: url(fonts/KaTeX_Main-Regular.woff2) format("woff2");
}
@font-face {
  font-display: "swap";
  font-family: KaTeX_Math;
  font-style: italic;
  font-weight: 700;
  src: url(fonts/KaTeX_Math-BoldItalic.woff2) format("woff2");
}
@font-face {
  font-display: "swap";
  font-family: KaTeX_Math;
  font-style: italic;
  font-weight: 400;
  src: url(fonts/KaTeX_Math-Italic.woff2) format("woff2");
}
@font-face {
  font-display: "swap";
  font-family: "KaTeX_SansSerif";
  font-style: normal;
  font-weight: 700;
  src: url(fonts/KaTeX_SansSerif-Bold.woff2) format("woff2");
}
@font-face {
  font-display: "swap";
  font-family: "KaTeX_SansSerif";
  font-style: italic;
  font-weight: 400;
  src: url(fonts/KaTeX_SansSerif-Italic.woff2) format("woff2");
}
@font-face {
  font-display: "swap";
  font-family: "KaTeX_SansSerif";
  font-style: normal;
  font-weight: 400;
  src: url(fonts/KaTeX_SansSerif-Regular.woff2) format("woff2");
}
@font-face {
  font-display: "swap";
  font-family: KaTeX_Script;
  font-style: normal;
  font-weight: 400;
  src: url(fonts/KaTeX_Script-Regular.woff2) format("woff2");
}
@font-face {
  font-display: "swap";
  font-family: KaTeX_Size1;
  font-style: normal;
  font-weight: 400;
  src: url(fonts/KaTeX_Size1-Regular.woff2) format("woff2");
}
@font-face {
  font-display: "swap";
  font-family: KaTeX_Size2;
  font-style: normal;
  font-weight: 400;
  src: url(fonts/KaTeX_Size2-Regular.woff2) format("woff2");
}
@font-face {
  font-display: "swap";
  font-family: KaTeX_Size3;
  font-style: normal;
  font-weight: 400;
  src: url(fonts/KaTeX_Size3-Regular.woff2) format("woff2");
}
@font-face {
  font-display: "swap";
  font-family: KaTeX_Size4;
  font-style: normal;
  font-weight: 400;
  src: url(fonts/KaTeX_Size4-Regular.woff2) format("woff2");
}
@font-face {
  font-display: "swap";
  font-family: KaTeX_Typewriter;
  font-style: normal;
  font-weight: 400;
  src: url(fonts/KaTeX_Typewriter-Regular.woff2) format("woff2");
}
:root {
  --ML__static-fonts:true;
}

.ML__container {
  min-height: auto !important;
  --_hue:var(--hue,212);
  --_placeholder-color:var(--placeholder-color,hsl(var(--_hue),40%,49%));
  --_placeholder-opacity:var(--placeholder-opacity,0.4);
  --_text-font-family:var(--text-font-family,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif);
}

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

.ML__base, .ML__is-inline {
  display: inline-block;
}

.ML__base {
  border: 0;
  box-sizing: content-box;
  cursor: text;
  font-family: inherit;
  font-style: inherit;
  font-weight: inherit;
  margin: 0;
  outline: 0;
  padding: 0;
  position: relative;
  text-decoration: none;
  vertical-align: baseline;
  visibility: inherit;
  width: -moz-min-content;
  width: min-content;
}

.ML__strut, .ML__strut--bottom {
  display: inline-block;
  min-height: 0.5em;
}

.ML__small-delim {
  font-family: KaTeX_Main;
}

.ML__text {
  font-family: var(--_text-font-family);
  white-space: pre;
}

.ML__cmr {
  font-family: KaTeX_Main;
  font-style: normal;
}

.ML__mathit {
  font-family: KaTeX_Math;
  font-style: italic;
}

.ML__mathbf {
  font-family: KaTeX_Main;
  font-weight: 700;
}

.ML__mathbfit, .lcGreek.ML__mathbf {
  font-family: KaTeX_Math;
}

.ML__mathbfit {
  font-style: italic;
  font-weight: 700;
}

.ML__ams, .ML__bb {
  font-family: KaTeX_AMS;
}

.ML__cal {
  font-family: KaTeX_Caligraphic;
}

.ML__frak {
  font-family: KaTeX_Fraktur;
}

.ML__tt {
  font-family: KaTeX_Typewriter;
}

.ML__script {
  font-family: KaTeX_Script;
}

.ML__sans {
  font-family: KaTeX_SansSerif;
}

.ML__series_el, .ML__series_ul {
  font-weight: 100;
}

.ML__series_l {
  font-weight: 200;
}

.ML__series_sl {
  font-weight: 300;
}

.ML__series_sb {
  font-weight: 500;
}

.ML__bold {
  font-weight: 700;
}

.ML__series_eb {
  font-weight: 800;
}

.ML__series_ub {
  font-weight: 900;
}

.ML__series_uc {
  font-stretch: ultra-condensed;
}

.ML__series_ec {
  font-stretch: extra-condensed;
}

.ML__series_c {
  font-stretch: condensed;
}

.ML__series_sc {
  font-stretch: semi-condensed;
}

.ML__series_sx {
  font-stretch: semi-expanded;
}

.ML__series_x {
  font-stretch: expanded;
}

.ML__series_ex {
  font-stretch: extra-expanded;
}

.ML__series_ux {
  font-stretch: ultra-expanded;
}

.ML__it {
  font-style: italic;
}

.ML__shape_ol {
  -webkit-text-stroke: 1px #000;
  text-stroke: 1px #000;
  color: transparent;
}

.ML__shape_sc {
  font-variant: small-caps;
}

.ML__shape_sl {
  font-style: oblique;
}

.ML__emph {
  color: #bc2612;
}

.ML__emph .ML__emph {
  color: #0c7f99;
}

.ML__highlight {
  background: #edd1b0;
  color: #007cb2;
}

.ML__center {
  text-align: center;
}

.ML__left {
  text-align: left;
}

.ML__right {
  text-align: right;
}

.ML__label_padding {
  padding: 0 0.5em;
}

.ML__frac-line {
  min-height: 1px;
  width: 100%;
}

.ML__frac-line:after {
  background: currentColor;
  box-sizing: content-box;
  content: "";
  display: block;
  margin-top: max(-1px, -0.04em);
  min-height: max(1px, 0.04em);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  transform: translate(0);
}

.ML__sqrt, .ML__sqrt-sign {
  display: inline-block;
}

.ML__sqrt-sign {
  position: relative;
}

.ML__sqrt-line {
  display: inline-block;
  height: max(1px, 0.04em);
  width: 100%;
}

.ML__sqrt-line:before {
  background: currentColor;
  content: "";
  display: block;
  margin-top: min(-1px, -0.04em);
  min-height: max(1px, 0.04em);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  transform: translate(0);
}

.ML__sqrt-line:after {
  border-bottom-width: 1px;
  content: " ";
  display: block;
  margin-top: -0.1em;
}

.ML__sqrt-index {
  margin-left: 0.27777778em;
  margin-right: -0.55555556em;
}

.ML__delim-size1 {
  font-family: KaTeX_Size1;
}

.ML__delim-size2 {
  font-family: KaTeX_Size2;
}

.ML__delim-size3 {
  font-family: KaTeX_Size3;
}

.ML__delim-size4 {
  font-family: KaTeX_Size4;
}

.ML__delim-mult .delim-size1 > span {
  font-family: KaTeX_Size1;
}

.ML__delim-mult .delim-size4 > span {
  font-family: KaTeX_Size4;
}

.ML__accent-body > span {
  font-family: KaTeX_Main;
  width: 0;
}

.ML__accent-vec {
  left: 0.24em;
  position: relative;
}

.ML__latex {
  direction: ltr;
  display: inline-block;
  font-family: inherit;
  font-size-adjust: none;
  font-stretch: normal;
  font-style: normal;
  font-variant-caps: normal;
  letter-spacing: normal;
  line-height: 1.2;
  text-align: left;
  text-indent: 0;
  text-rendering: auto;
  word-wrap: normal;
  text-shadow: none;
  -webkit-user-select: none;
  -moz-user-select: none;
       user-select: none;
  white-space: nowrap;
  width: -moz-min-content;
  width: min-content;
  word-spacing: normal;
}

.ML__latex .style-wrap {
  position: relative;
}

.ML__latex .ML__left-right, .ML__latex .ML__mfrac {
  display: inline-block;
}

.ML__latex .ML__vlist-t {
  border-collapse: collapse;
  display: inline-table;
  table-layout: fixed;
}

.ML__latex .ML__vlist-r {
  display: table-row;
}

.ML__latex .ML__vlist {
  display: table-cell;
  position: relative;
  vertical-align: bottom;
}

.ML__latex .ML__vlist > span {
  display: block;
  height: 0;
  position: relative;
}

.ML__latex .ML__vlist > span > span {
  display: inline-block;
}

.ML__latex .ML__vlist > span > .ML__pstrut {
  overflow: hidden;
  width: 0;
}

.ML__latex .ML__vlist-t2 {
  margin-right: -2px;
}

.ML__latex .ML__vlist-s {
  display: table-cell;
  font-size: 1px;
  min-width: 2px;
  vertical-align: bottom;
  width: 2px;
}

.ML__latex .ML__msubsup {
  text-align: left;
}

.ML__latex .ML__negativethinspace {
  display: inline-block;
  height: 0.71em;
  margin-left: -0.16667em;
}

.ML__latex .ML__thinspace {
  display: inline-block;
  height: 0.71em;
  width: 0.16667em;
}

.ML__latex .ML__mediumspace {
  display: inline-block;
  height: 0.71em;
  width: 0.22222em;
}

.ML__latex .ML__thickspace {
  display: inline-block;
  height: 0.71em;
  width: 0.27778em;
}

.ML__latex .ML__enspace {
  display: inline-block;
  height: 0.71em;
  width: 0.5em;
}

.ML__latex .ML__quad {
  display: inline-block;
  height: 0.71em;
  width: 1em;
}

.ML__latex .ML__qquad {
  display: inline-block;
  height: 0.71em;
  width: 2em;
}

.ML__latex .ML__llap, .ML__latex .ML__rlap {
  display: inline-block;
  position: relative;
  width: 0;
}

.ML__latex .ML__llap > .ML__inner, .ML__latex .ML__rlap > .ML__inner {
  position: absolute;
}

.ML__latex .ML__llap > .ML__fix, .ML__latex .ML__rlap > .ML__fix {
  display: inline-block;
}

.ML__latex .ML__llap > .ML__inner {
  right: 0;
}

.ML__latex .ML__rlap > .ML__inner {
  left: 0;
}

.ML__latex .ML__rule {
  border: 0 solid;
  box-sizing: border-box;
  display: inline-block;
  position: relative;
}

.ML__latex .overline .overline-line, .ML__latex .underline .underline-line {
  width: 100%;
}

.ML__latex .overline .overline-line:before, .ML__latex .underline .underline-line:before {
  border-bottom-style: solid;
  border-bottom-width: max(1px, 0.04em);
  content: "";
  display: block;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.ML__latex .overline .overline-line:after, .ML__latex .underline .underline-line:after {
  border-bottom-style: solid;
  border-bottom-width: max(1px, 0.04em);
  content: "";
  display: block;
  margin-top: -1px;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.ML__latex .ML__stretchy {
  display: block;
  left: 0;
  overflow: hidden;
  position: absolute;
  width: 100%;
}

.ML__latex .ML__stretchy:after, .ML__latex .ML__stretchy:before {
  content: "";
}

.ML__latex .ML__stretchy svg {
  display: block;
  height: inherit;
  position: absolute;
  width: 100%;
  fill: currentColor;
  stroke: currentColor;
  fill-rule: nonzero;
  fill-opacity: 1;
  stroke-width: 1;
  stroke-linecap: butt;
  stroke-linejoin: miter;
  stroke-miterlimit: 4;
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  stroke-opacity: 1;
}

.ML__latex .slice-1-of-2 {
  left: 0;
}

.ML__latex .slice-1-of-2, .ML__latex .slice-2-of-2 {
  display: inline-flex;
  overflow: hidden;
  position: absolute;
  width: 50.2%;
}

.ML__latex .slice-2-of-2 {
  right: 0;
}

.ML__latex .slice-1-of-3 {
  left: 0;
  width: 25.1%;
}

.ML__latex .slice-1-of-3, .ML__latex .slice-2-of-3 {
  display: inline-flex;
  overflow: hidden;
  position: absolute;
}

.ML__latex .slice-2-of-3 {
  left: 25%;
  width: 50%;
}

.ML__latex .slice-3-of-3 {
  right: 0;
  width: 25.1%;
}

.ML__latex .slice-1-of-1, .ML__latex .slice-3-of-3 {
  display: inline-flex;
  overflow: hidden;
  position: absolute;
}

.ML__latex .slice-1-of-1 {
  left: 0;
  width: 100%;
}

.ML__latex .ML__nulldelimiter, .ML__latex .ML__op-group {
  display: inline-block;
}

.ML__latex .ML__op-symbol {
  position: relative;
}

.ML__latex .ML__op-symbol.ML__small-op {
  font-family: KaTeX_Size1;
}

.ML__latex .ML__op-symbol.ML__large-op {
  font-family: KaTeX_Size2;
}

.ML__latex .ML__mtable .ML__vertical-separator {
  box-sizing: border-box;
  display: inline-block;
  min-width: 1px;
}

.ML__latex .ML__mtable .ML__arraycolsep {
  display: inline-block;
}

.ML__latex .ML__mtable .col-align-m > .ML__vlist-t {
  text-align: center;
}

.ML__latex .ML__mtable .col-align-c > .ML__vlist-t {
  text-align: center;
}

.ML__latex .ML__mtable .col-align-l > .ML__vlist-t {
  text-align: left;
}

.ML__latex .ML__mtable .col-align-r > .ML__vlist-t {
  text-align: right;
}

[data-href] {
  cursor: pointer;
}

.ML__error {
  background-color: rgba(204, 0, 65, 0.1);
  background-image: radial-gradient(ellipse at center, #cc0041, transparent 70%);
  background-position: 0 100%;
  background-repeat: repeat-x;
  background-size: 3px 3px;
  display: inline-block;
  padding-bottom: 3px;
}

.ML__error > .ML__error {
  background: transparent;
  padding: 0;
}

.ML__placeholder {
  color: var(--_placeholder-color);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
  opacity: var(--_placeholder-opacity);
  padding-left: 0.4ex;
  padding-right: 0.4ex;
}

.ML__notation {
  box-sizing: border-box;
  line-height: 0;
  position: absolute;
}

.ML__tooltip-container {
  position: relative;
  transform: scale(0);
}

.ML__tooltip-container .ML__tooltip-content {
  background: var(--tooltip-background-color);
  border: var(--tooltip-border);
  border-radius: var(--tooltip-border-radius);
  display: inline-table;
  max-width: 400px;
  padding: 12px;
  position: fixed;
  visibility: hidden;
  width: -moz-max-content;
  width: max-content;
  z-index: 2;
  --_selection-color:var(--tooltip-color);
  box-shadow: var(--tooltip-box-shadow);
  color: var(--tooltip-color);
  opacity: 0;
  transition: opacity 0.15s cubic-bezier(0.4, 0, 1, 1);
}

.ML__tooltip-container .ML__tooltip-content .ML__text {
  white-space: normal;
}

.ML__tooltip-container .ML__tooltip-content .ML__base {
  display: contents;
}

.ML__tooltip-container:hover .ML__tooltip-content {
  font-size: 0.75em;
  opacity: 1;
  transform: scale(1) translateY(3em);
  visibility: visible;
}

/* Override fonts to use absolute path to fix 404 errors */
@font-face {
  font-family: KaTeX_Main;
  font-style: normal;
  font-weight: 400;
  src: url(/fonts/KaTeX_Main-Regular.woff2) format("woff2");
}
@font-face {
  font-family: KaTeX_Main;
  font-style: italic;
  font-weight: 400;
  src: url(/fonts/KaTeX_Main-Italic.woff2) format("woff2");
}
@font-face {
  font-family: KaTeX_Main;
  font-style: normal;
  font-weight: 700;
  src: url(/fonts/KaTeX_Main-Bold.woff2) format("woff2");
}
@font-face {
  font-family: KaTeX_Main;
  font-style: italic;
  font-weight: 700;
  src: url(/fonts/KaTeX_Main-BoldItalic.woff2) format("woff2");
}
@font-face {
  font-family: KaTeX_Math;
  font-style: italic;
  font-weight: 400;
  src: url(/fonts/KaTeX_Math-Italic.woff2) format("woff2");
}
@font-face {
  font-family: KaTeX_Math;
  font-style: italic;
  font-weight: 700;
  src: url(/fonts/KaTeX_Math-BoldItalic.woff2) format("woff2");
}
@font-face {
  font-family: KaTeX_Size1;
  font-style: normal;
  font-weight: 400;
  src: url(/fonts/KaTeX_Size1-Regular.woff2) format("woff2");
}
@font-face {
  font-family: KaTeX_Size2;
  font-style: normal;
  font-weight: 400;
  src: url(/fonts/KaTeX_Size2-Regular.woff2) format("woff2");
}
@font-face {
  font-family: KaTeX_Size3;
  font-style: normal;
  font-weight: 400;
  src: url(/fonts/KaTeX_Size3-Regular.woff2) format("woff2");
}
@font-face {
  font-family: KaTeX_Size4;
  font-style: normal;
  font-weight: 400;
  src: url(/fonts/KaTeX_Size4-Regular.woff2) format("woff2");
}
@font-face {
  font-family: KaTeX_AMS;
  font-style: normal;
  font-weight: 400;
  src: url(/fonts/KaTeX_AMS-Regular.woff2) format("woff2");
}
/* Geometry Proof Validation Component */
x-proof-checker {
  display: block;
  max-width: 90%;
  margin: 0 auto;
  padding: 1.5rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  /* Mobile responsiveness */
  /* Override KaTeX_Main */
  /* Override KaTeX_Math-Italic */
}
x-proof-checker .proof-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
x-proof-checker .question-section {
  background: linear-gradient(135deg, #6E2F9E 0%, #833CB5 100%);
  color: white;
}
x-proof-checker .question-section .question-title {
  margin: 0 0 1.5rem 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  color: white;
}
x-proof-checker .question-section .question-content .question-text {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 8px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}
x-proof-checker .answer-section {
  padding: 2rem;
}
x-proof-checker .answer-section .input-mode-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: #f8f9fa;
  padding: 0.5rem;
  border-radius: 8px;
}
x-proof-checker .answer-section .input-mode-toggle.hidden {
  display: none;
}
x-proof-checker .answer-section .input-mode-toggle button {
  flex: 1;
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 6px;
  background: transparent;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #6c757d;
}
x-proof-checker .answer-section .input-mode-toggle button:hover {
  background: rgba(102, 126, 234, 0.1);
}
x-proof-checker .answer-section .input-mode-toggle button.active {
  background: white;
  border-color: #667eea;
  color: #667eea;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
x-proof-checker .answer-section h3 {
  margin: 0 0 1.5rem 0;
  color: #2c3e50;
  font-size: 1.4rem;
}
x-proof-checker .answer-section .text-container.hidden {
  display: none;
}
x-proof-checker .answer-section .text-container .input-container {
  position: relative;
  margin-bottom: 1rem;
}
x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper {
  position: relative;
  width: 100%;
  min-height: 200px;
  padding: 1rem;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  background: white;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}
x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper .ql-toolbar {
  position: relative;
  z-index: 1002;
}
x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper::before {
  content: "";
  position: absolute;
  top: 42px;
  right: 0;
  width: 70px;
  height: 25px;
  background: white;
  z-index: 1000;
  pointer-events: auto;
  cursor: default;
  border-radius: 0 0 0 8px;
}
x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper .ql-editor {
  position: relative;
  z-index: 1001;
  caret-color: black !important;
  line-height: 2;
  /* Ensure cursor is visible by default */
}
x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper .ql-editor .ql-mathfield + * {
  pointer-events: none !important;
}
x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper .ql-editor .ql-mathfield + *::before, x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper .ql-editor .ql-mathfield + *::after {
  display: none !important;
}
x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper .ql-editor.ql-blank::before {
  font-size: 0.875rem !important;
  color: #9ca3af !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
}
x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper .ql-editor .ql-mathfield {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  vertical-align: baseline !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  z-index: 1 !important;
  width: auto !important;
  height: auto !important;
  min-width: auto !important;
  min-height: auto !important;
}
x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper .ql-editor .ql-mathfield math-field {
  display: inline-block !important;
  vertical-align: baseline !important;
  font-size: 1em !important;
  line-height: 1 !important;
  min-width: auto !important;
  max-width: none !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  caret-color: black !important;
  pointer-events: auto !important;
}
x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper .ql-editor .ql-mathfield math-field ::part(content),
x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper .ql-editor .ql-mathfield math-field * {
  pointer-events: auto !important;
  -webkit-user-select: auto !important;
     -moz-user-select: auto !important;
          user-select: auto !important;
}
x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper .ql-editor .ql-mathfield math-field::after, x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper .ql-editor .ql-mathfield math-field::before {
  content: none !important;
}
x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper .ql-editor .ql-mathfield math-field ::part(virtual-keyboard),
x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper .ql-editor .ql-mathfield math-field ::part(keyboard),
x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper .ql-editor .ql-mathfield math-field ::part(keyboard-toggle),
x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper .ql-editor .ql-mathfield math-field ::part(menu-toggle) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper .ql-editor .ql-mathfield math-field ::part(menu),
x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper .ql-editor .ql-mathfield math-field ::part(toolbar) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}
x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper .ql-editor .ql-mathfield math-field + .ML__keyboard, x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper .ql-editor .ql-mathfield math-field + .ML__virtual-keyboard, x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper .ql-editor .ql-mathfield math-field + [class*=keyboard] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  left: -9999px !important;
}
x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper .ql-editor .ql-mathfield math-field:hover {
  border: none !important;
  background: transparent !important;
}
x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper .ql-editor .ql-mathfield math-field:focus-within {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}
x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper .ql-editor .ql-mathfield math-field ::part(content) {
  display: inline-block !important;
  vertical-align: baseline !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  width: auto !important;
  height: auto !important;
  min-width: auto !important;
  min-height: auto !important;
}
x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper .ql-editor .ql-mathfield + .ML__keyboard, x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper .ql-editor .ql-mathfield + .ML__virtual-keyboard, x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper .ql-editor .ql-mathfield + [class*=keyboard]:not([class*=field]):not([class*=input]), x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper .ql-editor .ql-mathfield + button:not(.text-keyboard-toggle):not(.ql-math-keyboard), x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper .ql-editor .ql-mathfield + button[data-keyboard-toggle]:not(.text-keyboard-toggle):not(.ql-math-keyboard), x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper .ql-editor .ql-mathfield + button[aria-label*=keyboard]:not([aria-label*=text]):not([aria-label*=arithmetic]):not(.text-keyboard-toggle):not(.ql-math-keyboard), x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper .ql-editor .ql-mathfield + .ML__keyboard-toggle, x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper .ql-editor .ql-mathfield + span:has(button[data-keyboard-toggle]), x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper .ql-editor .ql-mathfield + span:has(svg), x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper .ql-editor .ql-mathfield + div:has(button[data-keyboard-toggle]) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
}
x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper .ql-editor .ql-mathfield ~ button[data-keyboard-toggle], x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper .ql-editor .ql-mathfield ~ button[aria-label*=keyboard], x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper .ql-editor .ql-mathfield ~ .ML__keyboard-toggle, x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper .ql-editor .ql-mathfield ~ [class*=keyboard-toggle] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper .ql-container {
  position: relative;
  z-index: 1001;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 31px, rgb(229, 231, 235) 31px, rgb(229, 231, 235) 32px);
  background-size: 100% 32px;
  background-color: rgb(255, 253, 240);
  height: 300px;
}
x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 80px;
  height: 30px;
  background: white;
  z-index: 1000;
  pointer-events: none;
  border-radius: 0 0 8px 0;
}
x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper:focus-within {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper math-field {
  width: 100%;
  min-height: 160px;
  display: block;
  font-size: 1.2rem;
  line-height: 1.8;
  font-family: "Times New Roman", serif;
  outline: none;
  position: relative;
  word-break: break-word;
  white-space: normal;
}
x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper math-field ::slotted(*) .ML__toolbar,
x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper math-field ::slotted(*) .ML__keyboard-toggle,
x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper math-field ::slotted(*) .ML__menu-toggle,
x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper math-field ::slotted(*) .ML__button,
x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper math-field ::slotted(*) button[data-keyboard-toggle],
x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper math-field ::slotted(*) button[aria-label*=keyboard],
x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper math-field ::slotted(*) button[aria-label*=menu],
x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper math-field ::slotted(*) svg,
x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper math-field ::slotted(*) [role=button] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper > *[style*="position: absolute"][style*=top][style*=right], x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper > *[style*="position: absolute"][style*=right][style*=top], x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper > *[style*="position:absolute"][style*=top][style*=right], x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper > *[style*="position:absolute"][style*=right][style*=top] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}
x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper math-field::part(content) .ML__sqrt-index {
  margin-left: 0.2em;
  margin-right: -0.18em;
  font-size: 0.75em;
}
x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper math-field::part(content) {
  white-space: pre-wrap !important;
  word-break: break-all !important;
  overflow-wrap: anywhere !important;
  width: 100%;
}
x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper math-field::part(content) math,
x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper math-field::part(content) mrow,
x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper math-field::part(content) mtext,
x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper math-field::part(content) mi,
x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper math-field::part(content) mo,
x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper math-field::part(content) mn {
  white-space: pre-wrap !important;
  word-break: break-all !important;
  overflow-wrap: anywhere !important;
  display: inline !important;
}
x-proof-checker .answer-section .text-container .input-container .ML__keyboard:not(.ML__field):not([class*=field]):not([class*=input]),
x-proof-checker .answer-section .text-container .input-container .ML__toolbar:not([class*=field]):not([class*=input]),
x-proof-checker .answer-section .text-container .input-container .ML__virtual-keyboard:not([class*=field]):not([class*=input]),
x-proof-checker .answer-section .text-container .input-container [class*=ML__keyboard]:not([class*=field]):not([class*=input]):not([class*=content]),
x-proof-checker .answer-section .text-container .input-container [class*=virtual-keyboard]:not([class*=field]):not([class*=input]):not([class*=content]),
x-proof-checker .answer-section .text-container .input-container [id*=virtual-keyboard]:not([id*=field]):not([id*=input]),
x-proof-checker .answer-section .text-container .input-container [id*=ML__keyboard]:not([id*=field]):not([id*=input]),
x-proof-checker .answer-section .text-container .input-container button[data-keyboard-toggle]:not(.text-keyboard-toggle):not(.ql-math-keyboard),
x-proof-checker .answer-section .text-container .input-container button[aria-label*=keyboard]:not([aria-label*=text]):not([aria-label*=arithmetic]):not(.text-keyboard-toggle):not(.ql-math-keyboard),
x-proof-checker .answer-section .text-container .input-container .ML__keyboard-toggle,
x-proof-checker .answer-section .text-container .input-container [class*=ML__keyboard-toggle]:not([class*=text]):not([class*=arithmetic]),
x-proof-checker .answer-section .text-container .input-container math-field + button[data-keyboard-toggle]:not(.text-keyboard-toggle):not(.ql-math-keyboard),
x-proof-checker .answer-section .text-container .input-container math-field + button[aria-label*=keyboard]:not([aria-label*=text]):not([aria-label*=arithmetic]):not(.text-keyboard-toggle):not(.ql-math-keyboard),
x-proof-checker .answer-section .text-container .input-container .ql-mathfield + button[data-keyboard-toggle]:not(.text-keyboard-toggle):not(.ql-math-keyboard),
x-proof-checker .answer-section .text-container .input-container .ql-mathfield + button[aria-label*=keyboard]:not([aria-label*=text]):not([aria-label*=arithmetic]):not(.text-keyboard-toggle):not(.ql-math-keyboard) {
  position: fixed !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: -9999 !important;
  overflow: hidden !important;
  display: none !important;
}
x-proof-checker .answer-section .text-container .input-container .keyboard-section,
x-proof-checker .answer-section .text-container .input-container .text-keyboard-toggle,
x-proof-checker .answer-section .text-container .input-container .ql-math-keyboard,
x-proof-checker .answer-section .text-container .input-container .text-keyboard-container:not(.hidden) {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
x-proof-checker .answer-section .text-container .input-container .text-keyboard-container.hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
x-proof-checker .answer-section .text-container .input-container math-field::part(menu-toggle),
x-proof-checker .answer-section .text-container .input-container math-field::part(keyboard-toggle),
x-proof-checker .answer-section .text-container .input-container math-field::part(toolbar),
x-proof-checker .answer-section .text-container .input-container math-field::part(virtual-keyboard) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}
x-proof-checker .answer-section .text-container .input-container body > .ML__keyboard:not([class*=field]):not([class*=input]),
x-proof-checker .answer-section .text-container .input-container body > .ML__virtual-keyboard:not([class*=field]):not([class*=input]),
x-proof-checker .answer-section .text-container .input-container body > [class*=ML__keyboard]:not([class*=field]):not([class*=input]):not([class*=content]),
x-proof-checker .answer-section .text-container .input-container html > .ML__keyboard:not([class*=field]):not([class*=input]),
x-proof-checker .answer-section .text-container .input-container html > .ML__virtual-keyboard:not([class*=field]):not([class*=input]) {
  position: fixed !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: -9999 !important;
  overflow: hidden !important;
}
x-proof-checker .answer-section .text-container .input-container .character-count {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 0.8rem;
  color: #7f8c8d;
  background: rgba(255, 255, 255, 0.9);
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 1002;
}
@media screen and (max-width: 768px) {
  x-proof-checker .answer-section .text-container .input-mode-toggle button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  x-proof-checker .answer-section .text-container .text-keyboard-container {
    width: 100% !important;
    max-width: 100% !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    border-radius: 12px 12px 0 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    padding-bottom: 10px !important;
    padding-bottom: env(safe-area-inset-bottom, 10px) !important;
  }
  x-proof-checker .answer-section .text-container .text-keyboard-container .keyboard-tabs {
    justify-content: center;
  }
  x-proof-checker .answer-section .text-container .question-section {
    padding: 1.5rem !important;
  }
  x-proof-checker .answer-section .text-container .question-section .question-title {
    font-size: 1.5rem;
  }
  x-proof-checker .answer-section .text-container .answer-section {
    padding: 1rem !important;
  }
  x-proof-checker .answer-section .text-container .input-container .mathfield-wrapper {
    min-height: 150px;
    padding: 0.75rem;
  }
}
x-proof-checker .answer-section .text-container .keyboard-section {
  margin-bottom: 1.5rem;
}
x-proof-checker .answer-section .text-container .keyboard-section .text-keyboard-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 6px;
  border: none;
  background: #2563eb;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 0.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
x-proof-checker .answer-section .text-container .keyboard-section .text-keyboard-toggle:hover {
  background: #1d4ed8;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
x-proof-checker .answer-section .text-container .keyboard-section .text-keyboard-toggle:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
x-proof-checker .answer-section .text-container .keyboard-section .text-keyboard-toggle .icon {
  font-size: 1rem;
  line-height: 1;
}
x-proof-checker .answer-section .text-container .keyboard-section .text-keyboard-toggle .label {
  font-size: 0.875rem;
  line-height: 1;
}
x-proof-checker .answer-section .text-container .text-keyboard-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: 100%;
  max-width: 500px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  padding: 0.5rem;
  display: block !important;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
x-proof-checker .answer-section .text-container .text-keyboard-container.hidden {
  display: none !important;
}
x-proof-checker .answer-section .text-container .text-keyboard-container .keyboard-close-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ef4444;
  color: white;
  border: 2px solid white;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 10001;
  padding: 0;
  line-height: 1;
}
x-proof-checker .answer-section .text-container .text-keyboard-container .keyboard-close-btn:hover {
  background: #dc2626;
  transform: scale(1.1);
}
x-proof-checker .answer-section .text-container .text-keyboard-container .keyboard-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.25rem;
  justify-content: flex-start;
  width: 100%;
  scrollbar-width: thin;
}
x-proof-checker .answer-section .text-container .text-keyboard-container .keyboard-tabs .keyboard-tab {
  flex: 0 0 auto;
  padding: 0.25rem 0.5rem;
  border: none;
  border-radius: 4px;
  background: #f3f4f6;
  color: #4b5563;
  font-weight: 600;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
x-proof-checker .answer-section .text-container .text-keyboard-container .keyboard-tabs .keyboard-tab:hover {
  background: #e5e7eb;
}
x-proof-checker .answer-section .text-container .text-keyboard-container .keyboard-tabs .keyboard-tab.active {
  background: #2563eb;
  color: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
x-proof-checker .answer-section .text-container .text-keyboard-container .keyboard-panel .keyboard-group {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #f9fafb;
  border-radius: 6px;
  padding: 0.25rem;
}
x-proof-checker .answer-section .text-container .text-keyboard-container .keyboard-panel .keyboard-group.hidden {
  display: none;
}
x-proof-checker .answer-section .text-container .text-keyboard-container .keyboard-panel .keyboard-group .keyboard-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-bottom: 0;
}
x-proof-checker .answer-section .text-container .text-keyboard-container .keyboard-panel .keyboard-group .keyboard-row .keyboard-key {
  padding: 0;
  border: 1px solid #e5e7eb;
  border: none;
  margin: 1px;
  border-radius: 4px;
  background: white;
  color: #1f2937;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.1s ease;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-height: 36px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}
x-proof-checker .answer-section .text-container .text-keyboard-container .keyboard-panel .keyboard-group .keyboard-row .keyboard-key:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  transform: translateY(-1px);
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
  z-index: 1;
}
x-proof-checker .answer-section .text-container .text-keyboard-container .keyboard-panel .keyboard-group .keyboard-row .keyboard-key:active {
  background: #e5e7eb;
  transform: translateY(0);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}
x-proof-checker .answer-section .text-container .text-keyboard-container .keyboard-panel .keyboard-group .keyboard-row .keyboard-key .key-symbol {
  font-size: 0.9rem;
  line-height: 1;
  color: inherit;
  font-family: KaTeX_Main, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
x-proof-checker .answer-section .text-container .text-keyboard-container .keyboard-panel .keyboard-group .keyboard-row.row-6, x-proof-checker .answer-section .text-container .text-keyboard-container .keyboard-panel .keyboard-group .keyboard-row[data-keys-count="6"] {
  grid-template-columns: repeat(6, 1fr);
}
x-proof-checker .answer-section .text-container .text-keyboard-container .keyboard-panel .keyboard-group .keyboard-row[data-keys-count="4"] {
  grid-template-columns: repeat(4, 1fr);
}
x-proof-checker .answer-section .text-container .text-keyboard-container .keyboard-panel .keyboard-group .keyboard-row[data-keys-count="2"] {
  grid-template-columns: repeat(2, 1fr);
}
x-proof-checker .answer-section .text-container .text-keyboard-container .keyboard-panel .keyboard-group .keyboard-row[data-keys-count="1"] {
  grid-template-columns: 1fr;
}
@keyframes slideUp {
  from {
    transform: translate(-50%, 20px);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}
x-proof-checker .answer-section .canvas-container.hidden {
  display: none;
}
x-proof-checker .answer-section .canvas-container .canvas-tools {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
x-proof-checker .answer-section .canvas-container .canvas-tools .tool-group {
  display: flex;
  gap: 0.5rem;
}
x-proof-checker .answer-section .canvas-container .canvas-tools .tool-group .tool-btn {
  width: 50px;
  height: 50px;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
x-proof-checker .answer-section .canvas-container .canvas-tools .tool-group .tool-btn:hover {
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
x-proof-checker .answer-section .canvas-container .canvas-tools .tool-group .tool-btn.active {
  border-color: #9D6BC8;
  background: linear-gradient(135deg, #9D6BC8 0%, #5B3A6D 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(157, 107, 200, 0.3);
}
x-proof-checker .answer-section .canvas-container .canvas-tools .controls-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  flex: 1;
  justify-content: center;
}
x-proof-checker .answer-section .canvas-container .canvas-tools .controls-group .pen-controls,
x-proof-checker .answer-section .canvas-container .canvas-tools .controls-group .eraser-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}
x-proof-checker .answer-section .canvas-container .canvas-tools .controls-group .pen-controls.hidden,
x-proof-checker .answer-section .canvas-container .canvas-tools .controls-group .eraser-controls.hidden {
  display: none;
}
x-proof-checker .answer-section .canvas-container .canvas-tools .controls-group .pen-controls .control-label,
x-proof-checker .answer-section .canvas-container .canvas-tools .controls-group .eraser-controls .control-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #495057;
}
x-proof-checker .answer-section .canvas-container .canvas-tools .controls-group .pen-controls .control-label span,
x-proof-checker .answer-section .canvas-container .canvas-tools .controls-group .eraser-controls .control-label span {
  white-space: nowrap;
}
x-proof-checker .answer-section .canvas-container .canvas-tools .controls-group .pen-controls .control-label .color-picker,
x-proof-checker .answer-section .canvas-container .canvas-tools .controls-group .eraser-controls .control-label .color-picker {
  width: 40px;
  height: 30px;
  border: 2px solid #dee2e6;
  border-radius: 4px;
  cursor: pointer;
}
x-proof-checker .answer-section .canvas-container .canvas-tools .controls-group .pen-controls .control-label .color-picker:hover,
x-proof-checker .answer-section .canvas-container .canvas-tools .controls-group .eraser-controls .control-label .color-picker:hover {
  border-color: #667eea;
}
x-proof-checker .answer-section .canvas-container .canvas-tools .controls-group .pen-controls .control-label input[type=range],
x-proof-checker .answer-section .canvas-container .canvas-tools .controls-group .eraser-controls .control-label input[type=range] {
  width: 100px;
  cursor: pointer;
}
x-proof-checker .answer-section .canvas-container .canvas-tools .controls-group .pen-controls .control-label .pen-size-value,
x-proof-checker .answer-section .canvas-container .canvas-tools .controls-group .pen-controls .control-label .eraser-size-value,
x-proof-checker .answer-section .canvas-container .canvas-tools .controls-group .eraser-controls .control-label .pen-size-value,
x-proof-checker .answer-section .canvas-container .canvas-tools .controls-group .eraser-controls .control-label .eraser-size-value {
  min-width: 20px;
  text-align: center;
  font-weight: 600;
  color: #667eea;
}
x-proof-checker .answer-section .canvas-container .canvas-tools .btn-clear-canvas {
  padding: 0.5rem 1rem;
  border: 2px solid #dc3545;
  border-radius: 6px;
  background: white;
  color: #dc3545;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
x-proof-checker .answer-section .canvas-container .canvas-tools .btn-clear-canvas:hover {
  background: #dc3545;
  color: white;
}
x-proof-checker .answer-section .canvas-container .canvas-tools .btn-undo-canvas {
  padding: 0.5rem 1rem;
  border: 2px solid #0d6efd;
  border-radius: 6px;
  background: white;
  color: #0d6efd;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
x-proof-checker .answer-section .canvas-container .canvas-tools .btn-undo-canvas:hover:enabled {
  background: #0d6efd;
  color: white;
}
x-proof-checker .answer-section .canvas-container .canvas-tools .btn-undo-canvas:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
x-proof-checker .answer-section .canvas-container .canvas-wrapper {
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  padding: 1rem;
  background: #f8f9fa;
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
}
x-proof-checker .answer-section .canvas-container .canvas-wrapper .drawing-canvas {
  background-color: white;
  background-image: linear-gradient(to right, rgba(102, 126, 234, 0.1) 1px, transparent 1px), linear-gradient(to bottom, rgba(102, 126, 234, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: 0 0, 0 0;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: crosshair;
  touch-action: none;
}
x-proof-checker .answer-section .canvas-container .canvas-wrapper .drawing-canvas:active {
  cursor: crosshair;
}
x-proof-checker .answer-section .canvas-container .canvas-wrapper .canvas-text-input {
  position: absolute;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  min-width: 0;
  min-height: 0;
  font-family: "Courier New", monospace;
  font-size: 1rem;
  line-height: 1.4;
  color: #1f2937;
  resize: none;
  outline: none;
  overflow: hidden;
  white-space: pre;
  z-index: 6;
}
x-proof-checker .answer-section .canvas-container .canvas-wrapper .canvas-text-input::-moz-placeholder {
  color: rgba(30, 64, 175, 0.55);
}
x-proof-checker .answer-section .canvas-container .canvas-wrapper .canvas-text-input::placeholder {
  color: rgba(30, 64, 175, 0.55);
}
x-proof-checker .answer-section .canvas-container .canvas-wrapper .canvas-text-input:focus {
  outline: none;
}
x-proof-checker .answer-section .canvas-container .canvas-wrapper .canvas-text-label {
  position: absolute;
  background: transparent;
  color: #1f2937;
  font-family: "Courier New", monospace;
  line-height: 1.4;
  cursor: move;
  white-space: pre-wrap;
  display: inline-block;
  min-width: 0;
  min-height: 0;
  padding: 0;
  z-index: 5;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
x-proof-checker .answer-section .bar-chart-container.hidden {
  display: none;
}
x-proof-checker .answer-section .bar-chart-container .bar-chart-tools {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
x-proof-checker .answer-section .bar-chart-container .bar-chart-tools .bar-tools-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
x-proof-checker .answer-section .bar-chart-container .bar-chart-tools .bar-tools-group .btn {
  padding: 0.5rem 1rem;
  border: 2px solid #667eea;
  border-radius: 6px;
  background: white;
  color: #667eea;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
x-proof-checker .answer-section .bar-chart-container .bar-chart-tools .bar-tools-group .btn:hover {
  background: #667eea;
  color: white;
}
x-proof-checker .answer-section .bar-chart-container .bar-chart-tools .bar-tools-group .btn.btn-delete-bar {
  border-color: #dc3545;
  color: #dc3545;
}
x-proof-checker .answer-section .bar-chart-container .bar-chart-tools .bar-tools-group .btn.btn-delete-bar:hover {
  background: #dc3545;
  color: white;
}
x-proof-checker .answer-section .bar-chart-container .bar-chart-tools .bar-tools-group .btn.btn-clear-bars {
  border-color: #6c757d;
  color: #6c757d;
}
x-proof-checker .answer-section .bar-chart-container .bar-chart-tools .bar-tools-group .btn.btn-clear-bars:hover {
  background: #6c757d;
  color: white;
}
x-proof-checker .answer-section .bar-chart-container .bar-chart-tools .bar-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}
x-proof-checker .answer-section .bar-chart-container .bar-chart-tools .bar-controls .control-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #495057;
}
x-proof-checker .answer-section .bar-chart-container .bar-chart-tools .bar-controls .control-label span {
  white-space: nowrap;
  font-weight: 600;
}
x-proof-checker .answer-section .bar-chart-container .bar-chart-tools .bar-controls .control-label .bar-color-picker {
  width: 50px;
  height: 35px;
  border: 2px solid #dee2e6;
  border-radius: 6px;
  cursor: pointer;
}
x-proof-checker .answer-section .bar-chart-container .bar-chart-tools .bar-controls .control-label .bar-color-picker:hover {
  border-color: #667eea;
}
x-proof-checker .answer-section .bar-chart-container .bar-chart-wrapper {
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  padding: 1rem;
  background: #f8f9fa;
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}
x-proof-checker .answer-section .bar-chart-container .bar-chart-wrapper .bar-chart-canvas {
  background: white;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: crosshair;
  touch-action: none;
  max-width: 100%;
}
x-proof-checker .timer-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
  width: 100%;
}
x-proof-checker .timer-section .time-tracker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  color: #4b5563;
  font-weight: 600;
  background: #f3f4f6;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}
x-proof-checker .timer-section .time-tracker .timer-icon {
  font-size: 1.25rem;
}
x-proof-checker .timer-section .time-tracker .timer-display {
  font-family: "Courier New", monospace;
  letter-spacing: 1px;
}
x-proof-checker .timer-section .encouragement-message {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 20px;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  color: #0284c7;
  font-weight: 600;
  text-align: center;
  animation: bounceIn 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #bce1fa;
}
x-proof-checker .timer-section .encouragement-message.hidden {
  display: none;
}
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }
  20% {
    transform: scale3d(1.1, 1.1, 1.1);
  }
  40% {
    transform: scale3d(0.9, 0.9, 0.9);
  }
  60% {
    opacity: 1;
    transform: scale3d(1.03, 1.03, 1.03);
  }
  80% {
    transform: scale3d(0.97, 0.97, 0.97);
  }
  100% {
    opacity: 1;
    transform: scale3d(1, 1, 1);
  }
}
x-proof-checker .action-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-bottom: 0.2rem;
}
x-proof-checker .action-buttons .btn {
  padding: 0.5rem 0.5rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}
x-proof-checker .action-buttons .btn.btn-clear {
  background: #6c757d;
  color: white;
}
x-proof-checker .action-buttons .btn.btn-clear:hover {
  background: #5a6268;
}
x-proof-checker .action-buttons .btn.btn-submit {
  background: linear-gradient(135deg, #9D6BC8 0%, #5B3A6D 100%);
  color: white;
}
x-proof-checker .action-buttons .btn.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
x-proof-checker .action-buttons .btn.btn-submit:disabled {
  background: #adb5bd;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
x-proof-checker .validation-section {
  border-top: 2px solid #e9ecef;
  padding-top: 2rem;
}
x-proof-checker .validation-section.hidden {
  display: none;
}
x-proof-checker .validation-section .loading-state {
  text-align: center;
  padding: 2rem;
}
x-proof-checker .validation-section .loading-state.hidden {
  display: none;
}
x-proof-checker .validation-section .loading-state .spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
x-proof-checker .validation-section .loading-state p {
  color: #6c757d;
  font-size: 1.1rem;
}
x-proof-checker .validation-section .result-state.hidden {
  display: none;
}
x-proof-checker .validation-section .result-state .result-header {
  background: linear-gradient(135deg, #9D6BC8 0%, #5B3A6D 100%);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}
x-proof-checker .validation-section .result-state .result-header .confidence-score {
  font-size: 1.2rem;
  font-weight: 600;
}
x-proof-checker .validation-section .result-state .result-header .confidence-score .score-value {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-left: 0.5rem;
}
x-proof-checker .validation-section .result-state .result-content .correct-section,
x-proof-checker .validation-section .result-state .result-content .improvement-section {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border-left: 4px solid #28a745;
}
x-proof-checker .validation-section .result-state .result-content .correct-section h4,
x-proof-checker .validation-section .result-state .result-content .improvement-section h4 {
  margin: 0 0 1rem 0;
  color: #2c3e50;
  font-size: 1.1rem;
}
x-proof-checker .validation-section .result-state .result-content .correct-section ul,
x-proof-checker .validation-section .result-state .result-content .improvement-section ul {
  margin: 0;
  padding-left: 1.5rem;
}
x-proof-checker .validation-section .result-state .result-content .correct-section ul li,
x-proof-checker .validation-section .result-state .result-content .improvement-section ul li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
x-proof-checker .validation-section .result-state .result-content .improvement-section {
  border-left-color: #ffc107;
}
x-proof-checker .validation-section .result-state .result-content .model-answer {
  background: #e8f4fd;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #007bff;
  display: none;
}
x-proof-checker .validation-section .result-state .result-content .model-answer h4 {
  margin: 0 0 1rem 0;
  color: #2c3e50;
  font-size: 1.1rem;
}
x-proof-checker .validation-section .result-state .result-content .model-answer .model-proof {
  font-family: "Courier New", monospace;
  line-height: 1.6;
  white-space: pre-line;
  background: white;
  padding: 1rem;
  border-radius: 4px;
  border: 1px solid #dee2e6;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@media (max-width: 768px) {
  x-proof-checker {
    padding: 0rem;
    max-width: 100%;
  }
  x-proof-checker .question-section {
    padding: 1.5rem;
  }
  x-proof-checker .answer-section {
    padding: 1.5rem;
  }
  x-proof-checker .answer-section .canvas-container .canvas-tools {
    flex-direction: column;
  }
  x-proof-checker .answer-section .canvas-container .canvas-tools .controls-group {
    flex-direction: column;
    width: 100%;
  }
  x-proof-checker .answer-section .canvas-container .canvas-tools .controls-group .pen-controls,
  x-proof-checker .answer-section .canvas-container .canvas-tools .controls-group .eraser-controls {
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
  }
  x-proof-checker .answer-section .canvas-container .canvas-tools .controls-group .pen-controls .control-label,
  x-proof-checker .answer-section .canvas-container .canvas-tools .controls-group .eraser-controls .control-label {
    width: 100%;
    justify-content: space-between;
  }
  x-proof-checker .answer-section .canvas-container .canvas-tools .controls-group .pen-controls .control-label input[type=range],
  x-proof-checker .answer-section .canvas-container .canvas-tools .controls-group .eraser-controls .control-label input[type=range] {
    width: 150px;
  }
  x-proof-checker .answer-section .canvas-container .canvas-tools .btn-clear-canvas {
    width: 100%;
  }
  x-proof-checker .answer-section .canvas-container .canvas-wrapper {
    padding: 0.5rem;
  }
  x-proof-checker .answer-section .canvas-container .canvas-wrapper .drawing-canvas {
    max-width: 100%;
    height: auto;
  }
  x-proof-checker .answer-section .bar-chart-container .bar-chart-tools {
    flex-direction: column;
  }
  x-proof-checker .answer-section .bar-chart-container .bar-chart-tools .bar-tools-group {
    width: 100%;
  }
  x-proof-checker .answer-section .bar-chart-container .bar-chart-tools .bar-tools-group .btn {
    flex: 1;
  }
  x-proof-checker .answer-section .bar-chart-container .bar-chart-tools .bar-controls {
    width: 100%;
    justify-content: space-between;
  }
  x-proof-checker .answer-section .bar-chart-container .bar-chart-wrapper {
    padding: 0.5rem;
  }
  x-proof-checker .answer-section .bar-chart-container .bar-chart-wrapper .bar-chart-canvas {
    max-width: 100%;
    height: auto;
  }
  x-proof-checker .action-buttons {
    flex-direction: column;
  }
  x-proof-checker .action-buttons .btn {
    padding: 1rem;
  }
}
@media (max-width: 480px) {
  x-proof-checker {
    padding: 0rem;
    max-width: 100%;
  }
  x-proof-checker .question-section {
    padding: 0rem;
  }
  x-proof-checker .question-section .question-content .question-text {
    font-size: 0.9rem;
  }
  x-proof-checker .answer-section {
    padding: 0rem;
  }
  x-proof-checker .answer-section .canvas-container .canvas-wrapper .drawing-canvas {
    width: 100%;
    height: 300px;
  }
  x-proof-checker .answer-section .bar-chart-container .bar-chart-wrapper .bar-chart-canvas {
    width: 100%;
    height: 400px;
  }
}
@font-face {
  font-family: KaTeX_Main;
  src: url(https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/fonts/KaTeX_Main-Regular.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/fonts/KaTeX_Main-Regular.woff) format("woff");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: KaTeX_Main;
  src: url(https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/fonts/KaTeX_Main-Bold.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/fonts/KaTeX_Main-Bold.woff) format("woff");
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: KaTeX_Main;
  src: url(https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/fonts/KaTeX_Main-Italic.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/fonts/KaTeX_Main-Italic.woff) format("woff");
  font-weight: normal;
  font-style: italic;
}
@font-face {
  font-family: KaTeX_Main;
  src: url(https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/fonts/KaTeX_Main-BoldItalic.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/fonts/KaTeX_Main-BoldItalic.woff) format("woff");
  font-weight: bold;
  font-style: italic;
}
@font-face {
  font-family: KaTeX_Math;
  src: url(https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/fonts/KaTeX_Math-Italic.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/fonts/KaTeX_Math-Italic.woff) format("woff");
  font-weight: normal;
  font-style: italic;
}
@font-face {
  font-family: KaTeX_Math;
  src: url(https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/fonts/KaTeX_Math-BoldItalic.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/fonts/KaTeX_Math-BoldItalic.woff) format("woff");
  font-weight: bold;
  font-style: italic;
}

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);
}