math-field.main-input-box {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 180px;
  padding: 20px;
  margin-bottom: 0;
  border: 1px solid #cccccc;
  font-family: 'Times New Roman', serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: normal;
  word-spacing: normal;
  white-space: normal;
  text-align: left;
}
math-field.main-input-box::part(placeholder) {
  display: none;
}
math-field.main-input-box::part(virtual-keyboard-toggle),
math-field.main-input-box::part(menu-toggle) {
  display: none;
}
.mathfield-placeholder {
  position: absolute;
  left: 28px;
  top: 30px;
  z-index: 5;
  pointer-events: none;
  user-select: none;
  font-family: inherit;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  color: #777777;
}
.input-container.multi-input {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.field-input-wrap {
  position: relative;
  width: 100%;
}
math-field.field-input-box {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 56px;
  padding: 14px 16px;
  margin-bottom: 0;
  border: 1px solid #cccccc;
  font-family: 'Times New Roman', serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: normal;
  word-spacing: normal;
  white-space: normal;
  text-align: left;
}
math-field.field-input-box::part(placeholder) {
  display: none;
}
math-field.field-input-box::part(virtual-keyboard-toggle),
math-field.field-input-box::part(menu-toggle) {
  display: none;
}
.field-input-wrap .mathfield-placeholder {
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
}
.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.content-wrap {
  flex: 1;
}
.main-content {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 80px;
}
.content-container {
  display: flex;
  max-width: 1200px;
  width: 100%;
  padding: 20px;
  gap: 20px;
}
.middle-section {
  display: flex;
  flex-direction: column;
  width: 60%;
  min-width: 0;
  gap: 0;
}
.directory {
  font-size: 14px;
  color: #0645AD;
  cursor: pointer;
  margin: 0 0 35px 0;
}
.directory a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.directory a:hover {
  text-decoration: underline;
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.breadcrumb-item {
  display: inline-flex;
  align-items: center;
}
.breadcrumb-separator {
  display: inline-flex;
  align-items: center;
  color: inherit;
}
.main-title {
  font-size: 32px;
  font-weight: bold;
  line-height: 1.15;
  margin: 0 0 5px 0;
}
.calculator-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 35px 0;
}
.published-date {
  font-size: 13px;
  color: black;
}
.calculator-plan-badge {
  font-size: 13px;
  color: black;
}
.calculator-plan-badge::before {
  content: "•";
  color: black;
  margin: 0 5px;
  font-weight: 400;
}
.calculator-plan-name {
  color: black;
  font-weight: 400;
}
.calculator-plan-separator {
  display: inline-block;
  margin: 0 5px;
  color: black;
  font-weight: 400;
}
.main-paragraph {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: #333;
  margin: 20px 0;
}
.main-paragraph img {
  display: block;
  margin: 1em auto;
}
.guide-diagram {
  text-align: center;
  margin: 24px 0;
}
.guide-diagram-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto 16px;
}
.guide-diagram-image-small {
  max-width: 150px;
}
.guide-diagram-image-medium {
  max-width: 200px;
}
.guide-diagram-caption {
  margin: 0;
}
.formula-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
.input-container {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-bottom: 25px;
}
.input-container .keyboard-toggle-btn {
  bottom: -12px;
}
.operation-container {
  margin-bottom: 12px;
}
.calc-select {
  position: relative;
  width: 100%;
}
.calc-select select.calc-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.calc-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  min-height: 56px;
  padding: 14px 16px;
  border: 1px solid #cccccc;
  border-radius: 0;
  background-color: #ffffff;
  color: inherit;
  text-align: left;
  font-family: 'Times New Roman', serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  cursor: pointer;
}
.calc-select-trigger:focus-visible {
  outline: none;
  border-color: #111827;
}
.calc-select-open .calc-select-trigger {
  border-color: #111827;
}
.calc-select-value.is-placeholder {
  color: #777777;
}
.calc-select-arrow {
  flex: 0 0 auto;
  width: 12px;
  height: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23666666' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.15s ease;
}
.calc-select-open .calc-select-arrow {
  transform: rotate(180deg);
}
.calc-select-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  max-height: 280px;
  overflow-y: auto;
  margin: 0;
  padding: 4px;
  list-style: none;
  border: 1px solid #cccccc;
  background-color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.calc-select-open .calc-select-menu {
  display: block;
}
.calc-select-option {
  padding: 12px 14px;
  font-family: 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.3;
  color: inherit;
  cursor: pointer;
}
.calc-select-option:hover,
.calc-select-option.is-active {
  background-color: #f2f4f7;
}
.calc-select-option.is-selected {
  font-weight: 700;
}
.calculator-select-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 56px;
  padding: 14px 48px 14px 16px;
  border: 1px solid #cccccc;
  border-radius: 0;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23666666' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 12px 8px;
  color: inherit;
  outline: none;
  font-family: 'Times New Roman', serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.calculator-select-input:focus {
  border-color: #111827;
}
.middle-section > .input-container + :not(.solve-button) {
  margin-top: 0;
  margin-bottom: 25px;
}
.solve-button {
  width: 100%;
  padding: 10px 0;
  margin-top: 0;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  color: white;
  background-color: #007BFF;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.solve-button:hover {
  background-color: #0056b3;
}
.solve-button.is-loading {
  opacity: 0.75;
  cursor: wait;
}
.answer-box {
  margin-top: 25px;
  padding: 15px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 90px;
  box-sizing: border-box;
}
.answer-box .final-answer-box {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 0;
}
.answer-box .final-answer-box.error-answer {
  font-size: 14px;
}
.answer-box .final-answer-box.error-answer .katex {
  font-size: 1em;
}
.hidden {
  display: none !important;
}
.step-info {
  text-align: center;
  font-size: 12px;
  line-height: 12px;
  margin: 0;
}
.answer-box + .step-info {
  margin-top: 25px;
}
.step-info + .steps-buttons {
  margin-top: 25px;
}
.step-info ~ .login-please-text {
  margin-top: 25px;
}
#login-required-message:not(.hidden) ~ .sample-problems .sample-problems-divider-top {
  display: none;
}
.steps-buttons {
  display: flex;
  gap: 10px;
  margin-top: 0;
}
.steps-buttons.hidden {
  display: none !important;
}
.step-button {
  flex: 1;
  padding: 10px 0;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  color: white;
  background-color: #007BFF;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.step-button:hover {
  background-color: #0056b3;
}
.login-please-text {
  color: #555;
  text-align: center;
  margin: 25px 0;
  padding: 25px 0;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  font-size: 14px;
  font-weight: bold;
}
.login-please-text a {
  color: blue;
  text-decoration: none;
}
.login-please-text a:hover {
  text-decoration: underline;
}
.step-explanation {
  font-size: 16px;
  font-weight: bold;
  margin: 15px 0;
  text-align: left;
  background-color: transparent;
}
.step-answer {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e0e0e0;
  padding: 20px 20px;
  border-radius: 5px;
  margin: 20px 0;
  min-height: 90px;
  font-size: 14px;
}
.step-answer > * {
  max-width: 100%;
}
.step-answer {
  overflow-x: auto;
  overflow-y: hidden;
}
.step-layout {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}
.step-center-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.step-final-answer-row {
  display: flex;
  justify-content: center;
  align-items: center;
}
.final-answer {
  font-size: 16px;
  font-weight: bold;
  margin-top: 15px;
  text-align: left;
}
#steps-container {
  border-radius: 5px;
  margin-top: 0px;
  text-align: left;
}
.step {
  margin-top: 20px;
  margin-bottom: 20px;
}
.step-title {
  font-size: 16px;
  font-weight: bold;
  margin: 15px 0;
  text-align: center;
  background-color: transparent;
}
.step-divider {
  border-top: 1px solid #ddd;
  margin: 25px 0;
}
.guide-example {
  margin: 16px 0;
}
.guide-example[open] + .guide-example {
  border-top: 1px solid #ddd;
  margin-top: 25px;
  padding-top: 25px;
}
.guide-example-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  margin: 0 auto;
  padding: 8px 16px;
  background: #007BFF;
  color: #ffffff;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  list-style: none;
}
.guide-example-button::-webkit-details-marker {
  display: none;
}
.guide-example-button:hover {
  background: #006ee6;
}
.guide-example[open] .guide-example-label-closed {
  display: none;
}
.guide-example:not([open]) .guide-example-label-open {
  display: none;
}
.guide {
  margin: 0 0 25px 0;
}
.guide-content {
  position: relative;
}
.guide-content > .main-paragraph:first-child {
  margin: 0 0 20px 0;
}
.guide[data-collapsed="true"] .guide-content {
  max-height: 150px;
  overflow: hidden;
}
.guide[data-collapsed="true"] .guide-content::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
}
.guide-toggle-row {
  display: flex;
  justify-content: center;
  margin-top: 5px;
}
.guide-toggle {
  border: none;
  background: transparent;
  color: #007BFF;
  font-weight: bold;
  cursor: pointer;
  padding: 0 10px;
  line-height: 20px;
  border-radius: 5px;
}
.guide-toggle:hover {
  text-decoration: underline;
}
.guide-content ol,
.guide-content ul {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: #333;
  margin: 5px 0 15px 0;
  padding-left: 18px;
}
.guide-content li {
  margin: 5px 0;
}
.guide-content ol > li::marker {
  font-weight: 700;
}
.guide-content h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: bold;
  color: #222;
  margin: 15px 0 5px 0;
}
.guide-content .guide-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: bold;
  color: #222;
  margin: 15px 0 5px 0;
}
.step-formula {
  background: transparent;
}
.step-formula .step-answer {
  background: #fff7cc;
  border: 1px solid #e6d36a;
  border-radius: 5px;
  padding: 20px 20px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.formula-equation {
  font-weight: 700;
  font-size: 1.1em;
}
.calc-output-scroll,
.calc-formula-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-top: 8px;
  padding-bottom: 10px;
  display: flex;
  justify-content: center;
}
.calc-output-row {
  width: max-content;
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
  white-space: nowrap;
  margin: 0 auto;
}
.calc-output-center {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.step-layout > * {
  flex: 0 0 auto;
}
.calc-math-block {
  width: 100%;
  display: flex;
  justify-content: center;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-top: 10px;
  padding-bottom: 10px;
}
.calc-math-row {
  width: max-content;
  margin: 0 auto;
}
.math-expr {
  display: inline-block;
  line-height: 1.45;
  vertical-align: baseline;
}
.answer-label {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  line-height: 1;
}
.answer-value {
  display: inline-flex;
  align-items: center;
}
.final-answer-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 1.1em;
  font-weight: 700;
}
.final-answer-box .answer-label {
  line-height: 1;
}
.integral-symbol {
  font-size: 2em;
  line-height: 1;
}
math-field.main-input-box:empty::before {
  content: attr(data-placeholder);
  white-space: pre-line;
  color: #9ca3af;
  pointer-events: none;
}
.answer-box .answer-label,
.answer-box .answer-value {
  display: inline-flex;
  align-items: center;
}
.calc-formula-grid {
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  column-gap: 30px;
  row-gap: 10px;
  justify-items: center;
}
.calc-formula-item {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-width: 0;
}

.matrix-scope,
.matrix-wrapper {
  --cell-size: 48px;
  --cell-gap: 6px;
}
.dims-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.dim-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dim-header {
  font-size: 0.88rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}
.dim-inputs {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: center;
  gap: 8px 9px;
}
.dim-inputs label {
  display: contents;
  font-size: 0.8rem;
  font-weight: 700;
  color: #111827;
}
.dim-inputs input {
  width: 40px;
  height: 28px;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  color: #111827;
  background: #ffffff;
  border: 1px solid #cfd5df;
  border-radius: 7px;
  outline: none;
  appearance: textfield;
  -moz-appearance: textfield;
}
.dim-inputs input::-webkit-outer-spin-button,
.dim-inputs input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.dim-inputs input:focus {
  border-color: #111827;
}
.dim-inputs button {
  grid-column: 1 / -1;
  justify-self: center;
  height: 30px;
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  color: #ffffff;
  background: #111827;
  border: 1px solid #111827;
  border-radius: 7px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.dim-inputs button:hover {
  background: #1f2937;
}
.dim-inputs button:active {
  transform: translateY(1px);
}
.matrices-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 0 8px;
  flex-wrap: wrap;
  overflow-x: auto;
  overflow-y: hidden;
}
.matrix-block {
  text-align: center;
}
.matrix-title {
  margin-bottom: 10px;
  font-weight: 700;
}
.operator {
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  line-height: 1;
}
.matrix-wrapper {
  display: inline-block;
  position: relative;
  padding: 6px;
  vertical-align: middle;
}
.matrix-wrapper table,
.matrix-table {
  border-collapse: separate;
  border-spacing: var(--cell-gap);
}
.matrix-cell {
  width: var(--cell-size);
  height: var(--cell-size);
  border: 1px solid #999;
  box-sizing: border-box;
  padding: 0;
  vertical-align: middle;
}
.cell-input {
  width: 100%;
  height: 100%;
  border: none;
  padding: 0;
  margin: 0;
  text-align: center;
  font-size: 14px;
  background: transparent;
  outline: none;
  box-sizing: border-box;
}
.cell-display,
.cell-text {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-size: 14px;
  white-space: nowrap;
}
.matrix-wrapper::before,
.matrix-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  border-top: 2px solid #333;
  border-bottom: 2px solid #333;
}
.matrix-wrapper::before {
  left: 0;
  border-left: 2px solid #333;
  border-radius: 4px 0 0 4px;
}
.matrix-wrapper::after {
  right: 0;
  border-right: 2px solid #333;
  border-radius: 0 4px 4px 0;
}
.matrix-wrapper.expr-mode .matrix-cell,
.matrix-wrapper.matrix-display.expr-mode .matrix-cell {
  width: max-content;
  min-width: var(--cell-size);
  height: auto;
  padding: 6px 8px;
}
.matrix-wrapper.expr-mode .cell-display,
.matrix-wrapper.expr-mode .cell-text {
  height: auto;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 12px;
  line-height: 1.15;
  padding: 0;
}
.matrix-inline-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.matrix-inline-label {
  font-weight: 700;
  white-space: nowrap;
}
.matrix-power-container {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  vertical-align: middle;
}
.power-sup-display {
  position: static;
  display: inline-block;
  margin-top: -6px;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  user-select: none;
}
.step-layout.matrix-scope {
  overflow-x: auto;
  overflow-y: hidden;
}
.final-answer-box .matrix-scope {
  display: inline-flex;
  align-items: center;
}

.sample-problems {
  margin: 0;
}

#steps-container:not(.hidden) + .sample-problems .sample-problems-divider-top {
  display: none;
}

.sample-problems .step-title {
  margin-top: 0;
  margin-bottom: 6px;
}

.sample-problems-note {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: #666;
  text-align: center;
  margin: 0 0 16px;
}

.sample-problems-list {
  display: grid;
  grid-auto-rows: 1fr;
  gap: 8px;
}

.sample-problem {
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  text-align: left;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: #333;
  background-color: #f7f8fa;
  border: 1px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
}

.sample-problem:hover {
  background-color: #eef1f6;
  border-color: #007BFF;
}