.kkt-question-card {
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
}

.kkt-detail-backlink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 36px;
  padding: 0.42rem 0.8rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.kkt-detail-backlink:hover {
  color: #0f172a;
  border-color: #94a3b8;
}

.kkt-question-card__header {
  display: flex;
  justify-content: space-between;
  gap: 0.9rem 1rem;
  padding: 1rem 1.2rem;
  flex-wrap: wrap;
  align-items: flex-start;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
}

.kkt-question-card__title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.5;
}

.kkt-question-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.kkt-detail-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.kkt-detail-badge.is-primary {
  background: #2563eb;
  color: #fff;
}

.kkt-detail-badge.is-muted {
  background: #f1f5f9;
  color: #475569;
}

.kkt-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.kkt-detail-button,
.kkt-detail-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.68rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.kkt-detail-icon-button {
  min-width: 40px;
  min-height: 36px;
  padding: 0.5rem 0.72rem;
}

.kkt-detail-button.is-sm,
.kkt-detail-icon-button.is-sm {
  min-height: 36px;
  padding: 0.5rem 0.78rem;
  font-size: 0.88rem;
}

.kkt-detail-button.is-primary,
.kkt-detail-icon-button.is-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
}

.kkt-detail-button.is-outline-primary,
.kkt-detail-icon-button.is-outline-primary {
  border-color: #bfdbfe;
  background: #fff;
  color: #1d4ed8;
}

.kkt-detail-button.is-secondary,
.kkt-detail-icon-button.is-secondary {
  border-color: #cbd5e1;
  background: #fff;
  color: #475569;
}

.kkt-detail-button.is-danger,
.kkt-detail-icon-button.is-danger {
  border-color: #fecaca;
  background: #fff;
  color: #b91c1c;
}

.kkt-detail-button.is-warning,
.kkt-detail-icon-button.is-warning {
  border-color: #fcd34d;
  background: #fffbeb;
  color: #92400e;
}

.kkt-detail-button.is-success,
.kkt-detail-icon-button.is-success {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.kkt-detail-button:hover,
.kkt-detail-icon-button:hover {
  filter: brightness(0.985);
  transform: translateY(-1px);
}

.kkt-detail-button:disabled,
.kkt-detail-icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none;
}

.kkt-inline-link {
  color: #1d4ed8;
  font-weight: 800;
  text-decoration: none;
}

.kkt-inline-link:hover {
  text-decoration: underline;
}

.kkt-question-card__body {
  padding: 1.35rem;
}

.kkt-question-card__footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.9rem 1rem;
  padding: 1rem 1.2rem 1.15rem;
  align-items: flex-end;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
}

.kkt-footer-pane {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.kkt-footer-pane--actions,
.kkt-footer-pane--nav {
  width: min(100%, 390px);
}

.kkt-footer-pane--nav {
  align-items: flex-end;
}

.kkt-footer-nav-meta {
  min-height: 1.35rem;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.kkt-footer-action-row {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.kkt-footer-action {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0.85rem 1.15rem;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  background: #fff;
  color: #475569;
  justify-content: center;
  gap: 0.48rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.kkt-footer-action.is-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
}

.kkt-footer-action.is-outline-primary {
  border-color: #bfdbfe;
  background: #fff;
  color: #1d4ed8;
}

.kkt-footer-action.is-secondary {
  border-color: #cbd5e1;
  background: #fff;
  color: #475569;
}

.kkt-footer-action.is-danger {
  border-color: #fecaca;
  background: #fff;
  color: #b91c1c;
}

.kkt-footer-action.is-warning {
  border-color: #fcd34d;
  background: #fffbeb;
  color: #92400e;
}

.kkt-footer-action:hover {
  filter: brightness(0.985);
  transform: translateY(-1px);
}

.kkt-footer-action:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none;
}

.kkt-footer-action .kkt-icon,
.kkt-detail-backlink .kkt-icon,
#bookmarkBtn .kkt-icon,
#reviewExcludeBtn .kkt-icon {
  width: 1rem;
  height: 1rem;
}

.kkt-question-figure {
  margin: 0 0 0.95rem;
}

.kkt-question-card .section-title {
  margin-bottom: 0.65rem;
  line-height: 1.25;
}

.kkt-zoomable-frame {
  border: 1px solid #dbe5f2;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border-radius: 18px;
  padding: 0.8rem;
}

.kkt-image-hint {
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: #64748b;
  text-align: right;
}

.kkt-run-progress-wrap {
  margin-bottom: 1rem;
}

.kkt-run-progress-label {
  font-size: .85rem;
  color: #6b7280;
}

.kkt-run-progress-bar {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #e5e7eb;
}

.kkt-run-progress-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #4f46e5);
}

.kkt-detail-callout {
  padding: 0.9rem 1rem;
  border: 1px solid #dbe5f2;
  border-radius: 16px;
  background: #fff;
  color: #0f172a;
  font-size: 0.93rem;
  line-height: 1.65;
}

.kkt-detail-callout--inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.kkt-detail-callout.is-info {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.kkt-detail-callout.is-warning {
  border-color: #fcd34d;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
  color: #92400e;
}

.kkt-detail-callout.is-muted {
  border-color: #dbe5f2;
  background: #f8fafc;
}

.kkt-detail-callout__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.65rem;
  margin-top: 0.8rem;
}

.kkt-detail-metric-card {
  height: 100%;
  padding: 0.72rem 0.8rem;
  border: 1px solid #dbe5f2;
  border-radius: 14px;
  background: #fff;
}

.kkt-muted {
  color: #475569 !important;
  font-size: 0.92rem;
  line-height: 1.6;
}

.kkt-detail-panel {
  border: 1px solid #dbe5f2;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}

.kkt-detail-panel__header {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  color: #0f172a;
  font-weight: 800;
}

.kkt-detail-panel__body {
  padding: 1.1rem 1.2rem;
}

.kkt-learning-panel,
.kkt-demo-panel {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.kkt-learning-section {
  margin-bottom: 1rem;
}

.kkt-feedback-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.45rem 0.78rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.kkt-feedback-chip.is-danger {
  border-color: #fecaca;
  color: #b91c1c;
}

.kkt-feedback-chip.is-primary {
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.kkt-feedback-chip.is-danger.is-active {
  border-color: #dc2626;
  background: #dc2626;
  color: #fff;
}

.kkt-feedback-chip.is-primary.is-active {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.kkt-judge-feedback {
  padding: 0.72rem 0.9rem;
  border: 1px solid #dbe5f2;
  border-radius: 16px;
  background: #fff;
  font-size: 0.95rem;
}

.kkt-judge-feedback.is-success {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.kkt-judge-feedback.is-warning {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #991b1b;
}

.kkt-lock-panel {
  padding: 0.95rem 1rem;
  border: 1px solid #dbe5f2;
  border-radius: 16px;
  background: #f8fafc;
}

.kkt-related-list {
  display: grid;
  gap: 0.7rem;
}

.kkt-related-card {
  display: block;
  padding: 0.85rem 0.95rem;
  border: 1px solid #dbe5f2;
  border-radius: 16px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.kkt-related-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.08);
  transform: translateY(-1px);
}

.kkt-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.kkt-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.52rem;
  border: 1px solid #dbe5f2;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 0.76rem;
  font-weight: 700;
}

.choice-item.is-locked {
  pointer-events: none;
  cursor: default;
  opacity: 0.9;
}

.kkt-progress-label {
  font-size: 0.75rem;
  color: #fff;
  padding-left: 6px;
  white-space: nowrap;
}

.bookmark-btn--on {
  color: #1f2933;
  border-color: #facc15;
}

.choice-item.choice-correct {
  background-color: #dcfce7;
  border-color: #bbf7d0;
}

.choice-item.choice-incorrect {
  background-color: #fee2e2;
  border-color: #fecaca;
}

.choice-item.choice-pending,
.choice-item.choice-selected {
  background-color: #eff6ff;
  border-color: #60a5fa;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.choice-num {
  font-weight: 700;
  min-width: 2.8rem;
  margin-right: 0;
  flex-shrink: 0;
  text-align: center;
  font-size: 1.08rem;
  line-height: 1.7;
  color: #0f172a;
  padding-top: 0.05rem;
}

.table-cell {
  flex: 1;
  text-align: center;
  padding: 0.45rem 0.55rem !important;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  background-color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px !important;
}

.choice-matrix-wrap {
  overflow-x: visible;
  margin-bottom: 1rem;
}

.choice-matrix-shell {
  min-width: var(--choice-matrix-min-width, 40rem);
}

.choice-matrix-head {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: end;
  margin-bottom: 0.55rem;
  padding: 0 0.4rem;
}

.choice-matrix-head__labels {
  display: grid;
  grid-template-columns: repeat(var(--choice-matrix-cols, 3), minmax(0, 1fr));
  gap: 0.75rem;
}

.choice-matrix-head__cell {
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: #64748b;
  line-height: 1.2;
}

.table-cell-content {
  width: 100%;
  word-break: normal;
  overflow-wrap: anywhere;
  white-space: normal !important;
  line-height: 1.72 !important;
}

.table-cell-content p,
.table-cell-content div,
.table-cell-content .MathJax_Display {
  margin: 0 !important;
  padding: 0 !important;
}

.kkt-explanation-text {
  white-space: pre-line;
}

.kkt-source-note {
  font-size: 0.82rem;
  color: #6b7280;
  text-align: right;
  margin-bottom: 0;
}

.header-cell {
  flex: 1;
  text-align: center;
  font-size: 0.85rem;
  font-weight: bold;
  color: #6c757d;
  padding: 0 4px;
}

#choices {
  counter-reset: none;
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 0.8rem;
}

.choice-item {
  cursor: pointer;
  user-select: none;
  border: 1px solid #d7e0eb;
  background: #fff;
  padding: 0.95rem 1rem !important;
  border-radius: 16px !important;
  border-color: #d7e0eb;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.choice-hitarea {
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none;
  outline: none;
}

.choice-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.choice-state-strip {
  min-height: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.choice-state-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.24rem 0.62rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid transparent;
}

.choice-state-badge--pending {
  color: #1d4ed8;
  background: #dbeafe;
  border-color: #93c5fd;
}

.choice-state-badge--selected {
  color: #92400e;
  background: #fef3c7;
  border-color: #fcd34d;
}

.choice-state-badge--correct {
  color: #166534;
  background: #dcfce7;
  border-color: #86efac;
}

.kkt-choice-action {
  margin-top: 1rem;
  border: 1px solid #dbe5f2;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.kkt-choice-action__body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 1rem;
  padding: 1.1rem 1.2rem;
}

.kkt-choice-action__title {
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.kkt-choice-action__meta {
  margin-top: 0.2rem;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.5;
}

.kkt-choice-action__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  min-height: 52px;
  padding: 0.75rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  line-height: 1;
}

.kkt-choice-action__button.is-outline {
  border-color: #bfdbfe;
  background: #fff;
  color: #1d4ed8;
}

.kkt-choice-action__button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.kkt-choice-action.is-correct {
  border-color: #86efac;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
}

.kkt-choice-action.is-incorrect {
  border-color: #fca5a5;
  background: linear-gradient(180deg, #fef2f2 0%, #ffffff 100%);
}

.choice-item:not(.is-locked):hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
  transform: translateY(-1px);
}

.choice-item:focus-within {
  outline: 3px solid rgba(37, 99, 235, 0.2);
  outline-offset: 2px;
}

.choice-layout {
  display: grid;
  grid-template-columns: minmax(2.8rem, auto) minmax(0, 1fr);
  align-items: flex-start;
  gap: 0.85rem;
  width: 100%;
}

.choice-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.choice-content--image {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
}

.choice-layout--matrix {
  grid-template-columns: 4.25rem minmax(0, 1fr);
  align-items: stretch;
  gap: 0.85rem;
}

.choice-matrix-row {
  display: grid;
  grid-template-columns: repeat(var(--choice-matrix-cols, 3), minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
}

.choice-matrix-cell {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
}

.choice-matrix-cell-label {
  display: none;
  font-size: 0.9rem;
  font-weight: 700;
  color: #64748b;
  line-height: 1.2;
  text-align: left;
  padding-left: 0.15rem;
}

.choice-parts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  width: 100%;
}

.choice-part {
  min-width: 0;
  flex: 1 1 100%;
}

.choice-item--image {
  border-color: #cfe0f7;
  background: linear-gradient(180deg, #fbfdff 0%, #f8fbff 100%);
}

.choice-image-frame {
  min-height: 156px;
  border: 1px solid #d8e6f5;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  padding: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.choice-parts--image {
  align-content: center;
  gap: 0.45rem;
}

.kkt-question-card .text-muted,
.kkt-question-card .text-body-secondary,
.kkt-question-card .kkt-source-note,
.kkt-question-card .kkt-image-hint {
  color: #475569 !important;
}

.choice-item--image .choice-part:not(.table-cell) .table-cell-content {
  max-width: 30rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.55 !important;
}

.choice-item--long .choice-content .choice-part:not(.table-cell) {
  max-width: min(100%, 72ch);
}

.choice-item--long .choice-content .choice-part:not(.table-cell) .table-cell-content {
  font-size: 1rem;
  line-height: 1.74 !important;
}

.choice-content .choice-part:not(.table-cell) .table-cell-content {
  text-align: left;
}

.question-img-limit {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: min(58vh, 640px);
  object-fit: contain;
  margin: 0 auto;
}

.table-cell-content img,
.choice-img {
  max-width: 100%;
  height: auto;
  max-height: 180px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0.25rem;
}

.choice-item--image .choice-img {
  max-height: 156px;
  border: 0;
  background: transparent;
  padding: 0;
}

.kkt-app-footer {
  margin-top: 1.5rem;
  padding: 1rem clamp(.9rem, 2.5vw, 1.5rem);
  border-top: 1px solid rgba(15,23,42,.12);
  color: #64748b;
  font-size: .86rem;
}

.kkt-app-footer__inner {
  width: 100%;
  margin-inline: auto;
}

.kkt-app-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .85rem 1rem;
}

.kkt-app-footer__copy {
  color: #64748b;
}

.kkt-app-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1rem;
}

.kkt-app-footer__link {
  color: inherit;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

.kkt-app-footer__link:hover {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.kkt-toast-zone {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 1090;
  width: min(640px, 100%);
  padding: 1rem;
  transform: translateX(-50%);
  display: grid;
  gap: .65rem;
  pointer-events: none;
}

.kkt-toast {
  display: none;
  width: 100%;
  border: 1px solid rgba(15,23,42,.1);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: #334155;
  box-shadow: 0 14px 30px rgba(15,23,42,.12);
  opacity: 0;
  pointer-events: auto;
  transition: opacity .16s ease, transform .16s ease;
  transform: translateY(-4px);
}

.kkt-toast.showing,
.kkt-toast.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.kkt-toast.hide {
  display: none;
}

.kkt-toast__body {
  padding: .85rem 1rem;
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.5;
}

.kkt-toast.is-success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.kkt-toast.is-error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.kkt-pwa-toast__body {
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
}

.kkt-pwa-toast__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.kkt-pwa-toast__title {
  font-weight: 700;
  font-size: 1rem;
  color: #0f172a;
}

.kkt-pwa-toast__sub {
  font-size: 0.84rem;
  color: #475569;
}

.kkt-pwa-toast__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.kkt-pwa-toast__install {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  white-space: nowrap;
  min-width: 132px;
  justify-content: center;
  padding: .52rem .95rem;
  font-weight: 700;
  border-radius: 12px;
  color: #1f2937;
  background: linear-gradient(135deg, #fcd34d, #f59e0b);
  border: 0;
  box-shadow: 0 8px 16px rgba(245,158,11,.28);
  cursor: pointer;
}

.kkt-pwa-toast__install:hover {
  filter: brightness(1.02);
  transform: translateY(-1px);
}

.kkt-pwa-toast__close {
  appearance: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 12px;
  background: #ffffff;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.kkt-pwa-toast__close:hover {
  background: #f8fafc;
  color: #0f172a;
}

@media (max-width: 991.98px) {
  .choice-content--image {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .choice-image-frame {
    min-height: 136px;
    max-width: 220px;
  }

  .choice-item--image .choice-part:not(.table-cell) .table-cell-content,
  .choice-item--long .choice-content .choice-part:not(.table-cell) {
    max-width: 100%;
  }
}

@media (max-width: 1199.98px) {
  .choice-matrix-shell {
    min-width: 0;
  }

  .choice-matrix-head {
    display: none;
  }

  .choice-layout--matrix {
    grid-template-columns: 2.8rem minmax(0, 1fr);
    align-items: flex-start;
    gap: 0.75rem;
  }

  .choice-matrix-row {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .choice-matrix-cell-label {
    display: block;
  }

  .choice-matrix-cell .table-cell {
    min-height: 0 !important;
    justify-content: flex-start;
    text-align: left;
    padding: 0.65rem 0.75rem !important;
  }

  .choice-matrix-cell .table-cell-content {
    text-align: left;
    line-height: 1.62 !important;
  }
}

@media (max-width: 767.98px) {
  .kkt-question-card__header {
    padding: 0.95rem 1rem;
  }

  .kkt-question-card__body {
    padding: 1rem;
  }

  .kkt-question-card__footer {
    padding: 0.95rem 1rem 1rem;
    align-items: stretch;
  }

  .kkt-detail-callout--inline {
    align-items: flex-start;
    flex-direction: column;
  }

  .kkt-detail-panel__body,
  .kkt-detail-panel__header {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .kkt-action-row {
    align-items: stretch;
  }

  .kkt-action-row .kkt-detail-button {
    flex: 1 1 auto;
  }

  .kkt-footer-pane--actions,
  .kkt-footer-pane--nav {
    width: 100%;
  }

  .kkt-footer-pane--nav {
    align-items: stretch;
  }

  .kkt-footer-nav-meta {
    min-height: 0;
    justify-content: flex-start;
  }

  .kkt-footer-action {
    min-height: 52px;
    padding: 0.8rem 0.95rem;
    font-size: 0.96rem;
  }

  .kkt-question-card__title {
    font-size: 1.22rem;
    line-height: 1.55;
  }

  .kkt-question-text {
    font-size: 1.02rem;
    line-height: 1.82;
    margin-bottom: 0.8rem;
  }

  .choice-item {
    padding: 0.85rem 0.85rem !important;
  }

  .choice-image-frame {
    min-height: 120px;
    max-width: 190px;
    padding: 0.6rem;
  }

  .choice-layout {
    grid-template-columns: 2.35rem minmax(0, 1fr);
    gap: 0.65rem;
  }

  .choice-layout--matrix {
    grid-template-columns: 2.35rem minmax(0, 1fr);
    gap: 0.6rem;
  }

  .choice-matrix-row {
    gap: 0.5rem;
  }

  .choice-num {
    min-width: 2.35rem;
    font-size: 1rem;
    line-height: 1.65;
  }

  .choice-state-strip {
    min-height: 0;
  }

  .choice-state-badge {
    font-size: 0.72rem;
    padding: 0.22rem 0.54rem;
  }

  .kkt-choice-action__button {
    width: 100%;
    min-width: 0;
  }

  .table-cell {
    min-height: 50px !important;
    padding: 0.4rem 0.45rem !important;
  }

  .table-cell-content {
    font-size: 0.98rem;
    line-height: 1.68 !important;
  }

  .question-img-limit,
  .choice-img {
    max-height: 34vh;
  }

  .kkt-image-hint {
    text-align: left;
  }
}

@media (max-width: 575.98px) {
  .kkt-pwa-toast__body {
    grid-template-columns: 1fr;
  }

  .kkt-pwa-toast__actions {
    justify-content: flex-end;
  }
}
