  /* 出題モードへジャンプする浮遊ボタン */
  .kkt-qfilter-jump {
    position: fixed;
    right: 1.2rem;
    bottom: 5rem;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-size: 1.6rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition:
      opacity 0.2s ease-out,
      transform 0.2s ease-out,
      box-shadow 0.2s ease-out,
      background-color 0.2s ease-out,
      color 0.2s ease-out;
    z-index: 50;
  }

  .kkt-qfilter-jump--visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .kkt-qfilter-jump:hover {
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
    background: #2563eb;
    color: #ffffff;
  }

  .kkt-qfilter-jump-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }

  .kkt-qfilter-jump-icon .kkt-icon {
    width: 1.15em;
    height: 1.15em;
  }

  .kkt-qfilter-jump-label {
    position: absolute;
    right: 52px;
    white-space: nowrap;
    font-size: 0.78rem;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.92);
    color: #f9fafb;
    opacity: 0;
    transform: translateX(6px);
    pointer-events: none;
    transition: opacity 0.18s ease-out, transform 0.18s ease-out;
  }

  .kkt-qfilter-jump:hover .kkt-qfilter-jump-label {
    opacity: 1;
    transform: translateX(0);
  }

  /* スクロール先カードの一時ハイライト */
  .kkt-qs-shell.kkt-qfilter-pulse {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.3);
    animation: kkt-qfilter-pulse 0.9s ease-out;
  }

  @keyframes kkt-qfilter-pulse {
    0% {
      box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.35);
    }

    70% {
      box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }

    100% {
      box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
  }

  .kkt-qs-shell {
    border-radius: 32px;
    background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 52%, #faf5ff 100%);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    overflow: hidden;
  }

  .kkt-qs-surface {
    position: relative;
    padding: 1.5rem;
  }

  .kkt-qs-topbar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1.25rem;
  }

  .kkt-qs-topbar__copy {
    min-width: 0;
  }

  .kkt-qs-topbar__meta {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    flex: 0 0 auto;
  }

  .kkt-qs-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
  }

  .kkt-qs-title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.7rem, 2.8vw, 2.35rem);
    line-height: 1.15;
    font-weight: 800;
    color: #172554;
  }

  .kkt-qs-subtitle {
    margin: 0;
    color: #475569;
    font-size: 1rem;
  }

  .kkt-qs-mobile-flow {
    display: none;
  }

  .kkt-qs-topbar__count {
    min-width: 140px;
    padding: 1rem 1.15rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    text-align: right;
  }

  .kkt-qs-topbar__count span,
  .kkt-qs-topbar__count small {
    display: block;
    color: #64748b;
  }

  .kkt-qs-topbar__count strong {
    display: block;
    color: #0f172a;
    font-size: 2rem;
    line-height: 1;
    margin: 0.25rem 0;
  }

  .kkt-qs-topbar__start {
    min-width: 150px;
    border: 0;
    border-radius: 22px;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 850;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0 1rem;
    box-shadow: 0 16px 28px rgba(37, 99, 235, 0.22);
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
  }

  .kkt-qs-topbar__start:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(37, 99, 235, 0.28);
  }

  .kkt-qs-active {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.95rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.24);
    margin-bottom: 1rem;
  }

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

  .kkt-qs-active__label {
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 600;
  }

  .kkt-qs-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.24);
    color: #0f172a;
    font-size: 0.88rem;
    font-weight: 600;
  }

  .kkt-qs-reset {
    color: #475569;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
  }

  .kkt-qs-reset__short,
  .kkt-qs-topbar__start-short,
  .kkt-qs-summary__button-short {
    display: none;
  }

  .kkt-qs-reset:hover {
    color: #0f172a;
  }

  .kkt-qs-form {
    display: grid;
    gap: 1rem;
  }

  .kkt-qs-section {
    padding: 1.2rem;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(191, 219, 254, 0.8);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.04);
  }

  .kkt-qs-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
  }

  .kkt-qs-section__eyebrow {
    display: inline-block;
    color: #2563eb;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
  }

  .kkt-qs-section__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
  }

  .kkt-qs-section__hint {
    margin-top: 0.75rem;
    color: #64748b;
    font-size: 0.83rem;
    line-height: 1.6;
  }

  .kkt-qs-toggle {
    border: 0;
    background: transparent;
    color: #2563eb;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0;
  }

  .kkt-qs-subject-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .kkt-qs-subject-card {
    position: relative;
    border: 2px solid #dbeafe;
    border-radius: 22px;
    padding: 1rem;
    background: #fff;
    text-align: left;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  }

  .kkt-qs-subject-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  }

  .kkt-qs-subject-card.is-active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  }

  .kkt-qs-subject-card.is-theory.is-active {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fbff 100%);
  }

  .kkt-qs-subject-card.is-power.is-active {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, #f5f3ff 0%, #faf5ff 100%);
  }

  .kkt-qs-subject-card.is-machine.is-active {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%);
  }

  .kkt-qs-subject-card.is-law.is-active {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  }

  .kkt-qs-subject-card__title {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.2rem;
  }

  .kkt-qs-subject-card__count {
    display: block;
    color: #64748b;
    font-size: 0.84rem;
  }

  .kkt-qs-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .kkt-qs-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 42px;
    padding: 0.65rem 0.95rem;
    border-radius: 14px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    background: #fff;
    color: #334155;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  }

  .kkt-qs-chip:hover {
    color: #0f172a;
    border-color: #93c5fd;
    transform: translateY(-1px);
  }

  .kkt-qs-chip.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    color: #fff;
    box-shadow: 0 12px 20px rgba(37, 99, 235, 0.2);
  }

  .kkt-qs-chip span {
    font-size: 0.78rem;
    opacity: 0.78;
  }

  .kkt-qs-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 22px;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    color: #fff;
    box-shadow: 0 18px 30px rgba(37, 99, 235, 0.22);
  }

  .kkt-qs-summary__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
  }

  .kkt-qs-summary__copy-block {
    min-width: 0;
  }

  .kkt-qs-summary__eyebrow {
    font-size: 0.75rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 0.12rem;
  }

  .kkt-qs-summary__title {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 850;
    line-height: 1.25;
  }

  .kkt-qs-summary__meta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
  }

  .kkt-qs-summary__count,
  .kkt-qs-summary__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
  }

  .kkt-qs-summary__button {
    width: auto;
    min-height: 44px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #2563eb;
    font-size: 0.92rem;
    font-weight: 850;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0 1.05rem;
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.14);
  }

  .kkt-qs-review {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.22);
  }

  .kkt-qs-review__title {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
  }

  .kkt-qs-review__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .kkt-qs-review__card {
    padding: 1rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(203, 213, 225, 0.72);
  }

  .kkt-qs-review__card-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .kkt-qs-review__card-head span {
    display: inline-flex;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.72rem;
    font-weight: 700;
  }

  .kkt-qs-review__card p {
    margin: 0 0 0.75rem;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .kkt-qs-review__card a {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
  }

  .kkt-qs-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    background: rgba(15, 23, 42, 0.54);
    backdrop-filter: blur(8px);
  }

  .kkt-qs-modal-panel {
    width: min(960px, 100%);
    max-height: min(92vh, 980px);
    overflow: auto;
    border-radius: 32px;
    background: #fff;
    box-shadow: 0 32px 60px rgba(15, 23, 42, 0.25);
    padding: 1.4rem;
  }

  .kkt-qs-modal-panel__header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .kkt-qs-modal-panel__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
  }

  .kkt-qs-modal-panel__copy {
    margin: 0.35rem 0 0;
    color: #64748b;
  }

  .kkt-qs-modal-panel__close {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
  }

  .kkt-qs-mode-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .kkt-qs-mode-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
    border-radius: 24px;
    border: 1px solid rgba(203, 213, 225, 0.7);
    background: #fff;
    text-decoration: none;
    color: #0f172a;
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  }

  .kkt-qs-mode-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px rgba(15, 23, 42, 0.1);
  }

  .kkt-qs-mode-card.is-blue {
    border-color: #bfdbfe;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
  }

  .kkt-qs-mode-card.is-purple {
    border-color: #ddd6fe;
    background: linear-gradient(135deg, #f5f3ff 0%, #ffffff 100%);
  }

  .kkt-qs-mode-card.is-orange {
    border-color: #fed7aa;
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
  }

  .kkt-qs-mode-card.is-red {
    border-color: #fecaca;
    background: linear-gradient(135deg, #fff1f2 0%, #ffffff 100%);
  }

  .kkt-qs-mode-card.is-emerald {
    border-color: #bbf7d0;
    background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
  }

  .kkt-qs-mode-card.is-indigo {
    border-color: #c7d2fe;
    background: linear-gradient(135deg, #eef2ff 0%, #ffffff 100%);
  }

  .kkt-qs-mode-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
  }

  .kkt-qs-mode-card__icon .kkt-icon {
    width: 1.25em;
    height: 1.25em;
  }

  .kkt-qs-mode-card.is-blue .kkt-qs-mode-card__icon { background: #3b82f6; }
  .kkt-qs-mode-card.is-purple .kkt-qs-mode-card__icon { background: #8b5cf6; }
  .kkt-qs-mode-card.is-orange .kkt-qs-mode-card__icon { background: #f59e0b; }
  .kkt-qs-mode-card.is-red .kkt-qs-mode-card__icon { background: #ef4444; }
  .kkt-qs-mode-card.is-emerald .kkt-qs-mode-card__icon { background: #10b981; }
  .kkt-qs-mode-card.is-indigo .kkt-qs-mode-card__icon { background: #4f46e5; }

  .kkt-qs-mode-card__title {
    font-size: 1.05rem;
    font-weight: 800;
  }

  .kkt-qs-mode-card__detail {
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .kkt-qs-mode-card__cta .kkt-icon,
  .kkt-qs-topbar__start .kkt-icon,
  .kkt-qs-summary__button .kkt-icon,
  .kkt-btn-question .kkt-icon {
    width: 1em;
    height: 1em;
  }

  .kkt-qs-mode-card__cta {
    margin-top: auto;
    color: #2563eb;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
  }

  .kkt-qs-modal-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 24px;
    background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%);
  }

  .kkt-qs-modal-stats__item {
    text-align: center;
    color: #1e293b;
    font-weight: 700;
  }

  .kkt-qs-modal-stats__item strong {
    font-size: 1.6rem;
  }

  .kkt-qs-modal-stats__item span {
    display: block;
    margin-top: 0.2rem;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 600;
  }

  .kkt-qs-loading {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(4px);
  }

  .kkt-qs-loading__spinner {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 4px solid rgba(37, 99, 235, 0.16);
    border-top-color: #2563eb;
    animation: kkt-qs-spin 0.78s linear infinite;
  }

  @keyframes kkt-qs-spin {
    to {
      transform: rotate(360deg);
    }
  }

  .kkt-ad-slot-wrap {
    margin: -0.45rem 0 1.35rem;
  }

  .kkt-ad-slot,
  .kkt-qs-status-panel,
  .kkt-qs-progress-panel,
  .kkt-qs-listbar,
  .kkt-qs-empty-state {
    border-radius: 26px;
    border: 1px solid rgba(203, 213, 225, 0.78);
    background:
      radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 34%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.94)),
      #ffffff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  }

  .kkt-ad-slot {
    overflow: hidden;
  }

  .kkt-ad-slot__body {
    align-items: center;
    padding: 1rem 1.15rem;
  }

  .kkt-ad-slot__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin-bottom: 0.28rem;
    padding: 0.16rem 0.5rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    font-size: 0.74rem;
    font-weight: 850;
  }

  .kkt-ad-slot__title {
    margin-bottom: 0.18rem;
    color: #0f172a;
    font-weight: 850;
    letter-spacing: -0.01em;
  }

  .kkt-ad-slot__text {
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.58;
  }

  .kkt-ad-slot__cta {
    min-height: 42px;
    padding: 0.62rem 0.95rem;
    border-color: #bfdbfe;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.08);
  }

  .kkt-qs-status-panel__body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
  }

  .kkt-qs-status-panel__title,
  .kkt-qs-progress-panel__title {
    margin: 0 0 0.24rem;
    color: #0f172a;
    font-size: 1.02rem;
    font-weight: 850;
    letter-spacing: -0.02em;
  }

  .kkt-qs-status-panel__copy,
  .kkt-qs-progress-panel__copy {
    margin: 0;
    color: #64748b;
    font-size: 0.86rem;
    line-height: 1.55;
  }

  .kkt-qs-status-panel__badges,
  .kkt-qs-progress-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
  }

  .kkt-qs-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.45rem 0.78rem;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 800;
  }

  .kkt-qs-status-pill.is-warning {
    border: 1px solid #fcd34d;
    background: #fffbeb;
    color: #92400e;
  }

  .kkt-qs-status-pill.is-primary {
    border: 1px solid #bfdbfe;
    background: #dbeafe;
    color: #1d4ed8;
  }

  .kkt-qs-progress-panel {
    position: relative;
    overflow: hidden;
  }

  .kkt-qprogress-bar-top {
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #4f46e5);
  }

  .kkt-qs-progress-panel__header {
    padding: 1rem 1.15rem 0.45rem;
  }

  .kkt-qs-progress-panel__body {
    padding: 0.88rem 1.15rem 1.08rem;
  }

  .kkt-qs-progress-panel__title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
  }

  .kkt-qs-progress-panel__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.12);
  }

  .kkt-qs-progress-rail {
    margin-bottom: 0.88rem;
  }

  .kkt-progress-rail {
    position: relative;
    display: flex;
    width: 100%;
    height: var(--progress-h, 12px);
    border-radius: 999px;
    background: linear-gradient(90deg, #e5e7eb, #f1f5f9);
    overflow: hidden;
  }

  .kkt-progress-fill {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #fff;
    font-size: 0.68rem;
    white-space: nowrap;
  }

  .kkt-progress-fill-correct {
    background: linear-gradient(90deg, #22c55e, #16a34a);
  }

  .kkt-progress-fill-incorrect {
    background: linear-gradient(90deg, #f97373, #ef4444);
  }

  .kkt-progress-fill-unanswered {
    background: #9ca3af;
  }

  .kkt-progress-label {
    padding-inline: 4px;
  }

  .kkt-qs-filter-button,
  .kkt-qs-page-link,
  .kkt-qs-empty-state__button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: #fff;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
  }

  .kkt-qs-filter-button {
    min-height: 38px;
    padding: 0.58rem 0.86rem;
    border-radius: 14px;
  }

  .kkt-qs-filter-button:hover,
  .kkt-qs-page-link:hover,
  .kkt-qs-empty-state__button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
  }

  .kkt-qs-filter-button.is-danger {
    border-color: #fecaca;
    background: #fff;
    color: #b91c1c;
  }

  .kkt-qs-filter-button.is-muted {
    border-color: #cbd5e1;
    background: #fff;
    color: #475569;
  }

  .kkt-qs-filter-button.is-success {
    border-color: #bbf7d0;
    background: #fff;
    color: #15803d;
  }

  .kkt-qs-filter-button.is-primary {
    border-color: transparent;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.18);
  }

  .kkt-qs-listbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.72rem 0.86rem 0.72rem 1rem;
  }

  .kkt-qs-listbar__count {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.36rem 0.64rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #475569;
    font-size: 0.86rem;
    font-weight: 800;
  }

  .kkt-qs-pagination {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
  }

  .kkt-qs-page-link,
  .kkt-qs-page-status {
    min-width: 46px;
    min-height: 38px;
    padding: 0.55rem 0.78rem;
    border-radius: 14px;
  }

  .kkt-qs-page-link {
    border-color: #bfdbfe;
    background: #ffffff;
    color: #1d4ed8;
  }

  .kkt-qs-page-link.is-disabled {
    border-color: #e2e8f0;
    color: #94a3b8;
    pointer-events: none;
  }

  .kkt-qs-page-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: 0.88rem;
    font-weight: 800;
  }

  .kkt-qs-empty-state__body {
    padding: 3rem 1.5rem;
    text-align: center;
    color: #64748b;
  }

  .kkt-qs-empty-state__title {
    margin-bottom: 0.45rem;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
  }

  .kkt-qs-empty-state__copy {
    margin-bottom: 1rem;
    color: #64748b;
    font-size: 0.9rem;
  }

  .kkt-qs-empty-state__button {
    padding: 0.6rem 0.95rem;
    border-color: #cbd5e1;
    color: #475569;
  }

  .kkt-qcards {
    display: grid;
    gap: 0.86rem;
  }

  .kkt-ql-card {
    position: relative;
    display: block;
    border-radius: 28px;
    overflow: hidden;
    background:
      radial-gradient(circle at 96% 18%, rgba(79, 70, 229, 0.08), transparent 30%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 255, 0.97)),
      #ffffff;
    border: 1px solid rgba(203, 213, 225, 0.84);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
    transition: box-shadow 0.16s ease, transform 0.12s ease, border-color 0.16s ease;
  }

  .kkt-ql-card:hover {
    transform: translateY(-2px);
    border-color: rgba(147, 197, 253, 0.9);
    box-shadow: 0 22px 48px rgba(37, 99, 235, 0.12);
  }

  .kkt-ql-card::before {
    content: "";
    position: absolute;
    inset-block: 0;
    left: 0;
    width: 5px;
    background: linear-gradient(to bottom, #60a5fa, #4f46e5);
  }

  .kkt-ql-card[data-subject="theory"]::before { background: linear-gradient(to bottom, #f97373, #fb7185); }
  .kkt-ql-card[data-subject="power"]::before { background: linear-gradient(to bottom, #60a5fa, #3b82f6); }
  .kkt-ql-card[data-subject="machine"]::before { background: linear-gradient(to bottom, #34d399, #10b981); }
  .kkt-ql-card[data-subject="law"]::before { background: linear-gradient(to bottom, #a78bfa, #6366f1); }

  .kkt-qcard-body {
    padding: 1.14rem 4.65rem 1.18rem 1.55rem;
  }

  .kkt-qcard-bookmark,
  .kkt-qcard-review-toggle {
    position: absolute;
    right: 1.2rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
    text-decoration: none;
    z-index: 2;
  }

  .kkt-qcard-bookmark {
    top: 0.95rem;
    width: 42px;
    height: 42px;
    border: 0;
    background: rgba(255, 255, 255, 0.92);
    color: #9ca3af;
    border: 1px solid rgba(226, 232, 240, 0.92);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
  }

  .kkt-qcard-bookmark-on {
    color: #d97706;
    background: #fffbeb;
    border: 1px solid #fcd34d;
  }

  .kkt-qcard-bookmark-on:hover {
    color: #b45309;
    background: #fef3c7;
  }

  .kkt-qcard-review-toggle {
    top: 3.88rem;
    width: 40px;
    height: 40px;
    border: 1px solid #fca5a5;
    background: rgba(255, 255, 255, 0.92);
    color: #dc2626;
    backdrop-filter: blur(10px);
  }

  .kkt-qcard-review-toggle:hover {
    background: #fff1f2;
    color: #b91c1c;
  }

  .kkt-qcard-review-toggle-on {
    border-color: #86efac;
    color: #16a34a;
  }

  .kkt-qcard-review-toggle-on:hover {
    background: #f0fdf4;
    color: #15803d;
  }

  .kkt-qcard-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .kkt-qcard-icon .kkt-icon {
    width: 1.06rem;
    height: 1.06rem;
  }

  .kkt-qcard-icon--on,
  .kkt-qcard-bookmark-on .kkt-qcard-icon--off,
  .kkt-qcard-review-toggle-on .kkt-qcard-icon--off {
    display: none;
  }

  .kkt-qcard-bookmark-on .kkt-qcard-icon--on,
  .kkt-qcard-review-toggle-on .kkt-qcard-icon--on {
    display: inline-flex;
  }

  .kkt-qcard-meta,
  .kkt-qcard-main,
  .kkt-qcard-support,
  .kkt-qcard-review-tags {
    display: flex;
    flex-wrap: wrap;
  }

  .kkt-qcard-meta {
    align-items: center;
    gap: 0.38rem 0.44rem;
    margin-bottom: 0.72rem;
  }

  .kkt-badge-subject,
  .kkt-badge-meta,
  .kkt-qcard-review-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
  }

  .kkt-badge-subject {
    padding: 0.34rem 0.82rem;
    border: 0;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
  }

  .kkt-badge-theory {
    background: linear-gradient(135deg, #f97373, #fb7185);
    color: #fff;
  }

  .kkt-badge-power {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    color: #fff;
  }

  .kkt-badge-machine {
    background: linear-gradient(135deg, #34d399, #10b981);
    color: #fff;
  }

  .kkt-badge-law {
    background: linear-gradient(135deg, #a78bfa, #6366f1);
    color: #fff;
  }

  .kkt-badge-meta {
    padding: 0.31rem 0.72rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e5e7eb;
    color: #4b5563;
  }

  .kkt-ql-question-text {
    margin: 0 0 0.92rem;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.68;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .kkt-ql-question-text .katex {
    font-size: 1em;
  }

  .kkt-ql-question-text .katex-display {
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
  }

  .kkt-qcard-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(142px, auto);
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
  }

  .kkt-qcard-support {
    display: block;
    align-items: center;
    min-width: 0;
  }

  .kkt-ql-card-footer {
    display: grid;
    gap: 0.46rem;
    width: min(100%, 740px);
    max-width: 100%;
    padding: 0.58rem 0.66rem;
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 250, 252, 0.78));
    border: 1px solid rgba(226, 232, 240, 0.86);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  }

  .kkt-qcard-learning-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.72rem;
    min-width: 0;
  }

  .kkt-ql-history {
    display: flex;
    align-items: center;
    gap: 0.45rem;
  }

  .kkt-ql-history-label {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
  }

  .kkt-ql-history-items {
    display: flex;
    gap: 0.4rem;
  }

  .kkt-ql-history-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.12rem;
    min-width: 26px;
  }

  .kkt-ql-history-box {
    width: 18px;
    height: 18px;
    border-radius: 0.4rem;
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.2);
  }

  .kkt-ql-history-box--correct {
    background: linear-gradient(135deg, #22c55e, #16a34a);
  }

  .kkt-ql-history-box--incorrect {
    background: linear-gradient(135deg, #f97373, #ef4444);
  }

  .kkt-ql-history-date {
    color: #9ca3af;
    font-size: 0.62rem;
    line-height: 1;
  }

  .kkt-qcard-muted,
  .kkt-qcard-attempts {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
  }

  .kkt-qcard-attempts {
    display: inline-flex;
    align-items: center;
    gap: 0.24rem;
    white-space: nowrap;
  }

  .kkt-qcard-review-tags {
    flex-basis: 100%;
    gap: 0.36rem;
    margin-top: 0;
  }

  .kkt-qcard-review-tag {
    padding: 0.34rem 0.64rem;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    color: #1e3a8a;
    font-size: 0.76rem;
    font-weight: 800;
    gap: 0.24rem;
    max-width: 100%;
  }

  .kkt-qcard-review-tag__value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .kkt-btn-question {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    min-width: 142px;
    min-height: 50px;
    padding: 0.68rem 1.22rem;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 16px 26px rgba(37, 99, 235, 0.2);
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
  }

  .kkt-qcard-action {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    min-width: 0;
  }

  .kkt-qcard-main > .kkt-qcard-action:only-child {
    grid-column: 1 / -1;
  }

  .kkt-btn-question:hover {
    color: #fff;
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 18px 30px rgba(37, 99, 235, 0.26);
  }

  @media (max-width: 768px) {
    .kkt-exam-wide .kkt-main-frame--wide {
      margin-top: 0.45rem !important;
    }

    .kkt-main-frame > nav[aria-label="パンくずリスト"] {
      display: none;
    }

    .kkt-exam-subnav {
      margin-bottom: 0.35rem;
    }

    .kkt-qs-shell {
      border-radius: 18px;
      box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
    }

    .kkt-qs-surface {
      padding: 0.38rem;
    }

    .kkt-qs-topbar {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 0.26rem;
      margin-bottom: 0.28rem;
    }

    .kkt-qs-topbar__meta {
      display: flex;
      flex-wrap: nowrap;
      gap: 0.22rem;
      justify-items: end;
      justify-content: flex-end;
    }

    .kkt-qs-step {
      display: none;
    }

    .kkt-qs-title {
      margin-bottom: 0;
      font-size: 1.04rem;
      line-height: 1.08;
    }

    .kkt-qs-subtitle {
      display: none;
    }

    .kkt-qs-mobile-flow {
      display: none;
    }

    .kkt-qs-mobile-flow span {
      flex: 0 0 auto;
      display: inline-flex;
      align-items: center;
      min-height: 22px;
      padding: 0.18rem 0.42rem;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.74);
      border: 1px solid rgba(191, 219, 254, 0.8);
      color: #1d4ed8;
      font-size: 0.68rem;
      font-weight: 850;
    }

    .kkt-qs-topbar__count {
      display: inline-flex;
      align-items: baseline;
      justify-content: center;
      gap: 0.12rem;
      min-width: auto;
      min-height: 26px;
      padding: 0.14rem 0.36rem;
      border-radius: 999px;
      box-shadow: none;
      text-align: left;
      white-space: nowrap;
    }

    .kkt-qs-topbar__count span {
      display: none;
    }

    .kkt-qs-topbar__count small {
      display: inline;
      font-size: 0.62rem;
    }

    .kkt-qs-topbar__count strong {
      display: inline;
      margin: 0;
      font-size: 0.9rem;
      line-height: 1;
    }

    .kkt-qs-topbar__start {
      min-width: 0;
      min-height: 26px;
      border-radius: 999px;
      padding: 0 0.4rem;
      font-size: 0.66rem;
      box-shadow: 0 10px 18px rgba(37, 99, 235, 0.18);
      white-space: nowrap;
    }

    .kkt-qs-topbar__start-long {
      display: none;
    }

    .kkt-qs-topbar__start-short {
      display: inline;
    }

    .kkt-qs-active {
      flex-wrap: nowrap;
      align-items: center;
      gap: 0.24rem;
      padding: 0.22rem 0.3rem;
      border-radius: 11px;
      margin-bottom: 0.28rem;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }

    .kkt-qs-active::-webkit-scrollbar {
      display: none;
    }

    .kkt-qs-active__chips {
      flex: 1 1 auto;
      flex-wrap: nowrap;
      gap: 0.28rem;
      min-width: 0;
      white-space: nowrap;
    }

    .kkt-qs-active__label {
      display: none;
    }

    .kkt-qs-pill {
      flex: 0 0 auto;
      max-width: 9rem;
      overflow: hidden;
      text-overflow: ellipsis;
      padding: 0.16rem 0.36rem;
      font-size: 0.68rem;
    }

    .kkt-qs-reset {
      flex: 0 0 auto;
      font-size: 0.68rem;
    }

    .kkt-qs-reset__long {
      display: none;
    }

    .kkt-qs-reset__short {
      display: inline;
    }

    .kkt-qs-form {
      gap: 0.28rem;
    }

    .kkt-qs-section {
      padding: 0.34rem;
      border-radius: 12px;
      box-shadow: none;
    }

    .kkt-qs-section__header {
      align-items: center;
      flex-direction: row;
      margin-bottom: 0.22rem;
      gap: 0.4rem;
    }

    .kkt-qs-section__eyebrow {
      display: none;
    }

    .kkt-qs-section__title {
      font-size: 0.75rem;
      line-height: 1.1;
      white-space: nowrap;
    }

    .kkt-qs-section__hint {
      display: none;
    }

    .kkt-qs-subject-grid {
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 0.18rem;
    }

    .kkt-qs-subject-card {
      border-width: 1px;
      border-radius: 999px;
      padding: 0.24rem 0.14rem;
      text-align: center;
    }

    .kkt-qs-subject-card__title {
      font-size: 0.73rem;
      margin-bottom: 0;
    }

    .kkt-qs-subject-card__count {
      display: none;
    }

    .kkt-qs-chip-grid {
      flex-wrap: nowrap;
      gap: 0.18rem;
      overflow-x: auto;
      overflow-y: hidden;
      padding-bottom: 0.02rem;
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;
    }

    .kkt-qs-chip-grid::-webkit-scrollbar {
      display: none;
    }

    .kkt-qs-chip {
      flex: 0 0 auto;
      min-height: 24px;
      padding: 0.18rem 0.36rem;
      border-radius: 999px;
      font-size: 0.66rem;
      white-space: nowrap;
    }

    .kkt-qs-chip span {
      font-size: 0.6rem;
    }

    .kkt-qs-toggle {
      flex: 0 0 auto;
      font-size: 0.65rem;
      white-space: nowrap;
    }

    .kkt-qs-summary {
      position: sticky;
      bottom: calc(4rem + env(safe-area-inset-bottom));
      z-index: 35;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 0.34rem;
      padding: 0.42rem;
      border-radius: 15px;
      box-shadow: 0 16px 34px rgba(37, 99, 235, 0.24);
    }

    .kkt-qs-summary__header {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      gap: 0.34rem;
      margin: 0;
    }

    .kkt-qs-summary__eyebrow {
      display: none;
    }

    .kkt-qs-summary__title {
      font-size: 0.78rem;
      line-height: 1.1;
      white-space: nowrap;
    }

    .kkt-qs-summary__meta {
      display: none;
    }

    .kkt-qs-summary__count,
    .kkt-qs-summary__chip {
      min-height: 28px;
      padding: 0.28rem 0.52rem;
      font-size: 0.74rem;
    }

    .kkt-qs-summary__chip {
      max-width: 8.5rem;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .kkt-qs-summary__button {
      width: auto;
      min-height: 32px;
      padding: 0 0.7rem;
      border-radius: 999px;
      font-size: 0.74rem;
      white-space: nowrap;
    }

    .kkt-qs-summary__button-long {
      display: none;
    }

    .kkt-qs-summary__button-short {
      display: inline;
    }

    .kkt-qs-modal-panel__header {
      grid-template-columns: 1fr;
      flex-direction: column;
      align-items: stretch;
    }

    .kkt-qs-review__grid,
    .kkt-qs-mode-grid,
    .kkt-qs-modal-stats {
      grid-template-columns: 1fr;
    }

    .kkt-qfilter-jump {
      right: 0.9rem;
      bottom: 4.2rem;
      width: 40px;
      height: 40px;
      font-size: 1.4rem;
    }

    .kkt-qs-status-panel__body,
    .kkt-qs-listbar {
      align-items: stretch;
      flex-direction: column;
    }

    .kkt-ad-slot-wrap {
      margin: -0.2rem 0 0.9rem;
    }

    .kkt-ad-slot,
    .kkt-qs-status-panel,
    .kkt-qs-progress-panel,
    .kkt-qs-listbar {
      border-radius: 18px;
    }

    .kkt-ad-slot__body {
      gap: 0.6rem;
      padding: 0.78rem 0.85rem;
    }

    .kkt-ad-slot__eyebrow {
      min-height: 22px;
      margin-bottom: 0.2rem;
      font-size: 0.7rem;
    }

    .kkt-ad-slot__text {
      font-size: 0.82rem;
      line-height: 1.5;
    }

    .kkt-ad-slot__cta {
      width: 100%;
      min-height: 40px;
      border-radius: 14px;
    }

    .kkt-qs-status-panel__body,
    .kkt-qs-progress-panel__header,
    .kkt-qs-progress-panel__body {
      padding-left: 0.85rem;
      padding-right: 0.85rem;
    }

    .kkt-qs-status-panel__body {
      gap: 0.7rem;
      padding-top: 0.85rem;
      padding-bottom: 0.85rem;
    }

    .kkt-qs-progress-panel__header {
      padding-top: 0.86rem;
    }

    .kkt-qs-progress-panel__body {
      padding-bottom: 0.9rem;
    }

    .kkt-qs-status-panel__badges,
    .kkt-qs-progress-actions,
    .kkt-qs-pagination {
      width: 100%;
    }

    .kkt-qs-listbar {
      gap: 0.62rem;
      padding: 0.66rem;
    }

    .kkt-qs-listbar__count {
      justify-content: center;
      width: 100%;
      min-height: 32px;
      font-size: 0.8rem;
    }

    .kkt-qs-filter-button,
    .kkt-qs-page-link,
    .kkt-qs-page-status {
      flex: 1 1 auto;
      min-height: 38px;
      border-radius: 13px;
    }

    .kkt-qcards {
      gap: 0.64rem;
    }

    .kkt-ql-card {
      border-radius: 18px;
      box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    }

    .kkt-ql-card::before {
      width: 4px;
    }

    .kkt-qcard-body {
      padding: 0.64rem 0.64rem 0.68rem 0.82rem;
    }

    .kkt-qcard-bookmark {
      top: 0.7rem;
      right: 0.7rem;
      width: 34px;
      height: 34px;
    }

    .kkt-qcard-review-toggle {
      top: 3rem;
      right: 0.7rem;
      width: 32px;
      height: 32px;
    }

    .kkt-qcard-meta {
      flex-wrap: nowrap;
      padding-right: 2.35rem;
      gap: 0.24rem;
      max-height: none;
      margin-bottom: 0.42rem;
      overflow-x: auto;
      overflow-y: hidden;
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;
    }

    .kkt-qcard-meta::-webkit-scrollbar {
      display: none;
    }

    .kkt-badge-subject,
    .kkt-badge-meta,
    .kkt-qcard-review-tag {
      font-size: 0.72rem;
    }

    .kkt-badge-subject,
    .kkt-badge-meta {
      padding: 0.25rem 0.52rem;
    }

    .kkt-ql-question-text {
      margin-bottom: 0.48rem;
      font-size: 0.86rem;
      line-height: 1.54;
      -webkit-line-clamp: 2;
    }

    .kkt-qcard-main {
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: end;
      gap: 0.44rem;
    }

    .kkt-qcard-support {
      width: 100%;
      min-width: 0;
    }

    .kkt-ql-card-footer {
      width: 100%;
      padding: 0;
      border: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
      gap: 0.26rem;
    }

    .kkt-qcard-learning-row {
      width: 100%;
      flex-wrap: nowrap;
      justify-content: flex-start;
      gap: 0.34rem;
    }

    .kkt-ql-history {
      flex: 0 1 auto;
      min-width: 0;
      align-items: center;
      gap: 0.28rem;
    }

    .kkt-ql-history-label,
    .kkt-qcard-muted,
    .kkt-qcard-attempts {
      font-size: 0.68rem;
    }

    .kkt-ql-history-items {
      flex: 0 1 auto;
      justify-content: flex-start;
      gap: 0.18rem;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      padding-bottom: 0.05rem;
      scrollbar-width: none;
    }

    .kkt-ql-history-items::-webkit-scrollbar {
      display: none;
    }

    .kkt-ql-history-item {
      gap: 0;
      min-width: auto;
    }

    .kkt-ql-history-box {
      width: 11px;
      height: 11px;
      border-radius: 999px;
    }

    .kkt-ql-history-date {
      display: none;
    }

    .kkt-qcard-attempts {
      flex: 0 0 auto;
      gap: 0;
      padding: 0.12rem 0.34rem;
      border: 1px solid rgba(203, 213, 225, 0.9);
      border-radius: 999px;
      background: rgba(248, 250, 252, 0.92);
      line-height: 1.1;
    }

    .kkt-qcard-attempts__label {
      display: none;
    }

    .kkt-qcard-review-tags {
      width: 100%;
      flex-wrap: nowrap;
      gap: 0.2rem;
      max-height: none;
      overflow-x: auto;
      overflow-y: hidden;
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;
    }

    .kkt-qcard-review-tags::-webkit-scrollbar {
      display: none;
    }

    .kkt-qcard-review-tag {
      flex: 0 0 auto;
      max-width: min(56vw, 220px);
      justify-content: flex-start;
      padding: 0.18rem 0.42rem;
      font-size: 0.66rem;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .kkt-qcard-review-tag__label {
      display: none;
    }

    .kkt-qcard-review-tag__value {
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .kkt-ql-card-btn {
      width: auto;
    }

    .kkt-qcard-action {
      width: auto;
      justify-self: end;
    }

    .kkt-btn-question {
      min-width: 92px;
      min-height: 34px;
      padding: 0.46rem 0.68rem;
      border-radius: 999px;
      font-size: 0.76rem;
      box-shadow: 0 10px 18px rgba(37, 99, 235, 0.16);
    }
  }
